protonscr

Add simple env. var. to force V-SYNC

dxvkclosed
doitsujin/dxvk#4957 · opened 2025-05-31 by Tiagoquix · updated 2025-06-07 · 6 comments · github
4 matching comments, n / p to jump
TTiagoquix 2025-05-31 github

Hi.

Currently, we have the env. var. DXVK_FRAME_RATE=60 which is basically the equivalent of DXVK_CONFIG="dxgi.maxFrameRate = 60; d3d9.maxFrameRate = 60" (using 60 as an example).

I would like to suggest to add a new simple env. var. such as DXVK_VSYNC where it would control dxgi.syncInterval and d3d9.presentInterval. Values would be the same as the config. file:

  • 0 disables sync entirely
  • 1 forces normal V-SYNC
  • 2 forces half V-Sync
    and so on...

This would be a handy and shorter way to force V-Sync in some problematic games via Steam launch options.

Many thanks for your attention!

Ddoitsujin maintainer 2025-05-31 github

Why do we need 20 different ways to do the same thing? We already have config options and an env var to set said options.

TTiagoquix 2025-05-31 github

Because it is shorter and handy than writing the entire DXVK_CONFIG along with the options (and knowing what API the game uses, since only one of the options will work).

I believe an exception could be made for V-SYNC since it is a common desirable feature to enable in certain games (like how we have the FPS limit via a handy way with the env. var.).

:D

KK0bin maintainer 2025-05-31 github

I believe an exception could be made for V-SYNC since it is a common desirable feature to enable in certain games

It's also a feature that 9/10 games just let you configure in game.

WWinterSnowfall 2025-05-31 github

Why do we even have DXVK_FRAME_RATE? Was it added before DXVK_CONFIG became a thing? IMHO DXVK_CONFIG should be the only way of passing options from the command line, as it covers every possible config option and is easy enough to use.

BBlisto91 2025-05-31 github
BBlisto91 2025-06-07 github

Think all the devs were on the side of a no here so gonna close this