dealing with slowdown in game performance?
So, I'm running into a pretty tough roadblock trying to develop a game for the iphone 4/ipad. The best comparison to what i'm working on would probably be Plants vs. Zombies. My road bock is I can't get more than 10 enemy's on screen bofore i get some major slow down. 2.7 update helped a little, but not enough to really get the preformance I need.
My game resolution is 960x640. All objects on screen are raster (png) based. I'm rendering in GPU mode. The average 'enemy' object is aprox 60x100 pixels and about ten frames of animation. I'm not using any blending modes, and no .alpha property changes. No tweening. I've basically pulled out all the major code at one point or aonther, and just tested having a large number (say 14) of the enemy objects (animated movie clips) on the screen (and viewed the resulting slow down). I'm also object pooling just about everything.
I have seen games push WAYYY more in terms of how much they have going on on-screen, so I'm wondering if this is one of the limitations of the Flash engine? I can only guess that I'm just running out of memory?
Any thoughts or insight on people running into similar issues (and hopefully some solutions) would be greatly appreciated.
Thanks,
-dis