FPS?
FPS?
I wanted to test something with the 3D engine, how do I add in a FPS monitor/display?
Resultat = Engine3DFrameRate(Type)
Type :
#PB_Engine3D_Current
#PB_Engine3D_Average
#PB_Engine3D_Maximum
#PB_Engine3D_Minimum
#PB_Engine3D_Reset
Type :
#PB_Engine3D_Current
#PB_Engine3D_Average
#PB_Engine3D_Maximum
#PB_Engine3D_Minimum
#PB_Engine3D_Reset
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/
HUH!? 8OComtois wrote:Resultat = Engine3DFrameRate(Type)
Type :
#PB_Engine3D_Current
#PB_Engine3D_Average
#PB_Engine3D_Maximum
#PB_Engine3D_Minimum
#PB_Engine3D_Reset
Seriously?!?
I didn't know it was this easy in the 3D engine...
Put a smile on my face!!
AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
JB..
Try displaying the text (resultat) after the RenderWorld() is done!!
Try displaying the text (resultat) after the RenderWorld() is done!!
AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
I tried this:
It works as expected.. 
Code: Select all
RenderWorld()
result = Engine3DFrameRate(#PB_Engine3D_Current)
If StartDrawing(ScreenOutput())
Locate(10,10)
DrawText("The FPS: " + Str(result))
StopDrawing()
EndIf
FlipBuffers()
AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
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 .
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/



