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 --workspacepasses, and./make-app.shbuilds the macOS app.- The iOS launcher sources pass
swiftc -typecheckwith 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.