I've been making a game for android, and noticed how slow it is. So I've gone right back to basics and created just a small test project just to see what affects the framerate the most.
I used some pixel art for a sprite and added the car movement behaviour, with some buttons to move it around etc. Here's a screenshot:
<img src="http://i.imgur.com/AhYxlUX.jpg" border="0">
Download my test game capx
On the desktop I get regular framerates of 50-60 fps, but when exporting to Android through phonegap I'm punished with a really low framerate of 15-30 fps.
Maybe the framerate counter is broken? When I leave the android app idle the framerate does go up to 179 though, which is MENTAL. But I assume incorrect?
I think I'm doing everything that one should do to optimise for mobile, for example:
Aspect ratio 16:9
Window size: 400,225 (I assume smaller is better - right?)
Pixel rounding: on
Sprites with images no larger than 128px (although if you download the project file you'll notice a jpeg in there for testing. Including/removing this doesn't have much impact on the fps).
Any other ideas for what I should be doing to optimise for mobile?