OSDN Git Service

Bugfix for FPS counter.
authorChristoph Aschwanden <contact@noblemaster.com>
Wed, 26 Sep 2012 14:42:04 +0000 (23:42 +0900)
committerChristoph Aschwanden <contact@noblemaster.com>
Wed, 26 Sep 2012 14:42:04 +0000 (23:42 +0900)
backends/gdx-backend-iosmonotouch/src/com/badlogic/gdx/backends/ios/IOSGraphics.java

index e1a1497..be1e37e 100644 (file)
@@ -91,8 +91,8 @@ public class IOSGraphics extends iPhoneOSGameView implements Graphics {
                deltaTime = (time - lastFrameTime) / 1000000000.0f;
                lastFrameTime = time;
                
-               fps++;
-               if(time - framesStart >= 1000000000l) {
+               frames++;
+               if (time - framesStart >= 1000000000l) {
                        framesStart = time;
                        fps = frames;
                        frames = 0;