Hello,
I'm an experimented Flash Developer but this is my first Iphone app.
Actually I have a big problem with my Iphone app.
My game has moving sprites (It's a doodle jump engine).
You see what I mean ? (Moving clouds, and hero)
On the simulator I got 60 fps with VERY LOW and Hi Quality sprites all the time. (great)
On my device (Iphone 3G): I got 60 fps if sprites are static (no scrolling) and about 12fps when sprites are moving (scrolling). There is only 4 sprites (size: 100x100 plx).
I tested all day in order to find the problem. I found something with moving nodes.
In order to move and order all elements at the same time I created some nodes containers.
CCNode cGame
CCNode cBackground
CCNode cElement
CCNode cHero
cGame contains cElement, cBackgrounds and cHero
eg: [cGame addChild:cBackground]; ...
cElement contains clouds
cHero contains hero
BUT !!!!! I lose 40fps when I'm using this method.
I tested to put all nodes into the root node and I got 60fps.