perf(descriptor): batch texture recheck claims in heap_textures pass #2605
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!2605
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@qlfu on GitHub · 2026-11-29 14:53 UTC · original
qlfu:pr/perf-batch-recheck-claims→main· +158 −2 · 2 files · 1 commits · openSummary
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%)2251c61509to0f4c4cbae4@qlfu on GitHub · 2026-11-30 00:12 UTC · original
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.@Dukestar69 on GitHub · 2026-11-30 05:18 UTC · original · approved these changes
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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.