Hi:
 
Just had another thought ... I tried this method, and the animation was 'jerky' for me at about 50fps or less.  This may be caused by the inaccuracy of System.currentTimeMillis() on Windows (approx. 50ms) ... You may like to search the archives for this, as there has been discussion about this, and it may explain the 20fps frame rate that you get from the WakeupOnElapsedTime behavior (if you're using Windows).
 
Regards,
Geoff.
----- Original Message -----
Sent: Friday, April 27, 2001 6:06 PM
Subject: Re: [JAVA3D] Getting a constant maximum frame rate...

Hi:
 
You might like to look at the universe.getViewer().getView().setMinimumFrameCycleTime method.  Recently, under the thread 'Performance Sutras', this was said by Kevin Rushforth (Sun):
 
"No, the Java 3D API method View.setMinimumFrameCycleTime limits the *maximum* frame rate.  Remember that frame rate and frame time are the inverse of one another."
Regards,
Geoff.
 
----- Original Message -----
Sent: Friday, April 27, 2001 8:19 AM
Subject: [JAVA3D] Getting a constant maximum frame rate...

Hello,
 
I'm new to Java3D and I'm trying to get a wakeup behavior to give me a constant maximum frame rate.  When I use WakeupOnElapsedTime the best I seem to be able to do is about 20 FPS.  But when I use WakeupOnNextFrame(0) the FPS is almost 200, but that is very dependent on the speed of the machine and the contents of the scene graph.  Does anyone know of a good way to get a behavior that will max out around 30 FPS regardless of the speed of the machine and the content of scene graph?
 
Thanks,
Michael

Reply via email to