Re: -[CALayer setContents:] slower in iOS 4.2?

2011-02-01 Thread Julian Wood
That was the key! Performance is good again. Thanks very much for the tip. Julian On 2011-02-01, at 10:26 AM, David Duncan wrote: > On Jan 31, 2011, at 4:12 PM, Julian Wood wrote: > >> We grab the appropriate image portion from the spriteAtlas using >> CGImageCreateWithImag

-[CALayer setContents:] slower in iOS 4.2?

2011-01-31 Thread Julian Wood
We have a game engine of sorts, developed under 3.2. It did use NSTimer to fire off the game loop, but now uses CADisplayLink, at 15fps. The game loop basically sends messages to as many as 15 sprites, telling them to update their position and their frame. A sprite is in essence a CALayer, and w