Skip to content

Mac: a settings window before the game starts (resolution, display mode, frame rate) #374

Closed

Description

@surajmandalcell

Proposal

Show a small settings window when a game's Mac .app starts, before the game runs. This is the same idea as the iOS launcher from #64, and it draws from the same dm/games/settings.tsv. Old PC games used a window like this to choose the resolution and graphics options before the game started. The Switch games do not have these settings in their own menus.

The window opens with the basic settings. An "Advanced settings" row opens the rest.

Basic Advanced settings open
Basic view Advanced view

Mockups with the settings that Breath of the Wild has today. The real window uses the app's own icon.

  • Basic: Resolution, Display mode, Frame rate, Console mode, Game language, Rumble.
  • Advanced: Upscaling, Rumble strength, Metal performance HUD, Frame hold, Frame buffering, Metal 4 pipelines, Prebuild pipelines, Encode thread.

Why now

In #64, the answer for the Mac was "no macOS launcher", because the Mac had no .app packaging then. The Mac has .app packaging now (dm/mac/pack_app.py, --platform mac-app), so players double-click a game app. To change a setting, they still have to edit env.txt or start the app from a terminal.

Design

  • One table: the window draws from dm/games/settings.tsv and settings.py, the same as iOS. A row can name its platforms and whether it is basic or advanced. DM_SHOW_FPS and DM_TOUCH_HAPTICS stay iOS-only, and a Mac-only Display mode row sets DM_FULLSCREEN.

  • Real values: resolution shows real pixels, from the game's base view size times DM_RENDER_SCALE. For example, BotW docked shows 800×450 to 1600×900. The values the host reads do not change.

  • No new process: dm/mac/launcher.c already sets up the environment and starts dmhost. The window opens before that spawn. Play sets the environment variables, and then the game starts as it does today. Values from an env file are shown locked, the same as on iOS.

  • Skipping the window:

    • A "Show this window at launch" check box, saved in UserDefaults.
    • Holding Option while the app opens shows the window again.
    • open Game.app --args --no-launcher skips the window.
    • DM_LAUNCHER=0 skips the window, the same switch as on iOS.

    Scripts and tests keep their current behaviour with DM_LAUNCHER=0.

Open for contributors (later)

Anybody who wants to pick these up is welcome to. None of them is in the first PR.

A draft PR with the first part will follow and will link here.

Activity

  1. v0lumehi commented on Oct 27, 2026

    @v0lumehi
    Contributor
  2. v0lumehi commented on Oct 27, 2026

    @v0lumehi
    Contributor

    @surajmandalcell, thanks for the mockups. Splitting the settings into Basic and Advanced reads well, and drawing from settings.tsv is the right source. A correction to my link earlier: NX2Apple is a separate app that builds games and keeps a library. Your proposal is something else, a window inside each game's app, the Mac counterpart of the iPhone app's settings screen. That one is a real scope question.

    What's already there:

    @seedds, two yes/no questions, so nobody builds in the wrong place:

    1. Should a game's Mac app have its own settings window upstream, drawn from launcher.json like the iPhone's? Or should Mac apps start with their tested defaults, and settings come from front ends such as NX2Apple (or env.txt)?
    2. Would you pin one issue "Graphical front ends" (or turn on Discussions) where Mac: native AppKit app bundle, preferences, and controller mapping #104, Working on a Community Windows Port of NXNative + Desktop GU #244, NX Play: a Mac library app on top of build_ipa_from_nsp.py (no fork) #264, Community Project: NxNative Launcher (macOS Native GUI & Game Library frontend) #332 and new front-end projects can collect? These come in every day now.

    If the answer to 1 is yes, I'd suggest a small native window that reads only launcher.json and passes the choices as environment switches, as the iOS launcher does, so no second list of settings appears.

  3. M-A-Boucher commented on Oct 27, 2026

    @M-A-Boucher

    This is so antithetical to how a Mac app should behave.

  4. surajmandalcell commented on Oct 27, 2026

    @surajmandalcell
    ContributorAuthor

    @M-A-Boucher Gaming itself is antithetical to mac. Other way is overlay on top of game but that is even worse imo unless hitting cli is the congruous you seek.

  5. surajmandalcell commented on Oct 28, 2026

    @surajmandalcell
    ContributorAuthor

    Landed on main in 1e207fa (via #379), on top of #418 and #431. Thanks @seedds and @v0lumehi. The later items in the list above (mods, above 100%, 120 fps, more display modes, controller layout) are still open for anyone who wants them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions