Add bounded-compute diagnostic and M1 Pro benchmark findings #571
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!571
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-567"
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?
@willbtty on GitHub · 2026-11-28 05:22 UTC · original
willbtty:vibe/m1-compute-batches-01a220→main· +181 −1 · 4 files · 1 commits · closed without mergingWhat this changes
Refs #553.
On an M1 Pro with 32 GB RAM, a single native compute pass can contain hundreds of dispatches even with
VICTORY_PASSES_PER_BUFFER=1. Add an off-by-defaultVICTORY_COMPUTE_DISPATCHES_PER_PASSdiagnostic to cap consecutive prepared dispatches per pass, including expanded indirect records, while preserving command order and existing boundaries. Pairing it with one pass per command buffer lets the existing Metal splitting and fence handling isolate smaller batches.This does not establish a performance or stability improvement and is not a recommended tuning setting. The Series S experiments are documented in
docs/native-host.md:All runs used Series S and
VICTORY_LOG=info. FPS uses onlynative draws so farcounters with nonzeromesh. Raw logs, run metadata and game files remain outside the repository and were not uploaded. No shader translation or default scheduling behavior changes.How it was tested
cargo test --locked --offline -j4 -p victory-hle -p victory -p victory-gpu -p xtask -- --test-threads=1— one complete passing run, 610 passed and 8 ignored. This replaces the template's x86 test invocation for this GPU change.cargo clippy --workspace --all-targets --locked -j4 --target x86_64-pc-windows-gnullvm -- -D warnings— passed once.--all-features— passed once.cargo xtask policy— 400 files passed.cargo build --release --locked --offline -j4 --target x86_64-apple-darwin -p victory— passed.Regression coverage includes direct dispatch order across a render boundary, expanded indirect count-buffer addresses and indices, unchanged grouping with cap zero, and five dependent Metal dispatches across three command buffers with final values checked after the submission fence. The grouping tests failed before the cap was implemented.
Checklist
VICTORY_*variable, off by default and documented.Kept as a draft for CI and maintainer review; #553 remains unresolved. Hosted CI reports
action_requiredwith no jobs started. The submitting account has read-only upstream permissions, so maintainer action is needed before hosted validation can proceed.Pull request closed