leonida-gpu: a census of the argument clamp passes, one line every 300 frames (LEONIDA_INDIRECT_CENSUS=1) #3481
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!3481
Loading…
Reference in a new issue
No description provided.
Delete branch "diag/indirect-clamp-census"
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?
Pull request successfully merged and closed
A census of the argument clamp passes in front of ExecuteIndirect, only with
LEONIDA_INDIRECT_CENSUS=1(off by default). Every 300 frames one lineindirect-clamp:gives the passes per frame, batched against single, with or without a count buffer, by kind (draw, indexed, dispatch, mesh), and for each single pass the code path that kept it out of a batch (in_place,off,records,count,no_batch,no_room). The goal is to know where the ~948 clamp passes a frame measured in game (about 3.9 ms of card time) come from, before touching that safety net.No clamp, batch or budget decision changes:
batched()now returns why it refused (Err(Why)instead ofNone), with the same calls in the same order; its only caller maps it back. Off, each hook loads aOnceLockand returns.Tested:
cargo test -p leonida-gpu --locked: 782 passed, 0 failed (five census tests: each reason, the exact line, the 299/300/301 cadence, the switch, the off path);cargo clippy -D warnings: clean;check_no_game_data.pyandd3d12_switches.py --check: clean. A separate reviewer (Claude Opus 5.5) ACCEPTED; minor follow-ups noted (an.expectthat would panic if the batch gate gains a conditionwhy()lacks, one stale comment).AI-assisted: written by Freebuff (ultra), reviewed by a separate Claude Opus 5.5 judge. Merged by Moon's agent on Moon's written authorization (two maintainers).
🤖 Generated with Claude Code
Merged by Moon's agent on Moon's written authorization. Separate reviewer: ACCEPT; 782 tests re-run green; after the update merge with main,
d3d12_switches.py --checkandtests/test_d3d12_switches.pypass onf62b17366f. Off by default (diagnostics only).