I would like someone with experience profiling iphone apps to have a look at this figures. I have been running through the docs and figures seem ok, but device is really lagging. I have no lights, low drawcalls (5), low poly verts, et.c… Here the figures:
I’m going to try to explain a bit my current code setup and I would like someone to check how it looks.
I have around 8 entities alive. They all use my own character controller (a box collider, with 2 raycasts, and some code for horizontal collisions). Entities have a entity controller too. For the player it just pools input, etc… in fixed time step and gives next desired position to character controller. For enemys it is the AI the one that gives next position (in fixed step too). Then in characer controller fixed step I check for floor with 2 raycasts and wait for callbacks to announce horizontal collisions.
Is there anything bad with this aproach? Because I’m really surprised that with just 8 entities on screen in a Ipod touch 2G it gets so laggy.
Could anyone suggest a better aproach? Should I move some code to Update?