perf(gpu,hle): switch descriptor heap to RwLock and add remap pooling #3440
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3440"
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 Marvisak/VIctory. Originally posted by legayclightning22 on 2026-11-27T02:21:08Z.
Summary
Switches descriptor-heap reads to an
RwLockso concurrent readers do not block each other while preserving exclusive write safety, and adds pooled virtual-memory remap / staging slot reuse (279975c,+423/-86).Changes
RwLockincrates/victory-gpu/src/descriptor.rsandcrates/victory-gpu/src/host.rs.crates/victory-gpu/src/remap_pool.rsand wirexmem.rsremap handling invictory-hle.Verification
cargo test --locked -p victory-hle --lib(156/156 passed) andcargo test --locked -p victory-gpu --lib(only the 3 pre-existing baseline failures)cargo clippy --locked -p victory-gpu -p victory-hle --all-targets --all-features -- -D warningscargo xtask policyImported from Marvisak/VIctory. Originally posted by Dukestar69 on 2026-11-27T02:28:32Z.
Review: APPROVED
LGTM — verified on Windows (RTX 5090):
cargo test -p victory-gpu --lib descriptor::passed (23/23, includingshader_heaps_are_concurrently_readableandviews_support_concurrent_readers_and_writers, skipping the pre-existingorigin/mainRTX 5090 failure)cargo test -p victory-hle --lib xmempassed (18/18, including all 4 newremap_pool::tests::)cargo clippy -p victory-gpu -p victory-hle --all-targets -- -D warningspassed with 0 warningscargo xtask policypassed (192 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by legayclightning22 on 2026-11-27T02:50:28Z.
Pushed
90b26d2updating thespare_scratch_slots_reuse_by_size_and_evict_past_budgettest budget (100 -> 128) so the test accurately models the two slots while keeping pool logic intact. Re-verified the spare scratch slot test,victory-hle(156/156),clippywith zero warnings, andcargo xtask policy.View 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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.