Reflections: clear the left-out miss program's output instead of leaving earlier frames' bytes (#2440) #2764

Open
github-bot wants to merge 2 commits from github-bot/gh-2764 into main AGit
Owner

@⁠milesah3ad on GitHub · 2026-11-29 17:01 UTC · original
milesah3ad:fix-glass-reflections → main · +64 −2 · 2 files · 2 commits · open

Fixes #2440. Fixes #2224. Fixes #2272. Fixes #2643. Fixes #2661. Fixes #2758. Related: #2464 (suggested this approach), #2324, #2275 (the glass part).

Fixes the coloured blocks and smearing on glass from #2440, following the direction in #2464 (section 1).

Cause. Since e2d7854e, the reflections' miss program (CS_RayMiss) is left out for the opaque and alpha layers (VICTORY_RAYMISS_KEEP=0, the white-grain fix for floors). Its output target then keeps whatever it held before. Every texel the screen-space resolve doesn't write shows earlier frames' bytes, which appears as blocks and smearing on windows, car paint and glass. Running only the alpha layer doesn't help, because glass is drawn in the opaque layer with the floors (#2534, closed).

Change. In place of the left-out dispatch, the miss program's output (ambient::MISS_LIGHT) is cleared to zero with the existing host UAV clear (list::clear_uav_on_host, now pub(crate)). This covers both the direct and the indirect dispatch paths. Uncovered texels then hold "no reflection" instead of stale memory, and the floors keep the white-grain fix. The clear sets its own descriptor heaps, so the draw state rebinds the title's on the next bind (host_heaps_set = false). VICTORY_RAYMISS_ZERO=0 restores the old behaviour.

Tested. RTX 5080 16 GB, Ryzen 7 9800X3D, Series X 1440p, DLSS Quality, on 829188e9, scripted run through the opening and the boat scene:

  • with the change, window reflections are clean, and the log shows reflections' miss program left out: its output cleared to zero instead;
  • with VICTORY_RAYMISS_ZERO=0 on the same build, the smearing is back;
  • no new artifacts. A shadow and texture flicker at edges appears in both runs, so it predates this change;
  • fps unchanged (one clear per left-out dispatch).

cargo check --release -p victory passes on main plus this change. The diagnostics build needs #2593.

🤖 Generated with Claude Code

https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE

**@⁠milesah3ad** on GitHub · 2026-11-29 17:01 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764) `milesah3ad:fix-glass-reflections` → `main` · +64 −2 · 2 files · 2 commits · open Fixes #2440. Fixes #2224. Fixes #2272. Fixes #2643. Fixes #2661. Fixes #2758. Related: #2464 (suggested this approach), #2324, #2275 (the glass part). Fixes the coloured blocks and smearing on glass from #2440, following the direction in #2464 (section 1). **Cause.** Since e2d7854e, the reflections' miss program (`CS_RayMiss`) is left out for the opaque and alpha layers (`VICTORY_RAYMISS_KEEP=0`, the white-grain fix for floors). Its output target then keeps whatever it held before. Every texel the screen-space resolve doesn't write shows earlier frames' bytes, which appears as blocks and smearing on windows, car paint and glass. Running only the alpha layer doesn't help, because glass is drawn in the opaque layer with the floors (#2534, closed). **Change.** In place of the left-out dispatch, the miss program's output (`ambient::MISS_LIGHT`) is cleared to zero with the existing host UAV clear (`list::clear_uav_on_host`, now `pub(crate)`). This covers both the direct and the indirect dispatch paths. Uncovered texels then hold "no reflection" instead of stale memory, and the floors keep the white-grain fix. The clear sets its own descriptor heaps, so the draw state rebinds the title's on the next bind (`host_heaps_set = false`). `VICTORY_RAYMISS_ZERO=0` restores the old behaviour. **Tested.** RTX 5080 16 GB, Ryzen 7 9800X3D, Series X 1440p, DLSS Quality, on 829188e9, scripted run through the opening and the boat scene: - with the change, window reflections are clean, and the log shows `reflections' miss program left out: its output cleared to zero instead`; - with `VICTORY_RAYMISS_ZERO=0` on the same build, the smearing is back; - no new artifacts. A shadow and texture flicker at edges appears in both runs, so it predates this change; - fps unchanged (one clear per left-out dispatch). `cargo check --release -p victory` passes on main plus this change. The diagnostics build needs #2593. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE
Since e2d7854e the reflections' miss program (CS_RayMiss) is left out for
the opaque and alpha layers (VICTORY_RAYMISS_KEEP=0, the white-grain fix for
floors). Its output target then keeps whatever it held before, and every
texel the screen-space resolve does not write shows earlier frames' bytes:
coloured blocks and smearing on glass, car paint and windows (#2440, #2464).
Running the alpha layer only does not help, since glass is drawn in the
opaque layer with the floors (PR #2534, closed).

In place of the left-out dispatch (direct and indirect), its output
(ambient::MISS_LIGHT) is cleared to zero with the existing host UAV clear,
as #2464 suggested: uncovered texels hold "no reflection". The floors keep
the white-grain fix. VICTORY_RAYMISS_ZERO=0 turns it off.

Tested on an RTX 5080 / 9800X3D, Series X 1440p, DLSS Quality, 829188e9:
window reflections clean with it, smearing back with VICTORY_RAYMISS_ZERO=0;
no new artifacts (an edge flicker seen in both runs predates it).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 17:05:51 +00:00
Author
Owner

@⁠jbr589 on GitHub · 2026-11-29 18:36 UTC · original

Verified on an RTX 3060 12 GB (issue #2758), Windows 11 driver 621.40, Series S, DLSS Performance, frame generation off, ray tracing off.

The orange/red garbage in reflections reproduces on the v2026.11.29.01 release (in a cutscene, on every reflective surface) and is gone with this change; the log shows reflections' miss program left out: its output cleared to zero instead, and reflections render clean.

I couldn't check an interior floor in this cutscene (none visible), but clearing to zero instead of running CS_RayMiss keeps the white-grain fix, so floors should not brighten (unlike VICTORY_RAYMISS_KEEP=1).

cargo build --release -p victory passes; cargo test -p victory-gpu --lib → 914 passed, 1 unrelated flaky test in watch.rs (not touched by this change; passes in isolation).

**@⁠jbr589** on GitHub · 2026-11-29 18:36 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7260613014) Verified on an **RTX 3060 12 GB** (issue #2758), Windows 11 driver 621.40, **Series S**, DLSS Performance, frame generation off, ray tracing off. The orange/red garbage in reflections reproduces on the `v2026.11.29.01` release (in a cutscene, on every reflective surface) and is gone with this change; the log shows `reflections' miss program left out: its output cleared to zero instead`, and reflections render clean. I couldn't check an interior floor in this cutscene (none visible), but clearing to zero instead of running `CS_RayMiss` keeps the white-grain fix, so floors should not brighten (unlike `VICTORY_RAYMISS_KEEP=1`). `cargo build --release -p victory` passes; `cargo test -p victory-gpu --lib` → 914 passed, 1 unrelated flaky test in `watch.rs` (not touched by this change; passes in isolation).
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-29 18:37 UTC · original

Thanks @⁠jbr589 for testing on the RTX 3060 / Series S. Good to have it confirmed on a second card and profile. I've added #2758 to the issues this fixes. On floors: our runs on an RTX 5080 kept the floors as they are on main (no brightening), since the floor fix itself is untouched.

**@⁠milesah3ad** on GitHub · 2026-11-29 18:37 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7260630508) Thanks @⁠jbr589 for testing on the RTX 3060 / Series S. Good to have it confirmed on a second card and profile. I've added #2758 to the issues this fixes. On floors: our runs on an RTX 5080 kept the floors as they are on main (no brightening), since the floor fix itself is untouched.
Author
Owner

@⁠NovNovikov on GitHub · 2026-11-29 18:43 UTC · original

Does the fix work on a new release?

**@⁠NovNovikov** on GitHub · 2026-11-29 18:43 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7260711989) Does the fix work on a new release?
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-29 18:49 UTC · original

@⁠NovNovikov Yes. v2026.11.29.02 doesn't touch the reflection code (its 10 commits since 829188e9 change list.rs elsewhere, not the miss-program path), and this PR still merges cleanly onto main, which is the .02 hotfix. So the glass blocks are still there on .02 without it, and this change clears them the same way on .02.

**@⁠milesah3ad** on GitHub · 2026-11-29 18:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7260792255) @⁠NovNovikov Yes. v2026.11.29.02 doesn't touch the reflection code (its 10 commits since 829188e9 change `list.rs` elsewhere, not the miss-program path), and this PR still merges cleanly onto main, which is the .02 hotfix. So the glass blocks are still there on .02 without it, and this change clears them the same way on .02.
Author
Owner

@⁠Eliauk0 on GitHub · 2026-11-29 19:20 UTC · original

Confirmed fixed, on both versions.

Config: 7800x3D, RTX 5070 Ti, driver 621.40,, Series X, 4K + DLSS Perf + FG 3x.

  • v2026.11.29.01: coloured blocks and smearing on glass/windows/car paint gone; log shows reflections' miss program left out: its output cleared to zero instead; floors unchanged.
  • v2026.11.29.02: merged clean, same result — artifacts gone, floors unchanged. Without the PR they come back on both.

Thanks!

**@⁠Eliauk0** on GitHub · 2026-11-29 19:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7261201179) Confirmed fixed, on both versions. Config: 7800x3D, RTX 5070 Ti, driver 621.40,, Series X, 4K + DLSS Perf + FG 3x. - v2026.11.29.01: coloured blocks and smearing on glass/windows/car paint gone; log shows `reflections' miss program left out: its output cleared to zero instead`; floors unchanged. - v2026.11.29.02: merged clean, same result — artifacts gone, floors unchanged. Without the PR they come back on both. Thanks!
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-29 19:25 UTC · original

