perf(descriptor): batch texture recheck claims in heap_textures pass #2605
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2605"
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 qlfu on 2026-11-29T14:53:55Z.
Summary
Batches speculative texture recheck claims in
draw::State::heap_texturesinstead of acquiringHostHeap::checkingandTextureQueue(queue_site::DUE) once per due recheck slot:HostHeap::claim_texture_rechecks(&self, candidates: &[(u32, u64, Checked)], frame: u64)claiming up toTells::BATCH(64) candidates under onecheckinglock and oneTextureQueue::DUElock acquisition, with an unwind-safeReleaseRejecteddrop guard preservingchecking/TextureQueuelock ordering.claim_cacheindraw::State::heap_texturesthat refills in batches of up toTells::BATCHwhenmark == Some(write) && knew == Some(expected), dropping skipped/unused claims immediately and falling back to singleclaim_texture_recheckotherwise.Verification
cargo test -p victory-gpu --lib --locked descriptor::host -- --test-threads=1(79 passed; 0 failed, including newclaim_texture_rechecks_batches_valid_busy_and_stale_slots).cargo test -p victory-gpu --lib --locked -- --test-threads=1 --quiet(926 passed; 0 failed; 57 ignored).cargo clippy -p victory-gpu --lib --tests --locked:0new warnings.1440p DLSS Balanced, RTX 4070 Ti + Ryzen 7 5700X,0 WARNs / 0 ERRORs):TextureQueue::DUElock acquisitions per 5s:8,554 -> 435(-94.9%)taking the slots duetime per 5s:122 ms -> 28 ms(-77%)Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by qlfu on 2026-11-30T00:12:36Z.
Rebased cleanly onto
main(41adb551), preserving both#2607's remap-history tests andclaim_texture_rechecks_batches_valid_busy_and_stale_slots. Verifiedcargo test -p victory-gpu --lib --locked -- claim_texture_rechecks --test-threads=1(1 passed) andcargo check -p victory-gpu --features diagnostics --locked.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-30T05:18:32Z.
Review: APPROVED
Tested locally merged onto
main(41adb551).crates/victory-gpu/src/descriptor/host.rsanddraw.rs.cargo test -p victory-gpu --lib descriptor::host::tests::passed (73 passed; 0 failed; 1 ignored, including the newclaim_texture_rechecks_batches_valid_busy_and_stale_slotstest) with 0 new warnings.Clean batched texture-recheck claiming optimization reducing lock acquisition overhead. LGTM.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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.