TestRenderToMemory: fix fps display
This commit is contained in:
parent
acda6e371c
commit
a82b9a4a3d
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user