gpu(ambient): suppress close-range probe mosaic blocks and cap radiance/air spikes #181

Closed
github-bot wants to merge 1 commit from gh-pr/181/head into gh-pr/181/base
Owner

@⁠Androtim on GitHub · 2026-11-30 02:02 UTC · original
Androtim:feat/iter178-ambient-character-mosaic-fix → main · +11 −3 · 1 files · 1 commits · closed without merging

Summary

  • Suppress close-range probe mosaic artifacts & clamp extreme spikes (ambient.rs):
    • In keep(), clamped incoming sample radiance with min(c, float3(30.0, 30.0, 30.0)) before highlight roll-off.
    • In mean(), capped the smoothed scene average RGB to 2.0 while preserving age in .a.
    • In clear_air(), guarded scattered[at] against NaN/Inf exponents and capped the volumetric air luminance limit at min(cap, 0.5).
    • In raise(), blended out uninitialized close-range temporal probe history using float sky = saturate((c.z - 100.0) / 150.0) (lerp(found, max(was, found), sky)) and scaled share by sky so close characters and surfaces use clean indirect estimates without grey/blocky probe tiles while distant horizons retain sky luminance.

Verification

  • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy: asset policy: 311 files ok
  • cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu ambient:: -- --test-threads=1: 9 passed; 0 failed (including ambient::tests::the_passes_build)
  • cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings (default and --features diagnostics): clean
  • Live GPU verification (75s in-world -PlayParity -AutoNudgeMenu):
    • Xbox Series S: 12.75 fps median (78.6 ms), preparing 36.65 ms, copyback 12.7 ms, VRAM peak 6508 MB / budget min 6867 MB (over=0 MB), 62592 textures uploaded, final_waiting=2374, mapped_rate=8.05 ms/s, 20/24 lit PNGs (luma=97.94, near_black=0.02%, edge_energy=6.72, magenta=0.0%), 0 crashes.
    • Xbox Series X (1440p): 10.6 fps median (94.7 ms), preparing 38.6 ms, copyback 14.8 ms, 18/24 lit PNGs (luma=101.21, near_black=0.01%, edge_energy=7.15, magenta=0.0%), 0 crashes. Visual inspection of the balcony character close-ups confirms the blocky probe mosaic artifacts on face/neck are eliminated.
**@⁠Androtim** on GitHub · 2026-11-30 02:02 UTC · [original](https://github.com/Androtim/MiniVI/pull/181) `Androtim:feat/iter178-ambient-character-mosaic-fix` → `main` · +11 −3 · 1 files · 1 commits · closed without merging ## Summary - **Suppress close-range probe mosaic artifacts & clamp extreme spikes (`ambient.rs`):** - In `keep()`, clamped incoming sample radiance with `min(c, float3(30.0, 30.0, 30.0))` before highlight roll-off. - In `mean()`, capped the smoothed scene average RGB to `2.0` while preserving `age` in `.a`. - In `clear_air()`, guarded `scattered[at]` against NaN/Inf exponents and capped the volumetric air luminance limit at `min(cap, 0.5)`. - In `raise()`, blended out uninitialized close-range temporal probe history using `float sky = saturate((c.z - 100.0) / 150.0)` (`lerp(found, max(was, found), sky)`) and scaled `share` by `sky` so close characters and surfaces use clean indirect estimates without grey/blocky probe tiles while distant horizons retain sky luminance. ## Verification - `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy`: `asset policy: 311 files ok` - `cargo +1.98.1-x86_64-pc-windows-gnu test -p victory-gpu ambient:: -- --test-threads=1`: `9 passed; 0 failed` (including `ambient::tests::the_passes_build`) - `cargo +1.98.1-x86_64-pc-windows-gnu clippy --workspace --all-targets -- -D warnings` (default and `--features diagnostics`): clean - **Live GPU verification (75s in-world `-PlayParity -AutoNudgeMenu`):** - **Xbox Series S:** `12.75 fps` median (`78.6 ms`), `preparing 36.65 ms`, `copyback 12.7 ms`, VRAM peak `6508 MB` / budget min `6867 MB` (`over=0 MB`), `62592` textures uploaded, `final_waiting=2374`, `mapped_rate=8.05 ms/s`, `20/24` lit PNGs (`luma=97.94`, `near_black=0.02%`, `edge_energy=6.72`, `magenta=0.0%`), `0` crashes. - **Xbox Series X (`1440p`):** `10.6 fps` median (`94.7 ms`), `preparing 38.6 ms`, `copyback 14.8 ms`, `18/24` lit PNGs (`luma=101.21`, `near_black=0.01%`, `edge_energy=7.15`, `magenta=0.0%`), `0` crashes. Visual inspection of the balcony character close-ups confirms the blocky probe mosaic artifacts on face/neck are eliminated.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 20:16:24 +00:00
github-bot closed this pull request 2026-12-01 20:16:24 +00:00
Author
Owner

@⁠Androtim on GitHub · 2026-11-30 03:03 UTC · original · edited 2026-11-30 23:02 UTC

Automated triage for the maintainers (not an approval).

Verdict: needs-rebase · CI (check): passing

This PR no longer merges cleanly into main.

To change the verdict: Rebase onto current main and resolve conflicts; CI and triage will run again automatically.


Generated with Antigravity CLI (agy).

**@⁠Androtim** on GitHub · 2026-11-30 03:03 UTC · [original](https://github.com/Androtim/MiniVI/pull/181#issuecomment-7267547222) · edited 2026-11-30 23:02 UTC <!-- minivi-triage v1 head=b86cd4c9d2ab970a886c0885cd9113419025a4d9 verdict=needs-rebase ci=passing at=2026-11-30T23:02:43Z --> Automated triage for the maintainers (not an approval). **Verdict:** `needs-rebase` · **CI (`check`):** `passing` This PR no longer merges cleanly into `main`. **To change the verdict:** Rebase onto current `main` and resolve conflicts; CI and triage will run again automatically. --- _Generated with Antigravity CLI (`agy`)._
Author
Owner

@⁠Androtim on GitHub · 2026-12-01 01:38 UTC · original

Closing as superseded by newer merged/tracked work per #276 (Core Architecture Rewrite Backlog).

**@⁠Androtim** on GitHub · 2026-12-01 01:38 UTC · [original](https://github.com/Androtim/MiniVI/pull/181#issuecomment-7297722280) Closing as superseded by newer merged/tracked work per #276 (Core Architecture Rewrite Backlog).

Pull request closed

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/Androtim--MiniVI!181
No description provided.