Dxvk: Assetto Corsa artifacting and GPU hangs

Created on 18 Sep 2018  路  10Comments  路  Source: doitsujin/dxvk

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

bug

Most helpful comment

Thanks for the quick feedback.

All 10 comments

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)

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.

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.

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?

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.

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.

Sorry, my fault. Should be fixed now.

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

Thanks for the quick feedback.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

doitsujin picture doitsujin  路  236Comments

buscher picture buscher  路  79Comments

nairaner picture nairaner  路  74Comments

foresto picture foresto  路  54Comments

zaps166 picture zaps166  路  436Comments