I have a little problem. About 50% of the times I run my app, the framerate is below 10. The other 50% however, the framerate is 30-50. I have set up Logcat to see if I could find out what was causing this strange lag, but I’m not sure what to look for.
Also, I don’t have any problems with the .apk on my phone, but it happens on my tablet - although it’s the exact same apk.
What would be the best way to discover this lag problem?
frame rate is influenced by hardware capabilities so it may be higher on stronger hardware. 10fps is very low. mobile games should run at 60fps the most or at least 30fps for good game experience. in your case i believe you have a huge optimization issue.
without see your code, all i can do is give you some good tips i used in my projects.
so here some good reading about how to optimize your game:
draw calls and batching:
some tips:
a lot of good tips for 2D but releted also to 3D games:
Thanks a lot - I went through my OnGUI and found some "unoptimized" lines. It works great now :)
– AndreasX12