summaryrefslogtreecommitdiffstats
path: root/src/demos/readbuffer/Main.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-04-26 19:24:19 +0200
committerSven Gothel <[email protected]>2011-04-26 19:24:19 +0200
commitf3afd3cd3be302c9b9cc3b6ec56cf032817e00a4 (patch)
treee7aaef0c1860f35f6b1e115489e134ae7df6d07c /src/demos/readbuffer/Main.java
parenta7317cf820a33cac7f068153649031483df53cac (diff)
sync w/ jogl e007bb306124411e0232e51d16aa493cbd361f74
Diffstat (limited to 'src/demos/readbuffer/Main.java')
-rwxr-xr-xsrc/demos/readbuffer/Main.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/demos/readbuffer/Main.java b/src/demos/readbuffer/Main.java
index 426bdd7..d0ce55b 100755
--- a/src/demos/readbuffer/Main.java
+++ b/src/demos/readbuffer/Main.java
@@ -68,7 +68,7 @@ public class Main implements WindowListener, MouseListener, SurfaceUpdatedListen
Window nWindow = NewtFactory.createWindow(nScreen, capsOffscreen);
GLWindow windowOffscreen = GLWindow.create(nWindow);
- windowOffscreen.enablePerfLog(true);
+ windowOffscreen.setUpdateFPSFrames(FPSCounter.DEFAULT_FRAMES_PER_INTERVAL, System.err);
windowOffscreen.setSize(w, h);
windowOffscreen.setVisible(true);
return windowOffscreen;
@@ -139,11 +139,11 @@ public class Main implements WindowListener, MouseListener, SurfaceUpdatedListen
// System.out.println("...............................");
windowOffscreen.display();
if ( TEST_READBUFFER2SCREEN == typeTest ) {
- if ( windowOffscreen.getDuration() >= 10000) {
+ if ( windowOffscreen.getTotalFPSDuration() >= 10000) {
break;
}
} else {
- if ( windowOffscreen.getTotalFrames() >= 10) {
+ if ( windowOffscreen.getTotalFPSFrames() >= 10) {
break;
}
}