protonscr

Earth Defense Force 5: Stutter with vsync enabled

dxvkclosed
doitsujin/dxvk#2128 · opened 2021-06-28 by junglerobba · updated 2021-06-28 · 5 comments · github
Jjunglerobba 2021-06-28 github

Software information

Earth Defense Force 5

System information

  • GPU: RX 5700XT
  • Driver: Mesa 21.1.1
  • Wine version: Proton experimental-6.3.-20210625
  • DXVK version: 1.9

Apitrace file(s)

Log files

Transferring over from https://github.com/doitsujin/dxvk/pull/2127, as described there the game shows heavy stuttering while vsync is enabled. Couldn't get the game to load into a mission while running apitrace but since the issue is already visible on the main menu I hope that is enough.

Ddoitsujin maintainer 2021-06-28 github

Game problem, it does indeed randomly toggle vsync on and off between presents, which unfortunately is a high-overhead operation in DXVK because we have to recreate the Vulkan swap chain. I cannot reproduce the problem on my system, but your trace and d3d11.log prove it.

Does

dxgi.tearFree = False
dxgi.syncInterval = 1

fix the problem for you? #2127 switches vsync off unconditionally but I'd rather turn it on by default since a) this is what the game clearly intends to do, and b) turning it off would cause horrendous tearing on 60 Hz displays.

Jjunglerobba 2021-06-28 github

Yes, working just fine with those options :+1: (only tested on sway though)
Updated the pr to set these options instead

Ddoitsujin maintainer 2021-06-28 github

I don't thing Wayland supports FIFO_RELAXED, can you give it a quick test on X11?

Feel free to update your PR afterwards with those options.

Jjunglerobba 2021-06-28 github

I don't really use Xorg anymore so I'm not sure if it's even set up correctly, but it seems fine on Plasma (still broken without the options, so I'm guessing it's working as intended)

Ddoitsujin maintainer 2021-06-28 github

Thanks, merged new PR.

Proton versions

Upstream links