Thanks @⁠Eliauk0! That's the first confirmation on v2026.11.29.02, and with frame generation on. So far it's verified on an RTX 5080, a 3060 and a 5070 Ti, Series S and X, with no floor brightening.

**@⁠milesah3ad** on GitHub · 2026-11-29 19:25 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7261268949) Thanks @⁠Eliauk0! That's the first confirmation on v2026.11.29.02, and with frame generation on. So far it's verified on an RTX 5080, a 3060 and a 5070 Ti, Series S and X, with no floor brightening.
Author
Owner

@⁠atorata on GitHub · 2026-11-29 19:47 UTC · original

Tested on Linux, RTX 3060 12 GB (Ampere), NVIDIA 620.73.04, CachyOS, Proton Experimental 11.0-20261112 with vkd3d-proton master 71cae091b. Series S, DLSS Quality (1280x720 to 1920x1080), FSR 3 frame generation 2x, ray tracing off. This PR applied on 829188e (cleanly; it also applies cleanly on v2026.11.29.02 / f889bb07).

  • Before: in a 60-frame screenshot burst on the street with the bus and the RV, their windows showed the coloured blocks in about a dozen frames.
  • After: the log has reflections' miss program left out: its output cleared to zero instead (VICTORY_RAYMISS_ZERO=0: not), and in a 60-frame burst along a busy road (tow truck, pickups, SUV, taxi, semi cabs, shop windows) no glass showed the blocks. Windows read as dark glass with a faint reflection.
  • No GPU fault (Xid) in that run, and no change in frame rate I could measure (GPU-bound at about 11-13 fps there either way).

