will the createtimer() work with all pcs?
; Create the timer to track speedframeTimer=CreateTimer(60); Your main screen draw loopWhile Not KeyHit(1) WaitTimer(frameTimer) ; Pause until the timer reaches 60 Cls; Draw your screen stuff FlipWend
Hi all,Yes it's a Blitz3D function. Don't know how it works but if you put it in your main loop it keeps your frame rate fixed.I'm going to stick it at 60Hz as that seems to be the lowest rate for monitors in general.Not entirely sure where in the loop I should put it - at the start?Cheers, Jim.
There is another method which I use:Create a game which on the lowest spec machine will not fall below your target frame rate desired.In other words limit your game's fx and such that it will never fall below the target frame rate.Then in your loop after rendering call a delay with the number of millisecs being those remaining to make up a full frame time.Works perfectly.