Reputation: 71
I have been poting a game for Android devices which i created on iOS using cocos2d x. I'm getting pretty nice fps around 45 on iPad2. When it comes to Android device fps varies as mentioned below:
I am using PVR (RGBA4444) art resources. Is FPS drop issue related to the GPU used by the device. Or Somebody can help with getting good fps on moto-xoom and samsung galaxy 10.1 device(atleast 40-45).
Upvotes: 1
Views: 2725
Reputation: 151
Consider adding this line to your Application.mk:
APP_ABI := armeabi armeabi-v7a
If ARMv7 instruction set is available on device usage of those will give you some performance boost.
Upvotes: 1
Reputation: 12927
Yes, the GPU for these devices are very different. They have different strategies and tricks for optimization. For Nvidia Tegra2 devices download "Tegra Android Toolkit 1.0r4" from here http://developer.nvidia.com/tegra-resources and try some of nice performance measurment tools like oprofile, perfhud, tegra-profiler. They can help you determine where is bottleneck in your app.
Read also OpenGL ES 2.0 Development for the Tegra Platform document for hints about optimizing your OpenGL ES 2.0 code.
Upvotes: 3