Is flickering unavoidable in a 1024*768 window

BlitzMax Forums/BlitzMax Programming/Is flickering unavoidable in a 1024*768 window

Najdorf(Posted 2005) [#1]
My game flickers a bit: despite it could achieve a much higher framerate (than 60 to which it's set), there is a horizontal line in the window that flickers. Looks like he only managed to copy 1/2 of the stuff on the screen before the screendraw or something. What to do about it?


Sweenie(Posted 2005) [#2]
On a CRT monitor this tearing/flickering will disappear when Vsync is on, but usually not on a LCD monitor(at least not on mine)


GW(Posted 2005) [#3]
.. and how exactly do you enable vsync with bmax?


Perturbatio(Posted 2005) [#4]
try bglSetSwapInterval(1)


Sweenie(Posted 2005) [#5]
bglSetSwapInterval(1) I think.


Dreamora(Posted 2005) [#6]
normally it is already enabled. you have to do bglsetswapinterval (0) to disable it.

If it is not set, check out your graphicsdriver, if you disabled VSync per default (always off, default off) instead of application setting.