First suggestion is to mkae sure your animation is not frame rate dependant.
No animations in 3d should be frame rate dependant IMHO.  For this you will
need a high resolution timer, which you will have to write an interface to
under windows.

Note that under windows the lowest granularity of System.currentTimeMillis()
is 55 ms, which is abysmal and inappropriate for animation.

To get the frame rate easily, but not really accuratly, set up an behavior
using elapsed frames of (n).  You can get the current frame number from the
view.  You cannot be guarenteed that exactly N frames will have elapsed, so
you have to record the time and the frame number each time the behavior
triggers and then do a (curFrame-lastFrame)/(curTime-lastTime)*1000 to get
then frames per second.

Dave Yazel
www.cosm-game.com


-----Original Message-----
From: ERGUN GUVENC [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 8:28 AM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] fps needed.



Hi friends,
I 'm trying to develop RPG based game called zid.
I need FPS (frame per second) info at Run Time, because when i started to
walk my character, if FPS is not high enough
my character is walking shorter than my expectation.

Does anyone know, how can I get FPS info. Or any other suggestion.

Thanks for any ideas.

Ergun.

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

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