summaryrefslogtreecommitdiffstats
path: root/src/HelloUniverse
diff options
context:
space:
mode:
Diffstat (limited to 'src/HelloUniverse')
-rw-r--r--src/HelloUniverse/HelloUniverse.java3
1 files changed, 3 insertions, 0 deletions
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;
}