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 ?
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 ?