fix(victory-gpu): retire kept host resources when releasing dynamic descriptor slots #446
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!446
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-446"
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 18:55 UTC · original
Lewandox:fix/victory-gpu-dynamic-slot-release→main· +59 −7 · 1 files · 1 commits · openSummary
Rebased onto the
#409combined base (which already removed the 200 µs polling sleep fromHostHeap::dynamic).Fixes a VRAM / host-resource retention leak in
victory-gpu/src/descriptor/host.rs:HostHeap::release(first, n)previously cleared only thetakenbitmap and left every released dynamic slot'sself.kept[index]holding itsID3D12ResourceCOM reference until the slot was later overwritten.HostHeap::releasedrainsself.kept[index]for each released dynamic slot and retires the old resources viacrate::host::retire_resource(old)after dropping theself.nextmutex, matchingHostHeap::keepand preventing evicted textures/buffers from staying pinned in VRAM/shared memory.descriptor::host::tests::release_clears_kept_resources_for_dynamic_slots.Relates to #412.
Verification
cargo test -p victory-gpu descriptor::host::tests::release_clears_kept_resources_for_dynamic_slots(default and--features diagnostics)fix(victory-gpu): release kept resources on dynamic slot free and wake waiters via Condvarto fix(victory-gpu): retire kept host resources when releasing dynamic descriptor slots135d8ace70to5b2522b8b45b2522b8b4toe04cc0bc0eView 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.