jp7677 / dxvk-nvapi

Alternative NVAPI implementation on top of DXVK.
MIT License
373 stars 32 forks source link

Screen corruption in Cyberpunk 2077 with GOG overlay #136

Closed pppbb closed 10 months ago

pppbb commented 1 year ago

2023-08-05_0237_1 2023-08-05_0238_8 There are triangle artifacts around some of the objects drawn on screen. But only with nvapi.

pppbb commented 1 year ago

sorry i thought i observed it in another game but i was wrong.

jp7677 commented 1 year ago

I guess you mean the dark gray spots/squares in your screenshots? I don't see them on my system when running the CP benchmark with latest DXVK/DXVK-NVAPI/VKD3D-Poton.

Is this dependent on certain graphics settings (e.g. with/without DLSS, with/without RTX)? Could you also share some details about your system and the game environment?

pppbb commented 1 year ago

OS: Arch Linux Lutris latest wine-GE-Proton8-13 vkd3d-proton latest NVIDIA Geforce rtx 4080 Cyberpunk 2077 1.63 ultra settings with rtx on and off dlss on and off no problems without nvapi loaded NVIDIA 535.86.05 NVAPI 0.6.3 Please dont hesitate to ask for more info.

pppbb commented 1 year ago

UPDATE: I discovered that corruption happens only when gog overlay is enabled.

jp7677 commented 1 year ago

UPDATE: I discovered that corruption happens only when gog overlay is enabled.

Thanks a lot for figuring this out. Actually I'm tending to blame the overlay in doing something that doesn't play well. With RTX and DLSS off, NVAPI isn't really doing much except providing some topology and system info (like driver version) to the game. There are afaik no more NAPI calls after the game finishes initializing. A side effect of enabling NVAPI though is making an NVIDIA GPU visible as NVIDIA and no longer spoofing it as AMD GPU.

Could you please try disabling DXVK-NVAPI but also disabling the DXVK AMD spoofing (aka the DXVK nvapiHack), see https://github.com/doitsujin/dxvk/blob/master/dxvk.conf#L69? I'm not sure though if the game still successfully starts when it sees an NVIDIA card, but cannot load NVAPI.

pppbb commented 1 year ago

I'm not sure though if the game still successfully starts when it sees an NVIDIA card, but cannot load NVAPI.

It starts fine.

jp7677 commented 1 year ago

I'm not sure though if the game still successfully starts when it sees an NVIDIA card, but cannot load NVAPI.

It starts fine.

I assume the artifacts are also gone when starting without NVAPI and without nvapiHack? In that case could you please provide DXVK logs when starting the game without NVAPI and without the nvapiHack being enabled. Could you please also provide DXVK-NVAPI logs (see https://github.com/jp7677/dxvk-nvapi#tweaks-debugging-and-troubleshooting) with DLSS off and RTX off?

jp7677 commented 11 months ago

@pppbb is this still an issue?

jp7677 commented 10 months ago

Feel free to reopen if something new comes up.