- Home /
Jitter Every 5 to 7 seconds on Android Builds
My game plays fine in editor, desktop, and web; however, when I run it on my Android phone it has a framerate jitter every 5 to 7 seconds or so. The jitter doesn't seem to be correlated to any specific part of the game. It happens when a lot of physics calculations are going on, and while all of the rigibodies and colliders are removed.
I have tested my game on my Droid X, 1GHZ OMAPP CPU, and an EVO 4G, 1GHZ Snapdragon CPU. Spare the jitters, the frame rate stays at a constant range of 60 to 70 FPS.
On a last note, I am using the trial version of Unity Android. I'd be happy to hear this issue only comes up in the trial version.
Thanks in Advance.
I'm experiencing the same thing. Except my character's jitters are all the time. I thought it might be a camera issue, physics issue, or animation issue. After going back to a basic 3rd person controller, removing the physics script, and reworking the anims, it's still there. I'm going to try removing more bones from my character...I've got about 50 or so in there right now.
Tested on $$anonymous$$otorola Xoom, Samsung 10.1 Tab, Acer A100, Droid Bionic, and iPad 2. The jitters occur on all of my devices. Hope to hear an answer here!
Answer by KvanteTore · Oct 11, 2011 at 06:28 AM
Do you have a lot of heap allocations (new'ing objects)? It sounds a bit like the garbage collector might be the culprit. See the iOS script optimization guide for hints to control garbage collection.
You can also try to use adb logcat. IIRC garbage collection events are logged, so you might be able to see if your jitters correspond to garbage collection events.
Your answer
![](https://koobas.hobune.stream/wayback/20220612234843im_/https://answers.unity.com/themes/thub/images/avi.jpg)