2
0
Эх сурвалжийг харах

TestRenderToMemory: fix fps display

Kirill Vainer 9 жил өмнө
parent
commit
a82b9a4a3d

+ 1 - 1
jme3-examples/src/main/java/jme3test/post/TestRenderToMemory.java

@@ -116,7 +116,7 @@ public class TestRenderToMemory extends SimpleApplication implements SceneProces
             frames ++;
             t = t2;
 
-            if (total > 1000){
+            if (total > timer.getResolution()) {
                 fps = frames;
                 total = 0;
                 frames = 0;