Performance recipe: M5 Max measurements and the black-opening finding #14

Manually merged
github merged 1 commit from github-bot/gh-14 into main 2026-11-27 12:40:50 +00:00 AGit
Owner

@⁠NotAOwner on GitHub · 2026-11-27 11:19 UTC · original
NotAOwner:docs/m5-max-perf-recipe → main · +15 −0 · 1 files · 1 commits · merged 2026-11-27 12:32 UTC

This adds a measured section for a 128 GB M5 Max to the November 27 performance recipe in runtime-preview/BUILD.md.

Results (release builds of the recipe; 7-minute runs; warm caches; median of the 5-second frame reports with at least 1,000 draws a frame):

Settings over play-main-mac.sh Median FPS Median frame Draws dropped / frame
--console series-s (the recipe) 3.9 257 ms 200
+ VICTORY_AMBIENT=1.0 4.1 245 ms 263
--console series-x 3.2 308 ms 341
--console series-x, VICTORY_OUTPUT=1920x1080 3.6 280 ms 339

VICTORY_AMBIENT=1.0 (a fixed indirect-light floor in place of estimate) lit faces and rooms that otherwise showed as silhouettes indoors and in backlit shots. It did not cost frames.

The black opening scene. On every launch the opening scene is black. A diagnostics run with VICTORY_PIPELINE_LOG shows that pipeline creation is not the cause:

  • All 2,115 pipelines the run used were built: 2,679 loaded from the saved library and 4 made.
  • The background queue was empty (0 being made) before the world started.
  • During the opening, the frame reports still show 1,000 to 2,800 dropped draws a frame, and the image stays black. In the world the drops settle at about 265 a frame.

So the drops come from another path in draw.rs, for example held-back BVH builder dispatches or a failed bind. The per-reason drop report (take_drops) printed nothing in this run, so I could not narrow it further.

Setup: macOS 27.2.1 (26B131), CrossOver Wine 26.3.0 built with the recipe's two Wine patches (identical to ntdll-skip-host-mappings.patch and wineserver-view-tree.patch), D3DMetal 4.0b3 from CrossOver Preview, LLVM-MinGW 20261117, Rust 1.98.1. The pinned source was prepared with ./build.sh --perf --prepare. Every run was offline, with the account picker confirmed by scripted Enter presses.

🤖 Generated with Claude Code

**@⁠NotAOwner** on GitHub · 2026-11-27 11:19 UTC · [original](https://github.com/paveledits/ScarlettMac/pull/14) `NotAOwner:docs/m5-max-perf-recipe` → `main` · +15 −0 · 1 files · 1 commits · merged 2026-11-27 12:32 UTC This adds a measured section for a 128 GB M5 Max to the November 27 performance recipe in `runtime-preview/BUILD.md`. **Results** (release builds of the recipe; 7-minute runs; warm caches; median of the 5-second frame reports with at least 1,000 draws a frame): | Settings over `play-main-mac.sh` | Median FPS | Median frame | Draws dropped / frame | | --- | --- | --- | --- | | `--console series-s` (the recipe) | 3.9 | 257 ms | 200 | | + `VICTORY_AMBIENT=1.0` | 4.1 | 245 ms | 263 | | `--console series-x` | 3.2 | 308 ms | 341 | | `--console series-x`, `VICTORY_OUTPUT=1920x1080` | 3.6 | 280 ms | 339 | `VICTORY_AMBIENT=1.0` (a fixed indirect-light floor in place of `estimate`) lit faces and rooms that otherwise showed as silhouettes indoors and in backlit shots. It did not cost frames. **The black opening scene.** On every launch the opening scene is black. A diagnostics run with `VICTORY_PIPELINE_LOG` shows that pipeline creation is not the cause: - All 2,115 pipelines the run used were built: 2,679 loaded from the saved library and 4 made. - The background queue was empty (0 being made) before the world started. - During the opening, the frame reports still show 1,000 to 2,800 dropped draws a frame, and the image stays black. In the world the drops settle at about 265 a frame. So the drops come from another path in `draw.rs`, for example held-back BVH builder dispatches or a failed `bind`. The per-reason drop report (`take_drops`) printed nothing in this run, so I could not narrow it further. **Setup:** macOS 27.2.1 (26B131), CrossOver Wine 26.3.0 built with the recipe's two Wine patches (identical to `ntdll-skip-host-mappings.patch` and `wineserver-view-tree.patch`), D3DMetal 4.0b3 from CrossOver Preview, LLVM-MinGW 20261117, Rust 1.98.1. The pinned source was prepared with `./build.sh --perf --prepare`. Every run was offline, with the account picker confirmed by scripted Enter presses. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Release builds of the recipe on a 128 GB M5 Max: about 3.9 fps median
in the world with the recipe's settings, 4.1 with VICTORY_AMBIENT=1.0,
3.2 to 3.6 on Series X. A diagnostics run with VICTORY_PIPELINE_LOG
shows the black opening is not caused by pipeline creation: every used
pipeline was built and the queue was empty, while the frame reports
still dropped 1,000 to 2,800 draws a frame.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 11:20:22 +00:00
github manually merged commit 380d4fdfd2 into main 2026-11-27 12:40:50 +00:00
Author
Owner

@⁠NotAOwner on GitHub · 2026-11-27 13:36 UTC · original

Follow-up on the black opening scene, after narrowing it down on the same M5 Max:

  • Reproduced from zero. I used a fresh clone (2f2985f), ./build.sh --perf --prepare, the recipe's own Wine built with tools/macos/build-crossover-wine.sh, D3DMetal 4.0b3, a new prefix, and play-main-mac.sh … --console series-s. The opening is still black.
  • The recipe's switches are not the cause. The same binary with only VICTORY_PATCH_MASKED=all VICTORY_FAULT_TRACKING=1 is also black.
  • VICTORY_HALVES_LOCAL=1 / VICTORY_HALVES_SHARED_LDS=1 hold the BVH builder back for the whole run ("BVH builder held back: its 64-lane programs would run as 32-lane halves on their own"). Its dispatches then drop silently: no reason reaches the per-reason drop report, because the pipelines exist. With both set to 0 the log says BVH builder runs … made=53 refused=0, and the opening's drops fall from 1,100–1,800 to about 100 a frame. The scene stays black, so this is a separate issue.
  • The black opening is fixed in later upstream code. The recipe's pin 8616bd6 is an ancestor of pragyaangaur/VIctory-macOS main. Upstream 7772921, 1,304 commits later, renders the opening car scene with the same Wine, D3DMetal, settings and game files. So moving the recipe's pin forward should fix it. I did not bisect the exact commit.

🤖 Generated with Claude Code

**@⁠NotAOwner** on GitHub · 2026-11-27 13:36 UTC · [original](https://github.com/paveledits/ScarlettMac/pull/14#issuecomment-7219718775) Follow-up on the black opening scene, after narrowing it down on the same M5 Max: - **Reproduced from zero.** I used a fresh clone (`2f2985f`), `./build.sh --perf --prepare`, the recipe's own Wine built with `tools/macos/build-crossover-wine.sh`, D3DMetal 4.0b3, a new prefix, and `play-main-mac.sh … --console series-s`. The opening is still black. - **The recipe's switches are not the cause.** The same binary with only `VICTORY_PATCH_MASKED=all VICTORY_FAULT_TRACKING=1` is also black. - **`VICTORY_HALVES_LOCAL=1` / `VICTORY_HALVES_SHARED_LDS=1` hold the BVH builder back for the whole run** ("BVH builder held back: its 64-lane programs would run as 32-lane halves on their own"). Its dispatches then drop silently: no reason reaches the per-reason drop report, because the pipelines exist. With both set to 0 the log says `BVH builder runs … made=53 refused=0`, and the opening's drops fall from 1,100–1,800 to about 100 a frame. The scene stays black, so this is a separate issue. - **The black opening is fixed in later upstream code.** The recipe's pin `8616bd6` is an ancestor of `pragyaangaur/VIctory-macOS` main. Upstream `7772921`, 1,304 commits later, renders the opening car scene with the same Wine, D3DMetal, settings and game files. So moving the recipe's pin forward should fix it. I did not bisect the exact commit. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This discussion has been locked. Commenting is limited to contributors.
No description provided.