Not checked: indoor wooden floors specifically for the white grain, so I can't confirm that part on this card.

**@⁠atorata** on GitHub · 2026-11-29 19:47 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7261559203) Tested on Linux, RTX 3060 12 GB (Ampere), NVIDIA 620.73.04, CachyOS, Proton Experimental 11.0-20261112 with vkd3d-proton master `71cae091b`. Series S, DLSS Quality (1280x720 to 1920x1080), FSR 3 frame generation 2x, ray tracing off. This PR applied on `829188e` (cleanly; it also applies cleanly on `v2026.11.29.02` / `f889bb07`). - **Before:** in a 60-frame screenshot burst on the street with the bus and the RV, their windows showed the coloured blocks in about a dozen frames. - **After:** the log has `reflections' miss program left out: its output cleared to zero instead (VICTORY_RAYMISS_ZERO=0: not)`, and in a 60-frame burst along a busy road (tow truck, pickups, SUV, taxi, semi cabs, shop windows) no glass showed the blocks. Windows read as dark glass with a faint reflection. - No GPU fault (Xid) in that run, and no change in frame rate I could measure (GPU-bound at about 11-13 fps there either way). Not checked: indoor wooden floors specifically for the white grain, so I can't confirm that part on this card.
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-29 19:49 UTC · original

Thanks @⁠atorata, that's the first Linux / vkd3d-proton confirmation, so the clear works through the Vulkan path too. With your report that makes four independent tests: RTX 5080, 3060 (Windows and Linux), 5070 Ti; Series S and X; .01 and .02.

**@⁠milesah3ad** on GitHub · 2026-11-29 19:49 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7261585853) Thanks @⁠atorata, that's the first Linux / vkd3d-proton confirmation, so the clear works through the Vulkan path too. With your report that makes four independent tests: RTX 5080, 3060 (Windows and Linux), 5070 Ti; Series S and X; .01 and .02.
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-29 21:19 UTC · original

AMD confirmation from @⁠saltdam36 on #2224: RX 7800 XT, Series S, FSR upscaler (#1236) on, VICTORY_RAYMISS_KEEP unset. Reflections in mirrors, windows and bottles are right, with no grain on floors, faces or eyes. That makes five setups: RTX 5080, 3060 (Windows and Linux/vkd3d-proton), 5070 Ti and RX 7800 XT; Series S and X; .01 and .02.

**@⁠milesah3ad** on GitHub · 2026-11-29 21:19 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7262785191) AMD confirmation from @⁠saltdam36 on #2224: RX 7800 XT, Series S, FSR upscaler (#1236) on, `VICTORY_RAYMISS_KEEP` unset. Reflections in mirrors, windows and bottles are right, with no grain on floors, faces or eyes. That makes five setups: RTX 5080, 3060 (Windows and Linux/vkd3d-proton), 5070 Ti and RX 7800 XT; Series S and X; .01 and .02.
Author
Owner

