Re: Large layers in Core Animation
Re: Large layers in Core Animation
- Subject: Re: Large layers in Core Animation
- From: David Duncan <email@hidden>
- Date: Wed, 18 Feb 2009 19:25:53 -0800
On Feb 18, 2009, at 4:19 PM, Sean McBride wrote:
See:
<http://developer.apple.com/releasenotes/Cocoa/AppKit.html>
"Layer Size Limits and Tiled Layers" -> "On most current graphics
hardware the effective limit is 2046x2046 pixels"
This is mostly true. Layers with content are certainly limited by the
GPU texture size (2048 is the minimum texture size supported by GPUs
that are supported by Leopard). However, layers that are content-less
(which is not the case for AppKit created layers in general, since
they contain the content the view draws in -drawRect:) can have any
dimensions, as they are purely geometric entities. So it is certainly
plausible to create a CALayer (plain, not subclass) that is absolutely
huge and use the style properties to give it "content" and it should
render correctly. But the minute you give the layer contents (by
setting the contents property or calling -setNeedsDisplay) then you
are subject to the GPU texture limits.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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