Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.

Difference between revisions of "Glossary:Vertical sync (Vsync)"

From PCGamingWiki, the wiki about fixing PC games
Line 57: Line 57:
  
 
{{Fixbox|description=Nvidia only solution (Windows)|fix=
 
{{Fixbox|description=Nvidia only solution (Windows)|fix=
# Download and extract [https://ci.appveyor.com/project/Orbmu2k/nvidiaprofileinspector/build/artifacts NVIDIA Profile Inspector].
+
# Download and extract [[NVIDIA Profile Inspector]].
 
# Open {{file|nvidiaProfileInspector.exe}}
 
# Open {{file|nvidiaProfileInspector.exe}}
 
# Select desired profile or add custom profile
 
# Select desired profile or add custom profile

Revision as of 00:46, 16 August 2018

For a list of games, see List of games that support vertical sync (Vsync).


Vertical synchronization is an option used to prevent screen tearing. Screen tearing is a graphical glitch which is perceived as straight horizontal lines across the monitor or as if the whole picture is stitched together by two or more separate pictures. This problem exists because the monitor and the graphics adapter normally works independently, so new frames may not be fully drawn when the monitor display them. Vsync makes the graphics adapter wait for the monitor to signal it's ready for the next frame to ensure all displayed frames are always fully drawn. This has the positive side effect of limiting the amount of frames per second the computer has to draw to the monitor refresh rate (the amount of frames per second the monitor is able to display) which saves resources. Unfortunately Vsync can also increase input lag.

Properties

Benefits

  • Eliminates tearing by waiting for the monitor to signal it's ready for the next frame.
  • Lower power consumption (and therefore heat and noise) by limiting FPS to what the monitor is able to display.

Disadvantages

  • Introduce extra input lag. Commonly experienced as "mouse lag". The higher the monitor's refresh rate, the less input lag there will be.
  • May decrease performance if FPS falls below the monitor refresh rate.

Limitations

  • Only available in fullscreen exclusive mode (a borderless fullscreen window does not qualify).
  • Not to be used when benchmarking since the FPS will be capped at the monitors refresh rate.

Double buffering vs. Triple buffering

  • With double-buffering, the GPU waits for the most recently rendered frame to get displayed before beginning work on the next frame. With triple buffering, the GPU starts working on the next frame after that in the third buffer and if that new frame completes first, that frame gets displayed next and the other frame in between gets discarded.
  • Double buffering yields the most consistent frame rate while triple buffering can be slightly more responsive.

So what's the best option?

There is none and results will vary between different games, systems and people. If you're bothered by tearing or want the best visual quality, enable Vsync. If you're bothered by input lag or have performance problems, try Triple buffering for reduced input lag or completely disable Vsync for no input lag. If you're playing first-person shooters competitively, always disable.

Note that Vsync should not be used only as an FPS limit. If you only want to limit FPS drawn, for example to minimize heat and fan noise, but are not bothered by tearing and don't want to risk input lag, simply limit your FPS to that of your monitor's refresh rate or close to it. An FPS limit is often an option available as an in-game console command or similar.

Force Vsync

Vendor agnostic solution
  1. Download and extract D3DOverrider
  2. Open D3DOverrider.exe.
  3. Create a custom profile for your game.
  4. Make sure "Force triple buffering" and "Force VSync" are both enabled.
AMD only solution
  1. Download and install RadeonPro
  2. Open the program and "Add new profile"
  3. Select the corresponding game executable
  4. Locate the "Tweaks" tab to the right and set "Vsync control" to Always on
  5. In the same tab make sure "Triple Buffering" it's also ticked
  6. Right click on the just created profile on the left and press "Apply now"

Notes

If you have an on-screen FPS counter, you can hide it in the RadeonPro's general settings
If you have a low-spec PC, you had better set "Vsync control" to Dynamic
If you are bothered by input lag, changing "Flip Queue Size" to 1 under the advanced tab may help.
Nvidia Control Panel solution (Windows)
  1. Open the Nvidia Control Panel
  2. Navigate to "Manage 3D settings"
  3. Switch to the "Program Settings" tab and add the application you'd like to edit
  4. Set "Vertical Sync" to On
  5. Set "Triple buffering" to On
  6. Apply changes
Nvidia only solution (Windows)
  1. Download and extract NVIDIA Profile Inspector.
  2. Open nvidiaProfileInspector.exe
  3. Select desired profile or add custom profile
  4. Set "Triple buffering" to On
  5. Set "Vertical Sync" to Force on
  6. Apply changes
Use Strangle (Linux)
Also works for Wine
Only works with applications that use OpenGL
  1. Download or clone the Strangle and compile it according to instructions
  2. Use strangle <number> path/to/game command to run a game at desired framerate.

Notes

  • You can also use VSYNC=<0/1 or higher> before using the strangle command to enable the VSync instead of setting up the desired framerate. Higher than 1 will cause the software to set up a lower FPS by multiplying it by 1/<number you set in VSync>. So when it's set to 2 for example on a 120 Hz monitor, the software will run at 60 FPS, setting it to 4 will run the program at 30 FPS etc.
  • Not confirmed, but according to the Readme of the software, setting it to -1 will use the Adaptive VSync.
  • Can be also used on Steam via Set Launch Options.... Keep in mind that it won't work when Steam Overlay is enabled, unless it's placed at the end of LD_PRELOAD.

External links