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: Thu, 25 Jul 2013 19:09:52 +0200
A followup:
Am 10.07.2013 um 02:10 schrieb Uli Kusterer <email@hidden>:
> I don’t think the timers leak. Instead, I think they probably just queue up on the event loop because their fire interval is greater than that at which you add new timers by calling setNeedsDisplay. Could that be it?
You are right, Uli. They get released when I stop the animation.
> FWIW, I remember hearing at some WWDC that MacOS X caps its drawing at a certain frequency. I think it was either 60Hz or 60fps, not sure anymore. So my guess is it’s not worth trying to draw any faster because the back buffer is only flushed to the screen at this slower interval anyway.
I tried different ways to limit the drawing frequency but ended up with either timers piling up or jittery animation.
So I finally bit the bullet and moved to Core Animation. While that solved my problem - some issues notwithstanding - I'm still not sure how to draw at exactly the right frequency manually. Oh well ...
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