summaryrefslogtreecommitdiffstats
path: root/src/demos/GLNewtRun.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/GLNewtRun.java')
-rwxr-xr-xsrc/demos/GLNewtRun.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/GLNewtRun.java b/src/demos/GLNewtRun.java
index 5310a93..d02657c 100755
--- a/src/demos/GLNewtRun.java
+++ b/src/demos/GLNewtRun.java
@@ -233,11 +233,11 @@ public class GLNewtRun extends WindowAdapter implements KeyListener, MouseListen
window.setFullscreen(fullscreen);
// Size OpenGL to Video Surface
window.setVisible(true);
- window.enablePerfLog(true);
+ window.setUpdateFPSFrames(FPSCounter.DEFAULT_FRAMES_PER_INTERVAL, System.err);
do {
window.display();
- } while (!quit && window.getDuration() < 20000) ;
+ } while (!quit && window.getTotalFPSDuration() < 20000) ;
window.destroy();