Anyone know why this code produces vertical tearing (mouse the mouse left/right) in windowed mode and doesn't in full-screen mode? I know that flip 0 in full-screen mode will produce vertical tearing.
If I set the last param of graphics to be 85 (my windows refresh rate) it's fine of course. This infers that setting Hz of 0 isn't using the default windows Hz but actually something else like 60! Am I misinterpreting what happens when you set the Hz flag to 0?
Graphics 800,600,0,0 'Graphics 800,600,32 While Not KeyHit(KEY_ESCAPE) Cls If KeyHit(KEY_SPACE) Then fix = 1 - fix mx = MouseX() my = MouseY() DrawRect mx,my,200,200 DrawText "Fix = " + fix, 12, 12 Flip Wend End
If I set the last param of graphics to be 85 (my windows refresh rate) it's fine of course. This infers that setting Hz of 0 isn't using the default windows Hz but actually something else like 60! Am I misinterpreting what happens when you set the Hz flag to 0?