perf(gpu): fix dynamic descriptor slot stalls and VICTORY_THIN congestion (VICTORY_DYNAMIC_WAIT + VICTORY_THIN_GATE) #83
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!83
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-83"
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?
@wike1701 on GitHub · 2026-11-27 17:24 UTC · original
wike1701:feat/dynamic-slot-wait→main· +736 −45 · 7 files · 2 commits · openSummary
Ports the full dynamic descriptor slot exhaustion & congestion fix from
fxceless/victory-forkcommits52dfd12andf299fba(GPL-3.0).Problem
In heavy open-world scenes (10k–12k draws/frame), two linked issues caused severe stalls (200–345 ms/frame, dropping to ~3 FPS) and dropped draws:
draw.rscalledsettle_for_fence()while holding the submission lock, stalling the submitting thread and starving the GPU (33–37 ms/frameinwaiting for the submission lock).VICTORY_THIN=1, worker threads translated future frames ahead of submission and hoarded all 262,144 dynamic slots (< 1,000free), preventing the next-to-send frame from acquiring slots (241 ms/framestalled waiting on untranslatedVICTORY_THINlists and354draws/frame going without slots).Changes
VICTORY_DYNAMIC_WAIT=1/alt(host.rs,draw.rs,descriptor/host.rs,queue/behind.rs): wait onLINE_LANDEDwithout taking the submission lock when dynamic slots are exhausted; trackDYNAMIC_LOW,slot_stats, andSTOODqueue idle breakdown.VICTORY_THIN_GATE(list/thin.rs,queue.rs,queue/behind.rs,descriptor/host.rs): pause translation of non-next-frame recordings when dynamic slots drop below 1/4 (or 5/8 while submitted lists are still translating), so the next frame always gets its slots and flies.draw.rs): size multi-stage tables to the pipeline's widest read (reach) and reuse longer unchanged copies (fresh_longest) for shorter reads within the same list.host.rs,list.rs): release dynamic descriptor slots at the start ofrelay_land()(before copy-back/merge) and notifyLINE_LANDEDimmediately.Verification
cargo test -p victory-gpu --lib -- list::thin:: descriptor::host:: draw:: queue::behind::: 68 passed, 0 failed, 1 ignoredcargo xtask policy: asset policy: 287 files okperf(gpu): avoid submission-lock stall on dynamic descriptor exhaustion (VICTORY_DYNAMIC_WAIT)to perf(gpu): fix dynamic descriptor slot stalls and VICTORY_THIN congestion (VICTORY_DYNAMIC_WAIT + VICTORY_THIN_GATE)0a53dd43a1tod238666923View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.