I found my game running at a framerate of < 10fps on the iPad1. After temporarily removing nearly the whole game (all maps, etc) I got it up to about 18fps. While drawing time and entity checks are below 1ms and entity update (about 2ms) its only the system lag (about 40ms) which completely kills the performance.
Now my question is: is there really nothing I can do about the system lag? Is it really only the performance of the device / browser, indepandant from the application itself?
Thanks for any hints!
Yes. Better performance is achieved by going canvas-native, with iOSImpact, AppMobi, CocoonJS, and the like. Good overview of mobile impact in this section of the docs
If your willing to go through the effort and work around the caveats then check out appMobi's direct canvas.
I've gotten great performance on my iPad2 with direct canvas.
Thanks guys! That's what I really appreciate in the impact community: no RTFM-comments, but kind hints even though I could have found it out by myself.
I'm targeting android as well so iOSImpact was not an option for me.
As for CocoonJS when I tried it, the demos on the launcher failed on my galaxy tab, never tried on my iPad2. So I went with appMobi, and it runs great in the browser and on my iPad2. But if you do go with CocoonJS please let us know how it goes.
With regards to appMobi I am struggling to get it to work right on my galaxy tab though. But once I have it all figured out, I'll probably write a post about what all is required for converting from impactJS to appMobi on my blog: http://dpweberza.tumblr.com/
1 decade ago
Most of the time you produce to much garbage. That needs to be collected and makes your system lag.
Two good articles about reducing garbage:
Page 1 of 1