tools: run-summary.sh summarises the VICTORY_PASS_TIMING pass time lines (#596) #597

Open
AnastasisKon wants to merge 1 commit from upstream-pr/597 into main
AnastasisKon commented 2026-11-28 11:17:07 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T11:17:07Z.


What this changes

Refs #596. VICTORY_PASS_TIMING=1 (#460, PR #594) logs per-pass GPU times (pass time frame=.. rank=.. kind=.. pipe=.. work=.. ms=.., plus a pass time: frame=.. passes=.. total_ms=.. per frame); run-summary.sh ignored them. Now, only when a log has pass time lines (other logs' summaries and the compare table are byte-identical to before, golden tests included):

  • a -- pass timing (VICTORY_PASS_TIMING) section: frames/passes timed, total/mean/max GPU pass time per frame, the run's 10 slowest individual passes, and the 10 pipelines with the most total GPU time (by shader hash);
  • --compare rows pass-timing frames, pass-timing passes, pass-timing GPU ms (frame totals).

--self-test gains synthetic pass time lines and checks the new output.

How it was tested

  • /bin/bash tools/macos/run-summary.sh --self-test — ok (Bash 3.2, as CI runs it), including the new pass-time checks
  • /bin/bash tools/macos/tests/run-summary-compare.sh — ok (golden plain-summary and compare outputs unchanged for logs without pass-time lines)
  • all tools/macos/tests/*.sh under /bin/bash — ok
  • cargo test -p victory-hle -p victory -p victory-gpu -p xtask (host arm64, -- --test-threads=1 per #548): 623 passed, 0 failed
  • cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings: clean
  • cargo xtask policy: clean
  • Ran the game: not needed — no game data involved; synthetic logs only

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • No guesses about undocumented behaviour involved (tooling only)
  • No new diagnostics added; this reads the existing VICTORY_PASS_TIMING lines documented in docs/native-host.md (by PR #594)
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:5539557246 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/597). Originally posted by [AnastasisKon](https://github.com/AnastasisKon) on 2026-11-28T11:17:07Z. --- ## What this changes Refs #596. `VICTORY_PASS_TIMING=1` (#460, PR #594) logs per-pass GPU times (`pass time frame=.. rank=.. kind=.. pipe=.. work=.. ms=..`, plus a `pass time: frame=.. passes=.. total_ms=..` per frame); `run-summary.sh` ignored them. Now, only when a log has pass time lines (other logs' summaries and the compare table are byte-identical to before, golden tests included): - a `-- pass timing (VICTORY_PASS_TIMING)` section: frames/passes timed, total/mean/max GPU pass time per frame, the run's 10 slowest individual passes, and the 10 pipelines with the most total GPU time (by shader hash); - `--compare` rows `pass-timing frames`, `pass-timing passes`, `pass-timing GPU ms (frame totals)`. `--self-test` gains synthetic `pass time` lines and checks the new output. ## How it was tested - [x] `/bin/bash tools/macos/run-summary.sh --self-test` — ok (Bash 3.2, as CI runs it), including the new pass-time checks - [x] `/bin/bash tools/macos/tests/run-summary-compare.sh` — ok (golden plain-summary and compare outputs unchanged for logs without pass-time lines) - [x] all `tools/macos/tests/*.sh` under `/bin/bash` — ok - [x] `cargo test -p victory-hle -p victory -p victory-gpu -p xtask` (host arm64, `-- --test-threads=1` per #548): 623 passed, 0 failed - [x] `cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings`: clean - [x] `cargo xtask policy`: clean - [ ] Ran the game: not needed — no game data involved; synthetic logs only ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] No guesses about undocumented behaviour involved (tooling only) - [x] No new diagnostics added; this reads the existing `VICTORY_PASS_TIMING` lines documented in `docs/native-host.md` (by PR #594)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/597:upstream-pr/597'
git switch 'upstream-pr/597'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/597'
git switch 'upstream-pr/597'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/597'
git switch 'upstream-pr/597'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/597'
git switch 'main'
git merge --squash 'upstream-pr/597'
git switch 'main'
git merge --ff-only 'upstream-pr/597'
git switch 'main'
git merge 'upstream-pr/597'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS!597
No description provided.