run-summary.sh --compare: print a before/after table of two run logs #310

Closed
opened 2026-11-27 10:59:47 +00:00 by github-bot · 3 comments
Owner

@⁠m0rff on GitHub · 2026-11-27 10:54 UTC · original

On #258, before-and-after tables for each combination of PRs are written by hand: refusals by cause, fps, first world frame and how the run ended. One command should print that table.

Proposal: tools/macos/run-summary.sh --compare <before.log> <after.log>

  • Reuse the parsing run-summary.sh already does, not a second parser. Its awk pass also produces key/value metrics. The plain summary and --compare both read them. The plain summary output stays byte-for-byte the same.
  • One aligned table with the columns metric | before | after | change:
    • commit and console model
    • run length and last frame
    • fps (median and last over the 64-frame windows)
    • first world frame
    • first binds and prewarm totals
    • refused shaders (total and unique)
    • dropped work by kind
    • GPU errors (timeouts, out of memory)
    • how the run ended
  • A "refusals by cause" section: before, after and change for each reason, with the code address stripped. Sorted by the largest absolute change. Causes that are new or gone are marked.
  • Plain text with no colour, so the output pastes into a fenced block on GitHub.
  • A game-free test, tools/macos/tests/run-summary-compare.sh, uses two small synthetic logs. It runs in the macos-scripts CI job under Bash 3.2.

One small change outside the script. The log alone can't tell a host SIGSEGV from the --seconds time limit. Neither writes a line to the log. run-native.sh prints the exit code only to the terminal. So run-native.sh will append # exit code N to the log, and # stopped by --seconds when the timer fired. Older logs read as "unknown".

G-buffer coverage (target dumped ... lit=) is left for a follow-up.

**@⁠m0rff** on GitHub · 2026-11-27 10:54 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/310) On #258, before-and-after tables for each combination of PRs are written by hand: refusals by cause, fps, first world frame and how the run ended. One command should print that table. **Proposal:** `tools/macos/run-summary.sh --compare <before.log> <after.log>` - Reuse the parsing run-summary.sh already does, not a second parser. Its awk pass also produces key/value metrics. The plain summary and `--compare` both read them. The plain summary output stays byte-for-byte the same. - One aligned table with the columns metric | before | after | change: - commit and console model - run length and last frame - fps (median and last over the 64-frame windows) - first world frame - first binds and prewarm totals - refused shaders (total and unique) - dropped work by kind - GPU errors (timeouts, out of memory) - how the run ended - A "refusals by cause" section: before, after and change for each reason, with the code address stripped. Sorted by the largest absolute change. Causes that are new or gone are marked. - Plain text with no colour, so the output pastes into a fenced block on GitHub. - A game-free test, `tools/macos/tests/run-summary-compare.sh`, uses two small synthetic logs. It runs in the macos-scripts CI job under Bash 3.2. **One small change outside the script.** The log alone can't tell a host SIGSEGV from the `--seconds` time limit. Neither writes a line to the log. run-native.sh prints the exit code only to the terminal. So run-native.sh will append `# exit code N` to the log, and `# stopped by --seconds` when the timer fired. Older logs read as "unknown". G-buffer coverage (`target dumped ... lit=`) is left for a follow-up.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:59:48 +00:00
Author
Owner

@⁠m0rff on GitHub · 2026-11-27 10:54 UTC · original

/claim

**@⁠m0rff** on GitHub · 2026-11-27 10:54 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/310#issuecomment-7216458739) /claim
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-27 10:55 UTC · original

Claimed by @⁠m0rff. Open a draft pull request with Refs #310 in its description within 24 hours, or the claim expires.

**@⁠github-actions[bot]** on GitHub · 2026-11-27 10:55 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/310#issuecomment-7216462077) Claimed by @⁠m0rff. Open a draft pull request with `Refs #310` in its description within 24 hours, or the claim expires.
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-27 11:55 UTC · original

Done in #314, which is merged into main: run-summary.sh --compare <before> <after>. Thank you @⁠m0rff.

**@⁠LakshanSivakumar** on GitHub · 2026-11-27 11:55 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/issues/310#issuecomment-7217624859) Done in #314, which is merged into main: `run-summary.sh --compare <before> <after>`. Thank you @⁠m0rff.
This discussion has been locked. Commenting is limited to contributors.
No description provided.