Skip to content

L9.7 (pre-release): 3.2 GB less memory, far fewer dropped frames (includes L9.1–L9.6)

Pre-release
Pre-release

Choose a tag to compare

@cheemu21 cheemu21 released this 29 Nov 07:34

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.

L9.7: 3.2 GB less memory, far fewer dropped frames

Everything in L9, plus L9.1–L9.7. Measured on an iPhone 18 Pro (iOS 27.2) in LiveContainer.

Memory

  • 3.2 GB less (L9.1): the shaders are read straight from their files while the phone has the address space for it, instead of being copied into memory on every iPhone. Before: 7.3 GB, 449 MB from iOS's limit, critical pressure from the first minute.
  • About 1.2 GB less at start (L9.3): the startup pipeline list is back to L8's size (the merged one held 2.5 GB before play). Area loads no longer freeze for 1–2 seconds (L9.2's worst: five frames of 0.4–1.2 s).
  • Memory-saving mode follows the room iOS leaves the app (under 3 GB), not a fixed 4.6 GB, and keeps reusable screen buffers while it is on (L9.4). It used to switch on with 3.5 GB still free and made every new screen buffer a fresh allocation.

Smoother play

  • New screen buffers are cleared by the drawing pass that first uses them instead of a separate copy (L9.7): the copy was about 350 µs of the 380 µs each new buffer cost. In the game's busiest area: 1 dropped frame per 300 instead of 11–27.
  • Render Scale starts at 0.5 with Frame Generation on (L9.5): frame generation shows every picture at its own size (0.5 of the screen), so the extra pixels at 0.6 were drawn and then shrunk away.
  • Less GPU work a frame (L9.2): frame generation at 0.5 of the screen, no pass splits, texture filtering at most 4x (DM_NVN_ANISO_MAX, new).
  • New log lines for reports: [rtnew] (new screen buffers, their memory, sizes and time) and which shader data was read from files or copied.

Compared with L8 in normal play: about 85 % fewer dropped frames (a median of 1.5 per 300 frames against 10).

Build settings

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

Status

  • After a few minutes of play iOS can move the game onto the phone's slower CPU cores: 22–61 dropped frames per 300 in those stretches. L10 addresses the CPU work.
  • 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 these builds run on.