WaitTimer(60) quick question

Blitz3D Forums/Blitz3D Beginners Area/WaitTimer(60) quick question

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.

Like I said the above code doesn't produce smooth results unless the user's monitor is at 60Hz, so....

I suppose what I'm asking is if there's a technique to find out the user's refresh rate, create a timer based on this figure then only update the screen only 60 times each second ?

eg. user's monitor Hz = 100

frametimer=createTimer(100)
while not keyhit(1)
waitTimer(frametimer)

(code here to only draw screen 60 times per second instead of 100)

Wend



That way I get smooth updates as the timer is set to the user's refresh rate. However, as I'm only a beginner is it feasible to limit drawing to only 60 times a second, instead of whatever the monitors refresh rate is ?