This is a performance-oriented box2D mobile question. I think anybody who has previously ported their game to different versions might recognize some of these issues.
I've optimized the box2D game application using Scout, and the overhead is very minimal. There is a good system in place to destroy bodies and remove materials from the stage not in use.
The timestep is 60 fps, velocity 8, iterations 3. I found this necessary to achieve smooth movement of falling bodies. I also designed the game physics and mechanics around a low gravity. It runs well in Flash.
The dimensions of the stage are 640x960. I designed it large to accommodate for iPad, iPhone and possibly other devices.
When I install the APK on an Android phone (or the iOS IPA) on an iPhone, everything works normally, but the speed is < 50%.
Is the oversized resolution, 60 fps rate contributing to this?
The graphics are optimized and converted to bitmaps. (Adobe Scout shows no memory leaks, redraws, decomp lag or dirty regions)
I was under the impression mobile devices would auto-scale graphics.
Or am I looking at shrinking down the entire graphics library and retuning the game physics around a lower frame rate?
Because the game is too lightweight to be giving the Android OS a problem. (also happens on iOS)
I've optimized the box2D game application using Scout, and the overhead is very minimal. There is a good system in place to destroy bodies and remove materials from the stage not in use.
The timestep is 60 fps, velocity 8, iterations 3. I found this necessary to achieve smooth movement of falling bodies. I also designed the game physics and mechanics around a low gravity. It runs well in Flash.
The dimensions of the stage are 640x960. I designed it large to accommodate for iPad, iPhone and possibly other devices.
When I install the APK on an Android phone (or the iOS IPA) on an iPhone, everything works normally, but the speed is < 50%.
Is the oversized resolution, 60 fps rate contributing to this?
The graphics are optimized and converted to bitmaps. (Adobe Scout shows no memory leaks, redraws, decomp lag or dirty regions)
I was under the impression mobile devices would auto-scale graphics.
Or am I looking at shrinking down the entire graphics library and retuning the game physics around a lower frame rate?
Because the game is too lightweight to be giving the Android OS a problem. (also happens on iOS)