Skip to content

L2 (pre-release): one IPA for every iPhone, pipelines built on the phone, no mesh freezes (includes L1)

Pre-release
Pre-release

Choose a tag to compare

@cheemu21 cheemu21 released this 16 Nov 16:32

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 app, on top of nxnative.

L2 (includes L1)

The L line set out to make the game smaller, the same for every iPhone, and steady. L1 tried running without a pipeline archive; it froze too often (56 s of waits in 212 s of play on an iPhone 18 Pro, log 30), so L2 builds the archive on the phone instead.

Highlights

  • One IPA for every iPhone. No pipeline archive is made on the Mac; the phone builds the base of every shader pair once, on the first start, behind "Preparing pipelines" (about 33,000). Later starts take about 3 s.
  • The preparing step always finishes before the game starts. L1 could skip ahead, which made the first start stutter and freeze (log 28).
  • No freezes for foliage and other mesh-shader pipelines the cache lacks: they build in the background while their draws wait.
  • Every compute pipeline is prepared before play (3,574 added to the list).
  • Cutscenes no longer play at half speed at 30 fps (nxnative PR seedds#2622): the frame step holds 60 while a 60-picture movie plays.
  • A thread dump in the log whenever the app leaves the screen, to see what a stuck game waits for.

Build settings

Build with --gpu none (no offline pipeline archive).

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

Status

  • iPhone 18 Pro (log 34): steady 30 fps after the first areas load; memory reached about 5-6 GB.
  • The first start takes a long time while the phone builds its pipelines (keep it plugged in).

Credits

Not affiliated with Nintendo.