Fix Wave32 water tile allocation and surface lighting #742
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!742
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-742"
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?
@xss3009 on GitHub · 2026-11-28 04:44 UTC · original
xss3009:fix/wave32-water-transmission→main· +2936 −84 · 14 files · 3 commits · closed without mergingWhat changes
5dc3b25986622949and6f225b641c5b0708. On Wave32, the two consumers use the paired path whenVICTORY_WATER_LIGHT=1. The generator1aa247ed3653b616keeps the per-lane allocator. The consumer passes are still opt-in on Wave32.VICTORY_WATER_TILE_SLOTS=0andVICTORY_WATER_WAVE_PAIRS=0allow separate controls.Related #45 and #221. Allocator thanks to xss3009, fxceless and mutlusinan. Paired lowering is from Geckomacabre and TaynanGT's work in Vice-Tay #208.
RTX 5070 Ti in-game comparison
Windows 11 build 22631, driver 621.24, Series X, 1920×1080 scene rendered to 2560×1440, DLSS and frame generation off, BVH builder off. Both runs used a copy of the same first-boat checkpoint and experimental water lighting enabled.
a37e532The bridge direction and rear-camera framing were approximately matched. The comparison did not match the exact mission tick or a passing yacht's position. The two consumers were tested together in game. Original RTX 5070 Ti result and paired-consumer follow-up.
Validation of the submitted branch
63b902f. Both allocator tests and the Wave32 water routing test passed.AI-assisted testing and porting.
@Dukestar69 on GitHub · 2026-11-28 05:14 UTC · original · approved these changes
LGTM — verified on Windows (RTX 5090):
cargo test -p victory-shader --lib wave64_tests::passed (19/19, including all 7 non-ignoredafter_loop::tests)cargo test -p victory-shader --lib emit::tests::passed (22/22)cargo clippy -p victory-shader --lib -- -D warningspassed with 0 warningscargo xtask policypassed (299 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@Yoshi-233 on GitHub · 2026-11-28 05:41 UTC · original
I tested the Windows
playentry point at4bb3bd956. There is a reproducible difference between the menu's Water light = On and--set VICTORY_WATER_LIGHT=1for the new paired consumers.1aa247ed…tile allocator5dc3b259…/6f225b64…consumersVICTORY_WATER_LIGHT=1in settings, or--set VICTORY_WATER_LIGHT=1VICTORY_WATER_LIGHT=1andVICTORY_WATER_WAVE_PAIRS=0The menu stores an empty value for On, and
playremoves the inherited variable. The existing water toggle treats this as enabled, while the paired path tests for the literal1. I checked the resolved settings with six Windows launches, translated the real programs under seven configurations, and validated the generated DXIL. Each distinct configuration also produced the expected cache hits after a cold translation.It would help to make the paired-path predicate use the same effective setting as the menu, or document the explicit
--setrequirement if opt-in is intentional. Otherwise two people comparing water screenshots can select the same menu value and run different shaders.@xss3009 on GitHub · 2026-11-28 16:10 UTC · original
@Yoshi-233 Thanks for tracing the F1 setting through Windows
victory play. The follow-up in5ad654euses one water-light predicate for the two pipeline exclusions and paired Wave64 lowering. F1 On saves an empty value, whichplayunsets. The paired path now follows that default-on state and explicit1. Explicit0still skips both surface-light passes on Wave32.I tested on an RTX 5070 Ti (driver 621.24, 32-lane waves), with the same first-boat checkpoint and rear-camera view before the bridge. Series X rendered at 1920×1080 to 2560×1440, with DLSS and frame generation off.
0.5dc3b25986622949and6f225b641c5b0708loggedWAVE64-PAIREDand created their D3D12 compute PSOs.--set VICTORY_WATER_LIGHT=1I captured 24 consecutive presented frames at the bridge approach on each enabled run, including a fresh F1 On repeat. I did not observe the rectangular waterline flicker in these samples. The camera and checkpoint were matched, with different passing-boat positions. Offline DXIL validation also passed, and F1 On and the CLI override produced identical bytecode for the two passes.
The first F1 On diagnostic run hit a D3D12 device removal (
0x887A0006) when starting a later capture, after the 24-frame bridge sample. It did not recur in the CLI test or the fresh F1 On repeat. I have not attributed the device removal to a specific command.@trustno1-coder on GitHub · 2026-11-28 19:22 UTC · original
Thanks for this. I'm closing it without merging because it conflicts with the current main in several places (main has moved a lot since it was opened, with about 100 pull requests merged today), and I can't resolve that safely on your behalf. If you'd still like it in, please rebase it on the current main and open a new pull request.
Pull request closed