• 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
proper use of QuartzCore
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

proper use of QuartzCore


  • Subject: proper use of QuartzCore
  • From: Federico Tessmann <email@hidden>
  • Date: Thu, 24 Feb 2011 00:47:53 +0100

Hi there.
I have to rotate an image continuously and I'm using now CALayers as the
image containers and I'm rotating thous CALayers by setting its Transform
property.

Now I have two approaches to keep rotating these layers.

1) Use a displayLink of 30 fps. Use CATransaction, setting
setDisableActions:<http://developer.apple.com/library/mac/documentation/graphicsimaging/Reference/CATransaction_class/Introduction/Introduction.html#//apple_ref/occ/clm/CATransaction/setDisableActions:>
 to YES and setting each time the new Transform property of that layer.
2) Compute where the layer would rotate to and use a CATransaction
triggering an animation of 0.5 secs of duration and letting CoreAnimation do
the intermediate steps for me.

Which approach would give me better results and not consume too much CPU?

Thanks in advance!

Best regards,
Federico
_______________________________________________

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

  • Prev by Date: CALayer setting content on separate thread
  • Next by Date: Re: IBOutlet to different classes, conditional build
  • Previous by thread: CALayer setting content on separate thread
  • Next by thread: Re: proper use of QuartzCore
  • Index(es):
    • Date
    • Thread