Is flickering unavoidable in a 1024*768 window
BlitzMax Forums/BlitzMax Programming/Is flickering unavoidable in a 1024*768 window
| ||
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? |
| ||
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) |
| ||
.. and how exactly do you enable vsync with bmax? |
| ||
try bglSetSwapInterval(1) |
| ||
bglSetSwapInterval(1) I think. |
| ||
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. |