Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dm/games/0400486024DEC000/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ One [NUP container](../../../docs/development.md#the-packing-script-in-detail) o
Measured on an M6 Mac with 16 GB, headless, on one walk with camera turns (`walk.sh` in the work folder).

- Current on an M5 Pro MacBook Pro (16-inch, 20-core GPU, 24 GB, macOS 27.2, 2026-11-09), `kokiri-deck` from a deck autosave with the full library of chain `dedc9391c30b`, at full resolution (Dynamic resolution off), two runs a variant: in a window a locked 60 fps (59.8–60.0, frame p99 16.8–19.4 ms, GPU p50 10.2 ms). In fullscreen on its ProMotion screen it held 40 fps (39.6–40.1) at the same GPU time, with every present a 120 Hz refresh late and every other link tick skipped: [The 60 Hz link at 40 fps in fullscreen on a ProMotion screen](../../../docs/reference/frame-rate.md#the-60-hz-link-at-40-fps-in-fullscreen-on-a-promotion-screen). With the 120 Hz link there, 58.8–59.6 fps, frame p99 25.3 ms; with the screen held at its fixed 60 Hz mode, 60.0 fps, frame p99 16.9 ms, which fullscreen now switches to. MetalFX present upscaling to the 3456-wide fullscreen cost no measurable GPU time (59.4–59.7 fps). Resident about 10 GB, GPU allocated 11.2–11.4 GB; the prepare step took 7.3 s on a first start.
- Current on a base M4 Mac mini (10-core GPU, 16 GB, macOS 27.2, 2026-11-15, a 2560x1080 screen at 144 Hz, fullscreen), at full resolution (Dynamic resolution off, docked: 1920x1080 drawn, 2560x1440 out): 60 fps is out of reach and 30 holds only in lighter areas. `kokiri-deck` (window): GPU p50 24.8 ms on main `0def324d`; [PR #2308](https://github.com/seedds/nxnative/pull/2308) 23.8, [PR #2573](https://github.com/seedds/nxnative/pull/2573)'s family compression 23.5, `DM_UPSCALER=metalfx` 23.5, the last two together with the encode thread 22.2 (two or three runs each, the standing part of the window); `DM_NVN_ENC_THREAD=1` alone no gain. In play, with main `0def324d` plus #2308 and #2573, the 30 fps cap and the MetalFX upscaler (several sessions, the owner's report and the host log): Kokiri Forest and Hyrule Field about 30 fps with drops to 18–23; the Deku Tree a steady 30; Hyrule Castle Town 13–15 fps, GPU p50 35–46 ms and frames of 60–90 ms, with the footprint at 12.3–13.5 GB ([Memory](#memory)). The drops in the forest are frames whose GPU span is about twice their summed GPU time (encoders about 1.4 times longer, `@sync_ms` high), in some runs and not others of the same route: [the GPU idles with the next command buffer already committed](../../../docs/reference/frame-rate.md#the-gpu-idles-with-the-next-command-buffer-already-committed), still open. Open: Castle Town at full resolution on a 16 GB, 10-core Mac.
- Current: the title and menu, a movie behind them, are a locked 60 fps (p50 16.67 ms, GPU span 15.6 ms).
- Resolved: the title movie and the cutscene movies stuttered in small regular jerks at that steady 60 fps on a Mac that decodes AV1 with dav1d (M1, M2). The frames were on time and the movie's pictures were not: the player's `advance` (`main+0x3b61ea0`) found no new picture in 546 and 569 of about 2,900 frames of the title on an M2 Pro, and showed the last one again. Two causes, both general: [packets decoded inside the submission](../../../docs/reference/movies.md#nncodec-packets-decoded-inside-the-submission), on the player's one reader thread, which also gives the shown pictures back, and [dav1d one frame at a time](../../../docs/reference/movies.md#dav1d-decoded-one-frame-at-a-time) (15.4 ms a packet in the movie's heaviest five seconds, 122 ms the longest). After: 0 or 1 in 2,567 to 3,036 frames a run (eight runs of 54 s, headless, `DM_PROBE=main:3b61ed8,main:3b61f80` counting the failed and the good calls), and `DecodeAsync` returns in 0.1 ms at the median and 1.1 ms at the 99th percentile, from 1.9 and 120 ms. Open: not run on an M1 or M2 with four performance cores, nor on an iPad; a Mac with a hardware AV1 decoder (M3 on) decodes with VideoToolbox, where only the first cause applied, not measured.
- Game speed: the game steps its time by a frame ratio, its base rate (60, or 30) / its int frame rate, whatever the frame took (`main+0x6e6cc4` on v131072), so frames longer than a vsync played in slow motion (seen by the user on a slower Mac; [issue 1375](https://github.com/seedds/nxnative/issues/1375)'s M1 Max ran the title at about 28 fps). With `fps_target 60` the ratio is the host's frame step × base / 60 ([A fixed frame step plays in slow motion on a slow Mac](../../../docs/reference/frame-rate.md#a-fixed-frame-step-plays-in-slow-motion-on-a-slow-mac)), a stub placed by its function's fingerprint ([`patches.py`](patches.py)). Mac runs on the M6 (2026-11-08, a test host on the libraries of chain `3ee493b2c3a4`): the user's play sessions held 60 fps with 2- and 3-vsync holds while areas loaded, game time 1.000 of real time by the host's count. That count is the stub's own; no run on a Mac slow enough to show the slow motion before and after.
Expand Down Expand Up @@ -77,6 +78,7 @@ Measured on an M6 Mac with 16 GB, headless, on one walk with camera turns (`walk

- Current: on the walk, run from an external drive with a 3.5 GB pipeline archive: resident 10.9-11.4 GB, wired about 9.4 GB, on a 16 GB Mac. `vmmap` and `footprint`: 6.4 GB of guest memory and 3.8 GB of Metal textures and targets, 1 GB of IOAccelerator memory. [Reading the archive into memory](../../../docs/reference/memory.md#a-pipeline-archive-on-an-external-drive-is-read-into-memory) used to add 3.5 GB (footprint 15.0, peak 16.7). `mem_map_limit on`: a map past the application pool fails as on Horizon, and the SDK's allocator then gives back the pages it keeps. Other apps' memory adds to the swap: other games running beside it can push the Mac over.
- This game took the Mac down before the fixes (kernel panic in `IOGPUGroupMemory` at 14.7 GB wired): [raw pool table](../../../docs/reference/memory.md#memory-pools-nothing-gave-an-address-to-stay-out-of-the-raw-pool-table), [textures made only when read](../../../docs/reference/memory.md#shaders-report-which-textures-they-read-through-a-pool), [out-of-memory exit](../../../docs/reference/memory.md#repeated-gpu-out-of-memory-failures-end-the-game).
- Current on a base M4 Mac mini with 16 GB (2026-11-15, the build above): footprint about 10.5 GB in Kokiri Forest, 12.3–13.5 GB in Hyrule Castle Town with GPU allocated 7.1–8.3 GB, and macOS swapping (4.5 GB of swap in use with a browser and the Claude app open). There the frame rate fell to 13–15 fps.
- Why so much: the game's own memory is about the console's 9 GB application pool, and on the Mac its textures also exist as Metal textures, as Metal cannot sample the guest's block-linear storage.
- Resolved in part ([#1831](https://github.com/seedds/nxnative/issues/1831)): render targets that move in the game's 305 MB pool and change size with its dynamic resolution still get a new Metal texture each time. Their memory is now recycled ([Render targets that move with the dynamic resolution](../../../docs/reference/rendering.md#render-targets-that-move-with-the-dynamic-resolution-get-new-metal-memory-each-time)). Since 04419bc2 the resolution moves, and on a 16 GB MacBook Air M4 the game stuttered (p95 99 ms) with GPU allocation near 15 GB. On an M6, while the resolution moved in the village, the target site added 455-521 MB to the residency set per 300 frames without recycling and 27-37 MB with it once heaps were waiting, and frame p90 went from 33-50 ms to 17-18 ms. The live targets' steady total, about 2.1 GB in the village, cannot share the pool's memory as on the console: the game keeps live targets in the part of the full-size scene target its resolution leaves unused, which only NVN's layout allows (PR #1453). [A report of a GPU driver panic](https://github.com/seedds/nxnative/pull/1299) lines up with this churn. The reporter's Mac has not been tested.
- Current: the iPhone's first run (12 GB iPhone, guest files on, the phone's IPA at 34ada028) was ended for memory about 9.5 minutes in, at about 28 fps, at an area load: the log stops mid-frame with 5.96 GB of room reported at start, the jetsam limit's figure. On the Mac the same commit reached 6.36 GB of footprint stepping into the village, 4.4 GB of it Metal memory, 2.9 GB of that the 304 MB render-target pool's targets, nearly all of them unused for 20 s or more and drawn over by newer targets while their texture objects lived. They are now released ([Render targets drawn over stayed while their texture objects lived](../../../docs/reference/rendering.md#render-targets-drawn-over-stayed-while-their-texture-objects-lived)): on an M6, the village save and 2.5 minutes around Link's house, footprint 5.35–5.47 GB before, 3.70–3.80 GB after (one run each), 60 fps both, screenshots alike. Open: the iPhone run with it.
Expand Down
Loading