WIP: feat(macos): add a macOS build #2816
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2816
Loading…
Reference in a new issue
No description provided.
Delete branch "DuckNintendo/Longshot:macos/rebase-966"
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?
Type: feat · Risk: medium · Tested on: macOS arm64 · Needs: Windows and Linux, any GPU (and one GPU on the mesh compute fallback)
Summary
The macOS port rebased onto main
6f5f99fcand built with main's Rust builder and host API (version 57). The port's detail is in #966; this branch moves it onto main's builder, host API and simulated-turf work. The pre-merge head built and played; the merged head builds and is preparing its first start.Testing
Tested: the pre-merge head (
feda9160) built with the Rust builder and played from the title through New Game into the opening cutscene and gameplay on macOS arm64 with MoltenVK. The merged head (87085985) builds and links and runs its first-start preparation muted (HOS_AUDIO=0).Still to test:
longshot-966test toolchain/headers (main has the same);mise run testwith the dev tools, or CI, expecting a pass (by hand/CI).Measurements
Nothing to measure against main on macOS: main does not build here. The port's earlier Mac measurement (32.79 frames/s, windowed 1280x752, 540 s) is in #966; this rebase changes the builder path and merges main, not the Mac draw path.
Risks
The renderer still links the system's libc++ while built with the newer one; the first-start stream paths read with C file I/O on macOS, and the sim-turf page is main's. The renderer's "network left out" path returns instead of throwing from a shader worker. Windows and Linux are untested here; the macOS build/run guide and the guide/UI review are still open.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses: 532 environment failures here from the stale test toolchain (main has the same); the merge's real test-source failures are fixed.main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
Assisted-by:/Co-Authored-By:trailers.Generated by opencode with deepseek-v4.1-flash-1017
Every scan down vk_memory.cpp's import table by start (pool_lookup's covering import and merge plan, bg_drain, prefetch_chunks, import_in_background, memory_note_gpu_write and memory_guest_imported) stopped once an import ended more than 1 GiB below its address, on the belief that no import is larger than that. pool_lookup's own merge escape leaves an import above 1 GiB over the smaller ones inside it ("left overlapping"), and the device allows imports up to max_import_size: a scan stopped at a small import inside a large one, missed the large one, and the same bytes were imported again, two memories over the same bytes. import_reach.h counts the live imports by span class; its bound is above every live span, within twice the largest. imported_add and imported_take, now the table's only ways in and out, keep the count. A scan stops only where no import further down can reach its address, so it also stops sooner than before when the imports are small. The covering-import checks in pool_lookup and import_in_background look past the last import at or below the range for the same reason. Tests: test_import_reach.py runs the actual scans with a 4 GiB import over a 16 MiB chunk, left by the merge escape (imports are recorded ranges: no payload, no Vulkan, no game). Its lookup, query, note, drain, background and prefetch cases fail on main5e072fc8and pass here, and a source check keeps every change to the table in the two helpers. test_import_windows runs pool_lookup with the helpers; test_mirror_gpu_only names the new publication point. Assisted-by: Claude Opus 5.5 Co-Authored-By: Claude Opus 5.5 <[email protected]>Possibly related, for context:
feat(macos): add a macOS buildto WIP: feat(macos): add a macOS build6f5f99fc) into macos/rebase-966 ffe3feeec4Hey there @DuckNintendo , I've been following the original macos PR by mooki and I noticed this one is now fresher. I have some bandwidth that I can spend helping, but I don't want to end up with redundant work. What's the latest on this PR? Is it just black screen-ing after the intro video or is there some new progress from the original macos PR? Thanks!
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.