GPU: interpolate aligned diffuse probe seams on continuous depth #2138

Open
github-bot wants to merge 1 commit from github-bot/gh-2138 into main AGit
Owner

@⁠Yoshi-233 on GitHub · 2026-11-29 09:51 UTC · original
Yoshi-233:fix/limit-untraced-probe-seams → main · +103 −0 · 1 files · 1 commits · open

On a sunlit wood floor, the untraced diffuse resolve can contain bright rectangular steps aligned to a 16-pixel grid. In one doorway capture, all 55 measured hard edges in the displayed floor patch had a corresponding step in the packed irradiance sampled by the material. The grain was visible across the boundary.

This adds an opt-in VICTORY_AMBIENT_PROBE_EDGES=1 pass after the untraced diffuse estimate. It checks for a sustained change at a grid boundary with continuous device depth. It interpolates the packed light between the measured colours on either side. The BVH path, constant-light mode and unequal light/depth extents skip the pass.

Reproducing the measurement

In daylight, open the porch door and stand on the threshold looking toward the kitchen. Use the same wood patch and angle for both settings. On my RTX 4070 Ti SUPER, Series X, DLSS Quality M (2560×1440 input and 3840×2160 output), 2× frame generation, BVH disabled, I obtained two on/off pairs in one player process.

Pair Segments with a luminance jump >½ stop, off → on Mean floor luminance on the 0–255 display scale, off → on
1 98 → 3 125.1 → 130.6
2 109 → 4 128.3 → 127.3

The p90 registration error across the pairs was at most 0.08 pixels at 480-pixel inspection width. The wood grain and sunlit band remain visible. Some corners of the diagonal light boundary still look angular. The cutoff can also catch a legitimate straight boundary in indirect light on a flat surface. Additional rooms and GPUs would help evaluate that trade-off before changing defaults.

Code and hardware checks

  • The gameplay figures above come from a local player backport with the same shader kernel. The local hardware fixture ran eight inputs on the NVIDIA adapter and WARP. A synthetic grid step fell from 0.750 to 0.061. Constant colour, a depth edge, a displaced edge, a small highlight, sky depth and a gradual slope kept their packed values. The compute pass uses group-shared memory with group barriers.
  • I tested the automatic merge of the submitted source branch onto 829188e96. All 14 Windows ambient::tests passed with the option disabled and again enabled. The staged source passed the asset check. I ran the ambient tests, not the full workspace suite. I have no frame-rate gain to report for this pass.

I checked for existing probe and interior-light patches. #1995 filters very bright outliers on dim surfaces. This PR is independent and covers a measured step on a moderately bright floor.

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 09:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2138) `Yoshi-233:fix/limit-untraced-probe-seams` → `main` · +103 −0 · 1 files · 1 commits · open On a sunlit wood floor, the untraced diffuse resolve can contain bright rectangular steps aligned to a 16-pixel grid. In one doorway capture, all 55 measured hard edges in the displayed floor patch had a corresponding step in the packed irradiance sampled by the material. The grain was visible across the boundary. This adds an opt-in `VICTORY_AMBIENT_PROBE_EDGES=1` pass after the untraced diffuse estimate. It checks for a sustained change at a grid boundary with continuous device depth. It interpolates the packed light between the measured colours on either side. The BVH path, constant-light mode and unequal light/depth extents skip the pass. **Reproducing the measurement** In daylight, open the porch door and stand on the threshold looking toward the kitchen. Use the same wood patch and angle for both settings. On my RTX 4070 Ti SUPER, Series X, DLSS Quality M (2560×1440 input and 3840×2160 output), 2× frame generation, BVH disabled, I obtained two on/off pairs in one player process. | Pair | Segments with a luminance jump >½ stop, off → on | Mean floor luminance on the 0–255 display scale, off → on | | --- | --- | --- | | 1 | 98 → 3 | 125.1 → 130.6 | | 2 | 109 → 4 | 128.3 → 127.3 | The p90 registration error across the pairs was at most 0.08 pixels at 480-pixel inspection width. The wood grain and sunlit band remain visible. Some corners of the diagonal light boundary still look angular. The cutoff can also catch a legitimate straight boundary in indirect light on a flat surface. Additional rooms and GPUs would help evaluate that trade-off before changing defaults. **Code and hardware checks** - The gameplay figures above come from a local player backport with the same shader kernel. The local hardware fixture ran eight inputs on the NVIDIA adapter and WARP. A synthetic grid step fell from 0.750 to 0.061. Constant colour, a depth edge, a displaced edge, a small highlight, sky depth and a gradual slope kept their packed values. The compute pass uses group-shared memory with group barriers. - I tested the automatic merge of the submitted source branch onto `829188e96`. All 14 Windows `ambient::tests` passed with the option disabled and again enabled. The staged source passed the asset check. I ran the ambient tests, not the full workspace suite. I have no frame-rate gain to report for this pass. I checked for existing probe and interior-light patches. #1995 filters very bright outliers on dim surfaces. This PR is independent and covers a measured step on a moderately bright floor. The Windows [Clippy check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46249413405/job/141303967623) 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 09:55:55 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2138'
git switch 'github-bot/gh-2138'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2138'
git switch 'github-bot/gh-2138'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2138'
git switch 'main'
git merge --squash 'github-bot/gh-2138'
git switch 'main'
git merge --ff-only 'github-bot/gh-2138'
git switch 'main'
git merge 'github-bot/gh-2138'
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!2138
No description provided.