Skip to content

Graphics settings, and cup screen hints at the screen sides - #32

Open
codedpalette wants to merge 5 commits into
c22dev:mainfrom
codedpalette:graphics-settings
Open

codedpalette wants to merge 5 commits into
c22dev:mainfrom
codedpalette:graphics-settings

Conversation

@codedpalette

@codedpalette codedpalette commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds graphics settings to the launcher and moves the cup screen L and R hints to the screen sides with Fill screen.

The mod changes that were here before (mod order, new MSBT labels, archive files, code modules) moved to their own PR, and the test-run options to another one.

Graphics settings

The texture LOD bias setting moved to its own PR, because it needs the shader-side bias from #45 to work on Apple7 GPUs. This PR and #45 merge cleanly in either order.

The settings go into the Graphics page of the launcher, on macOS and iOS. On macOS each setting has its description on its own row. On iOS each one has its own section with a footer. Console mode lists Docked (4K), then Docked (1080p), then Handheld (720p).

  • Dynamic resolution is on by default. If you turn it off (NX_DYNRES=0), the game stops lowering its resolution in races and replays. Two 4.0.1 game patches read a new keypage byte. They are an optional patch group, so a mod can replace them.
  • Anisotropic filtering (NX_ANISO) sets 2x to 16x, or keeps the game value. It stays under the cap for older iPhones (NX_MAX_ANISO).
  • Texture filtering (NX_TEXTURE_FILTER) is Game default, Bilinear or Trilinear.

The sampler settings change only mipmapped game textures. Render targets keep the game samplers, because filtering them cost up to 6 ms of GPU time per frame. The present pass also averages up to 4x4 samples when it shrinks the image more than 2:1. The README has a Graphics section.

Cup screen hints

The L and R hints of the cup screen (P_UndrBase_ panes of mn_GrprCupSlct_00) now follow the HUD spread, so they sit at the screen sides on wide screens. A rule pane name can end in * to match panes by prefix.

Tests

  • cargo test --workspace passes, and ./make-app.sh builds the macOS app.
  • The iOS launcher sources pass swiftc -typecheck with the iOS SDK. The iOS app is not built.
  • Tested on macOS with update 4.0.1 before the rebase on main: the settings run in the game. The graphics settings were not compared side by side with the game defaults.

@codedpalette codedpalette changed the title Graphics settings, grouped launcher settings, mod labels and mod order Graphics settings, mod order, new mod labels and files, and code modules from mods Oct 30, 2026
codedpalette and others added 2 commits October 30, 2026 19:14
…ynamic resolution

The settings go into the Graphics section of the launcher, on macOS and
iOS. Console mode lists 4K, then 1080p, then 720p.

- NX_ANISO, NX_TEXTURE_FILTER (bilinear or trilinear) and NX_LOD_BIAS change
  samplers of mipmapped game textures. Render targets keep the game
  samplers, because filtering them cost up to 6 ms of GPU time per frame.
- NX_DYNRES=0 stops the GPU stress analyzer, which lowers the resolution in
  races and replays. Two 4.0.1 patches read a new keypage byte. They are an
  optional patch group, so a mod can replace them.
- The present pass averages up to 4x4 samples when it shrinks the image more
  than 2:1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014XqAMq7Da9ETLipXZ4rHbK
The hints (P_UndrBase_ panes of mn_GrprCupSlct_00) now follow the HUD
spread. A rule pane name can end in * to match panes by prefix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014XqAMq7Da9ETLipXZ4rHbK
@codedpalette codedpalette changed the title Graphics settings, mod order, new mod labels and files, and code modules from mods Graphics settings, and cup screen hints at the screen sides Oct 30, 2026
The graphics options move into upstream's Graphics pages, with each
description on its own option's row (macOS) or in its own section
footer (iOS). Anisotropic filtering still respects upstream's cap for
older iPhones.
Metal ignores MTLSamplerDescriptor.lodBias on Apple7 GPUs, so the
setting needs the shader-side bias from c22dev#45. It comes back in a
follow-up that builds on it.
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