Skip to content

iOS launcher: an Advanced page, a reset to the tested defaults, and a settings page for players - #214

Closed
v0lumehi wants to merge 1 commit into
seedds:mainfrom
v0lumehi:launcher-advanced
Closed

v0lumehi wants to merge 1 commit into
seedds:mainfrom
v0lumehi:launcher-advanced

Conversation

@v0lumehi

Copy link
Copy Markdown
Contributor

Part of #142. Builds on #211 (profile keys): this PR contains its commits; the last commit is new here.

Advanced settings in the launcher

The launcher's first page keeps what players change often:

  • frame rate;
  • render scale;
  • console mode;
  • language;
  • the frame-rate counter;
  • rumble.

Its last row, Advanced, opens the settings that trade latency, memory or heat for smoothness:

Setting Variable Default
Frame buffering DM_PRESENT_SNAP the profile's present_snap
Metal 4 pipelines DM_PSO_MTL4 the profile's pso_mtl4
Pipeline prebuild DM_PSO_PREBUILD on (runs once in the prepare step)
Encode thread DM_NVN_ENC_THREAD on (as the host on iOS)
Hold frames when late DM_FPS_HOLD the profile's fps_hold (games with a frame step)
Performance HUD DM_METAL_HUD off
  • Stored choices. The launcher stores a choice only when it differs from the game's default, and it removes a stored one that equals it. So a setting the player never touched follows the tested defaults of a later build.
  • Reset. Reset to tested defaults forgets the Advanced page's stored choices.
  • env.txt. Documents/env.txt still wins and is never stored.
  • settings.tsv. It gets a page column (main / advanced, parsed strictly by settings.py), and toggles can set values other than 1 / 0 (<on>/<off>). DM_FPS_HOLD takes on / off, where a 0 would have meant on.

docs/settings.md

A page for players, linked from README's Play section. For each setting it explains what it does, when to change it and what it costs. Mermaid diagrams show a frame with and without frame buffering, how the prebuild and the archive work over time, and how a game's defaults, the player's choices and env.txt decide a setting.

Checked

  • test_launcher_settings.py (the page column, the toggles' values, the defaults per profile).
  • test_launcher_storage.py: the storage rules, run through a Swift check in a booted iOS Simulator (it skips without one; it passed on a booted one).
  • The iOS compile check.
  • On the iPhone 17 Pro Max: the Advanced page shows, and its settings reach the host (the log's launcher: lines).

…memory or heat for smoothness, and a reset to the game's tested defaults; the launcher stores only choices that differ from the default; docs/settings.md explains every setting for players. settings.tsv gets a page column (main / advanced, parsed strictly by settings.py) and toggles that set other values than 1 / 0 (values <on>/<off>: DM_FPS_HOLD takes on / off, which the host reads; a 0 would have meant on). The first page keeps frame rate, render scale, console mode, language, the frame-rate counter and rumble; its last row, Advanced, opens Frame buffering (DM_PRESENT_SNAP, the profile's present_snap), Metal 4 pipelines (DM_PSO_MTL4, the profile's pso_mtl4), Pipeline prebuild (DM_PSO_PREBUILD; it runs once in the prepare step, so its note says the first start waits), Encode thread (DM_NVN_ENC_THREAD, on as the host on iOS), Hold frames when late (DM_FPS_HOLD, the profile's fps_hold, for games with a frame step) and the Performance HUD. Play stores a choice only when it differs from the game's default (a range compares as numbers) and removes a stored one that equals it, so a setting the player left alone follows a later build's tested defaults; Reset to tested defaults forgets the Advanced page's stored choices; Documents/env.txt still wins and is never stored. docs/settings.md (linked from README's Play section): each setting, when to change it and its cost, with diagrams of a frame with and without frame buffering, of when a pipeline is built (the prepare step, the one-time prebuild, hybrid stand-ins, background builds into the archive), and of the frame step with and without holds. Checked: dm/tools/tests pass (test_launcher_settings: pages, profile defaults for Breath of the Wild and Wonder, on / off values, the strict table format), dm/ios/tests pass (the new test_launcher_storage compiles Launcher.swift with launcher_storage_check.swift and runs it in a booted iOS Simulator, skipped without one: 10 checks of what is stored, Reset and the env file), docs_symptoms.py --check and test_docs pass, the iOS compile check (133 files) and build_smoke.py pass; the launcher drawn in an iPhone 17 Pro Max simulator (iOS 27) shows the first page with the Advanced row and the Advanced page with Breath of the Wild's defaults
@v0lumehi

Copy link
Copy Markdown
Contributor Author

Closing: this landed in c13ddcf together with #215. The settings (Frame buffering, Metal 4 pipelines, Pipeline prebuild, Encode thread, Hold frames when late, Performance HUD), Reset to tested defaults, the rule that only choices differing from the default are stored, the on/off toggles, docs/settings.md and the launcher tests are all in main, on the single settings screen under Performance. Thanks for merging!

@v0lumehi v0lumehi closed this Oct 26, 2026
@v0lumehi
v0lumehi deleted the launcher-advanced branch October 26, 2026 09:29
ltrdpper pushed a commit to ltrdpper/BananaNative that referenced this pull request Nov 14, 2026
… Kong Bananza speed fix, bundled font, Ocarina of Time cave walls option

Fixes seedds#214, seedds#207, seedds#223, seedds#203. The Legend of Zelda: Ocarina of Time (0400486024DEC000): Keep cave walls (Qualcomm) is an option, off by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant