fix(gpu): anti-flicker culling, stencil-aware ambient & texture upload race guard (Wave 11C) #430

Manually merged
github merged 3 commits from github-bot/gh-430 into gh-pr/430/base 2026-12-04 11:20:55 +00:00 AGit
Owner

@⁠Androtim on GitHub · 2026-12-04 09:59 UTC · original
Androtim:fix/w11c-flicker-ambient → main · +1362 −113 · 8 files · 3 commits · merged 2026-12-04 11:17 UTC

Summary

Ports Wave 11C from \ReTerryDavis/ReVIctory\ commit \cac3d3c\ (\GPL-3.0), adapted cleanly to MiniVI's architecture without growing \crates/victory-gpu/src/host.rs\ or importing any launcher/UI/overlay code.

1. Anti-Flicker Culling Fixes

  • *\VICTORY_OCCLUSION_FAR* (default on; \
**@⁠Androtim** on GitHub · 2026-12-04 09:59 UTC · [original](https://github.com/Androtim/MiniVI/pull/430) `Androtim:fix/w11c-flicker-ambient` → `main` · +1362 −113 · 8 files · 3 commits · merged 2026-12-04 11:17 UTC ## Summary Ports **Wave 11C** from \ReTerryDavis/ReVIctory\ commit \cac3d3c\ (\GPL-3.0\), adapted cleanly to MiniVI's architecture without growing \crates/victory-gpu/src/host.rs\ or importing any launcher/UI/overlay code. ### 1. Anti-Flicker Culling Fixes - **\VICTORY_OCCLUSION_FAR\** (default on; \
Ported from ReTerryDavis/ReVIctory commit cac3d3c (GPL-3.0):
- descriptor/host, resource, draw: add VICTORY_OCCLUSION_FAR far-depth 128x72
  R32_FLOAT stand-in for pending CPU occlusion textures, VICTORY_PLACED_BY_VIEW
  view-range width fallback for zero-width placed buffers, and
  VICTORY_SNAPSHOT_UAV_TABLES record-time UAV descriptor table snapshots.
- ds_hold, texture: track monotonic streaming write sequences and recent write
  spans so texture refreshes defer cleanly on active or racing writes
  (VICTORY_COMING_WAITS, on by default), preserving unpopulated CPU staging so
  ahead uploads skip torn frames.
- ambient, draw: add stencil-aware place_stencil/gather_stencil passes,
  interior-only temporal mean tracking, and smooth interior stencil masking in
  bound_alpha/clear_air without altering VICTORY_AMBIENT_ALPHA fallback or
  HW-RT gating.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-04 10:03:22 +00:00
Author
Owner

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

Triage (6eb80e09, CI IN_PROGRESS, MERGEABLE):

  • Clean, 100% title-neutral Wave 11C port (ReTerryDavis/ReVIctory cac3d3c, GPL-3.0, +998/-70 across 7 files, zero opt-in toggles — VICTORY_OCCLUSION_FAR, VICTORY_PLACED_BY_VIEW, VICTORY_SNAPSHOT_UAV_TABLES, and VICTORY_COMING_WAITS are all default-on with =0 kill-switches): anti-flicker culling fixes, DirectStorage texture upload race guard, and stencil-aware ambient passes.
  • Marked triage: needs gpu test — awaiting CI check PASS + Gate 2 Audit (#282) + Gate 3 plain---release A/B & --features diagnostics PNG visual verification.
**@⁠Androtim** on GitHub · 2026-12-04 10:01 UTC · [original](https://github.com/Androtim/MiniVI/pull/430#issuecomment-7408140626) Triage (`6eb80e09`, CI `IN_PROGRESS`, `MERGEABLE`): - Clean, 100% title-neutral Wave 11C port (`ReTerryDavis/ReVIctory` `cac3d3c`, GPL-3.0, `+998/-70` across 7 files, **zero opt-in toggles** — `VICTORY_OCCLUSION_FAR`, `VICTORY_PLACED_BY_VIEW`, `VICTORY_SNAPSHOT_UAV_TABLES`, and `VICTORY_COMING_WAITS` are all default-on with `=0` kill-switches): anti-flicker culling fixes, DirectStorage texture upload race guard, and stencil-aware ambient passes. - Marked `triage: needs gpu test` — awaiting CI `check` PASS + Gate 2 Audit (`#282`) + Gate 3 plain-`--release` A/B & `--features diagnostics` PNG visual verification.
- Bounds-check and explicitly mirror stencil fallback slots via bound title heap
- Restrict Role::Resolve stencil SRV and host resource predicates to non-MSAA 2D depth-stencil views
- Abort prepare_prelude_upload whenever CpuStaging is unpopulated (including first upload)
- Advance ds_hold::WRITE_SEQ per non-empty range under RECENT_WRITES lock to preserve ring-overflow detection
- Reset read_short tracking via lock-free SHORT_TRACKED on normal refreshes and avoid double-counting on deferred ahead uploads
- Re-check raced_coming after in-place detile and return (0, true) when refresh_exact_unlocked races
Author
Owner

@⁠Androtim on GitHub · 2026-12-04 10:31 UTC · original

Updated triage (6eb80e09, CI check PASS, MERGEABLE):

  • Gate 2 Adversarial Pure-Reasoning Audit (#282 comment 7408385417): BLOCKED — 3 [P0], 3 [P1].
  • Swapped label triage: needs gpu test -> triage: needs work pending fixes + Gate 2 clean re-audit + Gate 3 & PNG visual verification.
**@⁠Androtim** on GitHub · 2026-12-04 10:31 UTC · [original](https://github.com/Androtim/MiniVI/pull/430#issuecomment-7408837110) Updated triage (`6eb80e09`, **CI `check` PASS**, `MERGEABLE`): - **Gate 2 Adversarial Pure-Reasoning Audit (`#282` comment `7408385417`):** `BLOCKED — 3 [P0], 3 [P1]`. - Swapped label `triage: needs gpu test` -> `triage: needs work` pending fixes + Gate 2 clean re-audit + Gate 3 & PNG visual verification.
Author
Owner

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

Updated triage (88fe4d22, CI check PASS, MERGEABLE):

  • Gate 2 Pure-Reasoning Re-Audit (#282 comment 7409140143): VERIFIED CLEAN (0 P0, 0 P1) — all 6 prior findings resolved.
  • Swapped label triage: needs work -> triage: needs gpu test — ready for Gate 3 plain---release A/B & --features diagnostics PNG visual verification.
**@⁠Androtim** on GitHub · 2026-12-04 11:01 UTC · [original](https://github.com/Androtim/MiniVI/pull/430#issuecomment-7409523986) Updated triage (`88fe4d22`, **CI `check` PASS**, `MERGEABLE`): - **Gate 2 Pure-Reasoning Re-Audit (`#282` comment `7409140143`):** `VERIFIED CLEAN (0 P0, 0 P1)` — all 6 prior findings resolved. - Swapped label `triage: needs work` -> `triage: needs gpu test` — ready for Gate 3 plain-`--release` A/B & `--features diagnostics` PNG visual verification.
github-bot changed target branch from main to gh-pr/430/base 2026-12-04 11:20:53 +00:00
github manually merged commit 88fe4d22d6 into gh-pr/430/base 2026-12-04 11:20:55 +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/Androtim--MiniVI!430
No description provided.