Skip to content
raYhanrydPublic

About

macOS menu bar diagnostics for Prism-launched Minecraft and Roblox: honest CPU, memory pressure, thermal state and latency, with a confirmed quit for background apps only.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GameMode

CI

A tiny macOS menu bar app that watches your Mac while you play Minecraft (launched by Prism Launcher) and Roblox: CPU, memory pressure, thermal state, optional ICMP latency, and the heaviest background apps worth quitting — with a confirmed, graceful quit for everything except your game.

It is one AppKit status item, no dependencies, no Xcode project, no login item, no permissions, and no timer at all unless you turn it on.

●  GameMode, Gaming Mode off

What it does

  • Gaming Mode — a manual toggle. Turning it on runs one process scan and arms monitoring. Off means no timer, no scan, no socket: idle cost is 0.00 % CPU. It is never restored: every launch starts off, so nothing can arm itself.

  • Three evidence levels, never blended — the row says exactly what is known:

    Evidence Row
    Prism is open Prism Launcher running — no game JVM
    Game JVM started Minecraft started · Fabulously Optimized
    World loaded Minecraft playing · Fabulously Optimized

    "Playing" is claimed only from the instance's own latest.log (join + no world unload). Nothing is injected into the game and nothing is written to its folder. Roblox has no readable world log, so it stops at Roblox running.

  • Latency, off by default — a real ICMP echo (no ping subprocess), with TCP-connect fallback labelled honestly as "TCP connect". It measures the host you type, which says nothing about your game server's location — that is why it is opt-in.

  • Background apps — the top five regular apps by measured CPU, each with a submenu: Quit… (asks first, names the app and its numbers, sends one graceful request, checks once after five seconds), Hide this session, Never suggest. A game process can never be a target, and there is no force-quit anywhere in the app.

  • A way back — Reset hidden apps appears once anything is hidden and undoes both scopes.

The menu

Gaming Mode                               ⌘G
Latency monitoring
Target: 1.1.1.1…
Every: 5 s                                ▸ 1 s · 2 s · 5 s · 10 s · 30 s
────────────────────────────
ICMP echo · 1.1.1.1 · 24 ms · loss 0%      (only while latency is on)
Minecraft playing · Fabulously Optimized
Roblox — not running
CPU 14% · Memory Normal · Thermal Nominal (macOS reports) · Low Power Mode
────────────────────────────
Heavy background apps
  Firefox · 12% of a core · 538 MB        ▸ Quit… / Hide this session / Never suggest
────────────────────────────
Reset hidden apps                         (only while something is hidden)
Re-probe latency
Quit GameMode                             ⌘Q

Sections below Latency appear only while Gaming Mode is on. Every measured row belongs to this open: game rows read checking… until the sample lands, and nothing a previous open measured is shown as current.

Re-probe latency probes once immediately and updates the menu bar item. It cannot refresh the menu's own rows, because pressing a row closes the menu — the rows are rebuilt on every open.

Install

Download (no build step). Grab GameMode.zip from the latest release, unzip, and move GameMode.app to /Applications. It is ad-hoc signed for personal use, not notarised, so macOS quarantines it; clear that once:

xattr -dr com.apple.quarantine /Applications/GameMode.app
open /Applications/GameMode.app

There is no Dock icon and no window — the app is the menu bar icon. Add it to Login Items yourself if you want it at login; GameMode never installs one.

Build from source. Command Line Tools are enough; Xcode is not needed.

bash scripts/test.sh        # 92 checks, exit 0 = all pass
bash scripts/build-app.sh   # → dist/GameMode.app (arm64, ad-hoc)
open dist/GameMode.app

What it never does

  • Never signals a game. QuitPolicy refuses a detected game pid before any other rule; there is no SIGKILL path in the code.
  • No admin rights, no sandbox exceptions, no Accessibility or Screen Recording permission, no helper tools, no launch daemon.
  • No telemetry, no update check, no analytics, no network traffic except the ICMP echo to the target you choose.
  • No FPS number, no GPU number, no swap figure, no "RAM used %" — memory pressure level only.
  • Never claims a measurement it did not take: a failure renders — ms with its reason, never 0 ms.

Measured, not estimated

phys_footprint from proc_pid_rusage on the development machine (8 GB MacBook Air, arm64, macOS 27.2.1). Full protocol and every earlier campaign are in docs/MEASUREMENTS.md.

State Footprint CPU
Gaming Mode off (default) 11.99–12.13 MB 0.00 %
Gaming Mode on, latency off (shipped default) 12.13–12.59 MB 0.00 %
Gaming Mode on, latency on, 5 s cadence 13.94–14.48 MB 0.067–0.173 %, median 0.10 %
Menu open 21.72–22.79 MB peak —
100 open/close cycles +1.02 MB over the first open —

Latency accuracy: median 31.78 ms against /sbin/ping's 33.71 ms over 8 interleaved pairs (1.9 ms apart). Warm startup 140.4 ms to a ready status item.

Known cost after the menu has been used: AppKit's menu machinery retains about 8 MB once the menu has been opened, so a long session that has opened the menu sits near 20–21 MB rather than returning to 12 MB. malloc_zone_pressure_relief was tried and did not release it; the alternative (a panel measured 18 MB, a popover 25 MB) is worse. It is documented rather than measured away.

Limitations

  • Prism Minecraft only — vanilla-launcher and other-launcher JVMs are deliberately not matched, and Prism must use its default instance layout (<instance>/minecraft/logs/latest.log).
  • Roblox stops at "running" — no local world log exists, so no instance name and no "playing".
  • Level 3 is a file read of latest.log; a session that never writes a join line reads as "started". Verified against 68 past session logs.
  • Thermal state is a coarse enum (Nominal / Fair / Serious / Critical), not a temperature.
  • IPv4 only, one target, unprivileged ICMP (SOCK_DGRAM) with a TCP fallback.
  • CPU is per process as macOS reports it; browsers spread work across helpers that are excluded by design, so a browser row undercounts its own renderers.
  • Ad-hoc signed, arm64 — not notarised; Intel Macs and managed Macs that forbid unsigned apps will refuse it. Build from source if you prefer.

Project

Sources/GameModeCore/   pure logic, no AppKit, fully testable
Sources/GameModeApp/    AppKit wiring: status item, menu, probes
Tests/CoreTests/        assert harness (92 checks), run by scripts/test.sh
scripts/                test.sh, build-app.sh
docs/                   architecture, measurements, budget, plan, research
spikes/                 development-only probes (not shipped)

Start with docs/ARCHITECTURE.md; the performance gates are in docs/PERFORMANCE_BUDGET.md and the evidence in docs/MEASUREMENTS.md.

swift test / Swift Testing is not used: its macro plugin failed in 5 of 11 runs on a Command Line Tools-only toolchain, so the suite is a plain assert runner.

License

MIT — see LICENSE.

About

macOS menu bar diagnostics for Prism-launched Minecraft and Roblox: honest CPU, memory pressure, thermal state and latency, with a confirmed quit for background apps only.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages