From 65b559a9e592a2c013eab3ee18283a403da280b0 Mon Sep 17 00:00:00 2001 From: kcr Date: Wed, 21 Dec 2005 01:12:49 +0000 Subject: More changes for Issue 206 : Example program cleanup --- src/HelloUniverse/HelloUniverse.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/HelloUniverse/HelloUniverse.java') diff --git a/src/HelloUniverse/HelloUniverse.java b/src/HelloUniverse/HelloUniverse.java index 53faf03..b77a5c9 100644 --- a/src/HelloUniverse/HelloUniverse.java +++ b/src/HelloUniverse/HelloUniverse.java @@ -106,6 +106,9 @@ public class HelloUniverse extends javax.swing.JFrame { // objects in the scene can be viewed. univ.getViewingPlatform().setNominalViewingTransform(); + // Ensure at least 5 msec per frame (i.e., < 200Hz) + univ.getViewer().getView().setMinimumFrameCycleTime(5); + return c; } -- cgit v1.2.3