vertical tearing

BlitzMax Forums/BlitzMax Programming/vertical tearing

For graphics to match the desktop refresh rate on windows try:

hz=GetDeviceCaps(GetDC(0),VREFRESH)
that's great thanks, I'll try that as it seems a bit naff if windowed mode has tearing.

Tonyg: Yeah I read that same thing and saw people using 0. I guess maybe it does use a default refresh rate of 60Hz or someting BUT not the desktop default refresh rate. Really there ought to be an easy way of making a game window that matches the windows desktop refresh rate to avoid tearing.