Repository navigation
L10.5 (pre-release): no more crash after a few minutes, fewer slow texture lookups
Pre-release
Pre-release
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.5: no more crash after a few minutes, fewer slow texture lookups
Everything in L10.4, plus L10.5. Measured on an iPhone 18 Pro (iOS 27.2) in LiveContainer.
Fixes
- No more crash after 4–5 minutes of heavy play.
- The game ran out of its 8 GB address area: its own memory allocator found no free spot for a new block, carried on with an empty one, and crashed. It happened twice at the same point.
- The game now gets a 12 GB address area when the phone has room for it, and the old 8 GB otherwise. The first lines of
log.txtsay which ([mem] alias region … GB). - A test run played 7.6 minutes past the old crash point (about 12,900 frames) without a crash.
- This is address space, not memory: the game's memory use is unchanged (about 5.2 GB).
Performance
- About 70% fewer slow texture lookups and about 11% fewer CPU instructions per draw (44,000 → 39,000) in a profiling build. Two causes:
- The engine's list of texture changes was too short for this game. It overflowed many times a second, and each overflow sent every texture down the slow path. The list is now 16 times longer.
- A write to one block of game memory made textures in every other block look changed. Textures now only notice writes to their own block.
- From nxnative: fewer render passes, no spurious texture re-uploads, and memory changes tracked across neighbouring blocks.
- To be clear: the gain in play is modest. Frames still drop when iOS slows the game down (see Status).
For testers
- Profiling builds (
DM_NVN_CPUPROF=1) now say why textures take the slow path, and why the engine's texture list started over.
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.4.
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.
- Frames still drop when iOS slows the game down. A log from an M5 iPad shows iPadOS moving almost all of the game's work to the slow efficiency cores after an area load, while the device was cool (thermal state 0): the same work then took 2.3 times longer, about 25 fps. L10.6 looks into what makes iOS do this.
- The crash fix has one long test run behind it. 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).