Why do we Use VSync?

  • Thread starter Deleted member 1272578
  • Start date
D

Deleted member 1272578

Guest
Why do we need VSync when we can just cap the framerate at 60fps?
 
D

Deleted member 1272578

Guest


It's different, because VSync causes stuttering.
 
D

Deleted member 1272578

Guest


Why doesn't it just detect your refresh rate and then cap the framerate at the refresh rate?

 
Vsync is much more complicated than an fps cap. If I set a 60 fps cap in any game I see tearing. If I turn on vsync I see no tearing. Vsync forces your gpu to wait until your monitor is ready to refresh to display a new frame. If you gpu isn't ready to display a frame when the monitor is then it must wait until the next monitor refresh cycle (which causes input lag).

Gsync is trying to do the opposite by making the monitor wait to update until the gpu is ready to display a frame.
 
D

Deleted member 1272578

Guest


Thanks :)
 
So to expand on my explanation stuttering comes from frames being shown for different amounts of time. Lets say your gpu is ready to display a frame at this monitor refresh cycle, doesn't have another frame ready for 3 refresh cycles, then the next frame is ready for the consecutive cycle. In my example the first frame is shown for 16.7 ms (1/60 Hz), the second is shown for 50.1ms, then the third is shown for 16.7ms again. Even though you may be reaching 60 fps, each frame is being shown for a different amount of time and you may feel stuttering.