protonscr

[d3d9] Sanctum 2 - flickering surfaces

dxvkclosed d3d9can't reproduce
doitsujin/dxvk#2291 · opened 2021-09-12 by HenryJk · updated 2023-05-14 · 22 comments · github
HHenryJk 2021-09-12 github

Using proton+dxvk because the linux native version has sound and graphical issue. On the level shown on apitrace, the white floor near enemy spawn is flickering on linux. The game also does not launch with wined3d so I can't make comparison. However, this issue is not found on windows.

Sanctum 2 (appid 210770)

Max Settings except no MSAA

System information

  • CPU: Intel© Core™ i7-9750H CPU @ 2.60GHz × 6
  • GPU: NVIDIA NVIDIA GeForce GTX 1650 with Max-Q Design
  • Driver: 470.63.01
  • Wine version: Proton 6.3-3
  • DXVK version: 1.9-1

Apitrace file(s)

Log files

HHenryJk 2021-09-12 github

Side note, the apitrace and the log file doesn't come from the same run. The log file is running on linux while the apitrace file is on windows. They just have the same level selected to possibly give more info to the bug.

KK0bin maintainer 2022-01-04 github

Can you reproduce this with Proton Experimental (or just DXVK master)? The apitrace doesnt have any flickering.

KK0bin maintainer 2022-01-05 github

Could you upload your save file?

HHenryJk 2022-01-05 github

local.zip
Place this folder in steam/userdata//210770

KK0bin maintainer 2022-01-05 github

Can you try running the game with a DXVK config file and add the line d3d9.invariantPosition = True to that?

This seems to be z-fighting. The game draws the "clean" tile once and then draws it again to blend the dirt-decal on top.

HHenryJk 2022-01-05 github

I put dxvk.conf file with that line on the same folder as the game's executable, is that correct? The flickering issue still there.

BBlisto91 2022-04-09 github

I have not been able to reproduce this either on my amd setup or my nvidia 960 with 470.103 driver. I tried a few different dxvk versions including 1.9 & 1.9.1

BBlisto91 2022-07-04 github

@HenryJk Friendly ping. Can you retest with latest drivers and dxvk?

HHenryJk 2022-07-04 github

Still flickering, tested just now. driver: 515.57, dxvk: current proton experimental. I wonder if nvidia optimus setup might have different behaviour. My exact hardware is Thinkpad X1 Extreme Gen 2 and I run it on Arch linux. I don't know the exact variant of the laptop model but this https://www.lenovo.com/us/en/p/laptops/thinkpad/thinkpadx1/x1-extreme-gen-2/22tp2txx1e2 seems about right. Hope that helps

BBlisto91 2022-07-04 github

Roger. I will try to check again on my Nvidia setup. Mess with options, resolution and such a bit

BBlisto91 2022-07-06 github

I have been trying for a little while now to try and reproduce this and i sadly still haven't been able to.

Why does it appear like your whole game is shaking slighty when i look at your videos? Does that also happen ingame or is that the recording?

BBlisto91 2022-11-10 github

@HenryJk Please retest with dxvk 2.0 if you can :slightly_smiling_face:
Note you need 510 driver or above.

HHenryJk 2022-11-11 github

Hi, I currently have a hardware issue on my laptop, will retest when I finished fixing it.

BBlisto91 2022-11-13 github

Very very strange :eyes:

BBlisto91 2023-05-14 github

@HenryJk Is it possible to get a fresh test of this with latest dxvk and driver?

HHenryJk 2023-05-14 github

Fixed, completely fixed, I'm surprised.

BBlisto91 2023-05-14 github

Huzzah!
I still have no clue what the issue was.

HHenryJk 2023-05-14 github

I think I can help bisect which patch is fixing it if I have time for it.

BBlisto91 2023-05-14 github

Sure hehe

Proton versions