Re: Leak when "drawing too fast"
Re: Leak when "drawing too fast"
- Subject: Re: Leak when "drawing too fast"
- From: Uli Kusterer <email@hidden>
- Date: Thu, 25 Jul 2013 19:36:13 +0200
On Jul 25, 2013, at 7:09 PM, Andreas Mayer <email@hidden> wrote:
> I tried different ways to limit the drawing frequency but ended up with either timers piling up or jittery animation.
Have you considered using a display link callback instead of a timer? That should call you just in time. Or CALayer, which uses (something like a) display link internally. You just call setNeedsDisplay: whenever you want a redraw and it calls drawRect: whenever it's time to draw and the layer needs display.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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