protonscr

Reshade compute shader issue - shader not optimizing?

dxvkclosed
doitsujin/dxvk#2058 · opened 2021-05-11 by gabriele2000 · updated 2022-07-24 · 5 comments · github
Ggabriele2000 2021-05-11 github

I've got 2 version of the RTGI shader.
RTGI 0.22 - uses compute shader: always takes 32ms of frametime (should be GPU-accelerated, so it should be less ms-hungry)
RTGI 0.21 - is a standard shader: takes up to 12ms, could even take less (depends on scene complexity)

Now, I read somewhere that if that happens, maybe the driver fails to optimize the shader.
I don't know if the issue is from:
-DXVK
-Wine
-Nvidia

Ddoitsujin maintainer 2021-05-11 github

DXVK just naively translates the DXBC shader code to SPIR-V, so the driver probably doesn't optimize it as efficiently as it does the D3D shader if it's much slower than on Windows. Not really something we can really fix on our end, though.

Ggabriele2000 2021-05-12 github

DXVK just naively translates the DXBC shader code to SPIR-V, so the driver probably doesn't optimize it as efficiently as it does the D3D shader if it's much slower than on Windows. Not really something we can really fix on our end, though.

So basically for compute shaders to run efficently we'll have to wait Nvidia?
What about AMD? Is this an issue with AMD too?

BBlisto91 2022-07-23 github

@gabriele2000 Friendly ping. Even if this isn't a dxvk issue i'm just checking in on if you still have this problem with newest dxvk, RTGI and driver?

Ggabriele2000 2022-07-24 github

@gabriele2000 Friendly ping. Even if this isn't a dxvk issue i'm just checking in on if you still have this problem with newest dxvk, RTGI and driver?

You know, right now I'm using the latest RTGI version (0.32.2) and I guess it's compute shader again, because it got eventually removed for compatibility reasons.
Now I'm using AMD FSR too, so the frametime lowers as well, though.

I guess it's "fixed" for now, RTGI is still a lot demanding, but it's way less demanding now than a year ago, or when it was first introduced as compute shader.

KK0bin maintainer 2022-07-24 github

Either way, optimizing shaders is the job of the driver.

Nothing extracted yet.