- Home /
Help! My game stutters and I don't know why
Hello everyone!!
I have a problem that is driving my crazy. I have developed an Android game using Unity 3.5.6f4 that runs perfectly when I test it using Unity remote (here are the stats)
But when I try to play on my mobile phone it stutters and it is impossible to play it. Using the profiler tool I have realised that FPS shows a really low value and Camera.Renderer function needs a huge amount of time (like 150-200 ms!), but Draw calls are not so much (57-61), Tris around 20k and Verts around 28K...Does anyone have any idea of where could be the problem?
I have optimized all my scripts by using "#pragma strict", I have defined all variables to static, I am using the cache by making "FindObject" and "GetComponent" in Start() and Awake() functions... I have also used Occlusion Culling, Lightmapping, the Pixel Lights Count are set to zero...
Even if I disable all game objects but player and Terrain, it is still impossible to play the game (the player has around 1150 vertex and all game objects between 36 and 200 vertex). All the material shaders are set to mobile vertexLit except bushes and trees (there are no so much, around 20) and many of them have the same material and texture.
I am using Unity 3.5.6f4 and my mobile phone is HTC Wildfire S (I have tried on an iPhone and have same results). Here are profiler statics, if anyone can help me please answer me, I am quite desperate.
Thanks in advance guys!
Draw Calls : 57 Tris: 19.8K Verts: 27.7K
Batched Draw Calls: 133 Batched Tris: 31.0k Batched Verts: 21.8K
Used Textures: 0/0 B
RenderTextures: 0/0 B
RenderTexture Switches: 0
Screen: 64x64/48.0 KB
VRAM usage: 48.0 KB to 2.4 MB (of 94.0 MB)
VBO Total: 61 - 2.4 MB
VB Uploads: 0-0 B
IB Uploads: 0-0 B
Shadow Casters: 0 Visible Skinned Meshes: 7 Animations : 1
Your answer
Follow this Question
Related Questions
Low Fps in a simple game 1 Answer
FPS issues 1 Answer
Is it possible to seperate render and input frame rate (iOS) 0 Answers
audio slows down my game (dramatically) 0 Answers
Real elapsed time since frame begin 1 Answer