[pr-fix][rendering][shaders] Add opt-in frosted glass fixes (DARNER_KILL_CONTINUE, DARNER_GLASS_DITHER_OFF, DARNER_GLASS_DIRT_OPACITY) #96
Loading…
Reference in a new issue
No description provided.
Delete branch "hingeowl/Darner:vercetti/frosted-glass-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds three opt-in frosted glass shader fixes (all off by default, all keyed in
crates/darner-gpu/src/shader_cache.rs):DARNER_KILL_CONTINUE=1— keeps killed pixel lanes alive as helper lanes for subsequent quad reads (fixes frosted glass stipple when RT is off).DARNER_GLASS_DITHER_OFF=1— disables the wave32-vs-wave64 light-grid cell dither in house window glass shaderb37565055f2f7d3b(fixes alternating dark stripes).DARNER_GLASS_DIRT_OPACITY=<float>— overrides the glass dirt opacity factor in the house window glass shader.Provenance
https://github.com/lobomfz/VIctory-xmemcommits3a056013c1f62b1565722adc33ff235831f30426,0cdc0d0ba6f95a6902a6dcae41005153ec589110, andc8a311fc8b7ef45a5a25b0fcfb38001d69a150cb(GPL-3.0-or-later).main(b3a615f).Validation
cargo test --locked -p darner-gpu --lib shader_cache— 13/13 passed (includingevery_switch_of_the_translator_is_in_the_key).DARNER_KILL_CONTINUE=1,DARNER_GLASS_DITHER_OFF=1,DARNER_GLASS_DIRT_OPACITY=0.0, same binary):8,058/7,7737,770/7,286(3.57%drift)21.8/20.721.4/21.546.7/46.9 ms47.8/46.5 ms60.2/58.1 ms63.6/59.9 ms32.2/32.7 ms31.6/32.3 ms64%/21,927 MB64%/21,854 MB0 mssteady-state overhead once shader cache is warm in R2:46.5 ms/21.5 FPSvs46.9 ms/20.7 FPS), and screenshots inspected visually spotless (nonBlack=99.99%,magenta=0%, clean sliding glass door atshot-000s.png).mainb3a615f:19.4 FPS,49.6 msmed,65.0 msP95,35.1 mssubmit,7,946draws.)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.