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

[util] Set dxgi.syncInterval to 0 for Earth Defense Force 5 #2127

Merged
merged 1 commit into from
Jun 28, 2021

Conversation

junglerobba
Copy link
Contributor

The game stutters heavily with vsync enabled, even on windows, and
offers no option to disable it.

Tested on Wayland (sway) and xorg (Plasma) with both 60 and 144 Hz, and got the same behavior in all cases.
Tbf, I don't know if this is really "just" normal stutter or whatever the game is doing, since MangoHud does not even show the framerate correctly.
Either way, setting dxgi.syncInterval to 0 makes the game run fine again.

edf5
edf2

@aufkrawall
Copy link

aufkrawall commented Jun 27, 2021

Did you try dxgi.numBackBuffers = 3 with dxgi.syncInterval = 1 and RADV?

Edit: Judging by your pictures, I'd assume that game locks fps at 60 and thus starves vsync backbuffer queue (which would be extremely dumb), which also only has 2 frames. In that case, the spikes would disappear with dxgi.numBackBuffers = 3 and RADV, but it would still stutter periodically. You'd need a refresh rate below 60Hz or VRR to make it run with proper presentation.

@doitsujin
Copy link
Owner

doitsujin commented Jun 28, 2021

This isn't really a solution, if there's a performance issue with the game then we should try to find the root cause. Would be nice to have an apitrace or something to see what it's doing.

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

Successfully merging this pull request may close these issues.

3 participants