Shader clean-up passes (1684989) cause black mosaic blocks in the prologue; VICTORY_SHADER_OPT=0 renders clean at the same fps (RTX 5060 Ti, Win10) #310

Open
opened 2026-11-26 03:40:30 +00:00 by github-bot · 7 comments
Owner

@⁠oz-stanislav-zhukov on GitHub · 2026-11-24 23:29 UTC · original

The shader clean-up passes (1684989, on by default) produce black blocky mosaic artifacts in the prologue on my machine. With VICTORY_SHADER_OPT=0 the same scenes render clean, at the same frame rate.

Setup

  • RTX 5060 Ti 16 GB (driver 621.24), i7-14700KF, 64 GB, Windows 10 Pro 22H2 (19045)
  • Tree: 4e17478 + #22 (77aebdd, Agility SDK 1.620.2) + #58 (c5b12f1), release build, Series X profile
  • Both runs with the static RT lighting from #22 and the speed switches:
    VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_RELAY=1 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024
  • A: VICTORY_SHADER_OPT unset (all passes). B: VICTORY_SHADER_OPT=0. Each with its own warm shader cache, same opening cutscene and the same prologue window shot compared.

What differs (visual, checked by eye)

Scene A (passes on) B (VICTORY_SHADER_OPT=0)
Prologue, Lucia at the cell window black square blocks over the back of the jumpsuit, over the stairs bottom left and the wall on the right clean; "INMATE" on the jumpsuit readable, no blocks
Opening, street shot ("CHECKS CASHED") blue, smeared, streaks sharp signs, tiles and grilles
Opening, bar close-ups dark blotch over one character's eye and cheek; bright white streaks on a face clean faces

Screenshots were taken but are no longer available, sorry.

Same in both

  • shader does not translate: 13 (A) / 14 (B); host pipeline refused (0x80070057): 6 / 6
  • No exceptions, no device removal in either run
  • Still present in B too: black eyes on a close-up face, blue noisy blocks over the characters in the "NINE MONTHS AGO" shot, the cell's ceiling broken into floating panels (likely #62 / #168)

Speed (warm cache, prologue window shot, ~5,000 draws/frame)

A (passes on) B (passes off)
fps 3.2 3.2–3.4
ms/frame ~308 291–321
on the GPU ~170 ms 184–195 ms

The passes save ~15–20 ms of GPU time here (matches the ~20 ms in the commit message), but the frame is bound by preparation and copy-back, so the frame rate does not change.

Suggestion

Maybe default VICTORY_SHADER_OPT to 0 until the pass that causes this is found, or bisect the bits (dead code, folding, reuse, branch facts, loads within a block, wave64 first-lane exchange). Happy to run a bisection on this machine if you say which values to try. The #22 author reports the passes also break rendering on their base, even the subset VICTORY_SHADER_OPT=23.

Hardware report for this machine: #148.

AI-assisted (Claude Code, Claude Opus 5.5); numbers from local logs, visuals confirmed by me.

