Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]Force Refresh Rate #4421

Open
ShinChaosBahamut opened this issue Nov 2, 2024 · 3 comments
Open

[Feature Request]Force Refresh Rate #4421

ShinChaosBahamut opened this issue Nov 2, 2024 · 3 comments

Comments

@ShinChaosBahamut
Copy link

Was wondering if it'd be possible to add a cvar that forces a game to use your desired refresh rate? (for those stubborn games that insist on using 60hz even though you have a 144hz monitor, for example)

@WinterSnowfall
Copy link
Contributor

The d3d8/d3d9 situation on this front should be improved since f74b2cd . Otherwise, I don't think forcing anything not configurable in game is a good idea. Some of them have physics calculations tied to the frame-rate (which is generally expected to be 60 fps for older games).

@vlad54rus
Copy link

vlad54rus commented Nov 4, 2024

Some of them have physics calculations tied to the frame-rate

For such games the framerate cap can be configured separately (many are already pre-configured inside DXVK), so that's barely an argument.

@Blisto91
Copy link
Contributor

Blisto91 commented Nov 4, 2024

fwiw you can somewhat achieve this behavior with the below for d3d8/d3d9

d3d9.maxFrameRate = -1
d3d9.presentInterval = 1

Or the below for d3d10/d3d11

dxgi.maxFrameRate = -1
dxgi.syncInterval = 1

Though note this will always enable vsync for the game, not only when it is enabled ingame.

Edit:
Removing the second line makes the game control vsync behavior.
Note that if you are using dxvk in a environment where it can actively change the refresh rate of your monitor, e.g. X11 and regular Wine without fshack or on Windows, then the above won't be so useful for using your monitors max refresh rate. (i think)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants