[pr-performance] Bank indirect merge counters by command list #44
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!44
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-44"
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:42 UTC · original
avt0m4t48:perf-indirect-counter-banks→main· +31 −7 · 2 files · 1 commits · draftChange
Bank the indirect-merge counters by the host command list address. Separate command lists can record on different threads. Their counters usually land in different cache lines, with one atomic increment per verdict and one more for a successful join.
The frame meter folds the banks into the existing counters. The merge decisions, recorded command lists and log format use the same code and fields as before.
Verification
Both CPU targets replayed the original and the patched Rust counter code against an independent count for every verdict and successful join. The test drained concurrently with up to 36 producers and also checked two exact reporting boundaries with the producers paused.
The benchmark reports elapsed CPU fixture time divided by operations across all workers, with 16 shuffled runs per case. These tests used Linux on an i7-7700HQ. Their timings cover counter updates and collection. Windows GPU execution and gameplay FPS remain unmeasured.
The banks use 2 KiB of static storage, up from 96 bytes. A matching address bank can retain the original contention. A concurrent frame sample can split increments across reporting windows. Both quiescent windows and cumulative counts matched exactly.
The standalone GPU test targets and combined workspace test targets passed the Windows x64 MSVC Rust type checks with pure Rust BLAKE3 and an allocator link-metadata declaration. The combined checks ran with diagnostics both on and off. Both staged source sets passed the asset 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.