perf(victory-gpu): reclaim idle surplus upload slabs from windowup pool #404
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!404
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-404"
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?
@Lewandox on GitHub · 2026-11-26 17:32 UTC · original
Lewandox:perf/windowup-trim-idle-slabs→main· +129 −1 · 3 files · 1 commits · closed without mergingSummary
Reclaims idle surplus upload slabs from the transient-window upload pool (
third_party/victory/crates/victory-gpu/src/windowup.rs+ 1-line hook inhost::sweep):VICTORY_CARD_WINDOW_UPLOAD=1,windowup::allocgrowsPOOL.slabsin 16 MiB D3D12 upload slabs up toVICTORY_CARD_WINDOW_UPLOAD_MB(default 512 MiB) during loading/streaming bursts, and previously never released idle slabs once gameplay settled back to 1–2 active slabs.last_used(crate::host::moment()) on eachPooledSlab.windowup::let_go_idle()called fromhost::sweep()using the same adaptiveram_idle_ms+IDLE_FRAMES = 4policy asshadow::let_go_idle()andtexture::let_go_idle().live == 0(allChunks already dropped after GPU completion inHost::card_done) outside thePOOLmutex.POOLEDandpool.curaccurately and logs reclaimed bytes viahost::trail.windowup::tests::trim_idle_releases_unused_surplus_slabs_and_keeps_live_onesverifying live slabs are never evicted, idle surplus slabs are released and deducted fromPOOLED, and the last warm slab stays reusable.Verification
cargo test -p victory-gpu --lib windowup::tests(default and--features diagnostics)cargo xtask policyinsidethird_party/victory@Lewandox on GitHub · 2026-11-26 19:16 UTC · original
Closing as obsolete after #409 (\windowup.rs\ was removed in the combined base). Keeping the PR queue clean.
Pull request closed