Add the scene plane fix to the performance recipe #23

Closed
github-bot wants to merge 1 commit from github-bot/gh-23 into main AGit
Owner

@⁠jgrizon on GitHub · 2026-11-28 14:58 UTC · original
jgrizon:perf/scene-plane → main · +167 −0 · 2 files · 1 commits · closed without merging

Adds the presented-plane fix as patch 0031 to runtime-preview/perf/patches/, in the same series as 0029 and 0030, and lists it in series.

What it fixes

On the opening save the screen stayed black, with text over it. The recipe's window showed whichever presented plane had the most pixels. On Series S that is the 4K UI plane, so the scene plane was never drawn.

How

The fix is the ported VIctory change 93ab00d. The shown plane is now the first plane with a known resource, which is the scene at the title's output size, and the other plane is blended over it by the existing compute pass. Nothing new was added: both parts were already in the recipe, pointing the wrong way. The blend used to be opt-in, and the plane choice weighed pixel counts, so the UI plane won and the scene was dropped. Now the blend runs unless VICTORY_PRESENT_COMPOSITE=0, and VICTORY_PRESENT_PLANE=<n> still picks a plane explicitly. Series X presents one plane, so nothing changes there. The launcher's defaults are unchanged, because it sets neither switch.

Evidence

Text only. Release build, Series S, every run started from the same opening save. Draws a frame, because the picture itself is not something to describe in words.

  • Before the patch (bench run p82-open2-before): the screen stayed black at about 3,826 draws a frame.
  • With the patch (bench run p82-open2-c4): the night scene with lights showed, at about 4,425 draws a frame.

Hardware: Apple M5 Pro, 24 GB, macOS 27.3, CrossOver 26.3.0.39832, D3DMetal 3.0.

Commits: VIctory 93ab00dae7045dd6a76f727315acf1e6041c3881, this repository 4c4efacd11d9a564c987b364cff45512827872a9.

Verification

  • A clean prepare of the whole series applies all 31 patches with no fuzz and no rejects, and the prepared tree is identical to the tree this commit exports.
  • A release build of the recipe succeeds and writes victory.exe.

Merge risk

Low. Three files, 26 lines added, 31 removed, and the behavior is one line in queue.rs and one line in composite.rs; the rest is comments, the docs paragraph and the test.

To undo: export VICTORY_PRESENT_PLANE=1 VICTORY_PRESENT_COMPOSITE=0 to get the old picture back, or drop patch 0031 from the series.

**@⁠jgrizon** on GitHub · 2026-11-28 14:58 UTC · [original](https://github.com/paveledits/ScarlettMac/pull/23) `jgrizon:perf/scene-plane` → `main` · +167 −0 · 2 files · 1 commits · closed without merging Adds the presented-plane fix as patch 0031 to `runtime-preview/perf/patches/`, in the same series as 0029 and 0030, and lists it in `series`. ## What it fixes On the opening save the screen stayed black, with text over it. The recipe's window showed whichever presented plane had the most pixels. On Series S that is the 4K UI plane, so the scene plane was never drawn. ## How The fix is the ported VIctory change 93ab00d. The shown plane is now the first plane with a known resource, which is the scene at the title's output size, and the other plane is blended over it by the existing compute pass. Nothing new was added: both parts were already in the recipe, pointing the wrong way. The blend used to be opt-in, and the plane choice weighed pixel counts, so the UI plane won and the scene was dropped. Now the blend runs unless `VICTORY_PRESENT_COMPOSITE=0`, and `VICTORY_PRESENT_PLANE=<n>` still picks a plane explicitly. Series X presents one plane, so nothing changes there. The launcher's defaults are unchanged, because it sets neither switch. ## Evidence Text only. Release build, Series S, every run started from the same opening save. Draws a frame, because the picture itself is not something to describe in words. - Before the patch (bench run `p82-open2-before`): the screen stayed black at about 3,826 draws a frame. - With the patch (bench run `p82-open2-c4`): the night scene with lights showed, at about 4,425 draws a frame. Hardware: Apple M5 Pro, 24 GB, macOS 27.3, CrossOver 26.3.0.39832, D3DMetal 3.0. Commits: VIctory `93ab00dae7045dd6a76f727315acf1e6041c3881`, this repository `4c4efacd11d9a564c987b364cff45512827872a9`. ## Verification - A clean prepare of the whole series applies all 31 patches with no fuzz and no rejects, and the prepared tree is identical to the tree this commit exports. - A release build of the recipe succeeds and writes `victory.exe`. ## Merge risk Low. Three files, 26 lines added, 31 removed, and the behavior is one line in `queue.rs` and one line in `composite.rs`; the rest is comments, the docs paragraph and the test. To undo: export `VICTORY_PRESENT_PLANE=1 VICTORY_PRESENT_COMPOSITE=0` to get the old picture back, or drop patch 0031 from the series.
The recipe showed whichever presented plane had the most pixels, which on
Series S is the 4K UI plane, so the opening scene came out black with text
over it. Patch 0031 shows the first plane with a known resource and blends
the other plane over it, both on by default, so no launcher switch changes.

Opening save, release build: the screen stayed black at about 3,826 draws a
frame before, and the night scene with lights showed at about 4,425 after.

Ported from VIctory-macOS 8faee56 (#517).

Generated by Mistral Vibe.

Co-Authored-By: Mistral Vibe <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 14:59:05 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-28 14:58 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-28 14:58 UTC · [original](https://github.com/paveledits/ScarlettMac/pull/23#pullrequestreview-6098528635) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
github-bot closed this pull request 2026-11-28 18:03:00 +00:00

Pull request closed

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