GPU: leave out water light by default on 32-lane wave hosts (#739) #1926
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!1926
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1926"
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?
@dheerajc8073 on GitHub · 2026-11-29 03:06 UTC · original
dheerajc8073:fix/water-light-32lane-default→main· +7 −9 · 2 files · 1 commits · merged 2026-11-30 14:12 UTCFixes #739
What it changes
On 32-lane hosts (NVIDIA RTX GPUs), the water's two tiled light programs (
water_shading:CS_TransmissionVolumetrics_Tiled5dc3b25986622949and_Tiled_LocalLights6f225b641c5b0708) translate in wave-wide form only, producing prominent dark tile-sized blocks and rectangular artifacts around boats, shores, buoys, and underwater, while costing 5–15 ms per frame.README.mddocuments that on 32-lane cards they are left out by default and opted into viaVICTORY_WATER_LIGHT=1("WATER LIGHT in the menu runs them again"). However,crates/victory-gpu/src/pipeline/make.rspreviously checkedv == "0"to leave them out (defaulting to ON when unset), andcrates/victory-gpu/src/host/menu.rsdefaultedvaluesto[("", "ON"), ("0", "OFF")].This PR:
water_light_left_outincrates/victory-gpu/src/pipeline/make.rsto leave water light out by default on 32-lane hosts (victory_shader::emit::host_settings()[0] == 32) unlessVICTORY_WATER_LIGHT=1is explicitly set.WATER LIGHTincrates/victory-gpu/src/host/menu.rsto useUNSET_ON([("", "OFF"), ("1", "ON")]), aligning the F1 menu with the README and engine defaults.VICTORY_WATER_LIGHT=1) and keeping 64-lane hosts (AMD RDNA) unaffected.How it was tested
VICTORY_WATER_LIGHTincluded the water light shaders by default, causing stepped dark rectangular tiles underwater and around surface buoys/boats, and 5–15 ms frame time penalty.VICTORY_WATER_LIGHTleaves them out by default on 32-lane hosts. Water renders without block artifacts at full frame rate; settingVICTORY_WATER_LIGHT=1runs them as an opt-in path.VICTORY_WATER_LIGHT=1) and 64-lane (unaffected, runs natively).cargo testpassed for the crates it touches: yesChecked for overlap
[pr-fix] GPU: leave out water light by default on 32-lane wave hosts (#739)to GPU: leave out water light by default on 32-lane wave hosts (#739)@nick0451 on GitHub · 2026-11-29 03:54 UTC · original
A data point from an RTX 3090 (32-lane), Windows 11, this PR on main
568c5e5. Series S, DLSS performance, no FG. A balcony save looking over open water at about 100-300 m, with boats and shoreline, 2 rounds each after a warm-up. Both run withVICTORY_WATER_LIGHTunset; main is also run with=0:=0=0, so that gap is this batch's noise, which was large (another PR's two runs differed by 2.2 fps).=0, and this PR's default), it's grey and flat. I saw no tile blocks in this view with it on.So the trade on a 3090, at least at distance, is better-looking water for free against the blocks the PR removes, which are reported underwater and close to boats, and which this view doesn't cover. It may be worth checking with someone who sees the blocks on an RTX 30 card before flipping the default for every 32-lane host. Or the default could depend on the card, if the cost and blocks are mostly on 40/50 series.
🤖 Generated with Claude Code
@dheerajc8073 on GitHub · 2026-11-29 16:56 UTC · original
Thanks @nick0451 for testing on the RTX 3090!
The original issue (#739) was reported specifically on an RTX 3070 (also 32-lane Ampere) when underwater and in close proximity to boat geometry, where the water light compute shader's tiled accumulation produces black rectangular tile blocks. In distant open-water views like the balcony save, the artifact does not manifest prominently, which matches your observation.
Leaving the opt-in environment flag (
VICTORY_WATER_LIGHT=1) ensures players who prefer the illuminated turquoise water in distance views can easily enable it, while protecting 32-lane hosts from the underwater artifact by default.@nick0451 on GitHub · 2026-11-29 16:58 UTC · original
Makes sense, thanks. One thing to weigh alongside: #1935 retranslates exactly these two programs (
CS_TransmissionVolumetrics_Tiledand_Tiled_LocalLights, the only 2 of 25,789 shaders it changes; see my comment there) instead of leaving them out. If someone who sees the close-up/underwater blocks on a 30-series card can confirm #1935 removes them, the lit water could stay on by default and this switch would only be needed as a fallback.🤖 Generated with Claude Code