Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust SSGI shaders are slower than HLSL #24

Open
h3r2tic opened this issue Nov 15, 2021 · 0 comments
Open

Rust SSGI shaders are slower than HLSL #24

h3r2tic opened this issue Nov 15, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@h3r2tic
Copy link
Collaborator

h3r2tic commented Nov 15, 2021

#21 introduced Rust GPU ports of SSGI/SSAO shaders. They are currently slower than the HLSL counterparts (see #21 (comment)). Some of that is because USE_AO_ONLY turned into a uniform parameter which the compiler cannot const-fold, but it doesn't account for all of the difference. We should make sure USE_AO_ONLY and any other important constants are actually constant, and investigate what causes the rest of the difference.

Once this is fixed, let's switch over to using the Rust shaders.

@h3r2tic h3r2tic added the bug Something isn't working label Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant