Window glass: VICTORY_GLASS_DITHER_OFF=1 stops the stripes that blink every other frame #193

Manually merged
github merged 1 commit from github-bot/gh-193 into gh-pr/193/base 2026-12-02 23:01:31 +00:00 AGit
Owner

@⁠kyle41313 on GitHub · 2026-12-02 14:08 UTC · original
kyle41313:fix/glass-stripes → main · +83 −0 · 4 files · 1 commits · merged 2026-12-02 22:57 UTC

Fixes #189 (cause, evidence and the untested general fix are there).

Change. For the house glass pixel program b37565055f2f7d3b only, the result at console offset 0x574c (lane number plus frame counter) becomes 0. Every pixel then reads the same light-grid cell. The 0 is computed from the result (x & 0), because the host refused the glass pipeline with a plain constant there. Off by default; in the shader cache key.

Tested. RX 9070 XT, RADV, Proton Experimental 11.0, ray tracing off. In game: no bands and no blinking on the house windows. Compiles on d044248 without warnings.

Limits. A workaround: the console's per-pixel dither of the cell is lost. Covers only this program.

**@⁠kyle41313** on GitHub · 2026-12-02 14:08 UTC · [original](https://github.com/lobomfz/VIctory-xmem/pull/193) `kyle41313:fix/glass-stripes` → `main` · +83 −0 · 4 files · 1 commits · merged 2026-12-02 22:57 UTC Fixes #189 (cause, evidence and the untested general fix are there). **Change.** For the house glass pixel program `b37565055f2f7d3b` only, the result at console offset 0x574c (lane number plus frame counter) becomes 0. Every pixel then reads the same light-grid cell. The 0 is computed from the result (`x & 0`), because the host refused the glass pipeline with a plain constant there. Off by default; in the shader cache key. **Tested.** RX 9070 XT, RADV, Proton Experimental 11.0, ray tracing off. In game: no bands and no blinking on the house windows. Compiles on d044248 without warnings. **Limits.** A workaround: the console's per-pixel dither of the cell is lost. Covers only this program.
The glass program (b37565055f2f7d3b) picks a neighboring light-grid cell from its
lane number plus the frame counter (0x574c). Its waves are 32 lanes on the console and
64 here, where v_mbcnt_lo gives 32 for the whole upper half, so half the rows took one
cell and flipped every frame: dark stripes that blink. With the switch the sum is 0 at
0x574c, as the live pin that removed stripes and blinking in a running game. Tested
in game with only this switch on: no stripes, no blinking, the glass otherwise drawn.
Off by default.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 14:10:14 +00:00
github-bot changed target branch from main to gh-pr/193/base 2026-12-02 23:01:21 +00:00
github manually merged commit 0cdc0d0ba6 into gh-pr/193/base 2026-12-02 23:01:30 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.