summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-01-22 20:30:56 +0100
committerSven Gothel <[email protected]>2014-01-22 20:30:56 +0100
commit21d6cfafdc088e75981d710c672a668fddfdf298 (patch)
tree2ce4d4130c09c1add022418d8ebbbceda2d951b1 /src/jogl/classes/com/jogamp/opengl
parentdff056e512f2ec732fadb24c3ed8176626ab5c27 (diff)
Bug 921: FPSAnimator debug output on stderr shall happen only if DEBUG is enabled
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl')
-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