Add opt-in neutral diffuse probe replacement for stray colour flashes #205

Open
github-bot wants to merge 10 commits from github-bot/gh-205 into main AGit
Owner

@⁠t90 on GitHub · 2026-11-27 09:23 UTC · original
t90:pr/neutral-probe-light → main · +406 −17 · 3 files · 10 commits · open

Depends on #204. This PR stacks on its depth-free ambient floor; until #204 merges, GitHub’s main comparison includes that prerequisite. Please review the replacement-specific changes in ambient.rs and the neutral-probe documentation separately. The reviewed #204 setup fix is included: FLAT is created only when requested, and its failure leaves existing ambient passes available.

Add VICTORY_AMBIENT_FLAT_REPLACE=1 to replace the missing-depth diffuse resolve’s probe irradiance with the configured warm-neutral value. The setting defaults off and only the exact value 1 enables it. Activation also requires the existing ambient stand-in, its builder gate, and a positive VICTORY_AMBIENT_FLAT level. Restart after changing it. The valid-depth path retains its existing behavior. A diagnostic message is emitted when replacement is actually used.

This is a workaround for spurious coloured diffuse illumination, not a correction of its producer. It discards legitimate indirect colour, intensity and spatial variation too, including brighter-than-floor probe light. Direct-light and reflection passes are not disabled, though their composite appearance can change. It does not reconstruct physically correct lighting. No gray post-process lift, personal launcher or frame-generation changes are included.

Validation by revision:

  • Current remote CI: all four Windows checks passed on b80c7ea.
  • Latest stacked revision: 12 focused ambient tests passed, including optional pipeline rejection/default-off isolation, plus D3D12 WARP readback replacing black, gray, bright and saturated RGB/magenta with the same neutral value; replacement-off preservation and dispatch bounds passed.
  • Previous stacked revision: workspace/all-targets Clippy passed with default and all features (-D warnings); asset policy passed (307 files), diff check passed.
  • Previous stacked revision: the exact all-features serial workspace suite failed in the unchanged replay integration test: the test selects the installed Windows SDK dxc, which rejects ms_6_6. The complete remaining suite passed with only a_frame_is_recorded_and_replayed excluded. This is not a claim that the exact CI suite passed.
  • The prerequisite ambient branch passed the full default workspace suite.

Paired replacement-off/on recordings and exact settings are attached in this evidence comment. The same executable and ambient floor/gray lift were held constant; only replacement changed. Both logs confirm the missing-depth path. Camera paths were performed separately, so the pair is qualitative image evidence, not a matched performance benchmark. Full temporal/trade-off review remains open, including legitimate coloured indirect light, phone/HUD, shadows and reflections. All game-derived media and logs remain outside Git. Ready for code and image review; merge remains dependent on #204.

**@⁠t90** on GitHub · 2026-11-27 09:23 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/205) `t90:pr/neutral-probe-light` → `main` · +406 −17 · 3 files · 10 commits · open Depends on #204. This PR stacks on its depth-free ambient floor; until #204 merges, GitHub’s main comparison includes that prerequisite. Please review the replacement-specific changes in `ambient.rs` and the neutral-probe documentation separately. The reviewed #204 setup fix is included: FLAT is created only when requested, and its failure leaves existing ambient passes available. Add `VICTORY_AMBIENT_FLAT_REPLACE=1` to replace the missing-depth diffuse resolve’s probe irradiance with the configured warm-neutral value. The setting defaults off and only the exact value `1` enables it. Activation also requires the existing ambient stand-in, its builder gate, and a positive `VICTORY_AMBIENT_FLAT` level. Restart after changing it. The valid-depth path retains its existing behavior. A diagnostic message is emitted when replacement is actually used. This is a workaround for spurious coloured diffuse illumination, not a correction of its producer. It discards legitimate indirect colour, intensity and spatial variation too, including brighter-than-floor probe light. Direct-light and reflection passes are not disabled, though their composite appearance can change. It does not reconstruct physically correct lighting. No gray post-process lift, personal launcher or frame-generation changes are included. Validation by revision: - Current remote CI: all four Windows checks passed on `b80c7ea`. - Latest stacked revision: 12 focused ambient tests passed, including optional pipeline rejection/default-off isolation, plus D3D12 WARP readback replacing black, gray, bright and saturated RGB/magenta with the same neutral value; replacement-off preservation and dispatch bounds passed. - Previous stacked revision: workspace/all-targets Clippy passed with default and all features (`-D warnings`); asset policy passed (307 files), diff check passed. - Previous stacked revision: the exact all-features serial workspace suite failed in the unchanged replay integration test: the test selects the installed Windows SDK dxc, which rejects `ms_6_6`. The complete remaining suite passed with only `a_frame_is_recorded_and_replayed` excluded. This is not a claim that the exact CI suite passed. - The prerequisite ambient branch passed the full default workspace suite. Paired replacement-off/on recordings and exact settings are attached in [this evidence comment](https://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/205). The same executable and ambient floor/gray lift were held constant; only replacement changed. Both logs confirm the missing-depth path. Camera paths were performed separately, so the pair is qualitative image evidence, not a matched performance benchmark. Full temporal/trade-off review remains open, including legitimate coloured indirect light, phone/HUD, shadows and reflections. All game-derived media and logs remain outside Git. Ready for code and image review; merge remains dependent on #204.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:39:57 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 09:28 UTC · original

@⁠t90 The replay test selects x64/dxc.exe from the highest installed Windows SDK folder, so changing PATH won’t pick a different compiler. A current Windows SDK with ms_6_6 support will let you rerun that case. For the image comparison, use a shot that logs the missing-depth fallback and toggle only VICTORY_AMBIENT_FLAT_REPLACE. That isolates the replacement and makes it possible to check what happens to legitimate coloured indirect light.

