Repository navigation
Reflections: clear the left-out miss program's output instead of leaving earlier frames' bytes (#2440) - #2764
milesah3ad wants to merge 2 commits into
Conversation
…ing earlier frames' bytes (trustno1-coder#2440) Since e2d7854 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 (trustno1-coder#2440, trustno1-coder#2464). Running the alpha layer only does not help, since glass is drawn in the opaque layer with the floors (PR trustno1-coder#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 trustno1-coder#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, 829188e: 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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE
|
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 I couldn't check an interior floor in this cutscene (none visible), but clearing to zero instead of running
|
…ing earlier frames' bytes (#2440) Since e2d7854 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, 829188e: window reflections clean with it, smearing back with VICTORY_RAYMISS_ZERO=0; no new artifacts (an edge flicker seen in both runs predates it). From trustno1-coder/VIctory-NVIDIA#2764. Taken for the blue blocks on windows seen on the RTX PRO 5000 laptop with v2026.11.29.01 (VICTORY_RAYMISS_ZERO=0 turns it off for an A/B). (cherry picked from commit 8715a9d7b983ac62a39e43cbbd3a3b674b5defac) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Does the fix work on a new release? |
|
@NovNovikov Yes. v2026.11.29.02 doesn't touch the reflection code (its 10 commits since 829188e change |
|
Confirmed fixed, on both versions. Config: 7800x3D, RTX 5070 Ti, driver 621.40,, Series X, 4K + DLSS Perf + FG 3x.
Thanks! |
|
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. |
|
Tested on Linux, RTX 3060 12 GB (Ampere), NVIDIA 620.73.04, CachyOS, Proton Experimental 11.0-20261112 with vkd3d-proton master
Not checked: indoor wooden floors specifically for the white grain, so I can't confirm that part on this card. |
|
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. |
|
AMD confirmation from @saltdam36 on #2224: RX 7800 XT, Series S, FSR upscaler (#1236) on, |
|
Tested on an RTX 5080 (driver 610.88, Windows 11), built from 829188e + this PR. Series S, DLSS Quality, ray tracing off,
The "not at the usual place" line never fired in this scene. Two small hardening ideas:
#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 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. |
…ts usual place; log a skipped clear Review suggestions on trustno1-coder#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 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE
|
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 |
…t miss program's output instead of leaving earlier frames' bytes (trustno1-coder#2440) trustno1-coder#2764 by milesah3ad, head 8715a9d.
|
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. Result: glass is clean, every surface that was bad on
The log confirms the new path rather than the old one: 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 Screenshot attached (sunset street, red pickup): windscreen and side glass clean. For reference the "before" frames are on #2661 -- same card, same driver, 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. |
|
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. |
|
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. |
|
Confirmed fixed for me on an RTX 4080 Laptop GPU with 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: Thanks for the fix! |
|
Thanks @Fr0zenForest, good to have it on a 4080 Laptop and with |
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 e2d7854, 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, nowpub(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=0restores the old behaviour.Tested. RTX 5080 16 GB, Ryzen 7 9800X3D, Series X 1440p, DLSS Quality, on 829188e, scripted run through the opening and the boat scene:
reflections' miss program left out: its output cleared to zero instead;VICTORY_RAYMISS_ZERO=0on the same build, the smearing is back;cargo check --release -p victorypasses on main plus this change. The diagnostics build needs #2593.🤖 Generated with Claude Code
https://claude.ai/code/session_01YPhfiX2HTdGjHQHvB9b9DE