macos: default run-native.sh to --console series-s on <=16 GB Macs #12

Merged
claytonblythe merged 1 commit from upstream-pr/12 into main 2026-11-26 09:21:30 +00:00
claytonblythe commented 2026-11-26 08:57:05 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by claytonblythe on 2026-11-26T08:57:05Z.


What this changes

Partially addresses #8 (16 GB Macs hitting kIOGPUCommandBufferCallbackErrorOutOfMemory when the game allocates pools for Series X's 13.5 GiB memory budget).

  • tools/macos/run-native.sh:
    • Adds a --console series-x|series-s flag (passed through to victory run --console ...).
    • When --console is omitted, automatically selects series-s (7.6 GiB memory budget) on Macs with <= 16 GB physical RAM and series-x on Macs with more RAM.
    • Records console=<model> in the log header for tester reports.

How it was tested

  • bash -n tools/macos/run-native.sh and tools/macos/run-native.sh -h (macOS bash 3.2 compatible)
  • cargo xtask policy (356 files ok)
  • Ran the game (verified script syntax and RAM detection on a 16 GB Apple M4; awaiting game exe to capture a live 16 GB Series S log)

Checklist

  • No game files, game code, disassembly listings or SDK files are included
  • Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md (N/A)
  • New diagnostics are behind a VICTORY_* variable and documented (N/A)
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:issue:6623057587 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/12). Originally posted by [claytonblythe](https://github.com/claytonblythe) on 2026-11-26T08:57:05Z. --- ## What this changes Partially addresses #8 (16 GB Macs hitting `kIOGPUCommandBufferCallbackErrorOutOfMemory` when the game allocates pools for Series X's 13.5 GiB memory budget). - **`tools/macos/run-native.sh`**: - Adds a `--console series-x|series-s` flag (passed through to `victory run --console ...`). - When `--console` is omitted, automatically selects `series-s` (7.6 GiB memory budget) on Macs with `<= 16 GB` physical RAM and `series-x` on Macs with more RAM. - Records `console=<model>` in the log header for tester reports. ## How it was tested - [x] `bash -n tools/macos/run-native.sh` and `tools/macos/run-native.sh -h` (macOS bash 3.2 compatible) - [x] `cargo xtask policy` (356 files ok) - [ ] Ran the game (verified script syntax and RAM detection on a 16 GB Apple M4; awaiting game exe to capture a live 16 GB Series S log) ## Checklist - [x] No game files, game code, disassembly listings or SDK files are included - [x] Guesses about undocumented console behaviour are marked in the code and in docs/native-host.md (N/A) - [x] New diagnostics are behind a `VICTORY_*` variable and documented (N/A)
LakshanSivakumar commented 2026-11-26 09:21:27 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T09:21:27Z.

Review: APPROVED


Reviewed and tested merged with main on macOS (tests, Windows clippy, policy). Thanks!

<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:review:6071446614 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/12#pullrequestreview-6071446614). Originally posted by [LakshanSivakumar](https://github.com/LakshanSivakumar) on 2026-11-26T09:21:27Z. **Review:** APPROVED --- Reviewed and tested merged with main on macOS (tests, Windows clippy, policy). Thanks!
claytonblythe commented 2026-11-26 09:25:54 +00:00 (Migrated from github.com)

Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by claytonblythe on 2026-11-26T09:25:54Z.


Live-tested on a 16 GB Apple M4 (VICTORY_GUESS_GRAPHICS=1, headless):

  • --console series-x: stalled right after frame 704 (~35 s in) with a GPU fence hang (work held for a wait that does not hold: fence ... signal of 1452 queued 5.3s ago, GPU at 1450).
  • --console series-s (paired with https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/22 for late-loaded static TLS in amd_fidelityfx_upscaler_xbox.dll): ran cleanly for the full 65 s to frame 1344 (recorded=2721 encoded=2721, 0 dropped draws, 0 Metal OOMs, 0 fence stalls).
<!-- greyfinch-sync:LakshanSivakumar/Native-Victory-macOS:comment:7187978741 --> Imported from [LakshanSivakumar/Native-Victory-macOS](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/12#issuecomment-7187978741). Originally posted by [claytonblythe](https://github.com/claytonblythe) on 2026-11-26T09:25:54Z. --- Live-tested on a 16 GB Apple M4 (`VICTORY_GUESS_GRAPHICS=1`, headless): - `--console series-x`: stalled right after frame 704 (~35 s in) with a GPU fence hang (`work held for a wait that does not hold: fence ... signal of 1452 queued 5.3s ago, GPU at 1450`). - `--console series-s` (paired with https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/22 for late-loaded static TLS in `amd_fidelityfx_upscaler_xbox.dll`): ran cleanly for the full 65 s to **frame 1344** (`recorded=2721 encoded=2721`, 0 dropped draws, 0 Metal OOMs, 0 fence stalls).
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LakshanSivakumar/Native-Victory-macOS!12
No description provided.