Reuse the first ready descriptor batch #38
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/linkoovosh--LinkoArts-build!38
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-38"
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?
@avt0m4t48 on GitHub · 2026-12-03 05:05 UTC · original
avt0m4t48:perf-reuse-deferred-descriptor-batch→main· +7 −1 · 1 files · 1 commits · draftThe descriptor sync already owns each vector of ready slots. Reuse the first nonempty batch as the output buffer, so collecting a single batch costs no extra vector allocation or copy. Append later batches in the same order. The four-frame grace period, FIFO cutoff and sorting and deduplication after unlocking are unchanged.
Local verification
An independent ordered-set oracle matched all 180,000 queue comparisons in each build, including duplicates, empty inputs, future batches and out-of-order frame stamps. The benchmark timed the lock, collection, sort and deduplication in synthetic queues on a Linux i7-7700HQ. Each row is based on 18 paired Rust 1.98.1 optimized runs.
The single large batch removes one 32 KiB allocation in both builds. These are CPU fixture results. Production lock contention, Windows timings, GPU behavior and gameplay FPS were outside the measurement.
The standalone GPU test targets and integrated workspace test targets type-checked for Windows x86-64 MSVC with pure-Rust BLAKE3 and a metadata-only allocator declaration. The integrated checks covered both diagnostics settings. The staged asset policy passed.
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.