Global framecounter_counter Global framecounter_time Global framecounter_framerate Function FPS() Framecounter_counter=Framecounter_counter+1 If Framecounter_time=0 Then Framecounter_time=MilliSecs() If Framecounter_time+1001<MilliSecs() Then Framecounter_framerate=Framecounter_counter Framecounter_counter=0 Framecounter_time=MilliSecs() EndIf Return framecounter_framerate End Function
Inlude the code in your game...
Just call the fps function in the render loop to get how many real renders per second... easy.