x


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.

more ▼

asked Oct 04 '11 at 06:02 PM

milesokeefe gravatar image

milesokeefe
21 1 2 2

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 Motorola 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!

Oct 10 '11 at 09:33 PM p38
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Oct 11 '11 at 06:28 AM

KvanteTore gravatar image

KvanteTore
1.5k 8 15 33

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2468
x177
x177
x39

asked: Oct 04 '11 at 06:02 PM

Seen: 1068 times

Last Updated: Oct 11 '11 at 06:28 AM