@⁠Lyrnc on GitHub · 2026-11-30 00:04 UTC · original

Tested on an RTX 5080 (driver 610.88, Windows 11), built from 829188e9 + this PR. Series S, DLSS Quality, ray tracing off, VICTORY_COMPILE_MEMORY=0. Each run used the same save and the same hands-off sequence (a dock with a house, then a cutscene with parked cars), about 5.5 min long. I captured frames and counted those with random-colour garbage (strongly magenta texels, which these scenes otherwise never have).

Run In-world frames with garbage
Series S, 829188e9 as is 48 of 208 (the house windows glow purple, the parked pickup's and van's windows show red and purple blocks)
Series S, this PR 0 of 223. The same windows are dark and natural, with no visible darkening of wood or floors.
Series X, 829188e9 without any clear 0 of 167 (not affected, as reported)

The "not at the usual place" line never fired in this scene. Two small hardening ideas:

  • When the UAV is not at (1, 104), fall back to the first 2D R11G11B10 UAV in the tables, as ambient does.
  • clear_uav_on_host returns false unless the texture is already in UNORDERED_ACCESS. A once! log on that path would show if a clear is ever skipped.

#3058 (keep the sky miss while the structure builder runs) fits well alongside this, so ray-traced misses still get the sky instead of zero.

I had written the same fix independently (Lyrnc/VIctory-NVIDIA fix/glass-noise-regression: it binds the image, then clears it). It gave the same result, 0 of 215 on Series S, so I won't open a second PR.

AI use: Claude Code (Claude Opus 5.5) built both versions, ran the hands-off A/B runs, counted the frames and wrote this comment.

**@⁠Lyrnc** on GitHub · 2026-11-30 00:04 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7264947890) Tested on an RTX 5080 (driver 610.88, Windows 11), built from 829188e9 + this PR. Series S, DLSS Quality, ray tracing off, `VICTORY_COMPILE_MEMORY=0`. Each run used the same save and the same hands-off sequence (a dock with a house, then a cutscene with parked cars), about 5.5 min long. I captured frames and counted those with random-colour garbage (strongly magenta texels, which these scenes otherwise never have). | Run | In-world frames with garbage | |---|---| | Series S, 829188e9 as is | 48 of 208 (the house windows glow purple, the parked pickup's and van's windows show red and purple blocks) | | Series S, this PR | **0 of 223**. The same windows are dark and natural, with no visible darkening of wood or floors. | | Series X, 829188e9 without any clear | 0 of 167 (not affected, as reported) | The "not at the usual place" line never fired in this scene. Two small hardening ideas: - When the UAV is not at (1, 104), fall back to the first 2D R11G11B10 UAV in the tables, as `ambient` does. - `clear_uav_on_host` returns false unless the texture is already in UNORDERED_ACCESS. A `once!` log on that path would show if a clear is ever skipped. #3058 (keep the sky miss while the structure builder runs) fits well alongside this, so ray-traced misses still get the sky instead of zero. I had written the same fix independently (Lyrnc/VIctory-NVIDIA `fix/glass-noise-regression`: it binds the image, then clears it). It gave the same result, 0 of 215 on Series S, so I won't open a second PR. AI use: Claude Code (Claude Opus 5.5) built both versions, ran the hands-off A/B runs, counted the frames and wrote this comment.
Review suggestions on #2764 (Lyrnc): when the miss program's output is
not at (1, 104), the first 2D R11G11B10 unordered image in its tables is
cleared (the variant search ambient already uses), and a clear that
cannot be recorded (the texture not in the unordered state) is said once.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-30 00:12 UTC · original

Thanks @⁠Lyrnc, great measurement (48/208 → 0/223 on Series S). Both suggestions are in now: when the output isn't at (1, 104), the first 2D R11G11B10 unordered image in the tables is cleared (the same variant search ambient uses), and a clear that can't be recorded logs once instead of failing silently. Agreed that #3058 fits alongside this.

**@⁠milesah3ad** on GitHub · 2026-11-30 00:12 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7265062824) Thanks @⁠Lyrnc, great measurement (48/208 → 0/223 on Series S). Both suggestions are in now: when the output isn't at (1, 104), the first 2D R11G11B10 unordered image in the tables is cleared (the same variant search `ambient` uses), and a clear that can't be recorded logs once instead of failing silently. Agreed that #3058 fits alongside this.
Author
Owner

@⁠ChenmouXu on GitHub · 2026-11-30 04:34 UTC · original

Confirmed on an RTX 5070 Ti Laptop -- glass is clean here too, and the floors do not brighten

Hardware: RTX 5070 Ti Laptop (Blackwell), driver 32.0.16.2140 (GeForce 610.x branch, 2026-11-21), Ryzen 9 9955HX, Windows 11 26200.
Build: 41adb55 with this patch applied on top (git apply, clean), release build, shader cache translated with victory shaders.
Settings: Series S profile, DLSS Quality (0.667), DLSS frame generation 6X, VICTORY_ASYNC_SUBMIT=1, borderless fullscreen, the 46 baseline variables from the GKinto profile. 9,881 draws/frame in the sample below.

Result: glass is clean, every surface that was bad on 829188e is normal.

  • Car windscreen and side windows: clear, the interior is visible through them -- on 829188e these were dense purple-green speckle.
  • Mirror chrome, paint and shop windows: normal.
  • Floors: no brightening visible compared with e1f2eb6, so the white-grain fix is intact.

The log confirms the new path rather than the old one:

WARN victory_gpu::draw: reflections' miss program left out for opaque and transparent surfaces
WARN victory_gpu::draw: reflections' miss program left out: its output cleared to zero instead

Nothing else regressed that I can see: ~10 fps render at 9,881 draws (101 ms), 6X presenting 59 fps, no device loss, no pipeline refusals beyond the usual ray-tracing ones. Frame time looks the same as e1f2eb6 within the spread between scenes, so the clear does not appear to cost anything measurable here.

Screenshot attached (sunset street, red pickup): windscreen and side glass clean. For reference the "before" frames are on #2661 -- same card, same driver, 829188e unpatched.

One data point you may want: this card drops 6X to 2X occasionally (19 times in 797 frames on the previous build), so if you test here expect the presented rate to move around; that is the driver's MFG headroom, not this patch.
Uploading fixed-glass.png…

**@⁠ChenmouXu** on GitHub · 2026-11-30 04:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7268889708) Confirmed on an RTX 5070 Ti Laptop -- glass is clean here too, and the floors do not brighten **Hardware:** RTX 5070 Ti Laptop (Blackwell), driver 32.0.16.2140 (GeForce 610.x branch, 2026-11-21), Ryzen 9 9955HX, Windows 11 26200. **Build:** `41adb55` with this patch applied on top (git apply, clean), release build, shader cache translated with `victory shaders`. **Settings:** Series S profile, DLSS Quality (0.667), DLSS frame generation 6X, `VICTORY_ASYNC_SUBMIT=1`, borderless fullscreen, the 46 baseline variables from the GKinto profile. 9,881 draws/frame in the sample below. **Result: glass is clean, every surface that was bad on `829188e` is normal.** - Car windscreen and side windows: clear, the interior is visible through them -- on `829188e` these were dense purple-green speckle. - Mirror chrome, paint and shop windows: normal. - Floors: no brightening visible compared with `e1f2eb6`, so the white-grain fix is intact. The log confirms the new path rather than the old one: ``` WARN victory_gpu::draw: reflections' miss program left out for opaque and transparent surfaces WARN victory_gpu::draw: reflections' miss program left out: its output cleared to zero instead ``` **Nothing else regressed that I can see:** ~10 fps render at 9,881 draws (101 ms), 6X presenting 59 fps, no device loss, no pipeline refusals beyond the usual ray-tracing ones. Frame time looks the same as `e1f2eb6` within the spread between scenes, so the clear does not appear to cost anything measurable here. Screenshot attached (sunset street, red pickup): windscreen and side glass clean. For reference the "before" frames are on #2661 -- same card, same driver, `829188e` unpatched. One data point you may want: this card drops 6X to 2X occasionally (19 times in 797 frames on the previous build), so if you test here expect the presented rate to move around; that is the driver's MFG headroom, not this patch. ![Uploading fixed-glass.png…]()
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-30 05:30 UTC · original

Thanks @⁠ChenmouXu! That makes six independent confirmations (RTX 5080 ×2, 5070 Ti desktop + laptop, 3060 on Windows and Linux, RX 7800 XT), now including 6× frame generation and async submit, with no floor brightening and no frame-time cost.

**@⁠milesah3ad** on GitHub · 2026-11-30 05:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7269734722) Thanks @⁠ChenmouXu! That makes six independent confirmations (RTX 5080 ×2, 5070 Ti desktop + laptop, 3060 on Windows and Linux, RX 7800 XT), now including 6× frame generation and async submit, with no floor brightening and no frame-time cost.
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-30 08:30 UTC · original

Thanks @⁠tphira612 for the before/after captures on the RTX 4090, that's exactly the case (stale blocks on indoor glass) and a clear comparison.

