Page 1 of 2

FPS?

Posted: Fri Jan 16, 2004 12:19 pm
by J. Baker
I wanted to test something with the 3D engine, how do I add in a FPS monitor/display?

Posted: Fri Jan 16, 2004 12:47 pm
by Comtois
Resultat = Engine3DFrameRate(Type)

Type :
#PB_Engine3D_Current
#PB_Engine3D_Average
#PB_Engine3D_Maximum
#PB_Engine3D_Minimum
#PB_Engine3D_Reset

Posted: Fri Jan 16, 2004 1:38 pm
by LarsG
Comtois wrote:Resultat = Engine3DFrameRate(Type)

Type :
#PB_Engine3D_Current
#PB_Engine3D_Average
#PB_Engine3D_Maximum
#PB_Engine3D_Minimum
#PB_Engine3D_Reset
HUH!? 8O
Seriously?!?

I didn't know it was this easy in the 3D engine...
Put a smile on my face!! :D

Posted: Fri Jan 16, 2004 2:14 pm
by J. Baker
Ok ,it runs but do I have to do something for it to show text on the screen? Thanks but I should have seen that in the help file. I guess I need some of these 8O ...lol.

Posted: Fri Jan 16, 2004 2:17 pm
by LarsG
JB..

Try displaying the text (resultat) after the RenderWorld() is done!!

Posted: Fri Jan 16, 2004 2:34 pm
by J. Baker
This is correct, right?
Resultat = Engine3DFrameRate(#PB_Engine3D_Current)
Did what you said but still not working.

Posted: Fri Jan 16, 2004 2:40 pm
by LarsG
I tried this:

Code: Select all

      RenderWorld()
      result = Engine3DFrameRate(#PB_Engine3D_Current)
      If StartDrawing(ScreenOutput())
        Locate(10,10)
        DrawText("The FPS: " + Str(result))
        StopDrawing()
      EndIf
      FlipBuffers()
It works as expected.. :)

Posted: Fri Jan 16, 2004 2:55 pm
by J. Baker
Thank you very much. :D

Posted: Fri Jan 16, 2004 3:13 pm
by J. Baker
Interesting, my max fps is 61 and this won't go higher. There must be a set room speed of 61. If anyone has got any different, please respond.

Posted: Fri Jan 16, 2004 3:20 pm
by traumatic
J. Baker wrote:Interesting, my max fps is 61 and this won't go higher. There must be a set room speed of 61.
Maybe your monitor refreshrate is set to 60hz ?
Try disabling V-Sync in your gfx driver settings.

Posted: Fri Jan 16, 2004 3:38 pm
by J. Baker
That's not it. I was getting 150+ fps in another OGRE demo and my refresh rate is 75.

Posted: Fri Jan 16, 2004 5:56 pm
by Comtois
J. Baker wrote:Ok ,it runs but do I have to do something for it to show text on the screen? Thanks but I should have seen that in the help file. I guess I need some of these 8O ...lol.

Désormais j'éviterai t'intervenir sur ce forum , ma méconnaissance de l'anglais entraine certaines méprises .

Posted: Sat Jan 17, 2004 12:42 am
by J. Baker
Comtois wrote: Désormais j'éviterai t'intervenir sur ce forum , ma méconnaissance de l'anglais entraine certaines méprises .
Umm...ok? :?: :?: :?:

Posted: Sat Jan 17, 2004 2:13 am
by MisterDr
It's funny, for me OGRE is just tool to display some stuff.
Without ODE is useless.

Posted: Sat Jan 17, 2004 10:58 am
by Dr. Dri
J. Baker wrote:
Comtois wrote: Désormais j'éviterai t'intervenir sur ce forum , ma méconnaissance de l'anglais entraine certaines méprises .
Umm...ok? :?: :?: :?:
he just said in french that he'll try not to post because he's got problems with english undersatnding.

Dri