Hello everyone.
I was wondering if I could get more then 60 fps with vsync enabled? One more question please, what is vsync and why without it do I get a lot of fps with everything very jerky?
Hello everyone.
I was wondering if I could get more then 60 fps with vsync enabled? One more question please, what is vsync and why without it do I get a lot of fps with everything very jerky?
Simply choose a displaymode with >60Hz. Vsync synchronizes the backbuffer flip or blit with the vertical blanking period of the monitor when the scanning electron beam is on its way back to the top of the monitor. If you disable vsync, you’ll be doing the flip while the electron beam is still drawing the screen halfway down, causing the picture to change to the next frame in the middle, and this causes an ugly tearing effect.
Disabling vsync is more or less pointless for professional looking games - you use it to test performance.
Cas 
Thank you for the reply, this is very helpful!
what about LCDs? would vsync make no difference with those? (and therefore disabling it would give more FPS with no tearing penalty?)
The video data is still fed to the LCD display one pixel at a time in a top-down left-right order. Therefore changing the frame while the data is being sent to the monitor will cause the same tearing effect.
Just because there is no electron beam sweeping the screen, doesn’t mean that the data is not sent with essentially the same timing as it was when that was the case.
Using Vsync means that the frame remains the same until the whole frame is output, then it ‘flips’ to the next frame between the end of the previous frame and the beginning of the next frame.
I’ve never gotten sync to work good in Lwjgl… I get tears, and not smooth flowing graphics when I use sync…
without display sync it flows very good… and I don’t see tear effects… Of course my game is flying around in space with alot of dark areas, I can imaging that you don’t notice tear effects so much then… but even so with sync on it’s a horrible experience…
I agree, I see tears with vsync on as well, although I haven’t investigated if it happens 100% of the time.
You’re almost certainly mistaken here. When sync is on, you don’t get tearing. Only, there is no guarantee that when you set vsync on, that it actually is on. This isn’t a fault of LWJGL, it’s just the underlying OS’s fault.
Cas 