gpu: log Metal's recommended working set and the title's budget at startup #149
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!149
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-149"
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?
@m0rff on GitHub · 2026-11-26 21:07 UTC · original
m0rff:fix/gpu-memory-ceiling-log→main· +45 −2 · 4 files · 2 commits · merged 2026-11-26 22:38 UTCIssue #8: 16 GB Macs still run the title out of GPU memory. I first tried a loud warning when the title's own declared budget was within 10% of what Metal recommends keeping resident, but checked it against this M2 Pro 16 GB's own real numbers before opening this PR:
Metalhere reportsrecommendedMaxWorkingSet: 12,124 MiB, and Series S's 7,776 MiB budget (the default #12 steers 16 GB Macs to) is only 64% of that, even before any host overhead. A fixed threshold like that would stay silent exactly on the configuration the issue is about, so I dropped it.Instead, this logs the numbers unconditionally in the existing
native host: Metalline: the console name, its declaredtitle_memory, and Metal's ownrecommendedMaxWorkingSetSize. No behaviour change, no switch needed — it's a log line, following the existing "dropped work is logged loudly" convention. Every tester's log now carries the numbers needed to work out a real threshold later (or to compare against a run's actual peak Metal memory), instead of a guessed one that doesn't fire where it should.cargo test -p victory-hle -p victory -p victory-gpu -p xtask -p victory-metal: pass (includes a new test on real hardware:Metal::recommended_working_setis nonzero)cargo clippy --workspace --all-targets --target x86_64-pc-windows-gnullvm -- -D warnings: cleancargo xtask policy: pass@LakshanSivakumar on GitHub · 2026-11-26 22:38 UTC · original · review (dismissed)
Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!
@LakshanSivakumar on GitHub · 2026-11-26 22:38 UTC · original · approved these changes
I merged main into this branch and resolved the conflict with the PR merged before it (both changes kept). Reviewed and tested together with the other open PRs on main (macOS x86_64 workspace tests, the setup shell tests, and Windows clippy). Thanks!