Almost done with my game (scrolling space shooter) but I realized that the game starts to lag on android) mobile devices (it was fine previously, not sure about iOS)
using master branch (non-dev) of haxeflixel
What I have on screen at once:
Player (SpriteGroup) and various bullets
flixel addons star filled background
some UI (eg hp bars, controls, buttons etc)
constantly spawning enemy sprites (FlxNestedSprite) that can shoot bullets etc too
explosions, particle effects (already cut down on these!)
Running the built-in debugger (on desktop) shows these stats:
update: 79 (2.7ms)
Draw: 46 (1.1ms)
DrawTiles: 46
QuadTrees: 61
Lists: 144
Any tips for optimizations? (i realize its difficult without the source code but still..) this is my first game.. really hyped to have it released in the next few days