Hi,
you can get the time for the last frame (in ms) and compute the frame rate form
this value.
Canvas3D canvas;
int frameDuration = canvas.getView().getLastFrameDuration();
float frameRate = 1000.0f / frameDuration;
But it's more convinient if you avarage at least the last 5 frames, or compute
a floating avarage (where you don't have to
remember the last 5 frameRates).
Cheers,
Karsten
ERGUN GUVENC wrote:
> 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".