Add the run harness and a measured baseline #4

Closed
github-bot wants to merge 0 commits from github-bot/gh-4 into main AGit
Owner

@⁠AeroUp on GitHub · 2026-11-26 17:55 UTC · original
AeroUp:tools/run-harness-and-baseline → main · +763 −0 · 4 files · 2 commits · closed without merging

Changes

Adds the harness every number below came from, plus the baseline itself.

  • tools/scarlett-run.sh — the only permitted way to run the title: single-instance lock, the Wine/D3DMetal environment, the offline picker confirmation from a file marker, one log per run. New --runtime DIR runs a build from another source tree and --tag NAME names the log, so candidate builds can be compared one at a time without overwriting the running binary.
  • tools/fps-report.py — parses a log into presents, fps segments, title-memory refresh cost and dropped work. New --compare BASELINE LOG prints one number per quantity for both runs with the change.
  • docs/measurements/2026-11-26-runtime-preview-baseline.md — the reference run and what it does not establish.
  • .gitignore — build tree, toolchain and run logs stay local.

Verification

Run B: tools/scarlett-run.sh --seconds 180 --tag baseline, November 26 2026.

Quantity Value
Presents logged 2048 (frame counter reached 3273)
Wall time, first to last present 105.4 s
Mean fps 19.41
Median segment fps 24.79 (min 4.86, max 30.03)
Title-memory refresh 3741 submissions, 9287 ranges, 635 GB, 169.8 MB per submission, 3.6 GB/s
Refused shaders 81 lines, 9 kinds
Black frames / unordered views / depth bounds ignored 4 / 1 / 1

python3 tools/fps-report.py --compare runs/20261126-123001.log runs/20261126-124043.log reproduces the comparison from two existing logs.

Two honesty notes for later PRs. Presents are logged only at power-of-two frame counts, so a missing present line is not evidence that presents stopped. And no run on this track has shown a 3D world or a gameplay frame yet: the baseline presents the illustrated loading artwork, which is why it is recorded as a baseline and not a milestone.

Mac: Apple M3 Pro, 18 GB. Runtime: checkpoint victory.exe, x86-64 under Rosetta, Apple D3DMetal through Wine 11 (not vkd3d).

**@⁠AeroUp** on GitHub · 2026-11-26 17:55 UTC · [original](https://github.com/paveledits/ScarlettMac/pull/4) `AeroUp:tools/run-harness-and-baseline` → `main` · +763 −0 · 4 files · 2 commits · closed without merging ## Changes Adds the harness every number below came from, plus the baseline itself. - `tools/scarlett-run.sh` — the only permitted way to run the title: single-instance lock, the Wine/D3DMetal environment, the offline picker confirmation from a file marker, one log per run. New `--runtime DIR` runs a build from another source tree and `--tag NAME` names the log, so candidate builds can be compared one at a time without overwriting the running binary. - `tools/fps-report.py` — parses a log into presents, fps segments, title-memory refresh cost and dropped work. New `--compare BASELINE LOG` prints one number per quantity for both runs with the change. - `docs/measurements/2026-11-26-runtime-preview-baseline.md` — the reference run and what it does not establish. - `.gitignore` — build tree, toolchain and run logs stay local. ## Verification Run B: `tools/scarlett-run.sh --seconds 180 --tag baseline`, November 26 2026. | Quantity | Value | | --- | --- | | Presents logged | 2048 (frame counter reached 3273) | | Wall time, first to last present | 105.4 s | | Mean fps | 19.41 | | Median segment fps | 24.79 (min 4.86, max 30.03) | | Title-memory refresh | 3741 submissions, 9287 ranges, 635 GB, 169.8 MB per submission, 3.6 GB/s | | Refused shaders | 81 lines, 9 kinds | | Black frames / unordered views / depth bounds ignored | 4 / 1 / 1 | `python3 tools/fps-report.py --compare runs/20261126-123001.log runs/20261126-124043.log` reproduces the comparison from two existing logs. Two honesty notes for later PRs. Presents are logged only at power-of-two frame counts, so a missing present line is not evidence that presents stopped. And no run on this track has shown a 3D world or a gameplay frame yet: the baseline presents the illustrated loading artwork, which is why it is recorded as a baseline and not a milestone. Mac: Apple M3 Pro, 18 GB. Runtime: checkpoint `victory.exe`, x86-64 under Rosetta, Apple D3DMetal through Wine 11 (not vkd3d).
tools/scarlett-run.sh is the only permitted way to run the title: a
single-instance lock, the Wine/D3DMetal environment, the offline picker
confirmation from a file marker, and a log per run. It now takes --runtime
to run a build from another source tree and --tag to name the log, so
several candidate builds can be compared without touching the running
binary.

tools/fps-report.py parses a log into presents, fps segments, title-memory
refresh cost and the work the runtime drops. --compare prints one number
per quantity for two runs with the change, so a claim about a fix can be
checked against the same measurement that produced the baseline.

docs/measurements/2026-11-26-runtime-preview-baseline.md records run B:
2048 presents, mean 19.41 fps over 176.5 s, median segment 24.79 fps,
169.8 MB refreshed per submission (3.6 GB/s), 81 refused shaders. It also
states what the baseline does not establish: no 3D world, no gameplay.
Run B translated 126 shaders for the first time in the run. Those 126 account
for 266.8 s of caller wait and 783.4 s of user CPU in a 176 s run, and 39 of
them took 3-10 s each. The 26.35 s hitch between frames 128 and 256 holds 25 of
them, summing 51.4 s of wait, so about two translate at once.

The stall is a translation storm on the frame thread, not the present path. It
also means a refused shader that is made translatable costs seconds on first
use, so coverage and translation cost have to be improved together.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 17:58:13 +00:00
github-bot closed this pull request 2026-11-26 18:03:27 +00:00
Author
Owner

@⁠AeroUp on GitHub · 2026-11-26 18:02 UTC · original

Closing this for now: it is the harness and baseline, not a breakthrough, and the repo should not collect PRs for tooling. The branch stays on my fork (AeroUp:tools/run-harness-and-baseline) and these changes will be folded into the first PR that carries a measured result.

**@⁠AeroUp** on GitHub · 2026-11-26 18:02 UTC · [original](https://github.com/paveledits/ScarlettMac/pull/4#issuecomment-7199980977) Closing this for now: it is the harness and baseline, not a breakthrough, and the repo should not collect PRs for tooling. The branch stays on my fork (AeroUp:tools/run-harness-and-baseline) and these changes will be folded into the first PR that carries a measured result.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.