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

Closed
t90 wants to merge 533 commits from upstream-pr/205 into main
t90 commented 2026-11-27 09:23:19 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by t90 on 2026-11-27T09:23:19Z.


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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:issue:5524234349 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/205). Originally posted by [t90](https://github.com/t90) on 2026-11-27T09:23:19Z. --- 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://github.com/TaynanGT/Vice-Tay/pull/205#issuecomment-7216666091). 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.
TaynanGT commented 2026-11-27 09:28:04 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T09:28:04Z.


@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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7214715227 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/205#issuecomment-7214715227). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T09:28:04Z. --- @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.
t90 commented 2026-11-27 11:05:26 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by t90 on 2026-11-27T11:05:26Z.


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

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7216666091 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/205#issuecomment-7216666091). Originally posted by [t90](https://github.com/t90) on 2026-11-27T11:05:26Z. --- 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
TaynanGT commented 2026-11-27 11:16:53 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-27T11:16:53Z.


@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.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7216891167 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/205#issuecomment-7216891167). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-27T11:16:53Z. --- @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 commented 2026-11-30 17:15:52 +00:00 (Migrated from github.com)

Imported from TaynanGT/Vice-Tay. Originally posted by TaynanGT on 2026-11-30T17:15:52Z.


main has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current main and open a new PR; I'll review it there.

<!-- greyfinch-sync:TaynanGT/Vice-Tay:comment:7285985061 --> Imported from [TaynanGT/Vice-Tay](https://github.com/TaynanGT/Vice-Tay/pull/205#issuecomment-7285985061). Originally posted by [TaynanGT](https://github.com/TaynanGT) on 2026-11-30T17:15:52Z. --- `main` has moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the current `main` and open a new PR; I'll review it there.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
TaynanGT/Vice-Tay!205
No description provided.