Lit world on an 18 GB M3 Pro: wave64 lighting translation, checkpoint on bf99e72, written-page copies, run tooling #6
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/paveledits--ScarlettMac!6
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-6"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@AeroUp on GitHub · 2026-11-26 19:28 UTC · original
AeroUp:tools/run-harness-and-baseline→main· +5585 −565 · 40 files · 23 commits · merged 2026-11-27 00:56 UTCThe world now renders lit on an 18 GB M3 Pro. This PR moves the November 26 checkpoint onto upstream bf99e72 and adds the shader translation that lets the lighting passes run, the copy reduction this PR started with, and the run tooling used to measure all of it.
The lighting fix
The world's lighting, shadow and AO passes are compute shaders written for the console's 64-lane waves. On the Mac's 32-lane GPU the translator refused them, so their targets stayed at their clear and every lit surface was black. Checkpoint patches 0013-0015 add
VICTORY_WAVE64_REDUCE=1, which translates wave reductions, first-lane reads and cross-half lane reads wherever both 32-lane host waves provably run the same path (a lane branch runs both sides masked, so it does not split them; an indirect exit does). Patches 0004-0005 port Belobug's wave32 cascade shadows and LDS flag regions.Measured on a MacBook Pro M3 Pro, 18 GB, CrossOver Wine + D3DMetal, 1280x720 output, 420 s runs through
tools/world-run.sh:VICTORY_WAVE64_REDUCE=1The README gains a short before/after section with three captures. Nothing else in it changes.
Still not gameplay
On 18 GB the title's footprint reaches about 14 GB (6.9 GB GPU, 3.7 GB title memory, 2.8 GB runtime heap) and the Mac swaps 7-9 GB. World frames take 2-30 s, mostly copying title memory and waiting on a GPU that is paging. 28 compute shaders are still refused: lane masks read as data, and LDS shared without barriers. Both are being worked on.
Checkpoint series
runtime-preview/checkpoint/UPSTREAMnow pins bf99e72. Patch 0001 is the earlier 0001-0005 (picker marker, GameInput timeline, mesh limit and GPU wait, product name, copy written pages) rebased onto it, plus the DirectStorage held-read release../build.sh --checkpoint --preparefetches the pin, applies the series, and reproduces exactly the tested tree (tree920af342).Copy only the written pages (the original change of this PR)
Under Rosetta the runtime copied every tracked range of title memory before each host submission, about 170 MB per submission through the loading screens. Fault tracking is now on by default for builds whose 256-bit stores are patched, so a refresh copies only the pages the title wrote: 170.32 to 1.27 MB per submission, 10.3 to 14.7 submissions/s, highest frame in 300 s 2199 to 4775 (
docs/measurements/2026-11-26-copy-written-pages.md).Tooling
tools/scarlett-run.sh: one title at a time behind a lock with a queue. Its time limit stops only its own title. Wine defaults to.toolchain/wine-cx.tools/world-run.sh/window-shot.swift: screenshots of the game window during a run.tools/scarlett-hud.sh: an always-on-top window that follows the newest run every 0.1 s (run and loading progress, fps, frame time and interval, copy and GPU cost, lock and queue, CPU, RAM, swap, GPU use, the title's footprint).--clishows it in a terminal.tools/fps-report.py: crash detection from the title's crash log, and comparison over shared frame spans.tools/import-patch.sh,tools/agent-worktree.sh: carry a fix as a numbered patch, and build a correctly patched tree.docs/runbook.md, and the baseline indocs/measurements/.Copy only the title pages that were written: 170 MB to 1.3 MB per submissionto Lit world on an 18 GB M3 Pro: wave64 lighting translation, checkpoint on bf99e72, written-page copies, run tooling