protonscr

Assetto Corsa artifacting and GPU hangs

dxvkclosed bug
doitsujin/dxvk#648 · opened 2018-09-18 by Lahvuun · updated 2018-09-19 · 10 comments · github
LLahvuun 2018-09-18 github

Disabling reflections in Assetto Corsa causes image artifacts and general GPU instability.

Software information

Assetto Corsa

System information

  • GPU: AMD Radeon RX 560
  • Driver: mesa-git-c9dbe52f848ae795ae9fdd7cbeca857db27dcc48
  • Wine version: wine-staging-3.16
  • DXVK version: dxvk-git-bf5476900ada0714a86737ddc96683721bffc605
  • LLVM: llvm-git-fbb826fa5c2e828f0e27944ae92c60fe68208609

Apitrace file(s)

https://drive.google.com/open?id=1yvh6uJg-p0IMrEo9bropR-KVCLIc_UEX

Log files

Ddoitsujin maintainer 2018-09-18 github

In case of GPU hangs, please check #252.

When replaying the trace I pretty much instantly get a GPU hang, is that what happens in the game as well or is this an additional issue caused by apitrace? (this sometimes happens as well, just want to make sure)

LLahvuun 2018-09-18 github

The results vary for me: sometimes apitrace renders until the end (leaving every other window in X frozen), sometimes it hangs at the start. I am able to see artifacts (the first few frames after the loading screen) in the apitrace before the hang, however. The game is more stable, but eventually it hangs as well. During this one of my cores is at 100% constantly, no matter the scene.

This apitrace was made under wine, if that matters.

Ddoitsujin maintainer 2018-09-18 github

Do you have access to a Windows machine, and if so, can you record an apitrace there? Something's fishy there.

The GPU hang occurs because the game tries to create a texture with a size of 0x0, and DXVK doesn't return the appropriate error code. This is fixed with 837a3f5787c23e4b583ce6cdbca8fe1d8a4b5be6, and replaying the apitrace will now crash because the texture cannot be created.

Ddoitsujin maintainer 2018-09-18 github

Update: I got a Windows trace from someone else, and it appears that the game creates a 2048x2048 texture where it creates a 0x0 texture in your trace. No idea why though.

Does the game now work correctly with latest master or are there still issues?

LLahvuun 2018-09-18 github

Do you have access to a Windows machine, and if so, can you record an apitrace there?

I'm sorry, I don't have a Windows machine. I can set up dual-boot in a few hours, though.

Does the game now work correctly with latest master or are there still issues?

The game freezes on loading screen with current master (https://github.com/doitsujin/dxvk/commit/837a3f5787c23e4b583ce6cdbca8fe1d8a4b5be6).

I got a Windows trace from someone else, and it appears that the game creates a 2048x2048 texture where it creates a 0x0 texture in your trace

Are reflections disabled in that apitrace?
If I set the "reflection quality" to anything other than "none" the game runs completely fine for me.

Ddoitsujin maintainer 2018-09-19 github

Are reflections disabled in that apitrace?

I asked and got another one with reflections disabled this time. The game does indeed try to create a 0x0 texture and keeps using it, which results in errors and silently dropped calls with native D3D11 but caused DXVK to crash.

Should be fixed in a95f292dcce681269654576d657b5dcb675540d7, please test if it works now.

Ddoitsujin maintainer 2018-09-19 github

Sorry, my fault. Should be fixed now.

LLahvuun 2018-09-19 github

https://github.com/doitsujin/dxvk/commit/35238ec4d11cbf280209fab82ec2f85879e4c128 completely resolves the issue for me: no artifacting, no previous GPU issues.

Ddoitsujin maintainer 2018-09-19 github

Thanks for the quick feedback.

Nothing extracted yet.