Ambient: drop violet probe garbage before the raise (purple blotch on lit paper) #29

Manually merged
github merged 1 commit from gh-pr/29/head into gh-pr/29/base 2026-11-27 10:44:55 +00:00
Owner

@⁠Ahyildiz on GitHub · 2026-11-27 09:29 UTC · original
Ahyildiz:fix/ambient-probe-garbage → main · +9 −0 · 1 files · 1 commits · merged 2026-11-27 09:45 UTC

What it fixes

A saturated purple-blue glow on bright lit surfaces: seen on a sheet of music on the wall right of the
window in the prison-cell cutscene (Series S, DLSS off, RTX 5080). The same frame on VIctory-Belobug-AMD shows
plain paper.

Cause

The probes' resolve (CS_ScreenProbes_TemporalResolve) can leave magenta/violet leftovers from other memory
in the light image. raise in ambient.rs caps what it keeps of that light by luminance only, which
weights blue at 0.07, so a blue-heavy leftover passes the cap and max(was, found) keeps it.

VIctory-Belobug-AMD already drops magenta leftovers at this point ("Filter magenta garbage probes"). This
ports that line and adds one for the bluer kind (blue over 2.5x green and over red), which the first line
alone left as a faint violet. Sky light (green above 0.4x blue) and sunsets (low blue) are not touched.

How it was checked

  • Unattended runs of the same cutscene (VICTORY_KEYS start-screen presses, VICTORY_CAPTURE_FRAMES), the
    launcher's settings from play-foxhound.ps1, DLSS and frame generation off, warm shader cache.
  • Bisection before the fix: VICTORY_AMBIENT_SPECULAR=0, VICTORY_AMBIENT_AIR=0 and all VICTORY_AMBIENT*
    off do not remove the glow (with the raise off it is stronger), so it is the title's leftover, not the
    reflection or air estimates.
  • With the first (magenta) line only: mostly gone, faint violet left. With both lines: gone, in two runs.
  • Frame time unchanged: median ~35 ms (25-27 fps in that scene), same as before the change.
  • Tested on the tree before #21 was merged; this branch is rebased on current main and touches only the
    shader string in ambient.rs. Not run through clippy/tests locally (no Rust code changed).

🤖 Generated with Claude Code

**@⁠Ahyildiz** on GitHub · 2026-11-27 09:29 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/29) `Ahyildiz:fix/ambient-probe-garbage` → `main` · +9 −0 · 1 files · 1 commits · merged 2026-11-27 09:45 UTC ## What it fixes A saturated **purple-blue glow on bright lit surfaces**: seen on a sheet of music on the wall right of the window in the prison-cell cutscene (Series S, DLSS off, RTX 5080). The same frame on VIctory-Belobug-AMD shows plain paper. ## Cause The probes' resolve (`CS_ScreenProbes_TemporalResolve`) can leave magenta/violet leftovers from other memory in the light image. `raise` in `ambient.rs` caps what it keeps of that light by **luminance only**, which weights blue at 0.07, so a blue-heavy leftover passes the cap and `max(was, found)` keeps it. VIctory-Belobug-AMD already drops magenta leftovers at this point ("Filter magenta garbage probes"). This ports that line and adds one for the bluer kind (blue over 2.5x green and over red), which the first line alone left as a faint violet. Sky light (green above 0.4x blue) and sunsets (low blue) are not touched. ## How it was checked - Unattended runs of the same cutscene (`VICTORY_KEYS` start-screen presses, `VICTORY_CAPTURE_FRAMES`), the launcher's settings from `play-foxhound.ps1`, DLSS and frame generation off, warm shader cache. - Bisection before the fix: `VICTORY_AMBIENT_SPECULAR=0`, `VICTORY_AMBIENT_AIR=0` and all `VICTORY_AMBIENT*` off do **not** remove the glow (with the raise off it is stronger), so it is the title's leftover, not the reflection or air estimates. - With the first (magenta) line only: mostly gone, faint violet left. With both lines: gone, in two runs. - Frame time unchanged: median ~35 ms (25-27 fps in that scene), same as before the change. - Tested on the tree before #21 was merged; this branch is rebased on current `main` and touches only the shader string in `ambient.rs`. Not run through clippy/tests locally (no Rust code changed). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The probes' resolve can leave magenta/violet leftovers from other memory in
the light image. The raise pass caps what it keeps by luminance only, which
weights blue at 0.07, so a blue-heavy leftover passes the cap and shows as a
saturated purple-blue glow on bright surfaces (a sheet of music on the wall
in the prison cell cutscene, Series S, DLSS off, RTX 5080).

VIctory-Belobug-AMD drops magenta leftovers here (ambient.rs, "Filter
magenta garbage probes"); that line is ported, plus one for the bluer kind
(blue over 2.5x green and over red) that the first leaves as a faint violet.
Sky light (green above 0.4x blue) and sunsets (low blue) are not touched.

Checked with VICTORY_CAPTURE frames of the same cutscene: the glow is gone
in two runs; frame time unchanged (~35 ms median, 25-27 fps). Turning off
VICTORY_AMBIENT_SPECULAR, VICTORY_AMBIENT_AIR or all VICTORY_AMBIENT*
does not remove it (it is the title's leftover, unbounded with the raise off).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:44:53 +00:00
github manually merged commit 826ba150c8 into gh-pr/29/base 2026-11-27 10:44:55 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.