Underwater: tile-sized blocks from the water's tiled light on an RTX 3070 (8fc22547c); gone with VICTORY_WATER_LIGHT=0 #739
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 CuteBooty on 2026-11-28T04:42:35Z.
Follow-up to #539 (thanks for the fix in .10: the underwater scene is drawn again here). This is a separate, smaller fault that is left, so I am opening a new issue instead of reopening that one.
What I see: under water, rectangular blocks the size of screen tiles where the water's blue haze / light and the un-hazed scene swap: dark or un-hazed blocks with stair-stepped edges across the view at eye level, and flat white cut-out patches on the surface seen from below. Looking down at the sea floor the picture is clean; looking level or up towards the surface it is far worse. Worst under a pier.
With
VICTORY_WATER_LIGHT=0the blocks are gone (I did not compare how bright the water is with and without it).PC: RTX 3070 8 GB (driver 621.24), Ryzen 7 5800X3D, 32 GB, Windows 11. Series S, 1920x1080, diagnostics profile, started with
victory.exe run.64d4931b3+ PR #5608fc22547c8fc22547cVICTORY_WATER_LIGHT=0All three builds carry a few local commits unrelated to the water. In the last run the log has, from the first dive on:
So on this card the blocks come from the two tiled water-light programs (
5dc3b25986622949,6f225b641c5b0708:CS_TransmissionVolumetrics_Tiledand_Tiled_LocalLights), not from926c46bab3b86bd6. The comment inpipeline/make.rsdescribes the same picture for their wave-wide form (whole tiles dark around boats, along shores and under bridges) and says it was fixed, which is why they run by default now; on the 3070 it still shows under water.Limits of this report:
VICTORY_AMBIENT_SPECULAR=0and a texture budget switch were set in the last one), so the switch was not the only change.VICTORY_LEAVE_OUTone at a time),VICTORY_LDS_FIRST_INIT=0,VICTORY_LOOPS_WAVE=0, the water surface from above, Series X, your release exe.GenerateTiles), which may or may not be the same thing.8fc2254in #606.I have screenshots of all three cases (blocks under the pier, the clean sea floor, the clean view with the switch) but am not attaching them; I can describe any of them in more detail, or run one of the switch tests above if you say which is most useful.
Measurements and this report were prepared with an AI assistant (Claude Code); the runs were played on my machine.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-28T04:42:43Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T06:32:03Z.
Thanks for tagging me, and for the clear table.
Before the switch tests, one trap:
VICTORY_LOOPS_WAVEandVICTORY_LDS_FIRST_INITwere not in the shader cache's key. With a warm cache, setting either one changes nothing, because you are served the translations cached without it. #807 adds them to the key. Since you build from source, cherry-picking #807 is the easiest way around it. Without it, run those tests on an empty shader cache: rename%LOCALAPPDATA%\victory\cache\shadersfor the run, or pointVICTORY_CACHE_DIRat an empty folder.In order, the tests that would tell the most:
VICTORY_LEAVE_OUT=5dc3b25986622949(CS_TransmissionVolumetrics_Tiled). Then do another run withVICTORY_LEAVE_OUT=6f225b641c5b0708(_Tiled_LocalLights) instead.VICTORY_LEAVE_OUTacts when pipelines are made, so the cache does not matter here. If you already leave other programs out, keep them in the same comma-separated list.VICTORY_LOOPS_WAVE=0, then once withVICTORY_LDS_FIRST_INIT=0, each with #807 or a fresh cache. These are the two lowerings the open-water fix came from, according to the comment onWATER_LIGHTinpipeline/make.rs. If the blocks change with one of them, that lowering is where the underwater view goes wrong.The same dive under the pier, with a level view, is enough for each run. Once (1) points at one program and (2) at one switch, I'll look at that path in the translator.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by grosterr on 2026-11-28T07:46:48Z.
The same blocks show on the surface too, seen from above, in the open: a dark rectangle with straight edges around objects on the water (a mission marker and the buoy under it, and once under our own boat), standing in the water as a column below the object. They go away with
VICTORY_WATER_LIGHT=0.It is not the paired Wave64 form of #348: the blocks are there with
VICTORY_WAVE_PAIRS=0too (cache warmed for each setting, no misses in the runs).RTX 3060 12 GB (driver 621.40), Ryzen 7 5700X, 32 GB, Windows 11. Main
63b902fwith open PRs on top, Series S, DLSS Quality, FSR 3 frame generation 2x, the boat after the prologue:VICTORY_WATER_LIGHTVICTORY_WAVE_PAIRS🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T08:20:46Z.
Thanks, that narrows it. Off with
VICTORY_WATER_LIGHT=0, and the same with or without the paired form: the blocks come from the water light's own programs.The buoy and the mission marker make a simpler test than the dive. The same two tests as above work there, each run on a fresh shader cache or with #807:
VICTORY_LEAVE_OUT=5dc3b25986622949in one run, thenVICTORY_LEAVE_OUT=6f225b641c5b0708in another.VICTORY_LOOPS_WAVE=0in one run, thenVICTORY_LDS_FIRST_INIT=0in another.A block that stands as a column under an object would fit a tile whose depth range is wrong: tiles where an object stands in front of the water would get it wrong, and the tiles under it too. That is why the program, and then the lowering, would tell where to look.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-28T08:28:35Z.
I can distinguish one underwater artifact on an RTX 4070 Ti SUPER (16 GB, Windows driver 617.42) from the surface rectangle around a buoy. I captured a stepped dark region at the left of the submerged view, then a horizontal band further into the dive. At 2560×1440 into 3840×2160, three edges were already present in the linear scene colour entering DLSS. The bright/dark ratios in the blue channel were 18.10, 21.26 and 20.43 there, and 17.83, 21.23 and 20.53 at the corresponding output positions.
I instrumented compute shader
926c46bab3b86bd6on a local diagnostic build. I prefilled its two 1280×720 outputs and made a direct exit at the translator’s 4,096-iteration guard write the guest loop-head offset into one of them. Five captures paired the dispatch, DLSS evaluation and actual present by guest frame. Across all five:0x101a80x11f80The other output retained its prefill at exactly those groups. In the DLSS input, 1,038 of the 1,039 groups showed the diagnostic colour at their centres. None of the other 70,961 groups did. One dive under the dock had zero hits and both outputs were written throughout. With instrumentation removed, the same kind of step is visible in the natural scene colour.
This gives a specific probe for the submerged steps on this machine. I have not reproduced the buoy test or established why the 3070 changes with
VICTORY_WATER_LIGHT=0. My initial guard-on/off comparison reused shader and pipeline caches, so I’m excluding it as evidence of a visual fix.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by MrEjecutor on 2026-11-28T08:51:43Z.
Test 1 ("which program") on the surface, at the mission marker of the boat mission after the prologue. I ran it last night before seeing the request, so it is on
8fc2254, not63b902f.PC: RTX 5060 Ti 16 GB, Core Ultra 5 225F, 32 GB, Windows 11. Series S, 1920x1080, no DLSS, no frame generation, diagnostics profile, started with
victory.exe run.8fc2254plus two local commits that do not touch the water (a port ofVICTORY_THIN_BAKEand scripted keys).VICTORY_LEAVE_OUTkeeps the two programs the launcher already leaves out; the hash below is added to that list.VICTORY_LEAVE_OUT6f225b641c5b0708(_Tiled_LocalLights)5dc3b25986622949(_Tiled)VICTORY_WATER_LIGHT=0One run each for the second, third and fourth rows. In the second run the log shows no "shader translated" line for
6f225b641c5b0708, so it was really left out.How I read it: the rectangle is the set of tiles the local-lights program shades. Alone, that program lights them. With
_Tiledrunning as well they come out dark, as if its result were lost or written over. So on this card the shading of_Tiled_LocalLightslooks right by itself, and the fault shows only when both run: the split of tiles between the two lists, or_Tiledwriting tiles that are not its own.Three more things from the same night:
GenerateTileson top (cd93552, one slot per lane), the rectangle at the marker is still there (1 run, seen close up). In about 170 captures looked at away from the marker I saw none, against 3 of 18 without it, but those were not the same viewpoints, so I would not count that as an effect.translate --listwithVICTORY_HOST_WAVE=32gives the same emitted hash for both programs with the translator of64d4931and with the one of8fc2254.Not tested: test 2 (
VICTORY_LOOPS_WAVE=0,VICTORY_LDS_FIRST_INIT=0) at the marker: I ran both with those names added to the cache key, but the boat did not pass close enough to the marker to judge. Nothing under water.63b902f. The Series X profile.AI-assisted (Claude Code): the runs and this text; the captures were judged by eye on my PC. No game files attached.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T09:15:19Z.
Thanks, that narrows it a lot, and your reading fits the table:
_Tiled(5dc3b25986622949), the rectangle is lit and the open water is not. So those tiles are_Tiled_LocalLights' tiles, and it shades them right on its own._Tiledeither writes over tiles that are not its own, or gets them in its list.The rectangles standing beside bridge lamps and piers fit that too: those are the tiles a local light touches.
Test 2 would tell whether a wave64 lowering is behind it. A bridge lamp or a pier should be easier to reach than the marker:
VICTORY_LOOPS_WAVE=0in one run, thenVICTORY_LDS_FIRST_INIT=0in another. Each needs the name added to the cache key (as you did), or a fresh cache.If one of them makes the rectangle lit with both programs on, the fault is in how that lowering translates the split of tiles between the two lists.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by grosterr on 2026-11-28T10:32:00Z.
Test 2 on the surface, at the buoy and mission marker of the boat mission after the prologue. Water light on, both programs on, each run on its own warmed cache (#807 is in this build, so both names are in the key; no misses in any run).
RTX 3060 12 GB (driver 621.40), Ryzen 7 5700X, 32 GB, Windows 11. Main
63b902fwith open PRs on top (#807 and #857 among them), Series S, DLSS Quality, FSR 3 frame generation 2x.VICTORY_WAVE_PAIRS0, and unset11VICTORY_LOOPS_WAVE=01VICTORY_LOOPS_WAVE=0+VICTORY_LDS_FIRST_INIT=0So neither switch makes the rectangle lit. With
VICTORY_LOOPS_WAVE=0the fault spreads to tiles all over the water and changes from frame to frame. (The two switch runs hadVICTORY_WAVE_PAIRS=1;_GenerateTilesuses no LDS and is translated the same way with or without it.)How
_GenerateTiles(1aa247ed3653b616, wave64, 8x8 threads) is translated here, withVICTORY_WAVE_WHY=1andVICTORY_WAVE_PAIRSunset:In its code the split is an if/else after the per-tile loop over the lights.
v_cmpx_eq_u32 exec, 0, v10(no local light) appends the tile at offset 0 of the counter buffer, ands_andn2_b64 exec, s[0:1], exec(the rest) appends it at offset 32. Each side usess_ff1/s_bcnt1of the 64-lane exec, onebuffer_atomic_add,v_readfirstlaneandv_mbcnt. A tile in both lists, or an index taken from the other half-wave's count, would give what the tables show. The form it lands in, "without skips", is the one I am looking at next.A correction to my earlier comment: the rectangle is not from the paired Wave64 form of #348, but the dark open water on our build was. With
VICTORY_WAVE_PAIRS=1that form is tried first for every wave64 compute program that uses LDS, even one that already translates, so the water light's LDS programs lose main's lowering. Unset or0, the open water is blue. I will change that in #348 so that the paired form is only the fallback.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T10:51:48Z.
That is the place, and your reading of
_GenerateTilesis precise. Each side of the split is the allocation idiom on 64 lanes:s_bcnt1of the 64-lane exec gives the count;buffer_atomic_addreserves that many;v_readfirstlanehands out the base;v_mbcntgives each lane its place.On two host waves of 32 it only holds if those agree on one console wave. The count, the single atomic and the base must cover both halves, and the upper half's
v_mbcntmust count the lower half's active lanes too. If one of those is done per half, two tiles get the same index, or a tile goes into both lists. WithVICTORY_LOOPS_WAVE=0it would also change from frame to frame with which lanes run, as you saw.That could be checked without the game, in
crates/victory-shader/src/emit/wave64_tests.rs. #822'sfull_lds_local_wave_lds_atomic_allocation_lowers_to_wave32has the shape for running a synthetic wave64 program on the card. Make a program with your if/else:v_cmpxto one side;s_andn2_b64 execto the other;buffer_atomic_addat offsets 0 and 32.Lowered "without skips", the test checks that no lane lands in both lists, no index repeats, and the two counts add up to the lanes that ran.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by grosterr on 2026-11-28T11:11:21Z.
I ran that test before seeing your comment, and the split holds on the card.
The program is the shape of
_GenerateTiles: 64 lanes, one per tile. Tiles without water leave at once (v_cmpx_ne_u32ands_cbranch_execz). The others look for a light in a loop that each lane leaves on its own, with a buffer load in the body. Then the if/else:v_cmpx_eq_u32to one side ands_andn2_b64 exec, s[0:1], execto the other. Each side appends its lane with the idiom (s_ff1/s_bcnt1of exec, onebuffer_atomic_addat offset 0 or 32,v_readfirstlane,v_mbcntlo/hi). The second list grows down from the end of the same buffer throughv_xad_u32, as in the game.It goes through
super::emitwithTEST_HOST_WAVE=32and lands in the same form as the game's program, with the same threeVICTORY_WAVE_WHYlines:The test ran 200 random cases on the RTX 3060, with water in 100, 90, 50 and 10 % of the tiles and a random light and loop limit per lane. In every case each tile that ran is in exactly one list, the right one. No index repeats, and the two counts add up to the lanes that ran. The result is the same with
VICTORY_LOOPS_WAVE=0.That fits MrEjecutor's run with
cd93552, where the rectangle stayed. So the steady rectangle is not the split in this form. That leaves_Tiled(5dc3b25986622949) writing the local-light tiles itself.Two limits. It is one thread group per dispatch, and it does not show the frame-to-frame slabs we see with
VICTORY_LOOPS_WAVE=0, since it passes either way. Main's own note at the skip at 0x2da8 around_Tiled's slice loop describes dark tiles that move from frame to frame, so the slabs may well come from_Tiledtoo.The test is
crates/victory-shader/src/emit/water_tiles_tests.rson our local branch (ignored, it needs the card). I can open it as a pull request if it would help.🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by kibagami-nc on 2026-11-28T11:20:55Z.
That settles the split, thanks. 200 random cases with each tile in exactly one list is a clean answer. Yes, please open the test as a pull request: it keeps that lowering honest if it ever changes.
For
_Tiled, main already has a note on one of its loops, incrates/victory-shader/src/ir.rs, abovestalls:With
VICTORY_LOOPS_WAVE=0it is no longer taken wave-wide, which fits your slabs along the horizon that move every frame.The steady rectangle is the other half. With the lists right,
_Tiledmust reach the local-light tiles another way. Two ways would fit:_Tiled_LocalLightsreads something of_Tiled's for its own tiles and finds nothing there, because_Tilednever ran them.What each program writes and reads would tell which.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by grosterr on 2026-11-28T13:17:51Z.
The steady dark rectangle at the buoy is gone with #888 on top of our build.
RTX 3060 12 GB (driver 621.40), Ryzen 7 5700X, 32 GB, Windows 11. Main
63b902fwith open PRs (#348 with5df24f4among them), Series S, DLSS Quality K, FSR 3 frame generation 2x, water light on,VICTORY_WAVE_PAIRSunset. Same route as before: the boat at the buoy and mission marker. Open water blue, faces normal, no dark tiles at the buoy or the boats.How it was narrowed down, without the game first. I built main and main plus each of #981, #978, #845, #888 and #894, and translated the 11 TransmissionVolumetrics programs with
VICTORY_HOST_WAVE=32:5dc3b25986622949_Tiled6f225b641c5b0708_Tiled_LocalLightsf3d455772406917d7e782f4a7775a75cdcab0e9597c8a532d80c2e8301dae3f5(#978 and #894 change only
Submerged926c46bab3b86bd6; the other eight programs are the same in every build.)With #888,
VICTORY_WAVE_WHYshows four moreWAVE64-SKIP keptlines for_Tiled(0x478, 0x760, 0x3250, 0x36f0) and a sixth branch taken wave-wide (B11). Three of those skips guard per-lane slice loops:Without the skip, a host half of 32 lanes none of which passes the compare enters the loop with empty EXEC, runs to the loop bound, and leaves before the program's last 2D image stores (0x3814–0x382c), so those pixels keep what was there. A tile half covered by the buoy (or a boat) is such a half every frame, which fits a rectangle that does not move or flicker.
So of your two readings it was neither the lists nor a write past the tile:
_Tiledran its tiles but some host halves never got to their stores.With #888 three programs of
amd_fidelityfx_upscaler_xbox.dllno longer translate (477b52e73ddeb6f2,8b437ab61d8008fe,17af85f170e66f30: "a lane mask exchanged where not every lane runs" at 0x218); 206 shaders do not translate instead of 203. None of them shows in our runs' logs with DLSS, so I did not see an effect, but someone on the game's own upscaler might.I will open the GenerateTiles test as a pull request, as you suggested.
AI-assisted (Claude Code): the run was judged by eye on my PC, and Claude wrote this text. No game files attached.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-28T13:52:10Z.
Thanks, @grosterr, for testing #888 at the buoy on your RTX 3060. My 4070 Ti SUPER test covered the submerged shader with DLSS, so your run adds a surface case. Could you share the before-and-after translator log lines for the three FidelityFX shaders that now fail at
0x218? I’d like to track that regression on #888.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by grosterr on 2026-11-28T17:07:29Z.
@Yoshi-233 here they are.
translate --list --jobs 1overamd_fidelityfx_upscaler_xbox.dllwithVICTORY_HOST_WAVE=32,VICTORY_WAVE_WHY=1andVICTORY_TRANSLATE_ONLY=477b52e73ddeb6f2, main63b902fagainst main + #888 (the same on our nv4 tree):main
63b902f:main + #888 (the first pass; the whole chain then runs once more, the same, in main's retry without
VICTORY_LOOPS_WAVE):So with #888 the skip at 0x178 is kept, and then the wave-wide form, which main reached with one back edge widened (B6), stops at 0x218 because not every lane runs there any more.
8b437ab61d8008feand17af85f170e66f30fail at the same 0x218 with the same message, and translate on main (main's digests:fdfaca7799b049fb,7329ec6ddad75667).MrEjecutor's retry above (translate once more with the old walk when the program does not translate with the guards kept) would bring these three back without touching the water programs, since
_Tiledand_Tiled_LocalLightsdo translate with the guards kept.None of the three shows in our play logs with DLSS on, so this is a regression only for runs on the title's own upscaler.
🤖 Generated with Claude Code
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by tippythetaidum on 2026-11-28T18:43:01Z.
Same on a desktop RTX 5080 (driver 621.14, 32-lane), Ryzen 7 9800X3D, 32 GB, Windows 11 26200. Main
9300875plus #393, #1014, #1197, #1264 and #1271, Series X 2560x1440, DLSS Performance, frame generation 4x.VICTORY_WATER_LIGHTis unset (on by default since64d4931).It happened in the "Bachelor Party" dive. A picture was saved every 20 s; 5 of about 16 underwater pictures show it:
Looking down at the reef and the sea floor, the picture was clean, as you describe. Every picture on the surface was clean.
Two more things from the same dive, in case they're related:
a10179ab7eda0dc3and6b82bc7d22016cb5at start (no wave32 lowering).I haven't tried
VICTORY_WATER_LIGHT=0here yet. I'll run the same dive with it and report.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-29T02:27:05Z.
Thanks @grosterr for the before-and-after logs. On
63b902f, the wave-wide retry widens the B6 back edge and emits477b52e73ddeb6f2. With #888 it keeps the branch at0x178and that retry also stops at0x218. I’ve added all three hashes to the discussion on #888. Since none appeared in your DLSS play logs, the title’s own upscaler is the in-game configuration to check for this regression. Follow-up on #888Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dheerajc8073 on 2026-11-29T03:12:06Z.
Submitted PR #1926 addressing this:
crates/victory-gpu/src/pipeline/make.rs,water_light_left_outcheckedv == "0"to leave the shaders out, which defaulted to keeping them enabled whenVICTORY_WATER_LIGHTwas unset. In addition, the F1 menu item incrates/victory-gpu/src/host/menu.rsdefaulted to[("", "ON"), ("0", "OFF")].make.rsandmenu.rswith theREADME.mdspecification: on 32-lane hosts, water light shaders are left out by default unlessVICTORY_WATER_LIGHT=1is explicitly set (or turned ON in the F1 menu). This resolves the dark tile blocks underwater and on the surface out of the box, restores 5–15 fps on NVIDIA cards, while keeping opt-in testing (VICTORY_WATER_LIGHT=1) intact.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-29T19:49:53Z.
Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.
If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!