doitsujin / dxvk

Vulkan-based implementation of D3D8, 9, 10 and 11 for Linux / Wine
zlib License
13.21k stars 851 forks source link

Game stays open if you exit the game while GPL is compiling shaders #3541

Open Managor opened 1 year ago

Managor commented 1 year ago

Demonstrative video: https://youtu.be/NTQvK2aYge0

If I exit out of a game normally while GPL is compiling a massive shader cache, the game will stay open. The game will still stay open even if I Alt+F4 as shown in the video. @ishitatsuyuki has confirmed that this also happens with Overwatch

Software information

Apex Legends. Proton Experimental

System information

Log files

steam-1172470.zip (Not the same as the video)

Managor commented 1 year ago

Before GPL, when using Steam to precompile shaders for Apex, some of the shaders were insanely big. As in after everything else has finished and the counter is at 99%, 2 threads are left to compile for like 15 minutes

That might be related.

doitsujin commented 1 year ago

Sounds like there's some slow shader compiles happening in the background that we end up waiting for. All compiler threads have an early-exit path and in something like God of War, exiting the game during shader compilation works just fine here.

Managor commented 1 year ago

I recorded a log where I went to the connection screen, then immediately after exited the game and let the game churn on whatever it did steam-1172470.log

BloodyIron commented 1 year ago

I'm having this same issue, and in my case most notably for Apex Legends. Not sure if it's tied to shader compilation or not, but this happens very frequently, and I think is a recent matter (weeks?).