CATiledLayer Memory Usage
CATiledLayer Memory Usage
- Subject: CATiledLayer Memory Usage
- From: Milen Dzhumerov <email@hidden>
- Date: Sat, 22 May 2010 17:44:07 +0100
Hi all,
I've been writing some code that uses CATiledLayer and noticed that the memory usage increased quite a bit - by a factor of 2, on average. Some numbers that I've collected:
Normally Sized Window
- NS: 10mb; CA: 18.5mb
Maximized Window:
- NS: 23mb; CA: 45.7mb
I tried playing with the tile size and it looks like it has no effect on the memory usage. If I just used a normal CALayer, the memory consumption was somewhere in-between - an increase of about 1.5 with respect to the NS version. I just wanted to ask whether that's the expected behavior of CATiledLayer and whether I should be following any tips to keep that usage down as much as possible.
Many thanks,
Milen
PS. Test project http://dl.dropbox.com/u/645995/TiledLayerMemoryUsage.zip_______________________________________________
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