The RTX 3080 report in #197 now points to a rejected stencil SRV in the diffuse resolve slot. I’ll track that binding separately from the replacement workaround.

**@⁠TaynanGT** on GitHub · 2026-11-27 09:28 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/205#issuecomment-7214715227) @⁠t90 The replay test selects `x64/dxc.exe` from the highest installed Windows SDK folder, so changing `PATH` won’t pick a different compiler. A current Windows SDK with `ms_6_6` support will let you rerun that case. For the image comparison, use a shot that logs the missing-depth fallback and toggle only `VICTORY_AMBIENT_FLAT_REPLACE`. That isolates the replacement and makes it possible to check what happens to legitimate coloured indirect light. The RTX 3080 report in #197 now points to a rejected stencil SRV in the diffuse resolve slot. I’ll track that binding separately from the replacement workaround.
Author
Owner

@⁠t90 on GitHub · 2026-11-27 11:05 UTC · original

Paired probe-replacement recordings are ready for review. Both runs used the same executable (SHA-256 754BAAE89C2C216D2BCB5346A8BB1FF9D60351129DD9669C43C0CB594C2ADCE6) and unchanged ambient floor 1.2, gray lift 0.12, DLSS Quality, NVIDIA 4× request and texture budget 80%. The only launch-setting change was VICTORY_AMBIENT_FLAT_REPLACE: 0 before, 1 after.

Both logs confirm the missing-depth route and a recorded 1280×720 floor dispatch at level 1.2. Only the enabled run logs neutral probe replacement activation. The clips cover the affected building/checkpoint; the camera paths were performed separately, so this is qualitative evidence rather than a matched performance benchmark. Loading and desktop footage have been removed; all media remains outside Git.

Replacement still discards legitimate indirect color, intensity and spatial variation, as documented. Reviewing those trade-offs and temporal artifacts remains part of the image review. This pair does not establish the separate effects of the ambient floor or gray lift, or a correction of the probe producer.

  • Four Windows CI checks passed on b80c7ea.
  • Replacement-only settings toggle, identical executable and confirmed dispatch path.
  • Paired recordings attached below.
  • Complete image/temporal review, including legitimate colored indirect light.
  • Merge prerequisite #204, then update this branch so its remaining diff is replacement-specific.

Before — replacement off (~18 seconds):

https://github.com/user-attachments/assets/4fb4239a-c9d7-403d-9099-16004e489a33

After — replacement on (~18 seconds):

https://github.com/user-attachments/assets/a0eca15e-795e-454e-809b-7bf1b633cad5

**@⁠t90** on GitHub · 2026-11-27 11:05 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/205#issuecomment-7216666091) Paired probe-replacement recordings are ready for review. Both runs used the same executable (SHA-256 `754BAAE89C2C216D2BCB5346A8BB1FF9D60351129DD9669C43C0CB594C2ADCE6`) and unchanged ambient floor `1.2`, gray lift `0.12`, DLSS Quality, NVIDIA 4× request and texture budget 80%. The only launch-setting change was `VICTORY_AMBIENT_FLAT_REPLACE`: `0` before, `1` after. Both logs confirm the missing-depth route and a recorded `1280×720` floor dispatch at level `1.2`. Only the enabled run logs neutral probe replacement activation. The clips cover the affected building/checkpoint; the camera paths were performed separately, so this is qualitative evidence rather than a matched performance benchmark. Loading and desktop footage have been removed; all media remains outside Git. Replacement still discards legitimate indirect color, intensity and spatial variation, as documented. Reviewing those trade-offs and temporal artifacts remains part of the image review. This pair does not establish the separate effects of the ambient floor or gray lift, or a correction of the probe producer. - [x] Four Windows CI checks passed on `b80c7ea`. - [x] Replacement-only settings toggle, identical executable and confirmed dispatch path. - [x] Paired recordings attached below. - [ ] Complete image/temporal review, including legitimate colored indirect light. - [ ] Merge prerequisite #204, then update this branch so its remaining diff is replacement-specific. Before — replacement off (~18 seconds): https://github.com/user-attachments/assets/4fb4239a-c9d7-403d-9099-16004e489a33 After — replacement on (~18 seconds): https://github.com/user-attachments/assets/a0eca15e-795e-454e-809b-7bf1b633cad5
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 11:16 UTC · original

@⁠t90 The dispatch markers tie both clips to the 1.2 floor and confirm the replacement toggle. For the temporal review, check the affected surfaces through motion and cuts, then use a fixed view with legitimate coloured indirect light to see what the neutral replacement takes away. The floor-only comparison in #204 remains a separate result.

**@⁠TaynanGT** on GitHub · 2026-11-27 11:16 UTC · [original](https://github.com/TaynanGT/Vice-Tay/pull/205#issuecomment-7216891167) @⁠t90 The dispatch markers tie both clips to the `1.2` floor and confirm the replacement toggle. For the temporal review, check the affected surfaces through motion and cuts, then use a fixed view with legitimate coloured indirect light to see what the neutral replacement takes away. The floor-only comparison in #204 remains a separate result.
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/205/head:github-bot/gh-205'
git switch 'github-bot/gh-205'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-205'
git switch 'github-bot/gh-205'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-205'
git switch 'github-bot/gh-205'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-205'
git switch 'main'
git merge --squash 'github-bot/gh-205'
git switch 'main'
git merge --ff-only 'github-bot/gh-205'
git switch 'main'
git merge 'github-bot/gh-205'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.