SetGraphicsDriver GLMax2DDriver() Graphics 1024,768,32 While Not KeyHit(KEY_SPACE) For x=1 To 24 For y=1 To 70 DrawText curFps,x*40,y*10 Next Next curTime = MilliSecs() If curTime > checkTime Then checkTime = curTime + 1000 curFPS = fpscounter fpscounter = 0 Else fpscounter = fpscounter + 1 End If 'GCCollect() Flip(0) Cls Wend
Try the above code once and you get erratic frame rates they seem to rise and fall in a seqence.
then try adding the gccollect function and the frame rate steadies