Skip to content

L10.4 (pre-release): the version in the launcher, cheaper texture lookups

Pre-release
Pre-release

Choose a tag to compare

@cheemu21 cheemu21 released this 30 Nov 16:45

Pre-release: source code only. No IPA and nothing from the game are attached or in the repository. Build your own from your own dump of the game (base game + update v131072) with the steps in the README, using the env file under "Build settings" below.

The Legend of Zelda: Ocarina of Time (Switch 2) as a native iPhone and Mac app, on top of nxnative.

L10.4: the version in the launcher, cheaper texture lookups

Everything in L10.3, plus L10.4. Measured on an iPhone 18 Pro (iOS 27.2) in LiveContainer.

New

  • The launcher shows which version you run, in gold under the title, for example Version L10.4 · a640dcb: the release, then the first 7 characters of the exact source commit (followed by * if the build had uncommitted changes). The first line of log.txt names it too, so a log always says which build it came from.
    • The name comes from DM_LAUNCHER_VERSION if you set it when building, otherwise from the newest release tag (with a + when the build is newer than that release).

Performance

  • Cheaper texture lookups.
    • A profiling build counted where texture time goes. 8–12% of texture lookups took the slow path, about 800–1,100 per frame at 0.8–8 µs each, and they cost about 90% of the texture time.
    • The cause: every time the engine wrote to game memory itself (for example a GPU copy), every texture loaded from game memory was re-checked, even when the write landed nowhere near it.
    • Now a texture is re-checked only when its own memory is written. Textures on constantly written pages are still checked on every use, and a clean texture's memory is no longer scanned twice.
  • To be clear: in a normal run the overall speed measured the same as L10.3, about 5.2 ms of replay CPU per frame at full speed. The next update looks for what still sends textures down the slow path.

Fixes

  • No false freeze reports after leaving the app for a moment. When the app is out of focus (Control Center, the app switcher), the game pauses as it should. The freeze watchdog no longer reports that pause as a 5-second stall.

For testers

  • Profiling builds (DM_NVN_CPUPROF=1) now log, every 5 seconds: the replay thread's time per command type, each draw split into five parts, argument setup by binding type, and which steps texture lookups take. Normal builds are unaffected.

Build settings

Unchanged from L10.

DM_UPSCALER=metalfx
DM_FPS_HOLD=off
DM_THERMAL_CAP=0
DM_QOS_MAP=1
DM_QOS_EDGES=45,59
DM_NVN_GPUPROF=every:600
DM_BOOTPROF=1
DM_GUEST_FILE=1
DM_NVN_TEX_MIP_LEVELS=2
DM_FRAMEGEN_SCALE=0.5
DM_NVN_PASS_SPLIT=0
DM_NVN_ANISO_MAX=4

The shaders are the same as L10's: no slow first start when coming from L10, L10.1 or L10.3.

Status

  • Keep at least 15 GB free on the phone. The game keeps its memory in a file on storage that can grow to about 9 GB, and it stops itself safely when space runs low. Delete old IPAs and empty Recently Deleted in Files.
  • Steady 30 fps while the phone runs at full speed. When iOS cuts the CPU to about 1.5 GHz (after a few minutes, sooner on a warm phone), frames still drop. Start from a cool phone.
  • One crash was seen after about 4 minutes of heavy play in L10.3: the game ran out of its 8 GB address area. A fix is planned, not in this release.
  • iPhone 15 Pro and 16 / 16 Pro (8 GB) are untested by us.

Credits

  • Amiibo and NFC by Tizzle2x.
  • seedds and the nxnative contributors for the engine, including Alexander Gurov (per-draw caches) and dpadr (hot-page tracking).