I'm having trouble getting it to work. :( What am I doing wrong?
This is just the drawrect example from the Blitz help with a call to SetGameSpeed tacked on the begining. As you can see, I'm trying to set it to 1fps (Just to test it and compare 60fps to 1fps.) No matter what number I use when I call it, it always seems to use the default of 60fps. A "Print GFPS()" in the main loop always returns 60, no matter what. What gives?
'Test of Noel's DeltaTime implementation. SuperStrict Include "NoelDeltaTime.bmx" SetGameSpeed(1) graphics 640,480,1 SetBlend ALPHABLEND SetAlpha 0.2 SetColor (255,255,255) Global t:Int=0 While not KeyHit(KEY_ESCAPE) Cls DrawText "DrawRect Example",0,0 For Local r:Int=t To t+500 Step 10 SetRotation r SetScale r/5,r/5 DrawRect r,r,2,2 Next t=t+1 If t=10 t=0 Flip(); Wend
This is just the drawrect example from the Blitz help with a call to SetGameSpeed tacked on the begining. As you can see, I'm trying to set it to 1fps (Just to test it and compare 60fps to 1fps.) No matter what number I use when I call it, it always seems to use the default of 60fps. A "Print GFPS()" in the main loop always returns 60, no matter what. What gives?