**@⁠milesah3ad** on GitHub · 2026-11-30 08:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7272994842) Thanks @⁠tphira612 for the before/after captures on the RTX 4090, that's exactly the case (stale blocks on indoor glass) and a clear comparison.
Author
Owner

@⁠Fr0zenForest on GitHub · 2026-11-30 10:34 UTC · original

Confirmed fixed for me on an RTX 4080 Laptop GPU with ab342fb7 . On v2026.11.29.01 , I saw red and green blocks on the patrol car windows during the cutscene with the two officers. With this build, I no longer see those artifacts. I left VICTORY_ALIAS_TARGETS=1 enabled and didn’t need the VICTORY_RAYMISS_KEEP=1 workaround.

Setup: Ryzen 9 7945HX, RTX 4080 Laptop GPU (12 GB, driver 610.74), 32 GB RAM. Series S profile, DLSS Quality (1280×720 → 1920×1080), frame generation off.

The log confirms the new path: reflections' miss program left out: its output cleared to zero instead.

Thanks for the fix!

**@⁠Fr0zenForest** on GitHub · 2026-11-30 10:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7275790153) Confirmed fixed for me on an RTX 4080 Laptop GPU with `ab342fb7` . On `v2026.11.29.01` , I saw red and green blocks on the patrol car windows during the cutscene with the two officers. With this build, I no longer see those artifacts. I left `VICTORY_ALIAS_TARGETS=1` enabled and didn’t need the `VICTORY_RAYMISS_KEEP=1` workaround. Setup: Ryzen 9 7945HX, RTX 4080 Laptop GPU (12 GB, driver 610.74), 32 GB RAM. Series S profile, DLSS Quality (1280×720 → 1920×1080), frame generation off. The log confirms the new path: `reflections' miss program left out: its output cleared to zero instead.` Thanks for the fix!
Author
Owner

@⁠milesah3ad on GitHub · 2026-11-30 11:30 UTC · original

Thanks @⁠Fr0zenForest, good to have it on a 4080 Laptop and with VICTORY_ALIAS_TARGETS=1 too.

**@⁠milesah3ad** on GitHub · 2026-11-30 11:30 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7277129344) Thanks @⁠Fr0zenForest, good to have it on a 4080 Laptop and with `VICTORY_ALIAS_TARGETS=1` too.
Author
Owner

@⁠POMXARK on GitHub · 2026-12-01 15:34 UTC · original

VERDICT: KEPT IN TREE (default VICTORY_RAYMISS_ZERO=1) — Applies cleanly, draw::tests 14/14 PASS, confirmed active in live 3D (its output cleared to zero instead), clean glass/window visuals and zero FPS regression

Tested head ab342fb7 cleanly on top of v2026.11.30.03 (e1251c31).

Hardware & Setup

  • GPU / CPU / RAM / OS: RTX 5080 16 GB (ReBAR ON) / Ryzen 7 5700X (8C/16T) / 32 GB DDR4 / Windows 11 23H2
  • Profile: Series X, 1440p, DLSS Quality, warm shader cache, --release build.

Verification Results

  • Patch apply: Applied cleanly via git apply --3way to crates/victory-gpu/src/draw.rs and crates/victory-gpu/src/list.rs with zero conflicts.
  • Unit tests: cargo test -p victory-gpu --lib draw::tests: 14 passed, 0 failed.
  • Runtime log confirmation (both passes):
    WARN victory_gpu::draw: reflections' miss program left out: its output cleared to zero instead (VICTORY_RAYMISS_ZERO=0: not)
  • Live 3D performance (opening/diner cutscene, 3,538–3,608 draws/frame, VICTORY_PROCESS_MEMORY=0):
    • Default (VICTORY_KEEP_SHOWN=checked): prep_ms median 42.05 ms, refr_ms 13.95 ms, WW_low 5.56 ms, WW_high 1.52 ms, steady peaks 21.7 fps / 46.0 ms (zero extra CPU/GPU overhead vs prior baseline).
    • Paired with VICTORY_KEEP_SHOWN=2 (eliminating 43k+ neutral texture swaps to 0): frame_ms median 59.60 ms (p75 60.90 ms, min/max 46.3–76.2 ms), prep_ms 41.45 ms, peaks 21.6 fps / 46.3 ms.
  • Visual check: 4/4 captured PNG screenshots across diner interior, window glass, and exterior storefronts verified clean — no colored blocks, smearing, or white frost on glass surfaces, and no white grain regression on opaque floors.
