Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/355"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-02T15:43:15Z.
Summary
Fixes P0 finding #2 from #282 (tracking bottleneck backlog #276).
Previously, \CardBumpPool\ in \crates/victory-gpu/src/ahead.rs\ only bumped slot offsets inside 4 MiB \D3D12_HEAP_TYPE_DEFAULT\ heaps and discarded old heaps from \ctive\ once \ctive.len() >= 2. Any single surviving 64 KiB allocation permanently pinned an entire 4 MiB VRAM heap while the remaining 63 slots could never be reused, and concurrent heap creation races could abandon remaining free slots in newly created heaps.
Changes
Testing
Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-02T16:04:17Z.
Architect Deep Review (
#282P0 #2 — CI46918042491GREEN):The unified 64-slot bitset
HeapBlock/HeapPool, fence-gated slot retirement (card_retire_fence()readingqueue::queued()beforehost::submissions().0),CARD_CREATEserialization, andtrim_card_poollook clean — one major stall/deadlock issue to fix inCardZeroer::zero(crates/victory-gpu/src/ahead.rs:583) before GPU A/B & merge:CardZeroer::zerocallscrate::host::settle()(a full synchronous GPU pipeline drain) plus synchronous COPY-queueWaitForSingleObject(INFINITE)on every recycledneeds_zeroslot allocation.take_fenced(slots, finished)already guaranteesretire_fence <= finished(every GPU submission that used that slot has already completed and decayed back toCOMMON), callingcrate::host::settle()is redundant and will stall the entire frame pipeline wheneveralloc_pooled_cardrecycles a slot (and risks stalling/re-entrancy if triggered from a submitting/recording path when spares run dry).crate::host::settle()fromCardZeroer::zero(or verifying whether batching/copy-queue zeroing adds any stall) + running a paired plain---releaseA/B onmain(3efe9073+, ideally ondriving-loop.csvto verify 4 MiB card heap count stays bounded with zero FPS regression) is needed before merge.Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-02T16:06:07Z.
Automated triage for the maintainers (not an approval).
Verdict:
needs-rebase· CI (check):noneThis PR no longer merges cleanly into
main.To change the verdict: Rebase onto current
mainand resolve conflicts; CI and triage will run again automatically.Generated with Antigravity CLI (
agy).Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-02T17:33:13Z.
Superseded by
#362(just merged tomainwith green CI46932200524, verified plain---releaseA/B-553 MB4K 120s peak VRAM /0 MBover /card_heaps 167 -> 58, visually inspected PNGs, and withoutCardZeroer::zero()callinghost::settle()).If we want to carry over
#355'scard_retire_fence = started + queued + bury_lag.max(1)hardening on top of#362'scard_reclaim_release, a tiny targeted follow-up PR onmainis the cleanest path; otherwise#355can be closed.Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-12-02T19:37:18Z.
Closing as superseded by merged #362 (
8ff2a82d), which landed both #282 P0 #1 (slot_evict) and P0 #2 (recycling CardPool without calling host::settle()) with verified A/B VRAM savings (-553 MB 4K peak / 0 MB over). If we later want #355 card_retire_fence hardening on top of #362, a small targeted PR on main is the cleanest path.Pull request closed