Re: Core Animation Flickering
Re: Core Animation Flickering
- Subject: Re: Core Animation Flickering
- From: John Harper <email@hidden>
- Date: Fri, 25 Apr 2008 08:52:00 -0700
On Apr 25, 2008, at 1:20 AM, Colin Cornaby wrote:
I have a CALayer subclass, set to redraw on bounds change, with the
following draw code (I don't expect it to be meaningful, but I'm
pasting it here for the sake of completeness.)
…
It's parent view is set up to change the layers frame to always fill
the contents of the entire view on resizeWithOldSuperviewSize:.
This works great, except for a really annoying flicker that occurs
once every few seconds while the view is resizing. Every layer in
the view flickers in and out (stuff like background colors doesn't
flicker).
Did I miss some drawing cleanup or something else obvious here?
One thing to check for is that the bounds of one of your layers isn't
being set to empty temporarily. Running your program with the
CA_PRINT_TREE environment variable set to "1" is a good way to debug
that, you can scan the logs for anything that looks suspicious. If you
don't see anything, file a radar with a test case and we will look
into it…
John
_______________________________________________
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