IGlass GUI for blitzmax - VI

BlitzMax Forums/BlitzMax Programming/IGlass GUI for blitzmax - VI

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi Fry

here is the FPS counter of Iglass mod :

' ---------------
' FPS Counter var
' ---------------
Global IGL_Frames:Int
Global IGL_RenderTime:Int
Global IGL_Fps:Int

' ------------
' For know FPS
' ------------
Function IGL_RefreshFPS()
IGL_Frames=IGL_Frames+1

If MilliSecs()-IGL_RenderTime=>1000 Then
IGL_Fps=IGL_Frames
IGL_Frames=0
IGL_RenderTime=MilliSecs()
EndIf
End Function

It's a convertion from a blitz3D fps counter, i think there
is no errors ? and i agree too, i find that FPS counter's
with bmax return sometime some strange result :/ Maybe there
is a stuff to do with screen hertz and vsync ?