For a while now I\'ve experienced an intermittent \'stuttering\' of the sprites that are in motion within my Android Game. It\'s a fiarly simple 2D OpenGL ES 2.0 game. (This is
Some thoughts:
System.currentTimeMillis()
for timing things. It's based on the wall clock, which can be updated by the network. Use System.nanoTime()
, which is based off the monotonic clock.See Grafika's "record GL app" Activity for an example of a simple GLES app that drops frames, but adjusts the animation such that it's rarely noticeable.