summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/com/jogamp')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java b/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java
index 65fed17f2..5bd803500 100644
--- a/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java
+++ b/src/jogl/classes/com/jogamp/opengl/util/FPSAnimator.java
@@ -163,13 +163,17 @@ public class FPSAnimator extends AnimatorBase {
setDrawablesExclCtxState(exclusiveContext);
FPSAnimator.this.notifyAll();
}
- System.err.println("FPSAnimator P1:" + Thread.currentThread() + ": " + toString());
+ if(DEBUG) {
+ System.err.println("FPSAnimator P1:" + Thread.currentThread() + ": " + toString());
+ }
}
}
if( shouldRun ) {
display();
} else if( shouldStop ) { // STOP
- System.err.println("FPSAnimator P4: "+alreadyStopped+", "+ Thread.currentThread() + ": " + toString());
+ if(DEBUG) {
+ System.err.println("FPSAnimator P4: "+alreadyStopped+", "+ Thread.currentThread() + ": " + toString());
+ }
this.cancel();
if( !alreadyStopped ) {
@@ -188,7 +192,9 @@ public class FPSAnimator extends AnimatorBase {
}
}
} else {
- System.err.println("FPSAnimator P5: "+alreadyPaused+", "+ Thread.currentThread() + ": " + toString());
+ if(DEBUG) {
+ System.err.println("FPSAnimator P5: "+alreadyPaused+", "+ Thread.currentThread() + ": " + toString());
+ }
this.cancel();
if( !alreadyPaused ) { // PAUSE