Re: Leak when "drawing too fast"
Re: Leak when "drawing too fast"
- Subject: Re: Leak when "drawing too fast"
- From: Andreas Mayer <email@hidden>
- Date: Tue, 30 Jul 2013 15:12:02 +0200
Am 26.07.2013 um 12:41 schrieb Uli Kusterer <email@hidden>:
> No no no! Don’t do both at the same time! The display link callback is called exactly when you’re supposed to draw!
Hm. So i remove drawRect: and call that in the callback instead?
> If you call setNeedsDisplay: there, you’ll be waiting until the next time *by definition*.
In that case redraw would lag a bit behind, which wouldn't be a problem in my case. But the timers piling up suggests, that this is more of a fundamental mistake to make.
Thanks Uli. I might give this solution a try just to see if I can get it to work. :)
Andreas
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden