d3d12: LEONIDA_AB phases report CPU time and spikes; scripts/ab_cpu.py compares them #3486
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!3486
Loading…
Reference in a new issue
No description provided.
Delete branch "diag/ab-cpu"
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 measuring tool, no change to the game. Each
LEONIDA_ABend-of-phase line gainstail: p99 max over100(frames over 100 ms) andcpu: list_calls tables search submit_user submit_kernelper frame, so an A/B can be judged on CPU time and on spikes, not only on frame time. Mandy is CPU-bound on the RTX 4060 measured today (card busy ~35-40 ms, idle ~27 ms of a ~58 ms frame), so frame time alone hides CPU wins.scripts/ab_cpu.py <leonida.log>keeps world phases (≥ 1000 draws), pairs each phase with the one that differs only by that bit (N ^ 2^bit, disjoint pairs, works with several switches) and prints the median per arm and the paired difference with a 95 % Student interval, flagged OUTSIDE/INSIDE.Counters reused (RecordNs, DynamicAsked, DynamicNs) with a cumulative total under a mutex (cold path); submitting threads' user+kernel time summed only while
LEONIDA_ABis active. Nothing new off the A/B path.Tested:
cargo test -p leonida-gpu --features diagnostics: 876 passed (one known-flaky timeline test aside, passes alone);-- ab total_: 44 passed; without the feature 787 passed; clippy clean without diagnostics (the 11 diagnostics-feature errors are pre-existing, none on these lines);python -I tests/test_ab_cpu.py: 7 OK; check_no_game_data clean. A separate reviewer (Claude Opus 5.5) refused once (overlapping pairs, a race on the counter total), then ACCEPTED the fixes.AI-assisted: written by Claude Opus 5.5 (Claude Code), reviewed by a separate Claude Opus 5.5 judge. Merged on Moon's written authorization (two maintainers).
🤖 Generated with Claude Code
Merged by Moon's agent on Moon's written authorization. Separate reviewer: ACCEPT (after one refusal). Measuring tool only.
Merged by Moon's agent on Moon's written authorization. Separate reviewer: ACCEPT (after one refusal). After the update merge with main,
d3d12_switches.py --checkandtests/test_ab_cpu.pypass on6a9971b8f6. Measuring tool only, no change to the game.