HansKristian-Work / vkd3d-proton

Fork of VKD3D. Development branches for Proton's Direct3D 12 implementation.
GNU Lesser General Public License v2.1
1.76k stars 184 forks source link

Cyberpunk 2077 freezes in settings menu with VK_NV_low_latency2 #1929

Closed runar-work closed 4 months ago

runar-work commented 4 months ago

After 2-5 minutes in the settings menu, the game will freeze. It's not a GPU hang, as there is nothing of note in the kernel log. It seemed safe to assume that if there was no freeze after at least 5 minutes it wouldn't happen, so I was able to do a bisect. I also tried in-game for about 7 minutes without issue, but when I went into the menu from there it froze instantly.

I also tested various other Wine versions, like Proton 8.0-5 and experimental bleeding-edge 8.0, but I was only able to trigger this with bleeding-edge 9.0.

Software information

Cyberpunk 2077 with graphics preset low, vsync off and reflex off.

System information

Log files

steam-1091500_first_bad_commit.zip

Blisto91 commented 4 months ago

Another game that hits this issue is Hitman 3. Freezes after a bit even in menus. Behavior stops when launched with VKD3D_DISABLE_EXTENSIONS=VK_NV_low_latency2

esullivan-nvidia commented 4 months ago

Are either of you able to reproduce the issue with this commit?

https://github.com/esullivan-nvidia/vkd3d-proton/commit/0d7b62683b247b05df235d85dcb90887a729f7b1

runar-work commented 4 months ago

@esullivan-nvidia That commit fixes the Cyberpunk freeze for me.

HansKristian-Work commented 4 months ago

This looks like a driver bug to me. @esullivan-nvidia will you file a PR with that fix? We're in RC phase now, so this fix should land ASAP.

Blisto91 commented 4 months ago

I can also confirm that the commit helps Hitman 3

esullivan-nvidia commented 4 months ago

Agreed that this is most likely a driver bug, I have not been able to root cause it yet though. This should function well enough as a workaround for now. I will create a PR.

HansKristian-Work commented 4 months ago

Closing as we have a WAR in place.