No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: launcher
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
run report
security: hold
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs gpu test
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Androtim--MiniVI!355
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@Androtim on GitHub · 2026-12-02 15:43 UTC · original
Androtim:fix/gpu-card-bump-pool-recycling→main· +628 −137 · 2 files · 2 commits · closed without mergingSummary
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
github-bot referenced this pull request2026-12-02 16:06:14 +00:00
@Androtim on GitHub · 2026-12-02 16:04 UTC · original
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.@Androtim on GitHub · 2026-12-02 16:06 UTC · original · edited 2026-12-02 18:02 UTC
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).@Androtim on GitHub · 2026-12-02 17:33 UTC · original
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.@Androtim on GitHub · 2026-12-02 19:37 UTC · original
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