Re: CALayer drawing efficiency
Re: CALayer drawing efficiency
- Subject: Re: CALayer drawing efficiency
- From: David Duncan <email@hidden>
- Date: Mon, 14 Mar 2011 10:27:23 -0700
On Mar 13, 2011, at 10:33 PM, Martin Hewitson wrote:
> I'm working on an app which will show a grid of CALayers (a few hundred in total), each layer is constrained so that its size scales up and down with the super layer. The super layer is then hosted by a view and resizes with the view. Each of the grid layers then has sublayers showing text. The problem is that resizing the main window is very slow due to the resizing of all the small layers. I was wondering if anyone has any hints or tips for dealing with large numbers of layers and making it faster to draw?
It sounds like you nave needsDisplayOnBoundsChanged=YES, I would recommend you set it to NO, and call -setNeedsDisplay on your layers manually when the resizing is done.
--
David Duncan
_______________________________________________
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