Android lag (89103)

Hi.

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?

Thanks, Andreas.

Android. Unity 4.3. Windows 8 Pro.

1 Answer

1

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:

some tips from the wiki:
http://wiki.unity3d.com/index.php?title=General_Performance_Tips

for me the most important tips was keep to drawcall low as you can by batching, optimize sound files and cache moving objects transformations.

hope this will help you and others…

Thanks a lot - I went through my OnGUI and found some "unoptimized" lines. It works great now :)