summaryrefslogtreecommitdiffstats
path: root/src/HelloUniverse/HelloUniverse.java
diff options
context:
space:
mode:
authorkcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300>2005-12-21 01:12:49 +0000
committerkcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300>2005-12-21 01:12:49 +0000
commit65b559a9e592a2c013eab3ee18283a403da280b0 (patch)
treed9219cb10768c90fff4dd64171d9cff5c06f64f0 /src/HelloUniverse/HelloUniverse.java
parent1cde845f102a702eefe7dfe397cfa0d3461bf4d4 (diff)
More changes for Issue 206 : Example program cleanup
Diffstat (limited to 'src/HelloUniverse/HelloUniverse.java')
-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;
}