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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to