aboutsummaryrefslogtreecommitdiffstats
path: root/src/demos/com/jogamp/opengl/demos/graph
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/com/jogamp/opengl/demos/graph')
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/GPUTextRendererListenerBase01.java4
-rw-r--r--src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java2
2 files changed, 2 insertions, 4 deletions
diff --git a/src/demos/com/jogamp/opengl/demos/graph/GPUTextRendererListenerBase01.java b/src/demos/com/jogamp/opengl/demos/graph/GPUTextRendererListenerBase01.java
index f23548b8a..22e3664c1 100644
--- a/src/demos/com/jogamp/opengl/demos/graph/GPUTextRendererListenerBase01.java
+++ b/src/demos/com/jogamp/opengl/demos/graph/GPUTextRendererListenerBase01.java
@@ -318,16 +318,14 @@ public abstract class GPUTextRendererListenerBase01 extends GPURendererListenerB
if( drawFPS ) {
pmv.glPushMatrix();
final float pixelSizeFPS = FontScale.toPixels(fontSizeFPS, dpiV);
- final float lfps, tfps, td;
+ final float lfps, tfps;
final GLAnimatorControl animator = drawable.getAnimator();
if( null != animator ) {
lfps = animator.getLastFPS();
tfps = animator.getTotalFPS();
- td = animator.getTotalFPSDuration()/1000f;
} else {
lfps = 0f;
tfps = 0f;
- td = 0f;
}
final String modeS = Region.getRenderModeString(regionFPS.getRenderModes());
final String text = String.format("%03.1f/%03.1f fps, v-sync %d, dpiV %.2f %.2f px/mm, font[head %.1fpt %.2fpx %.2fmm, center %.1fpt %.2fpx %.2fmm], %s-samples[%d, this %d], blend %b, alpha %d",
diff --git a/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java b/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
index 61f5a37ac..76615b2c7 100644
--- a/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
+++ b/src/demos/com/jogamp/opengl/demos/graph/ui/UIShapeDemo01.java
@@ -121,7 +121,7 @@ public class UIShapeDemo01 implements GLEventListener {
window.setVisible(true);
final Animator animator = new Animator();
- // animator.setUpdateFPSFrames(60, System.err);
+ animator.setUpdateFPSFrames(5*60, null);
animator.add(window);
window.addKeyListener(new KeyAdapter() {