views:

298

answers:

0

Hello all, I've built a very cool looking animation for an end-game state in my (very first) app using CALayers that i'm now looking for a way to speed up - on a 3G iPhone this runs at ~15fps which is ok but on the 3GS it runs at 60fps which looks silky. set-up of the layers/animations below:

The 'background' of the app has two layers each with a 480x480 png on, the 1st png has two rings of text (at 1.0 scale and 0.5 scale) and is constantly spinning clockwise. I've set this layer to be opaque. The 2nd has another two rings of text (at 0.75 and 0.25 scale) and is spinning anti-clockwise so the whole effect is is that the whole of the screen looks like there are 4 concentric rings of text spinning in different directions. I did have this with 4 different CALayers - one per ring - but that was a lot slower, with one ring layer only i get ~18fps on a 3G.

on 'top' of the background layers are another 5-10 CALayers each with pngs with transparency.

So it seems having this sort of full-screen animation is incurring a heavy performance hit... is there anything i can do to speed this arrangement up?