Just to beat up this subject a bit more: Win98 - 55 ms WinNT(2000/XP) - 10 ms Linux - 1 ms
Using WakeupOnElapsedTime can be very handy but it's not precise. I use it often to wake up once every five seconds or fifteen seconds but I've abandoned using it for anything under a quarter of a second. To get better timing for our application we use the Java 3D high res timer inside a behavior that wakes up every frame. - John Wright Starfire Research Fred Klingener wrote: > > Mario, > > The response to a WakeupOnElapsedTime() criterion is 1.) chunky and 2.) > OS-dependent. 'Chunky' because the behavior event queue appears to be > polled at an OS-dependent period that ranges from 30 or so milliseconds > down to 10ms. Trying to control time with WakeupOnElapsedTime at a > granularity smaller than that OS heart beat is useless. > > Not to mention the 'run anywhere' problem. > > They're somewhat dated now, but I posted some ruminations on the problem > here: > http://www.brockeng.com/VMech/Time/Clocks.htm > > and my current best solution here: > http://www.brockeng.com/VMech/Time/PlanJ/Clocks.htm > > Hth, > Fred Klingener > > -----Original Message----- > From: Discussion list for Java 3D API > [mailto:[EMAIL PROTECTED]] On Behalf Of ZACZEK, MARIUSZ P. > (MARIO) (JSC-DM) (NASA) > Sent: Wednesday, January 15, 2003 11:45 AM > To: [EMAIL PROTECTED] > Subject: Re: [JAVA3D] ? Frame Rates ? > > I'm sorry I may have written incorrectly...basically I had the wakeupon > condition set for a sampling time and it was set at 1.... For my code, > Yes, I try to updated every millisecond..basically as fast as possible. > For my beta angle program I base in on elapsed frames (another code I > have I use the WakeupOnElapsedTime and there I set the time to 1 > (millisecond) > private WakeupOnElapsedFrames conditions = new > WakeupOnElapsedFrames(0,false); > > if I have '0' I get a frame rate of 28 fps > '1' 24 fps > '2' 20 fps > > SO, I can't get any speedup unless I fix something else in the code. > > Mario =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
