i have packed this up in a nice function:
Just note that it will properly be the same value in case you don't add any gamecode, because all it then needs todo is display the fps text :P
Global fps, fpst,fpsc Graphics3D 1024,768,0,2 SetBuffer BackBuffer() While Not KeyDown(1) ;ESC Cls CountFPS() Text 10,10,"FPS: "+fps Flip Wend End Function CountFPS() If fpst < MilliSecs() Then fpst=MilliSecs()+1000 fps = fpsc fpsc = 0 Else fpsc = fpsc + 1 End If Return fps End Function
Just note that it will properly be the same value in case you don't add any gamecode, because all it then needs todo is display the fps text :P