diff options
-rw-r--r-- | build.xml | 11 | ||||
-rw-r--r-- | src/classes/org/jdesktop/j3d/examples/fps_counter/FPSCounterDemo.java | 3 |
2 files changed, 10 insertions, 4 deletions
@@ -63,7 +63,7 @@ <property name="native.dir" location="${j3ddir}/native"/> </target> - <target name="compile" depends="init"> + <target name="compile" depends="init-compile"> <!-- Create the build directory --> <mkdir dir="${build}/classes"/> @@ -74,6 +74,7 @@ target="1.5" debug="true" deprecation="off"> + <classpath refid="comp.classpath"/> </javac> <!-- Copy resources to build in preparation for jarring --> @@ -123,6 +124,14 @@ <delete dir="${dist}"/> </target> + <target name="init-compile" depends="init"> + <path id="comp.classpath"> + <pathelement location="${j3dcore.jar}"/> + <pathelement location="${j3dutils.jar}"/> + <pathelement location="${vecmath.jar}"/> + </path> + </target> + <target name="init-run" depends="init,jar"> <path id="run.classpath"> <pathelement location="${output.jar}"/> diff --git a/src/classes/org/jdesktop/j3d/examples/fps_counter/FPSCounterDemo.java b/src/classes/org/jdesktop/j3d/examples/fps_counter/FPSCounterDemo.java index d7f8ee9..88ca026 100644 --- a/src/classes/org/jdesktop/j3d/examples/fps_counter/FPSCounterDemo.java +++ b/src/classes/org/jdesktop/j3d/examples/fps_counter/FPSCounterDemo.java @@ -118,9 +118,6 @@ public class FPSCounterDemo 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; } |