gpu: fade unusually bright diffuse probes on dim surfaces #1995

Manually merged
github merged 2 commits from github-bot/gh-1995 into main 2026-11-30 14:16:32 +00:00 AGit
Owner

@⁠Yoshi-233 on GitHub · 2026-11-29 06:26 UTC · original
Yoshi-233:fix/dim-diffuse-probe-tiles → main · +39 −1 · 1 files · 2 commits · merged 2026-11-30 14:12 UTC

On an RTX 4070 Ti SUPER with the BVH builder disabled, a dim wood floor showed a rectangular grid that moved with the screen. The temporal diffuse resolve contained the pattern. In five aligned captures the material sampled the same packed irradiance values as the host diffuse pass, across 806,400 words per capture. The base-colour wood texture still had continuous grain.

This adds an opt-in VICTORY_AMBIENT_PROBE_OUTLIERS=1 to the existing diffuse fallback. On dim surfaces it fades a probe sample toward the local estimate when the sample is substantially brighter. It retains the existing finite/chroma filtering and adjusts the retained probe contribution used by the one-bounce path. The default shader and the BVH path keep their current behaviour. A legitimate bright pool of indirect light in a dark area could also be attenuated, so I would appreciate testing other rooms before considering a default change.

Validation

  • On a local player backport with this exact filter, I alternated the filter in the same process with a fixed interior view. Using the original scalar gather, the unfiltered host output had 53 and 54 strong grid-edge segments in a fixed 416×224 floor patch. With the filter it had 2 and 5. The upstream game resolve entering those four samples had 62–64. The window was 3840×2160 with 2560×1440 rendering. The comparison measures image quality, without a meaningful change in render rate.
  • On a captured exterior probe, replay of this filter left the number of strong edges unchanged at four. That single view does not cover all exterior lighting.
  • Tested the automatic merge of ceacb436f with main at 829188e96 on Windows. All 15 ambient::tests passed with the filter disabled and again with it enabled, including shader compilation and the hardware/WARP chroma test. The source branch passed its asset check (294 files).
  • The hosted Windows check stopped in Clippy on the unused victory_loader::crash::unwind_copy function. This PR changes only ambient.rs. Windows job log

The game measurements above are from the instrumented local backport. The proposed merge onto upstream main has separately passed the Windows tests.

The Windows Clippy check stops at the existing unused unwind_copy in victory-loader. The loader change is tracked in #2019.

**@⁠Yoshi-233** on GitHub · 2026-11-29 06:26 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1995) `Yoshi-233:fix/dim-diffuse-probe-tiles` → `main` · +39 −1 · 1 files · 2 commits · merged 2026-11-30 14:12 UTC On an RTX 4070 Ti SUPER with the BVH builder disabled, a dim wood floor showed a rectangular grid that moved with the screen. The temporal diffuse resolve contained the pattern. In five aligned captures the material sampled the same packed irradiance values as the host diffuse pass, across 806,400 words per capture. The base-colour wood texture still had continuous grain. This adds an opt-in `VICTORY_AMBIENT_PROBE_OUTLIERS=1` to the existing diffuse fallback. On dim surfaces it fades a probe sample toward the local estimate when the sample is substantially brighter. It retains the existing finite/chroma filtering and adjusts the retained probe contribution used by the one-bounce path. The default shader and the BVH path keep their current behaviour. A legitimate bright pool of indirect light in a dark area could also be attenuated, so I would appreciate testing other rooms before considering a default change. **Validation** - On a local player backport with this exact filter, I alternated the filter in the same process with a fixed interior view. Using the original scalar gather, the unfiltered host output had 53 and 54 strong grid-edge segments in a fixed 416×224 floor patch. With the filter it had 2 and 5. The upstream game resolve entering those four samples had 62–64. The window was 3840×2160 with 2560×1440 rendering. The comparison measures image quality, without a meaningful change in render rate. - On a captured exterior probe, replay of this filter left the number of strong edges unchanged at four. That single view does not cover all exterior lighting. - Tested the automatic merge of `ceacb436f` with main at `829188e96` on Windows. All 15 `ambient::tests` passed with the filter disabled and again with it enabled, including shader compilation and the hardware/WARP chroma test. The source branch passed its asset check (294 files). - The hosted Windows check stopped in Clippy on the unused `victory_loader::crash::unwind_copy` function. This PR changes only `ambient.rs`. [Windows job log](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46247213327/job/141296946358) The game measurements above are from the instrumented local backport. The proposed merge onto upstream main has separately passed the Windows tests. The Windows [Clippy check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46247213327/job/141296946358) stops at the existing unused `unwind_copy` in `victory-loader`. The loader change is tracked in #2019.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 06:28:36 +00:00
github manually merged commit f85d65a95b into main 2026-11-30 14:16:32 +00:00
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!1995
No description provided.