Colour banding in some launches on an RTX 5060 Ti (not tied to MERGE_GAP or the opt-ins, see re-test) #1200
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 fxceless/victory-fork. Originally posted by MrEjecutor on 2026-11-25T23:57:02Z.
Setup: RTX 5060 Ti 16 GB (Blackwell, 32-lane waves), Core Ultra 5 225F, 32 GB, Windows 11. Build:
d827419, diagnostics profile, plus a local patch that only feeds scripted keys to the pad. Switches: run 279's set from the README (run 253's list plusVICTORY_CARD_WINDOWS_MB=2048 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1280 VICTORY_TEXTURE_BACK=1 VICTORY_CARD_HASH_LEN=1) andVICTORY_SHADER_LOOP_LIMIT=256. Two 900 s runs, one right after the other, the same scripted walk through the prologue (warm cache), one with and one without the two merge switches:MERGE_GAP/MERGE_RUNSWhat changed on screen: with the two switches, smooth gradients (sky, lit walls, fog, skin) came out as flat colour bands, like a picture with too few colours, and hair often looked grey. Without them, the same scenes are smooth and hair has its colour. An earlier run with the full set, played by hand rather than scripted, did not show the banding as strongly, so it may depend on what is on screen.
This fits the README's own warning that the merge over small gaps is not exact. On this card, at least, it does not pay for itself.
Still there without them: characters lit from behind come out almost black (a close-up of a face against a window, figures in the common room). That is not the merge switches.
Not tested: more than one run per side, other GPUs, and which of the two switches alone causes the banding. No captures attached (nothing from the title leaves this machine).
AI use: runs, numbers and this text were done with Claude Code; the owner of the machine watched the runs.
Imported from fxceless/victory-fork. Originally posted by MrEjecutor on 2026-11-26T00:42:23Z.
Follow-up on the same RTX 5060 Ti, now on
d3e4988, with the same scripted walk (900 s, warm cache), the run 279 set withoutMERGE_GAP/MERGE_RUNS:VICTORY_LIGHT_REFRESH=1 VICTORY_STEP_INDEX=1 VICTORY_FILLS_PLAIN=1 VICTORY_CARD_HASH_WIDE=1d3e4988itself is a clear step up here fromd827419(4.2 to 4.5 fps median, and the worst tenth of frames from 1.2 to 2.4 fps).With the four opt-ins on, the colour banding came back: the same flat bands over smooth gradients (fog, walls, faces) that
MERGE_GAP=64gave in the first report, in the same rooms that were clean without them. I did not split the four, so I cannot say which one does it; my guess would be one of the refresh shortcuts (LIGHT_REFRESH), since the banding looks like stale data feeding the lighting, but that is a guess.Not tested: each opt-in on its own,
altvalues, more than one run per side.AI use: runs, numbers and this text were done with Claude Code.
Imported from fxceless/victory-fork. Originally posted by Garu667 on 2026-11-26T06:24:49Z.
Think I can narrow your four down 🙂 On an RTX 3080 (
be721d5, boat mission) I turned onVICTORY_CARD_HASH_WIDE=1alone (no LIGHT_REFRESH / STEP_INDEX / FILLS_PLAIN) and got exactly that banding: flat bands over the sky and in cutscenes, ~44k distinct colours per capture vs ~94k with it off, same scene. FwiwMERGE_GAP=64/MERGE_RUNS=4096are on in all my runs and the picture is clean without HASH_WIDE, so on this card the merge switches aren't it. Details on6d20eed. Thanks for the careful runs btw!Imported from fxceless/victory-fork. Originally posted by Garu667 on 2026-11-26T06:55:24Z.
Update: the banding needs
VICTORY_CARD_HASH_WIDE=1together withVICTORY_CARD_HASH_LEN=1. WithHASH_WIDE=1 HASH_LEN=0the picture is clean on the RTX 3080 (~107k colours per capture vs ~44k banded) and the card's compare/hash lists stay fast (3.4 + 1.5 ms). Table on6d20eed.Imported from fxceless/victory-fork. Originally posted by Garu667 on 2026-11-26T07:22:41Z.
Correction: I could not reproduce the banding with
VICTORY_CARD_HASH_WIDE=1afterwards. Three more runs on the 3080 with it (HASH_LEN0 or 1, per-pipeline meter on or off) are all clean, so my one banded run looks like a bad launch, not the switch. Sorry about that. If you split your four opt-ins one at a time,HASH_WIDEalone might well come out clean too. Table on6d20eed.Imported from fxceless/victory-fork. Originally posted by MrEjecutor on 2026-11-26T07:38:42Z.
Thanks for chasing this, and for the correction. It made me recheck our own side, and our evidence is weaker than the first post reads:
MERGE_GAPrun and the clean run without it were one launch each, back to back.d827419, the full run 279 set withMERGE_GAP=64, played by hand rather than scripted) showed no banding at all.So on this RTX 5060 Ti it may also be per launch rather than per switch, which fits what you saw. I will re-test before claiming anything: several launches of each case on the same build and scene (with
MERGE_GAP, without it, and the four opt-ins one at a time), counting distinct colours per capture as you did, and post the table here.Not tested yet: everything above beyond the single runs already reported.
AI use: the analysis and this text were done with Claude Code.
Imported from fxceless/victory-fork. Originally posted by Garu667 on 2026-11-26T08:19:26Z.
Thanks, that plan sounds right. For comparison, on the RTX 3080 the posterized look showed up in 1 launch out of ~10 on the same build and scene (
46bf535, boat mission), with switches that were clean in the other launches. Method, in case it helps keep the tables comparable: distinct RGB colours over a full capture (VICTORY_CAPTURE_WORLD_EVERY=64), last 6 captures of a ~3 min standing run; clean runs sat at ~94k-107k here, the bad one at ~44k.[GH #1203] MERGE_GAP=64 / MERGE_RUNS=4096: colour banding on an RTX 5060 Ti, and faster without themto [GH #1203] Colour banding in some launches on an RTX 5060 Ti (not tied to MERGE_GAP or the opt-ins, see re-test)Imported from fxceless/victory-fork. Originally posted by MrEjecutor on 2026-11-26T09:10:25Z.
Re-test as promised. Same RTX 5060 Ti, one build (
988aa41plus a local patch that only feeds scripted keys to the pad), the run 279 set, the same scripted walk through the prologue, 600 s each, warm cache, one launch after another:MERGE_GAP=64 MERGE_RUNS=4096)MERGE_GAP/MERGE_RUNSVICTORY_LIGHT_REFRESH=1VICTORY_STEP_INDEX=1VICTORY_FILLS_PLAIN=1VICTORY_CARD_HASH_WIDE=1"Banding" was judged by eye on captures taken at the same two moments of every launch (a lit room at about 330 s and a sunset view at about 470 s): smooth gradients in all eight. In the banded launches we saw before, every capture of the launch was banded, so two moments are enough to see it.
So neither claim in this issue holds up here.
MERGE_GAPdoes not cause the banding and the four opt-ins do not either. "Faster withoutMERGE_GAP" was also a single-launch difference; with repeats it is within the spread (4.8 and 3.9 with it, 4.7 and 4.8 without). This matches what @Garu667 found: banding in some launches only, whatever the switches. I have retitled the issue so it does not mislead.On distinct colours per capture: on our captures that count followed the scene (dark rooms have few colours) more than the banding, so I compared captures from the same moment instead.
Not tested: how often a banded launch happens here (it showed up in 2 of about 30 launches of this fork over the last two days, across several builds and switch sets), or what triggers it.
AI use: runs, comparison and this text were done with Claude Code.
Imported from fxceless/victory-fork. Originally posted by Garu667 on 2026-11-26T09:33:17Z.
Thanks for the careful re-test, that settles it. Same picture on the RTX 3080: posterized launches in about 1 of 12 so far (
46bf535andf6a09d3), whatever the switches, and every capture of that launch is banded, as you saw. Fair point on the colour count following the scene; comparing captures from the same moment is the better check. If either of us catches another banded launch, the log of that launch next to a clean one on the same build might show what differs at start-up.Imported from fxceless/victory-fork. Originally posted by imikwy on 2026-11-27T14:13:18Z.
Per-launch colour banding: narrowed to one shader-written buffer kept as a two-sided card copy
Cross-reference for fxceless/victory-fork#1203. Same symptom: the picture is either banded or clean for a whole launch, gradients (sky, walls, fog, skin) collapse to flat steps. Below is what we measured, what we ruled out with tests, and what is still open. Please check whether your banded launches fit the same mechanism.
Setup
c3e5c375) plus local changes. One of these local changes is an exact wave64 form for 22 scene programs ("packed": one host wave32 carries console lanes i and i+32), so the cool_fox wave64 approximation is ruled out as the cause (see below).VICTORY_CARD_BUFFERS_MB=2048,VICTORY_LEVELS_ON_DEMAND=0,VICTORY_RELAY=2,VICTORY_UPLOAD_AHEAD=1,VICTORY_TEXTURE_NO_WAIT=1,VICTORY_THIN=1,VICTORY_CARD_STEPS=2,VICTORY_JOIN_COPIES=1,VICTORY_RELAY_COPY=1,VICTORY_CARD_REHASH_RUNS=1,VICTORY_WIDE_BACK=1,VICTORY_JOIN_PARTS=8. Same Series X dump in every run.VICTORY_CARD_BUFFERS_MIN_KB=64(the launcher value) and also with 1024 or 2048. WithVICTORY_CARD_BUFFERS_MIN_KB=4096, 4/4 launches were clean (fps drops from about 15 to about 10–12).How we measure (quick test, about 2 minutes per launch)
VICTORY_DUMP_TARGETS=1 VICTORY_CAPTURE_WORLD=1 VICTORY_CAPTURE_ASKED_ONLY=1: dumps the render targets of the 2nd, 6th, 30th, ... world frame (only frames with at least 500 draws, never menus or loading screens).7affbd5bbaa830f3, pixel6318f669e4f17d65, HDR f10 to 1920x1080 f24) by the share of equal neighbouring pixels, and take the median over the dumped frames. Clean: below 0.13 (typically 0.09–0.12). Banded: above 0.15 (typically 0.18–0.29). Calibrated against launches the owner judged by eye; every verdict below was also confirmed by eye.Finding: the trigger is title buffer 0xaf8c60000 (len 2073600) when it is a two-sided card copy
CARD_BUFFERS_MIN_KBa title buffer gets one copy in shared PC memory. At or above it, it gets a two-sided copy: a VRAM buffer plus a CPU-side staging copy, synchronised by hash compare, copy-back and refresh.VICTORY_CARD_BUFFERS_MIN_KBand a size window that keeps a range of buffers one-sided left one buffer at 2–4 MiB:0xaf8c60000, len 2073600. Only that buffer on the card below 4 MiB (checked in the log line "a buffer's host copy is in the card's memory start=0xaf8c60000 len=2073600"): banded (q60, q66, q73). Everything below 4 MiB one-sided: clean.0x98a9e9e00, 4 MiB, read-only), which was in fact also on the card in the clean MIN_KB=4096 launches. Check the log lines, not the sizes.0xaf8c60000: one compute chain in a single command list, entirely on the GPU, with no CPU step in between (from the per-frame op dumps). It looks like the auto-exposure / luminance histogram, which would explain banding through a wrong exposure value fed to the tone map.0a5ecfee6b79e13band5cf00dc39042edaf, dispatch 160x90 (1920x1080 / 12): UAVs on a 52-byte counter, on0xaf8c60000and on0xaf8b00000+0x151800.495c6013589afd60, 1x1x1: builds the arguments of the two indirect dispatches from the counter.559d9f0184e15fe3(indirect),495c6013589afd60again, then0ea6fac38d096770(indirect).0xaf8b00000stay one-sided (they are below the threshold). Only0xaf8c60000is on the card.Ruled out by tests
Each line is a quick-test series. "Banded" means at least one banded launch in the series, confirmed by eye.
VICTORY_CARD_REFRESH_ALL=1: every carded copy up to 8 MiB taken whole from title memory and sent up whole at every refresh (580 MB of copies per frame)host/place.rs)VICTORY_COPIES_IN_PLACE=0CARD_REHASH_RUNS=0, RELAY_COPY=0, JOIN_COPIES=0, CARD_STEPS=0, WIDE_BACK=0togetherVICTORY_LATE_WAIT=0, SEND_OWN=0, LAND_ECHO=0(fully synchronouscard_back/card_mergepath)VICTORY_CARD_WHOLE_FIRST=1VICTORY_LIGHT_REFRESHoff,VICTORY_CBV_FULL=1So the trigger is not missing or stale uploads, not the switch set, and not the async layer. It is the base two-sided protocol for a buffer that shaders write, and it goes wrong only in some launches.
Code observations (read, not yet proven)
ExecuteCommandListsas the title's UAV writes, with only a null UAV barrier between them, and the sync list transitions it to NON_PIXEL explicitly. One-sided copies have no such pass.559d9f01was missing in early world frames while the rest of the chain ran. The chain is incomplete in a different way in each launch, and a two-sided copy may then lock in a wrong state that a one-sided copy would correct.Workaround
VICTORY_CARD_BUFFERS_EXCEPT=0xaf8c60000keeps only this buffer one-sided, at almost no fps cost. Caveat: in one earlier launch withCARD_BUFFERS_MIN_KB=1024, banding appeared although this buffer was excluded, so more buffers of the same kind (shader-written, 1–2 MiB) may exist.CARD_BUFFERS_MIN_KB=4096is clean for us but slower. The address may differ on other dumps: take it from the log line above.Next experiments (ours)
shared_bufferinstead ofuav_bufferincard_room_for). Clean means VRAM or execution (barriers, states). Banded means the protocol itself.0xaf8c60000at rest, in a clean and in a banded launch.Asks
0xaf8c60000(or the buffer your log shows for the same chain, by length 2073600) "in the card's memory"? DoesVICTORY_CARD_BUFFERS_EXCEPT=<that start>keep 20–30 launches in a row clean?0a5ecfee6b79e13b,5cf00dc39042edaf,495c6013589afd60,559d9f0184e15fe3,0ea6fac38d096770) differ between your clean and banded launches?