Full applied PR & patch chain on top of v2026.11.30.03 (e1251c31)
  • Upstream PRs active in this test tree: #4500 (Blackwell upload strides), #4501 (prebuild prologue irradiance-cache), #4496 (water tiled light VICTORY_WAVE_FOLDED_FIRST), #4506, #4545 (wide non-XOR texture detile cache tiling), #4558, #4567, #4571, #4648 (AVX2 landing), #4651 (SAME_PRINT), #4659 (TELEMETRY_OFF), #4885 (VICTORY_THIN_PEEPHOLE, opt-in =0), #2764 (VICTORY_RAYMISS_ZERO=1, this PR — KEPT). (Note: #4737 was tested and reverted prior to this run.)
  • Custom patch stack (POMXARK/victory-city-bench, patches/v2026.11.30.03/01..06, reviewed in Discussion #3556):
    • 01: COLD_WW_RO 1 MiB chunks + out-of-GUARDS 64-stripe VP_STRIPE
    • 02: VICTORY_STEPS_FAST=1 + VICTORY_LISTED_TWINS=0
    • 03: VICTORY_LOW_L0_DMA=1 (0xb10000 MEM_WRITE_WATCH 4K + L0→L1 GPU DMA)
    • 04: VICTORY_DESC_MIRROR_CAP=1 + VICTORY_SOFT_BATCH=1 (4 MiB LAZY_AT)
    • 05–06: Review hardening (ARMING bitmap + reopen_striped_block + real-path race test, dropped ahead_intact, strict per-range card_l0_dma_allows).
  • Runtime flags: --dlss quality, VICTORY_PROCESS_MEMORY=0, VICTORY_PORT_CONSTANTS=0, VICTORY_WC_BAR=3, VICTORY_CARD_CPU_FILE=0, VICTORY_MAP_ONCE=1, VICTORY_SCRATCH_CARD=1, VICTORY_ASK_FIRST=1, VICTORY_SWEEP_OFF_THREAD=0, VICTORY_DUE_INDEX=0, VICTORY_GUARD_SHARDED=1, VICTORY_STEPS_FAST=1, VICTORY_LISTED_TWINS=0, VICTORY_LOW_L0_DMA=1, VICTORY_DESC_MIRROR_CAP=1, VICTORY_SOFT_BATCH=1, VICTORY_THIN_PEEPHOLE=0, VICTORY_RAYMISS_ZERO=1.
**@⁠POMXARK** on GitHub · 2026-12-01 15:34 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7316133510) **VERDICT: KEPT IN TREE (default `VICTORY_RAYMISS_ZERO=1`) — Applies cleanly, `draw::tests` 14/14 PASS, confirmed active in live 3D (`its output cleared to zero instead`), clean glass/window visuals and zero FPS regression** Tested head `ab342fb7` cleanly on top of `v2026.11.30.03` (`e1251c31`). ### Hardware & Setup - **GPU / CPU / RAM / OS:** RTX 5080 16 GB (ReBAR ON) / Ryzen 7 5700X (8C/16T) / 32 GB DDR4 / Windows 11 23H2 - **Profile:** Series X, 1440p, DLSS Quality, warm shader cache, `--release` build. ### Verification Results - **Patch apply:** Applied cleanly via `git apply --3way` to `crates/victory-gpu/src/draw.rs` and `crates/victory-gpu/src/list.rs` with zero conflicts. - **Unit tests:** `cargo test -p victory-gpu --lib draw::tests`: **14 passed, 0 failed**. - **Runtime log confirmation (both passes):** `WARN victory_gpu::draw: reflections' miss program left out: its output cleared to zero instead (VICTORY_RAYMISS_ZERO=0: not)` - **Live 3D performance (opening/diner cutscene, 3,538–3,608 draws/frame, `VICTORY_PROCESS_MEMORY=0`):** - Default (`VICTORY_KEEP_SHOWN=checked`): `prep_ms` median `42.05 ms`, `refr_ms` `13.95 ms`, `WW_low` `5.56 ms`, `WW_high` `1.52 ms`, steady peaks **`21.7 fps / 46.0 ms`** (zero extra CPU/GPU overhead vs prior baseline). - Paired with `VICTORY_KEEP_SHOWN=2` (eliminating `43k+` neutral texture swaps to `0`): `frame_ms` median **`59.60 ms`** (`p75 60.90 ms`, min/max `46.3–76.2 ms`), `prep_ms` **`41.45 ms`**, peaks **`21.6 fps / 46.3 ms`**. - **Visual check:** `4/4` captured PNG screenshots across diner interior, window glass, and exterior storefronts verified clean — no colored blocks, smearing, or white frost on glass surfaces, and no white grain regression on opaque floors. <details> <summary>Full applied PR &amp; patch chain on top of <code>v2026.11.30.03</code> (<code>e1251c31</code>)</summary> - Upstream PRs active in this test tree: `#4500` (Blackwell upload strides), `#4501` (prebuild prologue irradiance-cache), `#4496` (water tiled light `VICTORY_WAVE_FOLDED_FIRST`), `#4506`, `#4545` (wide non-XOR texture detile cache tiling), `#4558`, `#4567`, `#4571`, `#4648` (AVX2 landing), `#4651` (`SAME_PRINT`), `#4659` (`TELEMETRY_OFF`), `#4885` (`VICTORY_THIN_PEEPHOLE`, opt-in `=0`), **`#2764` (`VICTORY_RAYMISS_ZERO=1`, this PR — KEPT)**. *(Note: `#4737` was tested and reverted prior to this run.)* - Custom patch stack (`POMXARK/victory-city-bench`, `patches/v2026.11.30.03/01..06`, reviewed in Discussion #3556): - `01`: `COLD_WW_RO` 1 MiB chunks + out-of-`GUARDS` 64-stripe `VP_STRIPE` - `02`: `VICTORY_STEPS_FAST=1` + `VICTORY_LISTED_TWINS=0` - `03`: `VICTORY_LOW_L0_DMA=1` (`0xb10000` MEM_WRITE_WATCH 4K + L0→L1 GPU DMA) - `04`: `VICTORY_DESC_MIRROR_CAP=1` + `VICTORY_SOFT_BATCH=1` (4 MiB `LAZY_AT`) - `05`–`06`: Review hardening (`ARMING` bitmap + `reopen_striped_block` + real-path race test, dropped `ahead_intact`, strict per-range `card_l0_dma_allows`). - Runtime flags: `--dlss quality`, `VICTORY_PROCESS_MEMORY=0`, `VICTORY_PORT_CONSTANTS=0`, `VICTORY_WC_BAR=3`, `VICTORY_CARD_CPU_FILE=0`, `VICTORY_MAP_ONCE=1`, `VICTORY_SCRATCH_CARD=1`, `VICTORY_ASK_FIRST=1`, `VICTORY_SWEEP_OFF_THREAD=0`, `VICTORY_DUE_INDEX=0`, `VICTORY_GUARD_SHARDED=1`, `VICTORY_STEPS_FAST=1`, `VICTORY_LISTED_TWINS=0`, `VICTORY_LOW_L0_DMA=1`, `VICTORY_DESC_MIRROR_CAP=1`, `VICTORY_SOFT_BATCH=1`, `VICTORY_THIN_PEEPHOLE=0`, `VICTORY_RAYMISS_ZERO=1`. </details>
Author
Owner

