On 11 Jun '08, at 9:37 AM, David Duncan wrote:

Effectively a CALayer represents a texture with the layer's contents on the video card. As the docs say, transforms only affect geometry. The texture does not include geometry, thus the current content is scaled rather than being re-rendered. At even moderate zoom factors scaling the content could cause issues with maximum texture sizes on the video card your running on.

Are all layers treated as bitmap textures, even solid ones? For instance, if I create a 1024x1024 layer as a background and just set its background color to blue, does that allocate a megapixel's worth of VRAM? What about if I add a border or round corners?

I've wondered about this with the Grid class in GeekGameBoard, which is used to represent things like chess or Go boards. Is it better to use one big layer with a custom drawing proc that draws the squares, or 64 (or 324) smaller layers?

(I've seen some bad CA performance problems on, um, systems with less- capable graphics hardware than the average Mac, which make me wonder if I need to rethink some of the design.)

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to