perf(gpu): fix dynamic descriptor slot stalls and VICTORY_THIN congestion (VICTORY_DYNAMIC_WAIT + VICTORY_THIN_GATE) #83
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wike1701 on 2026-11-27T17:24:47Z.
Summary
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 okImported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-11-28T19:02:01Z.
Thanks for this. I'm closing it without merging: it conflicts with #48, merged now, which changed how the dynamic descriptor slots are sized in descriptor/host.rs. If you'd still like VICTORY_DYNAMIC_WAIT and VICTORY_THIN_GATE in, please rebase on the current main and open a new pull request.
Pull request closed