@⁠RomanFama592 on GitHub · 2026-12-01 16:03 UTC · original

Tested on an RTX 4060 Ti 8 GB (driver 610.88), Ryzen 9 5900X, Windows 11 build 26300, Series S profile at 720 (DLSS quality). Build: this PR at ab342fb7 merged on main 7d93ee07 (local release build).

Automatic, victory-probe-mod (#2825): a plan through glossy floors, glass and water, with steps so the camera moves; 3 runs each.

build fps p95 ms CPU ms card ms
main 7d93ee07 18.8 76 42.8 41.2
main + #2764 18.9 77 41.9 40.8

No cost measured.

Playing for a few minutes in the same places: on main, car paint, chrome grilles, headlights and shop and car windows show blocky noise that flickers on and off. With this PR they look clean; the reflections are plainer, without the noise. #2872 (VICTORY_RAYMISS_ZERO=1) on the same main still showed the noise.

**@⁠RomanFama592** on GitHub · 2026-12-01 16:03 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2764#issuecomment-7316973820) Tested on an RTX 4060 Ti 8 GB (driver 610.88), Ryzen 9 5900X, Windows 11 build 26300, Series S profile at 720 (DLSS quality). Build: this PR at ab342fb7 merged on main 7d93ee07 (local release build). Automatic, victory-probe-mod (#2825): a plan through glossy floors, glass and water, with steps so the camera moves; 3 runs each. | build | fps | p95 ms | CPU ms | card ms | |---|---|---|---|---| | main 7d93ee07 | 18.8 | 76 | 42.8 | 41.2 | | main + #2764 | 18.9 | 77 | 41.9 | 40.8 | No cost measured. Playing for a few minutes in the same places: on main, car paint, chrome grilles, headlights and shop and car windows show blocky noise that flickers on and off. With this PR they look clean; the reflections are plainer, without the noise. #2872 (`VICTORY_RAYMISS_ZERO=1`) on the same main still showed the noise.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/draw.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2764/head:github-bot/gh-2764'
git switch 'github-bot/gh-2764'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2764'
git switch 'github-bot/gh-2764'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2764'
git switch 'github-bot/gh-2764'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2764'
git switch 'main'
git merge --squash 'github-bot/gh-2764'
git switch 'main'
git merge --ff-only 'github-bot/gh-2764'
git switch 'main'
git merge 'github-bot/gh-2764'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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/trustno1-coder--VIctory-NVIDIA!2764
No description provided.