GPU: leave out water light by default on 32-lane wave hosts (#739) #1926
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dheerajc8073 on 2026-11-29T03:06:45Z.
Fixes #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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-29T03:54:14Z.
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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dheerajc8073 on 2026-11-29T16:56:48Z.
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-29T16:58:52Z.
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