**@⁠oz-stanislav-zhukov** on GitHub · 2026-11-24 23:29 UTC · [original](https://github.com/fxceless/victory-fork/issues/310) The shader clean-up passes (`1684989`, on by default) produce black blocky mosaic artifacts in the prologue on my machine. With `VICTORY_SHADER_OPT=0` the same scenes render clean, at the same frame rate. ## Setup - RTX 5060 Ti 16 GB (driver 621.24), i7-14700KF, 64 GB, **Windows 10 Pro 22H2 (19045)** - Tree: `4e17478` + #22 (`77aebdd`, Agility SDK 1.620.2) + #58 (`c5b12f1`), release build, Series X profile - Both runs with the static RT lighting from #22 and the speed switches: `VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_RELAY=1 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024` - A: `VICTORY_SHADER_OPT` unset (all passes). B: `VICTORY_SHADER_OPT=0`. Each with its own warm shader cache, same opening cutscene and the same prologue window shot compared. ## What differs (visual, checked by eye) | Scene | A (passes on) | B (`VICTORY_SHADER_OPT=0`) | |---|---|---| | Prologue, Lucia at the cell window | black square blocks over the back of the jumpsuit, over the stairs bottom left and the wall on the right | clean; "INMATE" on the jumpsuit readable, no blocks | | Opening, street shot ("CHECKS CASHED") | blue, smeared, streaks | sharp signs, tiles and grilles | | Opening, bar close-ups | dark blotch over one character's eye and cheek; bright white streaks on a face | clean faces | Screenshots were taken but are no longer available, sorry. ## Same in both - shader does not translate: 13 (A) / 14 (B); host pipeline refused (0x80070057): 6 / 6 - No exceptions, no device removal in either run - Still present in B too: black eyes on a close-up face, blue noisy blocks over the characters in the "NINE MONTHS AGO" shot, the cell's ceiling broken into floating panels (likely #62 / #168) ## Speed (warm cache, prologue window shot, ~5,000 draws/frame) | | A (passes on) | B (passes off) | |---|---|---| | fps | 3.2 | 3.2–3.4 | | ms/frame | ~308 | 291–321 | | on the GPU | ~170 ms | 184–195 ms | The passes save ~15–20 ms of GPU time here (matches the ~20 ms in the commit message), but the frame is bound by preparation and copy-back, so the frame rate does not change. ## Suggestion Maybe default `VICTORY_SHADER_OPT` to 0 until the pass that causes this is found, or bisect the bits (dead code, folding, reuse, branch facts, loads within a block, wave64 first-lane exchange). Happy to run a bisection on this machine if you say which values to try. The #22 author reports the passes also break rendering on their base, even the subset `VICTORY_SHADER_OPT=23`. Hardware report for this machine: #148. AI-assisted (Claude Code, Claude Opus 5.5); numbers from local logs, visuals confirmed by me.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:40:30 +00:00
Author
Owner

@⁠oz-stanislav-zhukov on GitHub · 2026-11-24 23:31 UTC · original

Related work I missed before opening this (not duplicates, same passes):

  • #120 / #145: clean-up pass 4 (REUSE) shares resource handles across the whole program, which crashes the AMD compiler. Fixes in review: #195 (no REUSE for compute programs) and #317 (annotateHandle kept local to its block). The #120 analysis notes that DXC's GVN doing the same is a known way to get pipelines refused on NVIDIA.
  • #122: after the DEAD pass removes input reads, ISG1 input usage and the barycentrics flag are not recomputed (see #53). That could give wrong pixel-shader inputs on NVIDIA, which may be what shows as blocks here.
  • #279: black blocks from untranslated pixel shaders ("descriptor read only as data"). Happens with the passes off too; the mosaic described here appears only with them on.

Next step on this machine, if useful: run the same scene with VICTORY_SHADER_OPT=59 (all passes except REUSE) and with #122 applied, to see which one removes the mosaic.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠oz-stanislav-zhukov** on GitHub · 2026-11-24 23:31 UTC · [original](https://github.com/fxceless/victory-fork/issues/310#issuecomment-7147493823) Related work I missed before opening this (not duplicates, same passes): - #120 / #145: clean-up pass 4 (`REUSE`) shares resource handles across the whole program, which crashes the AMD compiler. Fixes in review: #195 (no `REUSE` for compute programs) and #317 (`annotateHandle` kept local to its block). The #120 analysis notes that DXC's GVN doing the same is a known way to get pipelines refused on NVIDIA. - #122: after the `DEAD` pass removes input reads, `ISG1` input usage and the barycentrics flag are not recomputed (see #53). That could give wrong pixel-shader inputs on NVIDIA, which may be what shows as blocks here. - #279: black blocks from untranslated pixel shaders ("descriptor read only as data"). Happens with the passes off too; the mosaic described here appears only with them on. Next step on this machine, if useful: run the same scene with `VICTORY_SHADER_OPT=59` (all passes except `REUSE`) and with #122 applied, to see which one removes the mosaic. AI-assisted (Claude Code, Claude Opus 5.5).
Author
Owner

@⁠ChatGepetao on GitHub · 2026-11-25 00:32 UTC · original

I reproduced a DXIL validation failure on current main (a803c87) with a source-built pixel shader. I tested the same revision with #122 (442d7c25a) applied and built separately, using Microsoft's Linux dxv from DXC 1.9.2609.

VICTORY_SHADER_OPT Main Main + #122
0, 4, 58 Validates Validates
1, 59, 63 Flags must match usage Validates

With DEAD enabled, this shader loses all of its attributeAtVertex calls. Main still emits the barycentrics flag (validator: declared 4194304, actual 0) and a TEXCOORD read mask of 0x01. #122 clears both. A control that exports the interpolated value keeps the flag and validates under all six masks. The ordinary dead-channel fixture from #122 also changes from mask 0x03 to 0x01 under 63. This version of dxv accepts both ordinary-fixture outputs.

Synthetic fixture

This can be run through the existing pixel helper in emit::barycentric_tests with PERSP_CENTER. It uses constant interpolation weights and exports a constant, leaving the interpolated value unused.

let [e0, e1] = exp_mrt0(5);
let words = [
    0x7E06_02F0, // v_mov_b32 v3, 0.5
    0xC808_0003, // v_interp_p1_f32 v2, v3, attr0.x
    0xC809_0003, // v_interp_p2_f32 v2, v3, attr0.x
    0x7E0A_02F0, // v_mov_b32 v5, 0.5
    e0, e1, S_ENDPGM,
];
let shader = pixel(&words, PERSP_CENTER).unwrap();

The synthetic failure establishes one effect of DEAD. The in-game mosaic still needs a comparison. On the same revision and patch set, could you try 59 (all passes except REUSE) and 58 (all passes except DEAD) against 63, then retry 63 with #122 applied separately? If both 58 and #122 clear the same blocks, that would help connect the metadata issue to this report.

Tested on Linux with Rust 1.98.1. No title data was used. AI assisted with the fixture and report.

**@⁠ChatGepetao** on GitHub · 2026-11-25 00:32 UTC · [original](https://github.com/fxceless/victory-fork/issues/310#issuecomment-7148611592) I reproduced a DXIL validation failure on current main (`a803c87`) with a source-built pixel shader. I tested the same revision with #122 (`442d7c25a`) applied and built separately, using Microsoft's Linux `dxv` from DXC 1.9.2609. | `VICTORY_SHADER_OPT` | Main | Main + #122 | | --- | --- | --- | | `0`, `4`, `58` | Validates | Validates | | `1`, `59`, `63` | `Flags must match usage` | Validates | With `DEAD` enabled, this shader loses all of its `attributeAtVertex` calls. Main still emits the barycentrics flag (validator: declared `4194304`, actual `0`) and a TEXCOORD read mask of `0x01`. #122 clears both. A control that exports the interpolated value keeps the flag and validates under all six masks. The ordinary dead-channel fixture from #122 also changes from mask `0x03` to `0x01` under `63`. This version of `dxv` accepts both ordinary-fixture outputs. <details> <summary>Synthetic fixture</summary> This can be run through the existing `pixel` helper in `emit::barycentric_tests` with `PERSP_CENTER`. It uses constant interpolation weights and exports a constant, leaving the interpolated value unused. ```rust let [e0, e1] = exp_mrt0(5); let words = [ 0x7E06_02F0, // v_mov_b32 v3, 0.5 0xC808_0003, // v_interp_p1_f32 v2, v3, attr0.x 0xC809_0003, // v_interp_p2_f32 v2, v3, attr0.x 0x7E0A_02F0, // v_mov_b32 v5, 0.5 e0, e1, S_ENDPGM, ]; let shader = pixel(&words, PERSP_CENTER).unwrap(); ``` </details> The synthetic failure establishes one effect of `DEAD`. The in-game mosaic still needs a comparison. On the same revision and patch set, could you try `59` (all passes except `REUSE`) and `58` (all passes except `DEAD`) against `63`, then retry `63` with #122 applied separately? If both `58` and #122 clear the same blocks, that would help connect the metadata issue to this report. Tested on Linux with Rust 1.98.1. No title data was used. AI assisted with the fixture and report.
Author
Owner

@⁠SantannaCarlos on GitHub · 2026-11-25 02:52 UTC · original

RTX 4070 12 GB, 2119b0e, default mode: the mosaic shows up with the clean-up passes off too.

Setup: Windows 11, RTX 4070 12 GB, 32 GB RAM, diagnostics build of 2119b0e, Series X profile. Every run starts from a copy of the same autosave at the cell window, with no input after the load. Each VICTORY_SHADER_OPT value gets its own shader cache (the value is part of the cache key), one 8-minute warm-up run, then one 8-minute measured run. Frames were saved at fixed offsets from the first world frame with 500 or more draws (VICTORY_CAPTURE_WORLD). No speed switches, no structure builder.

New black 8x8 blocks in the presented frame against VICTORY_SHADER_OPT=0 (32,400 blocks per frame):

VICTORY_SHADER_OPT +30 +80 +120 +240 +480
unset (all passes) 0 0 0 0 0
59 (all but one instruction per value) 0 960 25 1 24
4 (one instruction per value only) 0 960 148 69 73
  • The 0 reference has the blocky mosaic itself: a strip of black and coloured square blocks along the bottom of the cell-window shot and in the bottom-right corner. With all passes on, the same offset is the cleanest of the four runs.
  • The 960 at +80 is the same in 59 and 4. It is a fade caught at a different moment: the runs enter the world at different frames, which also moves the camera a little. The count only covers black blocks, so the comparison was checked by looking at the frames at the same offsets as well.
  • On this card and in this mode, then, the mosaic does not come from the passes. Your runs had VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_RELAY=1 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 plus the card-buffer switches, on Windows 10 with #22. The late modes lose geometry and data on their own (#168, #89), so an A/B of 0 against all passes with exactly those switches would tell whether the passes add something there.
  • The strip of blocks is also there with the alias fix (#115 plus 0bcc069, no stale aliased pages left), so it is not that either.

Two notes from an offline pass over the whole pack (victory translate --validate, each value of VICTORY_SHADER_OPT):

  • One instruction per value (4) is the only pass that moves resource handles out of the block that made them. In one character pixel program there are 0 uses of a handle outside its block with 0, 1, 2 or 59, and 251 to 274 with 4, 23 or 63. In a sample of 20 pixel programs, 12 do this with all passes and none with 0. This is the pattern behind the AMD compiler crash (#120, #145, #317). It did not produce visible blocks on this card.
  • Constants and identities without dead code (2, 62): 20 modules fail validation with "External function … unused". Folding a constant branch leaves the declaration of a function that is no longer called. The default, which runs dead code as well, is not affected.

Counts only; no game data.

**@⁠SantannaCarlos** on GitHub · 2026-11-25 02:52 UTC · [original](https://github.com/fxceless/victory-fork/issues/310#issuecomment-7151295379) **RTX 4070 12 GB, `2119b0e`, default mode: the mosaic shows up with the clean-up passes off too.** Setup: Windows 11, RTX 4070 12 GB, 32 GB RAM, diagnostics build of `2119b0e`, Series X profile. Every run starts from a copy of the same autosave at the cell window, with no input after the load. Each `VICTORY_SHADER_OPT` value gets its own shader cache (the value is part of the cache key), one 8-minute warm-up run, then one 8-minute measured run. Frames were saved at fixed offsets from the first world frame with 500 or more draws (`VICTORY_CAPTURE_WORLD`). No speed switches, no structure builder. New black 8x8 blocks in the presented frame against `VICTORY_SHADER_OPT=0` (32,400 blocks per frame): | `VICTORY_SHADER_OPT` | +30 | +80 | +120 | +240 | +480 | |---|---:|---:|---:|---:|---:| | unset (all passes) | 0 | 0 | 0 | 0 | 0 | | 59 (all but one instruction per value) | 0 | 960 | 25 | 1 | 24 | | 4 (one instruction per value only) | 0 | 960 | 148 | 69 | 73 | - The `0` reference has the blocky mosaic itself: a strip of black and coloured square blocks along the bottom of the cell-window shot and in the bottom-right corner. With all passes on, the same offset is the cleanest of the four runs. - The 960 at +80 is the same in 59 and 4. It is a fade caught at a different moment: the runs enter the world at different frames, which also moves the camera a little. The count only covers black blocks, so the comparison was checked by looking at the frames at the same offsets as well. - On this card and in this mode, then, the mosaic does not come from the passes. Your runs had `VICTORY_BVH_BUILDER=1 VICTORY_BVH_QUARANTINE=1 VICTORY_RELAY=1 VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1` plus the card-buffer switches, on Windows 10 with #22. The late modes lose geometry and data on their own (#168, #89), so an A/B of `0` against all passes with exactly those switches would tell whether the passes add something there. - The strip of blocks is also there with the alias fix (#115 plus `0bcc069`, no stale aliased pages left), so it is not that either. Two notes from an offline pass over the whole pack (`victory translate --validate`, each value of `VICTORY_SHADER_OPT`): - **One instruction per value (4)** is the only pass that moves resource handles out of the block that made them. In one character pixel program there are 0 uses of a handle outside its block with `0`, `1`, `2` or `59`, and 251 to 274 with `4`, `23` or `63`. In a sample of 20 pixel programs, 12 do this with all passes and none with `0`. This is the pattern behind the AMD compiler crash (#120, #145, #317). It did not produce visible blocks on this card. - **Constants and identities without dead code (2, 62):** 20 modules fail validation with "External function … unused". Folding a constant branch leaves the declaration of a function that is no longer called. The default, which runs dead code as well, is not affected. Counts only; no game data.
Author
Owner

@⁠JRamos1993 on GitHub · 2026-11-25 03:47 UTC · original

Correction to my comment above: with more runs, the mosaic is not tied to the clean-up passes on this machine. It appears with VICTORY_SHADER_OPT=0 too, and it is absent in some runs with all passes. It varies from run to run within the same build. My earlier table compared one run per configuration, and that was not enough.

Method: the same setup as above (RTX 5090, main 2119b0e diagnostics build, the same save restored before each run, VICTORY_KEYS Enter presses, 240 s runs, warm caches). Only runs that entered the world 57–75 s after start are counted; all of them get the same presses inside the cutscene.

Every captured frame from 110 to 180 s after entering the world is scored on the bottom 12 % of the screen, the part of the window shot where the blocks appear. Two scores:

  • edge: the share of pixels on long, sharp, straight edges;
  • blue: the share of clearly blue pixels, which do not belong in that warm-lit shot.

Before using them, I checked both against frames I had classified by eye. Clean frames score edge ≤ 0.042 and blue ≈ 0. A run counts as affected when its median is over 0.05 (edge) or 0.5 % (blue).

build / VICTORY_SHADER_OPT runs affected per run (edge median / blue median)
0 (no passes) 4 3 0.023 / 0.00 · 0.131 / 7.59 · 0.028 / 1.63 · 0.030 / 1.85
59 (all but REUSE) 4 3 0.025 / 0.03 · 0.159 / 7.85 · 0.197 / 5.78 · 0.124 / 4.17
unset, main 3 2 0.072 / 0.01 · 0.152 / 8.59 · 0.003 / 0.00
unset, + #122 1 1 0.017 / 3.66
unset, + #195 3 2 0.027 / 0.00 · 0.085 / 4.03 · 0.090 / 0.92
unset, + #317 3 2 0.161 / 9.09 · 0.073 / 4.53 · 0.010 / 0.00

What this means for this machine:

  • The blocks come and go between runs of the same build, with every pass setting.
  • REUSE is not their cause here. Neither #122, #195 nor #317 removes them.
  • Something that changes from run to run, such as timing or memory contents, looks more likely than a deterministic translation fault.

This does not contradict the original report on a 5060 Ti and Windows 10. It only says that one run per setting cannot settle it.

AI use: Claude Code with Claude Opus 5.5 ran the title, wrote the two scores, checked them against hand-classified frames, and wrote this correction.

**@⁠JRamos1993** on GitHub · 2026-11-25 03:47 UTC · [original](https://github.com/fxceless/victory-fork/issues/310#issuecomment-7152252422) **Correction to my comment above: with more runs, the mosaic is not tied to the clean-up passes on this machine.** It appears with `VICTORY_SHADER_OPT=0` too, and it is absent in some runs with all passes. It varies from run to run within the same build. My earlier table compared one run per configuration, and that was not enough. **Method:** the same setup as above (RTX 5090, `main` `2119b0e` diagnostics build, the same save restored before each run, `VICTORY_KEYS` Enter presses, 240 s runs, warm caches). Only runs that entered the world 57–75 s after start are counted; all of them get the same presses inside the cutscene. Every captured frame from 110 to 180 s after entering the world is scored on the bottom 12 % of the screen, the part of the window shot where the blocks appear. Two scores: - **edge:** the share of pixels on long, sharp, straight edges; - **blue:** the share of clearly blue pixels, which do not belong in that warm-lit shot. Before using them, I checked both against frames I had classified by eye. Clean frames score edge ≤ 0.042 and blue ≈ 0. A run counts as affected when its median is over 0.05 (edge) or 0.5 % (blue). | build / `VICTORY_SHADER_OPT` | runs | affected | per run (edge median / blue median) | |---|---|---|---| | `0` (no passes) | 4 | **3** | 0.023 / 0.00 · 0.131 / 7.59 · 0.028 / 1.63 · 0.030 / 1.85 | | `59` (all but `REUSE`) | 4 | **3** | 0.025 / 0.03 · 0.159 / 7.85 · 0.197 / 5.78 · 0.124 / 4.17 | | unset, `main` | 3 | 2 | 0.072 / 0.01 · 0.152 / 8.59 · 0.003 / 0.00 | | unset, + #122 | 1 | 1 | 0.017 / 3.66 | | unset, + #195 | 3 | 2 | 0.027 / 0.00 · 0.085 / 4.03 · 0.090 / 0.92 | | unset, + #317 | 3 | 2 | 0.161 / 9.09 · 0.073 / 4.53 · 0.010 / 0.00 | **What this means for this machine:** - The blocks come and go between runs of the same build, with every pass setting. - `REUSE` is not their cause here. Neither #122, #195 nor #317 removes them. - Something that changes from run to run, such as timing or memory contents, looks more likely than a deterministic translation fault. This does not contradict the original report on a 5060 Ti and Windows 10. It only says that one run per setting cannot settle it. AI use: Claude Code with Claude Opus 5.5 ran the title, wrote the two scores, checked them against hand-classified frames, and wrote this correction.
Author
Owner

@⁠JRamos1993 on GitHub · 2026-11-25 02:21 UTC · original · edited 2026-11-25 03:48 UTC

Corrected: with more runs this does not hold. The mosaic appears with VICTORY_SHADER_OPT=0 too, and varies from run to run; see #310. Kept below as posted.

In-title bisect on an RTX 5090: with warm caches, turning off pass 4 (REUSE) removes most of the mosaic in the prologue window shot. All passes off removes all of it. #122 does not change it.

Setup:

  • Machine: RTX 5090 32 GB, driver 621.24, i9-14900KF, Windows 11 Pro 26200.
  • Builds: main 2119b0e diagnostics build; "+ #122" is #122 (442d7c2) merged onto it. Series X profile, no other switches.
  • Runs: the same save restored before each run, the same VICTORY_KEYS Enter presses into the prologue, 240–300 s.
  • Warm caches: each VICTORY_SHADER_OPT value builds its own shader and pipeline cache. Each configuration was run until a run ended with 0 being made, and only that run is compared.
  • Compared frame: the shot of the cell window at the end of each run, the same camera every time.
VICTORY_SHADER_OPT mosaic in the window shot
unset (all passes, 63) blocks over the back of the jumpsuit and along both bottom corners
unset + #122 the same blocks, if anything more
59 (all but REUSE) jumpsuit and bottom left clean; one small block patch remains at the bottom right, in two frames 24 apart
0 (none) clean

So on this machine pass 4 (REUSE, "one instruction for one value") accounts for most of the blocks. Something else accounts for the small patch left with 59.

Two runs I am not counting as like-for-like:

  • An earlier attempt at 0 and 59: the runs still had ~600 pipelines being made at the end. Those frames were missing draws, and the 0 one still had blocks. The rule of comparing only fully warm runs comes from there.
  • 58 (DEAD and REUSE off): its final frame has no blocks, but that run reached the world about 40 s later than the others. In its final frame the room behind the character is lit (wall, posters, the jumpsuit's lettering), while every other run shows it black. That suggests a different point in the cutscene, so I don't draw a conclusion from it about DEAD or the residual patch.

Not tested: which other pass causes the residual patch; 4 alone; AMD or Windows 10.

AI use: Claude Code with Claude Opus 5.5 ran the builds and the title, compared the frames and wrote this.

**@⁠JRamos1993** on GitHub · 2026-11-25 02:21 UTC · [original](https://github.com/fxceless/victory-fork/issues/310#issuecomment-7150626624) · edited 2026-11-25 03:48 UTC *Corrected: with more runs this does not hold. The mosaic appears with `VICTORY_SHADER_OPT=0` too, and varies from run to run; see https://git.gtahub.st/github/fxceless--victory-fork/issues/310. Kept below as posted.* **In-title bisect on an RTX 5090: with warm caches, turning off pass 4 (`REUSE`) removes most of the mosaic in the prologue window shot. All passes off removes all of it. #122 does not change it.** **Setup:** - Machine: RTX 5090 32 GB, driver 621.24, i9-14900KF, Windows 11 Pro 26200. - Builds: `main` `2119b0e` diagnostics build; "+ #122" is #122 (`442d7c2`) merged onto it. Series X profile, no other switches. - Runs: the same save restored before each run, the same `VICTORY_KEYS` Enter presses into the prologue, 240–300 s. - Warm caches: each `VICTORY_SHADER_OPT` value builds its own shader and pipeline cache. Each configuration was run until a run ended with `0 being made`, and only that run is compared. - Compared frame: the shot of the cell window at the end of each run, the same camera every time. | `VICTORY_SHADER_OPT` | mosaic in the window shot | |---|---| | unset (all passes, `63`) | blocks over the back of the jumpsuit and along both bottom corners | | unset + #122 | the same blocks, if anything more | | `59` (all but `REUSE`) | jumpsuit and bottom left clean; one small block patch remains at the bottom right, in two frames 24 apart | | `0` (none) | clean | So on this machine pass 4 (`REUSE`, "one instruction for one value") accounts for most of the blocks. Something else accounts for the small patch left with `59`. Two runs I am not counting as like-for-like: - **An earlier attempt at `0` and `59`:** the runs still had ~600 pipelines being made at the end. Those frames were missing draws, and the `0` one still had blocks. The rule of comparing only fully warm runs comes from there. - **`58` (`DEAD` and `REUSE` off):** its final frame has no blocks, but that run reached the world about 40 s later than the others. In its final frame the room behind the character is lit (wall, posters, the jumpsuit's lettering), while every other run shows it black. That suggests a different point in the cutscene, so I don't draw a conclusion from it about `DEAD` or the residual patch. **Not tested:** which other pass causes the residual patch; `4` alone; AMD or Windows 10. AI use: Claude Code with Claude Opus 5.5 ran the builds and the title, compared the frames and wrote this.
Author
Owner

@⁠SkillIssueXO on GitHub · 2026-11-25 07:24 UTC · original

I reproduced a tile-aligned artifact at the prison window on current fork main a26859f, with a desktop RTX 5070 Ti 16 GB, NVIDIA driver 621.40, 32 GB RAM, and Windows 11. I used the Series X profile, levels on demand enabled, late wait stage 2, DRED off, and the default shader optimizer. At the window, both walls, the wire mesh, and the yard rendered. Blocks remained along the bottom of the image. A separate run facing into the cell rendered the faces, bunks, and lighting without a comparable bottom grid.

On 8dd30ab, the same grid was visible in the 2560×1440 HDR scene color before temporal resolve and spatial upscale. At a26859f, I read back that HDR texture immediately before and after the sky pass in the affected view. The pass changed RGB in 291,245 pixels near the window and left every channel bit-identical across the bottom fifth and rightmost fifth. The artifacts were already present in the before capture. The window-facing sample averaged 3.68 FPS over 140 frames outside the capture. The runs kept the shader optimizer at its default, so they describe the location of the artifact with that configuration.

AI-assisted testing and analysis.

**@⁠SkillIssueXO** on GitHub · 2026-11-25 07:24 UTC · [original](https://github.com/fxceless/victory-fork/issues/310#issuecomment-7155823253) I reproduced a tile-aligned artifact at the prison window on current fork main `a26859f`, with a desktop RTX 5070 Ti 16 GB, NVIDIA driver 621.40, 32 GB RAM, and Windows 11. I used the Series X profile, levels on demand enabled, late wait stage 2, DRED off, and the default shader optimizer. At the window, both walls, the wire mesh, and the yard rendered. Blocks remained along the bottom of the image. A separate run facing into the cell rendered the faces, bunks, and lighting without a comparable bottom grid. On `8dd30ab`, the same grid was visible in the 2560×1440 HDR scene color before temporal resolve and spatial upscale. At `a26859f`, I read back that HDR texture immediately before and after the sky pass in the affected view. The pass changed RGB in 291,245 pixels near the window and left every channel bit-identical across the bottom fifth and rightmost fifth. The artifacts were already present in the before capture. The window-facing sample averaged 3.68 FPS over 140 frames outside the capture. The runs kept the shader optimizer at its default, so they describe the location of the artifact with that configuration. AI-assisted testing and analysis.
Author
Owner

@⁠SantannaCarlos on GitHub · 2026-11-25 09:52 UTC · original

The lower-right part of the mosaic, at least on an RTX 4070 in the default mode, comes from a cut indirect dispatch: one lighting pass over classified tiles (2dc364df5d3278b8) asks for 85,000 to 115,200 groups in x every frame, the clamp ran 65,535, and the tiles past that kept an earlier shot's content. #834 runs the rest in a second execution.

Cell save, 8-minute runs, frames +200 to +700 after the first world frame: square blocks in the lower right of the window shot for the whole shot in 2 of 4 runs without it, in 0 of 3 with it. Frame time within noise; the card spends about 5 ms more a frame. Details and the table are in #834.

The reflection tiling program that #823 gets running (2cc4c197ee29e291) was refused in all seven runs, with and without the split, so the blocks along the bottom that #823 reports may be a second cause.

**@⁠SantannaCarlos** on GitHub · 2026-11-25 09:52 UTC · [original](https://github.com/fxceless/victory-fork/issues/310#issuecomment-7158927600) The lower-right part of the mosaic, at least on an RTX 4070 in the default mode, comes from a cut indirect dispatch: one lighting pass over classified tiles (`2dc364df5d3278b8`) asks for 85,000 to 115,200 groups in x every frame, the clamp ran 65,535, and the tiles past that kept an earlier shot's content. #834 runs the rest in a second execution. Cell save, 8-minute runs, frames +200 to +700 after the first world frame: square blocks in the lower right of the window shot for the whole shot in 2 of 4 runs without it, in 0 of 3 with it. Frame time within noise; the card spends about 5 ms more a frame. Details and the table are in #834. The reflection tiling program that #823 gets running (`2cc4c197ee29e291`) was refused in all seven runs, with and without the split, so the blocks along the bottom that #823 reports may be a second cause.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/fxceless--victory-fork#310
No description provided.