Colour banding in some launches on an RTX 5060 Ti (not tied to MERGE_GAP or the opt-ins, see re-test) #1200

Open
opened 2026-11-25 23:57:02 +00:00 by MrEjecutor · 9 comments
MrEjecutor commented 2026-11-25 23:57:02 +00:00 (Migrated from github.com)
Contributor

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 plus VICTORY_CARD_WINDOWS_MB=2048 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1280 VICTORY_TEXTURE_BACK=1 VICTORY_CARD_HASH_LEN=1) and VICTORY_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:

with MERGE_GAP/MERGE_RUNS without
first world frame 79 s 56 s
world frame time, median 270 ms (3.7 fps) 236 ms (4.2 fps)
10th percentile fps 0.9 1.2
90th percentile fps 5.8 5.8
draws per frame, mean 3,731 3,955
device removed no no

What 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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6616265841 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203). Originally posted by [MrEjecutor](https://github.com/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 plus `VICTORY_CARD_WINDOWS_MB=2048 VICTORY_CARD_BUFFERS_MIN_KB=64 VICTORY_CARD_BUFFERS_MB=1280 VICTORY_TEXTURE_BACK=1 VICTORY_CARD_HASH_LEN=1`) and `VICTORY_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: | | with `MERGE_GAP`/`MERGE_RUNS` | without | |---|---:|---:| | first world frame | 79 s | 56 s | | world frame time, median | 270 ms (3.7 fps) | 236 ms (4.2 fps) | | 10th percentile fps | 0.9 | 1.2 | | 90th percentile fps | 5.8 | 5.8 | | draws per frame, mean | 3,731 | 3,955 | | device removed | no | no | What 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.
MrEjecutor commented 2026-11-26 01:06:17 +00:00 (Migrated from github.com)
Author
Contributor

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 without MERGE_GAP/MERGE_RUNS:

without the four new opt-ins with VICTORY_LIGHT_REFRESH=1 VICTORY_STEP_INDEX=1 VICTORY_FILLS_PLAIN=1 VICTORY_CARD_HASH_WIDE=1
world frame time, median 222 ms (4.5 fps) 229 ms (4.3 fps)
10th percentile fps 2.4 0.8
preparing, median 82 ms 82 ms
device removed no no

d3e4988 itself is a clear step up here from d827419 (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=64 gave 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, alt values, more than one run per side.

AI use: runs, numbers and this text were done with Claude Code.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7179032111 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203#issuecomment-7179032111). Originally posted by [MrEjecutor](https://github.com/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 without `MERGE_GAP`/`MERGE_RUNS`: | | without the four new opt-ins | with `VICTORY_LIGHT_REFRESH=1 VICTORY_STEP_INDEX=1 VICTORY_FILLS_PLAIN=1 VICTORY_CARD_HASH_WIDE=1` | |---|---:|---:| | world frame time, median | 222 ms (4.5 fps) | 229 ms (4.3 fps) | | 10th percentile fps | 2.4 | 0.8 | | preparing, median | 82 ms | 82 ms | | device removed | no | no | `d3e4988` itself is a clear step up here from `d827419` (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=64` gave 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, `alt` values, more than one run per side. AI use: runs, numbers and this text were done with Claude Code.
Garu667 commented 2026-11-26 07:03:53 +00:00 (Migrated from github.com)
Author
Contributor

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 on VICTORY_CARD_HASH_WIDE=1 alone (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. Fwiw MERGE_GAP=64/MERGE_RUNS=4096 are on in all my runs and the picture is clean without HASH_WIDE, so on this card the merge switches aren't it. Details on 6d20eed. Thanks for the careful runs btw!

<!-- greyfinch-sync:fxceless/victory-fork:comment:7184404309 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203#issuecomment-7184404309). Originally posted by [Garu667](https://github.com/Garu667) on 2026-11-26T06:24:49Z. --- Think I can narrow your four down 🙂 On an RTX 3080 (`be721d5`, boat mission) I turned on **`VICTORY_CARD_HASH_WIDE=1` alone** (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. Fwiw `MERGE_GAP=64`/`MERGE_RUNS=4096` are on in all my runs and the picture is clean without HASH_WIDE, so on this card the merge switches aren't it. Details on 6d20eed. Thanks for the careful runs btw!
Garu667 commented 2026-11-26 07:03:54 +00:00 (Migrated from github.com)
Author
Contributor

Imported from fxceless/victory-fork. Originally posted by Garu667 on 2026-11-26T06:55:24Z.


Update: the banding needs VICTORY_CARD_HASH_WIDE=1 together with VICTORY_CARD_HASH_LEN=1. With HASH_WIDE=1 HASH_LEN=0 the 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 on 6d20eed.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7184916173 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203#issuecomment-7184916173). Originally posted by [Garu667](https://github.com/Garu667) on 2026-11-26T06:55:24Z. --- Update: the banding needs `VICTORY_CARD_HASH_WIDE=1` **together with** `VICTORY_CARD_HASH_LEN=1`. With `HASH_WIDE=1 HASH_LEN=0` the 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 on 6d20eed.
Garu667 commented 2026-11-26 08:04:56 +00:00 (Migrated from github.com)
Author
Contributor

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=1 afterwards. Three more runs on the 3080 with it (HASH_LEN 0 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_WIDE alone might well come out clean too. Table on 6d20eed.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7185390111 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203#issuecomment-7185390111). Originally posted by [Garu667](https://github.com/Garu667) on 2026-11-26T07:22:41Z. --- Correction: I could not reproduce the banding with `VICTORY_CARD_HASH_WIDE=1` afterwards. Three more runs on the 3080 with it (`HASH_LEN` 0 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_WIDE` alone might well come out clean too. Table on 6d20eed.
MrEjecutor commented 2026-11-26 08:04:56 +00:00 (Migrated from github.com)
Author
Contributor

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:

  • The banded MERGE_GAP run and the clean run without it were one launch each, back to back.
  • An earlier run on the same build (d827419, the full run 279 set with MERGE_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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7185678851 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203#issuecomment-7185678851). Originally posted by [MrEjecutor](https://github.com/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: - The banded `MERGE_GAP` run and the clean run without it were one launch each, back to back. - An earlier run on the same build (`d827419`, the full run 279 set with `MERGE_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.
Garu667 commented 2026-11-26 09:08:03 +00:00 (Migrated from github.com)
Author
Contributor

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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7186455760 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203#issuecomment-7186455760). Originally posted by [Garu667](https://github.com/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.
upstream-sync changed title from [GH #1203] MERGE_GAP=64 / MERGE_RUNS=4096: colour banding on an RTX 5060 Ti, and faster without them to [GH #1203] Colour banding in some launches on an RTX 5060 Ti (not tied to MERGE_GAP or the opt-ins, see re-test) 2026-11-26 10:06:42 +00:00
MrEjecutor commented 2026-11-26 10:06:45 +00:00 (Migrated from github.com)
Author
Contributor

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 (988aa41 plus 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:

Launch Switches World fps, median Banding
1 run 279 set (with MERGE_GAP=64 MERGE_RUNS=4096) 4.8 none
2 same 3.9 none
3 without MERGE_GAP/MERGE_RUNS 4.7 none
4 same 4.8 none
5 without merge, plus VICTORY_LIGHT_REFRESH=1 4.3 none
6 without merge, plus VICTORY_STEP_INDEX=1 4.6 none
7 without merge, plus VICTORY_FILLS_PLAIN=1 4.5 none
8 without merge, plus VICTORY_CARD_HASH_WIDE=1 4.2 none

"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_GAP does not cause the banding and the four opt-ins do not either. "Faster without MERGE_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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7187535532 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203#issuecomment-7187535532). Originally posted by [MrEjecutor](https://github.com/MrEjecutor) on 2026-11-26T09:10:25Z. --- Re-test as promised. Same RTX 5060 Ti, one build (`988aa41` plus 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: | Launch | Switches | World fps, median | Banding | |---|---|---:|---| | 1 | run 279 set (with `MERGE_GAP=64 MERGE_RUNS=4096`) | 4.8 | none | | 2 | same | 3.9 | none | | 3 | without `MERGE_GAP`/`MERGE_RUNS` | 4.7 | none | | 4 | same | 4.8 | none | | 5 | without merge, plus `VICTORY_LIGHT_REFRESH=1` | 4.3 | none | | 6 | without merge, plus `VICTORY_STEP_INDEX=1` | 4.6 | none | | 7 | without merge, plus `VICTORY_FILLS_PLAIN=1` | 4.5 | none | | 8 | without merge, plus `VICTORY_CARD_HASH_WIDE=1` | 4.2 | none | "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_GAP` does not cause the banding and the four opt-ins do not either. "Faster without `MERGE_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.
Garu667 commented 2026-11-26 10:06:46 +00:00 (Migrated from github.com)
Author
Contributor

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 (46bf535 and f6a09d3), 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.

<!-- greyfinch-sync:fxceless/victory-fork:comment:7188145738 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203#issuecomment-7188145738). Originally posted by [Garu667](https://github.com/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 (46bf535 and f6a09d3), 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.
imikwy commented 2026-11-27 14:13:18 +00:00 (Migrated from github.com)
Author
Contributor

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

  • RTX 5070 Laptop, 8 GB (Blackwell, 32-lane waves), 32 GB RAM, Windows 11, hybrid laptop (the RTX is used).
  • Base: cool_fox line (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).
  • Launcher-style set: 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.
  • Rate here: banded in about 1 of 2 launches with VICTORY_CARD_BUFFERS_MIN_KB=64 (the launcher value) and also with 1024 or 2048. With VICTORY_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)

  • The banding is decided while loading and is already visible from the 2nd world frame on, so a launch only needs about 25 s in the world.
  • 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).
  • We score the output of the tone-map draw (vertex 7affbd5bbaa830f3, pixel 6318f669e4f17d65, 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.
  • Banded tone-map outputs had about 3,800–4,300 distinct colours against about 88,000 in clean ones. The tone map itself, its LUTs and its curve inputs hashed identically in clean and banded launches: the wrong input comes from earlier in the frame.

Finding: the trigger is title buffer 0xaf8c60000 (len 2073600) when it is a two-sided card copy

  • Below CARD_BUFFERS_MIN_KB a 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.
  • Size bisection with VICTORY_CARD_BUFFERS_MIN_KB and 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.
  • Trap we fell into: the card threshold compares the size rounded up to 64 KiB, so a 2025 KiB buffer counts as 2048 KiB. A size window on the exact length missed it, and for a while we blamed a different buffer (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.
  • What writes 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.
    1. 0a5ecfee6b79e13b and 5cf00dc39042edaf, dispatch 160x90 (1920x1080 / 12): UAVs on a 52-byte counter, on 0xaf8c60000 and on 0xaf8b00000+0x151800.
    2. 495c6013589afd60, 1x1x1: builds the arguments of the two indirect dispatches from the counter.
    3. 559d9f0184e15fe3 (indirect), 495c6013589afd60 again, then 0ea6fac38d096770 (indirect).
  • The counter and 0xaf8b00000 stay one-sided (they are below the threshold). Only 0xaf8c60000 is 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.

Hypothesis Test Result
wave64 approximation of cool_fox exact packed wave64 form for 22 scene programs still banded
stale data in the card copy (write-watch stamps, page hashes, partial 64 KiB edge pages, ranged refresh) new switch 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) still banded (q55)
copies landed in place (host/place.rs) VICTORY_COPIES_IN_PLACE=0 still banded (q50)
launcher card switches CARD_REHASH_RUNS=0, RELAY_COPY=0, JOIN_COPIES=0, CARD_STEPS=0, WIDE_BACK=0 together clean, clean, then banded (q64–q66)
async relay / landing / echo layer VICTORY_LATE_WAIT=0, SEND_OWN=0, LAND_ECHO=0 (fully synchronous card_back / card_merge path) still banded (q73)
first refresh of a card copy not whole VICTORY_CARD_WHOLE_FIRST=1 still banded
light refresh, CBV tail rounding VICTORY_LIGHT_REFRESH off, VICTORY_CBV_FULL=1 still banded
loose windows plus a second card copy over the same memory rule that keeps no card copy over a window still banded
at rest the card side and the CPU side differ three-sides check (card vs CPU side vs title memory, per 64 KiB piece) card and CPU side always agree, in clean and banded launches

So 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)

  • The compare pass reads the carded buffer as a root SRV in the same ExecuteCommandLists as 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.
  • On copy-back, the reference for "what the card held before" is the CPU side, not a snapshot of the card. The one-sided path compares against a real snapshot.
  • The per-piece hash is stored at compare time, not when the copy-back lands. A piece whose landing skips bytes is never reported again.
  • Possible source of the per-launch randomness: while pipelines are still being built, dispatches are dropped ("DROPPED being made", about 700 in one frame). In one banded launch, 559d9f01 was 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=0xaf8c60000 keeps only this buffer one-sided, at almost no fps cost. Caveat: in one earlier launch with CARD_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=4096 is clean for us but slower. The address may differ on other dumps: take it from the log line above.

Next experiments (ours)

  1. Same protocol, but the card side of this buffer in shared PC memory (shared_buffer instead of uav_buffer in card_room_for). Clean means VRAM or execution (barriers, states). Banded means the protocol itself.
  2. Three-sides check restricted to 0xaf8c60000 at rest, in a clean and in a banded launch.
  3. Class fix candidates, keeping shader-written buffers on the card:
    • only changed dwords go up for copies that shaders write;
    • a VRAM "before" twin as the exact copy-back reference;
    • the hash stored when the copy-back lands, not at compare time;
    • a proper UAV-to-SRV barrier for the compare pass.

Asks

  • On your banded launches: is 0xaf8c60000 (or the buffer your log shows for the same chain, by length 2073600) "in the card's memory"? Does VICTORY_CARD_BUFFERS_EXCEPT=<that start> keep 20–30 launches in a row clean?
  • Do the dropped dispatches of the chain early in the world (0a5ecfee6b79e13b, 5cf00dc39042edaf, 495c6013589afd60, 559d9f0184e15fe3, 0ea6fac38d096770) differ between your clean and banded launches?
  • The backlit faces that turn almost black may be a separate issue. We see dark spots and coloured pixels on faces too, but have not linked them to this buffer.
<!-- greyfinch-sync:fxceless/victory-fork:comment:7220505510 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/issues/1203#issuecomment-7220505510). Originally posted by [imikwy](https://github.com/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 - RTX 5070 Laptop, 8 GB (Blackwell, 32-lane waves), 32 GB RAM, Windows 11, hybrid laptop (the RTX is used). - Base: cool_fox line (`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). - Launcher-style set: `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. - Rate here: banded in about 1 of 2 launches with `VICTORY_CARD_BUFFERS_MIN_KB=64` (the launcher value) and also with 1024 or 2048. With `VICTORY_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) - The banding is decided while loading and is already visible from the 2nd world frame on, so a launch only needs about 25 s in the world. - `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). - We score the output of the tone-map draw (vertex `7affbd5bbaa830f3`, pixel `6318f669e4f17d65`, 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. - Banded tone-map outputs had about 3,800–4,300 distinct colours against about 88,000 in clean ones. The tone map itself, its LUTs and its curve inputs hashed identically in clean and banded launches: the wrong input comes from earlier in the frame. ## Finding: the trigger is title buffer 0xaf8c60000 (len 2073600) when it is a two-sided card copy - Below `CARD_BUFFERS_MIN_KB` a 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. - Size bisection with `VICTORY_CARD_BUFFERS_MIN_KB` and 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. - Trap we fell into: the card threshold compares the size rounded up to 64 KiB, so a 2025 KiB buffer counts as 2048 KiB. A size window on the exact length missed it, and for a while we blamed a different buffer (`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. - What writes `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. 1. `0a5ecfee6b79e13b` and `5cf00dc39042edaf`, dispatch 160x90 (1920x1080 / 12): UAVs on a 52-byte counter, on `0xaf8c60000` and on `0xaf8b00000+0x151800`. 2. `495c6013589afd60`, 1x1x1: builds the arguments of the two indirect dispatches from the counter. 3. `559d9f0184e15fe3` (indirect), `495c6013589afd60` again, then `0ea6fac38d096770` (indirect). - The counter and `0xaf8b00000` stay one-sided (they are below the threshold). Only `0xaf8c60000` is 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. | Hypothesis | Test | Result | |---|---|---| | wave64 approximation of cool_fox | exact packed wave64 form for 22 scene programs | still banded | | stale data in the card copy (write-watch stamps, page hashes, partial 64 KiB edge pages, ranged refresh) | new switch `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) | still banded (q55) | | copies landed in place (`host/place.rs`) | `VICTORY_COPIES_IN_PLACE=0` | still banded (q50) | | launcher card switches | `CARD_REHASH_RUNS=0, RELAY_COPY=0, JOIN_COPIES=0, CARD_STEPS=0, WIDE_BACK=0` together | clean, clean, then banded (q64–q66) | | async relay / landing / echo layer | `VICTORY_LATE_WAIT=0, SEND_OWN=0, LAND_ECHO=0` (fully synchronous `card_back` / `card_merge` path) | still banded (q73) | | first refresh of a card copy not whole | `VICTORY_CARD_WHOLE_FIRST=1` | still banded | | light refresh, CBV tail rounding | `VICTORY_LIGHT_REFRESH` off, `VICTORY_CBV_FULL=1` | still banded | | loose windows plus a second card copy over the same memory | rule that keeps no card copy over a window | still banded | | at rest the card side and the CPU side differ | three-sides check (card vs CPU side vs title memory, per 64 KiB piece) | card and CPU side always agree, in clean and banded launches | So 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) - The compare pass reads the carded buffer as a root SRV in the same `ExecuteCommandLists` as 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. - On copy-back, the reference for "what the card held before" is the CPU side, not a snapshot of the card. The one-sided path compares against a real snapshot. - The per-piece hash is stored at compare time, not when the copy-back lands. A piece whose landing skips bytes is never reported again. - Possible source of the per-launch randomness: while pipelines are still being built, dispatches are dropped ("DROPPED being made", about 700 in one frame). In one banded launch, `559d9f01` was 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=0xaf8c60000` keeps only this buffer one-sided, at almost no fps cost. Caveat: in one earlier launch with `CARD_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=4096` is clean for us but slower. The address may differ on other dumps: take it from the log line above. ## Next experiments (ours) 1. Same protocol, but the card side of this buffer in shared PC memory (`shared_buffer` instead of `uav_buffer` in `card_room_for`). Clean means VRAM or execution (barriers, states). Banded means the protocol itself. 2. Three-sides check restricted to `0xaf8c60000` at rest, in a clean and in a banded launch. 3. Class fix candidates, keeping shader-written buffers on the card: - only changed dwords go up for copies that shaders write; - a VRAM "before" twin as the exact copy-back reference; - the hash stored when the copy-back lands, not at compare time; - a proper UAV-to-SRV barrier for the compare pass. ## Asks - On your banded launches: is `0xaf8c60000` (or the buffer your log shows for the same chain, by length 2073600) "in the card's memory"? Does `VICTORY_CARD_BUFFERS_EXCEPT=<that start>` keep 20–30 launches in a row clean? - Do the dropped dispatches of the chain early in the world (`0a5ecfee6b79e13b`, `5cf00dc39042edaf`, `495c6013589afd60`, `559d9f0184e15fe3`, `0ea6fac38d096770`) differ between your clean and banded launches? - The backlit faces that turn almost black may be a separate issue. We see dark spots and coloured pixels on faces too, but have not linked them to this buffer.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork#1200
No description provided.