Release swept pool blocks outside allocator locks #4394
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4394
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4393"
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?
@sklzygit on GitHub · 2026-11-30 19:44 UTC · original
sklzygit:contrib/pool-release-outside-lock→main· +47 −12 · 1 files · 1 commits · closed without mergingWhat it changes
The periodic pool sweep destroys retired D3D12 heaps/upload buffers while holding their allocator mutex. If a driver release stalls, other threads cannot allocate or return pieces to that pool. Collect the retired block handles under the lock, then release them after unlocking.
Pool selection, block sizes, budgets, quarantine, counters and busy-pool try-lock behavior stay unchanged. The allocation-path
restedcall retains its existing synchronous release behavior. No background worker, new switch, or deferred resource queue is added.How it was tested
cargo test --locked -p victory-gpu --lib pool:: -- --test-threads=1: 31 passed, 3 ignored on upstreame1251c31plus this patch.git diff --checkpasses.No in-game FPS, RAM/VRAM reduction, or total hitch reduction is claimed.
Checked for overlap
pool.rs; #3858 bounds texture-table sweeps. This isolates the allocator-lock lifetime inpool.rs. It is independent of the block-selection index in #4220.Current-main revalidation (2026-12-01)
Rebased as one focused commit
3395ad5fdirectly on upstream5fabb46e, removing the obsolete upstream-history divergence from the PR comparison. No unrelated launcher, shader or dependency changes.Hardware for the local checks: Windows 11, Ryzen 7 9800X3D, GeForce RTX 5080 16 GB, 32 GB system RAM, NVIDIA driver 621.40 (32.0.16.2140). These PRs are generic allocator/host changes; the tests below are not gameplay measurements. The local game profile is Series X, output 2560×1440, DLSS Quality, 30 FPS base cap, frame generation off in the latest recorded playtest, ray tracing off. The focused regression tests do not launch the game or depend on this profile.
cargo test --locked -p victory-gpu --lib pool:: -- --test-threads=1: 31 passed, 0 failed, 3 ignored.git diff --check origin/main...HEAD: passed.f0b829340bto3395ad5fb1@albertik322-sudo on GitHub · 2026-12-01 17:00 UTC · original
Tested as part of a batch cherry-picked onto main @
5fabb46e(with #3943, #4394, #4395 together). PC: RTX 3070 Laptop 8 GB, i7-11800H, 32 GB RAM, Windows 11. Series S, DLSS Performance, FG x4.No isolated measurement — but the batch showed no regressions over multiple 20+ minute sessions: fps medians stable or slightly up (17.4 to 17.8 in light scenes), no crashes, no visual corruption. Posting mostly to confirm it runs fine on a memory-tight 8 GB laptop, which is probably the harshest environment for anything touching allocator locking.
@trustno1-coder on GitHub · 2026-12-01 18:42 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed