Why do you want to match the monitor refresh?
this means that it will run faster for people with faster refresh rates ...
syncronize the movement to a fixed value which is scaled to the actual main loop time needed and set the refresh to -1 ...
then it does not mather how fast the monitor is, it will run at the same speed for every use.
this means that it will run faster for people with faster refresh rates ...
syncronize the movement to a fixed value which is scaled to the actual main loop time needed and set the refresh to -1 ...
then it does not mather how fast the monitor is, it will run at the same speed for every use.