SetGraphicsDriver GLMax2DDriver() Graphics 1024,768,32 While Not KeyHit(KEY_SPACE) DrawText curfps,10,10 For x=3 To 50 For y=1 To 75 DrawRect x*10,y*10,8,8 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
Using this code the frame rate seems to be stable so it looks like it possible drawtext that is the problem.
maybe it causing to much garbage.
But on a second note if the value of curfps is replaced by "999" in the first example then the frame rate stays constant within 1-2.