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

Manually merged
github merged 1 commit from gh-pr/12/head into gh-pr/12/base 2026-11-26 14:42:32 +00:00
Owner

@⁠claytonblythe on GitHub · 2026-11-26 08:57 UTC · original
claytonblythe:fix/macos-16gb-series-s → main · +24 −11 · 1 files · 1 commits · merged 2026-11-26 09:21 UTC

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)
**@⁠claytonblythe** on GitHub · 2026-11-26 08:57 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/12) `claytonblythe:fix/macos-16gb-series-s` → `main` · +24 −11 · 1 files · 1 commits · merged 2026-11-26 09:21 UTC ## 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)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 14:42:30 +00:00
github manually merged commit 84c789520f into gh-pr/12/base 2026-11-26 14:42:32 +00:00
Author
Owner

@⁠LakshanSivakumar on GitHub · 2026-11-26 09:21 UTC · original · approved these changes

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

**@⁠LakshanSivakumar** on GitHub · 2026-11-26 09:21 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/12#pullrequestreview-6071446614) · **approved these changes** Reviewed and tested merged with main on macOS (tests, Windows clippy, policy). Thanks!
Author
Owner

@⁠claytonblythe on GitHub · 2026-11-26 09:25 UTC · original

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 #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).
**@⁠claytonblythe** on GitHub · 2026-11-26 09:25 UTC · [original](https://github.com/LakshanSivakumar/Native-Victory-macOS/pull/12#issuecomment-7187978741) 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://git.gtahub.st/github/LakshanSivakumar--Native-Victory-macOS/pulls/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).
This discussion has been locked. Commenting is limited to contributors.
No description provided.