doitsujin / dxvk

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

GTA 4 flickering dots using DXVK 1.9 on AMD RDNA2 #2179

Closed Fezzy976 closed 2 years ago

Fezzy976 commented 3 years ago

Issue Description

Issues using latest DXVK 1.9 with AMD 6800XT and GTA 4. Producing flickering coloured crosshairs on screen when smoke or bloom effects are used/switched. Flicker happens for a split second so capturing this was tricky.

Drivers used are 20.6.1, 20.6.2, 20.7.1, and UWP drivers. All exhibit the same issue, the issue is not present when using DX. GPU is not overclocked either and no overheating has been monitored. No other game displays this issue.

The issue can be reproduced standing next to a light or smoke source in game and moving camera around. Issue can be minor to severe. If I enabled AMD VSR and run the game at 5K144Hz the flickering is VERY noticeable. Moving resolution down but keeping framerate high does somewhat mitigate the issue but its still there. Capping the fps to 72fps at 2K is where the issue once again becomes more apparent.

No overclocking is enabled on the system either on the GPU or CPU. And temps are well within spec.

Log File

No log file can be produced as this is not a crash its a graphical issue that is not present in DirectX and only present when running DXVK.

Software information

GTA IV Complete Edition 2560x1400 144Hz (72fps cap using RTSS) Max settings View Distance Slider = 43 Vsync ON

System information

Screenshots attached. 126785305-eefbbc52-65bb-4a23-9759-ef593aa1870d 126785310-5786472a-8fa8-4f5f-8c2e-5988731cb02f

K0bin commented 3 years ago

Duplicate of #1862

Fezzy976 commented 3 years ago

Duplicate of #1862

WOW my issue is nowhere near that bad.

Is it possible to use the launch arguments from that post on windows or are they specific too linux?

these arguments RADV_DEBUG=nodcc %command% RADV_DEBUG=llvm GTA4EXE

K0bin commented 3 years ago

WOW my issue is nowhere near that bad.

It's the same problem though.

Is it possible to use the launch arguments from that post on windows or are they specific too linux?

They are specific to Linux. Nothing you can do on Windows right now.

Fezzy976 commented 3 years ago

It's the same problem though.

Is it possible to use the launch arguments from that post on windows or are they specific too linux?

They are specific to Linux. Nothing you can do on Windows right now.

Ok thank you for the quick reply. What is the procedure for creating a log file on windows?

K0bin commented 3 years ago

No need for one. It wouldn't be useful anyway in this case and we also know what causes the problem. Don't expect a fix any time soon though.

Fezzy976 commented 3 years ago

What would be the cause if you don’t mind? Curious to know. From: Robin @.> Sent: 23 July 2021 17:07 To: @.> Cc: @.>; @.> Subject: Re: [doitsujin/dxvk] GTA 4 flickering dots using DXVK 1.9 on AMD RDNA2 (#2179)

No need for one. It wouldn't be useful anyway in this case and we also know what causes the problem. Don't expect a fix any time soon though.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/doitsujin/dxvk/issues/2179#issuecomment-885742804, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AU6K2Q7LJGUYBS4ZWNX4ULLTZGHSFANCNFSM5A4IAFCQ.

K0bin commented 3 years ago

What would be the cause if you don’t mind? Curious to know.

Rendering to and sampling from the same texture at the same time. That's allowed in D3D9 but isn't in Vulkan. Happens to just work on Nvidia hardware and DXVK has a workaround for AMD hardware but that doesn't work on RDNA2.

stefson commented 3 years ago

thanks for the warning about the RDNA2 hardware, potentially saves me a ton of money! :+1:

K0bin commented 3 years ago

@stefson It's not a problem with the hardware, it's a problem with DXVK. If you're using Linux, AMD HW will usually yield better performance, especially in newer D3D12 games with VKD3D-Proton.

stefson commented 3 years ago

Sure, but DXVK is my only use case for such a high end card.

K0bin commented 3 years ago

And it works perfectly fine in all but like 3 games + this is probably gonna be solved in the future.

Fezzy976 commented 3 years ago

I can confirm 100% that DXVK 1.7.3 does NOT have this issue!!!

It seems to be a bug within the newer version of DXVK, and not AMD drivers or hardware. I tested out 5K resolution using AMD VSR and with the three newest version of DXVK I tested all of them exhibt extreme flicker and screen corruption. The flicker is also present on lower resolutions but not that bad.

Now I tested DXVK 1.7.3 and the flicker is completely gone at 5K and all other resolutions too. Using the same drivers as before and it works flawlessly with this DXVK version.

Squall-Leonhart commented 3 years ago

not seeing an issue in 1.7.3 does not exclude hardware specific variation in driver or dxvk behavior.

adolfintel commented 2 years ago

I have this glitch on linux using a 6900XT and RADV, DXVK 1.9.2

Can provide a trace if needed.

K0bin commented 2 years ago

Not necessary. We know what causes it but don't have any way to fix it.

adolfintel commented 2 years ago

I can confirm that 1.7.3 does not have this problem. @K0bin were you able to bisect the exact commit that introduced the problem?

Joshua-Ashton commented 2 years ago

We know the fix, its just waiting on a Vulkan extension to do properly.

K0bin commented 2 years ago

Closing this because it's a duplicate of #1862.