Pull to refresh

Comments 3

0,04 с (25 кадров (циклов) в секунду)
1000 / 4 = 250

Canvas canvas;</code>
int framesSkipped;</font>// number of frames being skipped

timeDiff = System.currentTimeMillis() - beginTime;</font> // calculate how long did the cycle take

 if (sleepTime > 0) {</font> // if sleepTime > 0 we're OK
try {</font>

this.gameView.update();</font>  // update without rendering


obviam.net/index.php/android-gameloop-measuring-fps — 1 September 2010
Я надеюсь оно хотя бы компилируется и работает.
Sign up to leave a comment.

Articles