Hi
  Two things spring to mind, firstly, it will limit the frame rate to 33
per second, but some frames will render faster than others, so if won't
be exactly 1/33 of a second per frame, secondly,
view.getLastFrameDuration returns the time it took to render the frame,
not the time between the end of the last frame and the one before it,
what you need to do is time it youself based on a behavior that wakes up
every frame, just store a long for the last time it went into the
behavior, this will give you the whole single cycle (including pauses to
reduce frame rate) and then you probably need to do some averaging, say
over the last 1000 millis or so, so you can see how the limiting is
effecting it.

HTH

Jeremy
--

Homepage: http://www.computerbooth.com/
Codepage: http://www.newdawnsoftware.com/

===========================================================================
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".

Reply via email to