• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Large layers in Core Animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Large layers in Core Animation (From: email@hidden)
 >Re: Large layers in Core Animation (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Object -> NSTreeNode?
  • Next by Date: FOLDERS and document based apps (Open Recent)
  • Previous by thread: Re: Large layers in Core Animation
  • Next by thread: Windows vs View
  • Index(es):
    • Date
    • Thread