Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2bd920a
The NSP script's fallback tool folders come after the caller's PATH: …
seedds Nov 7, 2026
c8bfa16
A pixel shader's readable-tile version is cut from its one compile, a…
seedds Nov 7, 2026
fa9cfb8
A retired texture leaves the residency set only once no serial entry …
seedds Nov 7, 2026
f25fa95
Pools that hold shader code are no longer made resident to key the sh…
seedds Nov 7, 2026
5c4dc18
The NSP script takes every package's title ID and version from its co…
seedds Nov 7, 2026
a631295
A texture copy into an uncompressed alias of a compressed texture wri…
seedds Nov 7, 2026
0caa6f9
The NSP script's tests no longer call the ShaderWatch that counted sh…
seedds Nov 7, 2026
050580d
The shader split reads legacy Unreal paks whose index and entries are…
seedds Nov 7, 2026
d70e6a3
--progress json sends a game event once the app's name, version and b…
seedds Nov 7, 2026
12ddb1f
The graphics and sanitizer test targets run from a checkout whose pat…
seedds Nov 7, 2026
3233565
An image slot takes a view of the type its shader declares, as a samp…
seedds Nov 7, 2026
24fe1e5
The controller applet waits for players: with a window, a game that a…
seedds Nov 7, 2026
db206a4
WaitSynchronization retains the objects it waits on and records the s…
seedds Nov 7, 2026
f5f6d4b
DRAGON BALL: Sparking! ZERO plays on the Mac, at 60 fps and up to 120…
seedds Nov 7, 2026
e5f0340
Program keys are found by the program's serial, so a copy of an NVNpr…
seedds Nov 7, 2026
e5f1ade
Mesh shaders' position is invariant, as a vertex shader's: Ocarina of…
seedds Nov 7, 2026
01abf27
Unreal's fixed frame rate takes GEngine only from a store of the prop…
seedds Nov 7, 2026
267ef2d
A counter report's time comes from Metal's paired CPU sample projecte…
seedds Nov 7, 2026
bd979ce
Pikmin 4 plays at 60 fps and up to 120 on the Mac: Unreal's fixed fra…
seedds Nov 7, 2026
88953c5
Merge upstream nxnative main bd979ce into 0.15.0 (thin-fork plan step 1)
claude Nov 7, 2026
82976d1
Thin fork: player code in nxforge/ include files; README and UPSTREAM…
claude Nov 7, 2026
abec453
0.15.0: CHANGELOG and BACKLOG for the thin fork, the upstream merge a…
claude Nov 7, 2026
b966320
Merge main (0.14.0 release) into release-0.15.0
claude Nov 7, 2026
ef9cc23
Release 0.15.0: CHANGELOG heading
claude Nov 7, 2026
c16611d
prog_get: zero md before prog_key (lint-c ratchet, clang-analyzer cor…
claude Nov 7, 2026
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: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
make GAME="$GAME" -j3 t_perf_order
./t_perf_order --cpu 2>&1 | tee ../../../logs/t_perf_order.log
make GAME="$GAME" -j3 perf-order-tsan 2>&1 | tee ../../../logs/t_perf_order-tsan.log
tests="t_gfx_suspend t_capture t_dirty_slots t_dirty_race t_dirty_retire_race t_tex_layout t_pace t_fstep t_link_ticks t_cpu_tex t_hmap t_cover t_pso_skey t_refl t_rt_range_ro t_present_rescue t_gpuprof t_sparse_layout t_timestamp t_rt_depth_ro t_rt_range_shape t_ub t_pso_pending t_vk_desc t_rec_draws"
tests="t_gfx_suspend t_capture t_dirty_slots t_dirty_race t_dirty_retire_race t_tex_layout t_pace t_fstep t_link_ticks t_cpu_tex t_hmap t_cover t_pso_skey t_refl t_rt_range_ro t_present_rescue t_gpuprof t_sparse_layout t_timestamp t_counter_clock t_rt_depth_ro t_rt_range_shape t_ub t_pso_pending t_vk_desc t_rec_draws"
make GAME="$GAME" -j3 $tests 2>&1 | tee ../../../logs/gfx-build.log
failed=0
for t in $tests; do
Expand Down
5 changes: 4 additions & 1 deletion BACKLOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Work planned or in flight on NXForge (gnosticgeek/nxforge, formerly
gnosticgeek/nxnative). Upstream is [seedds/nxnative](https://github.com/seedds/nxnative);
[UPSTREAM.md](UPSTREAM.md) has the contribution policy. Last updated 2026-11-07 (0.14.0: upstream main up to d777f0a plus picks, Mario Kart World pull requests, the converter's Library page).
[UPSTREAM.md](UPSTREAM.md) has the contribution policy. Last updated 2026-11-07 (0.15.0: thin fork, upstream main up to bd979ce).

Keep this file current: every release PR updates the rows its changes touch and the
"Last updated" line ([UPSTREAM.md](UPSTREAM.md#versions); `scripts/release_check.py` checks it).
Expand All @@ -26,6 +26,9 @@ Status key: **Upstream PR open**, **On fork main**, **On branch**, **Next**,
| pso_offline free-space check | Closed upstream ([#790](https://github.com/seedds/nxnative/pull/790)), its fix landed there | Branch `contrib/pso-offline-free-space`, from fde1e63. |
| Unity 6000.3 shader layouts | Closed upstream ([#791](https://github.com/seedds/nxnative/pull/791)), its fix landed there | Branch `contrib/unity-6000-3-shaders`, from f6388f2. |
| bench.py offline pipeline archive | Closed upstream ([#792](https://github.com/seedds/nxnative/pull/792)), on fork main | Branch `contrib/bench-pso-bundle`, from 2309513. |
| Thin-fork upstream PRs | Ready for Tom to open | Branches `contrib/vp9-late-free`, `contrib/gpu-watchdog`, `contrib/dirty-page-pool-bounds`, `contrib/c1-tables-stable-bytes`, each one commit on nxnative `main` bd979ce; bodies in project files `nxnative-pr/0.15/`. NXForge keeps its copies until upstream lands them. |
| Thin-fork: still to prepare | Next | Anisotropic filtering floor (needs an nxnative issue first), incremental pipeline archive and shared Metal cache, GameData.bundle signing, Mina the Hollower and Kirby's Return to Dream Land Deluxe profiles. |
| Fullscreen 60 fps: ours or upstream's | Needs a hands-on check | Upstream keeps the display link in fullscreen (490859e and earlier). Compare a 60 fps game at 120 Hz fullscreen with and without `DM_PRESENT_LATENCY=2` (upstream's path); drop NXForge's no-link mode if upstream's holds 60. |
| Next upstream candidates | Next | Anisotropic filtering floor, untagged and multi-application XCI dumps, the shader build speed-up with a shared Metal cache, the rumble permission before a controller connects. The present filters and MetalFX defaults need an issue first (over about 1,000 lines). |

## Quick settings sidebar and filters
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

NXForge releases are tagged `vX.Y.Z` on `main` ([UPSTREAM.md](UPSTREAM.md#versions) has the rules). Each entry lists what NXForge adds on top of [nxnative](https://github.com/seedds/nxnative); upstream's own changes come in through the merges it names.

## 0.15.0 (2026-11-07)

The thin-fork release: NXForge is now the Converter plus a Mac player layer on nxnative's engine ([UPSTREAM.md](UPSTREAM.md#thin-fork-from-0150)). Merges nxnative's `main` up to `bd979ce` (19 commits since `d777f0a` and the picks). The shader chain changes (`4f4abb1e5355`), so every NVN game's shaders rebuild once.

**From upstream `main`**
- Pikmin 4 and DRAGON BALL Sparking! ZERO play at 60 fps, and up to 120 on the Mac (Unreal's fixed frame rate). DRAGON BALL's encrypted IoStore containers split their shaders.
- The controller applet's player prompt: a game that asks for more players than have joined waits for them behind a prompt (on the keyboard, Return or J is done and Escape or K closes it).
- Every package's title ID and version come from its content metas, not its file name.
- WaitSynchronization keeps the objects it waits on, Ori and the Will of the Wisps finds copied programs' keys, Ocarina of Time's foliage no longer flashes, and counter reports take their time from Metal's paired CPU sample.
- Landed versions of pull requests NXForge carried early replace NXForge's copies: the shared pixel-shader body (#1520) and the shader-code pools left out of the residency set (#1484, `mtl_addr_known`).

**Thin fork**
- The in-game sidebar's glue, its controller navigation, control remapping and the present filters live in NXForge's own files (`dm/host/nxforge/`, `dm/gfx/nvn/nxforge/`), which nxnative's files include at one line each. `front_mac.m` differs from nxnative's by 159 lines instead of 468.
- NXForge's own red lines have a table of their own (`NXF_RED_ONCE`), so upstream's `RED_ONCE` keys keep their numbers and no merge renumbers them again.
- Kept until upstream lands them: the open upstream pull requests NXForge already carries, and NXForge's fixes headed upstream. Four of those are ready as single commits on nxnative's `main` (`contrib/vp9-late-free`, `contrib/gpu-watchdog`, `contrib/dirty-page-pool-bounds`, `contrib/c1-tables-stable-bytes`).
- Kept on top of upstream's content-meta scan: a cartridge with several applications (Belmont's Curse and its Art Gallery) still packs the largest program.
- README and UPSTREAM.md describe NXForge as the Converter plus a Mac player, and UPSTREAM.md has the thin-fork merge rules.

## 0.14.0 (2026-11-07)

Merges nxnative's `main` up to `5636e7a7` (20 commits since `04df08d`), mostly Ocarina of Time fixes. The shader chain changes, so every NVN game's shaders rebuild once.
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NXForge

NXForge is a Mac-focused downstream of **[nxnative](https://github.com/seedds/nxnative)** by seedds and its contributors. It tracks nxnative closely and adds Mac features on top: a Quick settings sidebar with a CRT filter, cheats, mods, screenshots and recordings, and controller rumble fixes. Everything below works as it does in nxnative; [Upstream](#upstream-nxnative) says how the two projects relate.
NXForge is a Mac-focused downstream of **[nxnative](https://github.com/seedds/nxnative)** by seedds and its contributors. It is two things on top of nxnative's engine: the **NXForge Converter**, a Mac app that finds your games and builds and rebuilds them, and a **Mac player layer**: the in-game Quick settings sidebar with a CRT filter, FXAA, anisotropic filtering, cheats, mods, screenshots and recordings, and control remapping. The engine itself is nxnative's and follows it closely ([UPSTREAM.md](UPSTREAM.md#thin-fork-from-0150)). Everything below works as it does in nxnative; [Upstream](#upstream-nxnative) says how the two projects relate.

Play your own Nintendo Switch games natively on Mac, iPhone and iPad. Bring your game (its NSP files) and your `prod.keys`; one script turns them into an IPA that you sideload.

Expand Down Expand Up @@ -218,7 +218,7 @@ Under a game, "60 fps with 1.2.0" means it runs at 60 fps (30 on the console) wi
<td align="center" valign="top" width="33%"><img src="docs/images/persona-5-royal.jpg" width="256" alt="Persona 5 Royal"><br><small><b><a href="dm/games/01005CA01580E000/README.md">Persona 5 Royal</a></b></small></td>
</tr>
<tr>
<td align="center" valign="top" width="33%"><img src="docs/images/pikmin-4.jpg" width="256" alt="Pikmin 4"><br><small><b><a href="dm/games/0100B7C00933A000/README.md">Pikmin 4</a></b></small></td>
<td align="center" valign="top" width="33%"><img src="docs/images/pikmin-4.jpg" width="256" alt="Pikmin 4"><br><small><b><a href="dm/games/0100B7C00933A000/README.md">Pikmin 4</a></b><br>60 fps, up to 120 on the Mac</small></td>
<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-brilliant-diamond.jpg" width="256" alt="Pokémon Brilliant Diamond"><br><small><b><a href="dm/games/0100000011D90000/README.md">Pokémon Brilliant Diamond</a></b><br>60 fps with 1.3.0</small></td>
<td align="center" valign="top" width="33%"><img src="docs/images/pokemon-legends-z-a.jpg" width="256" alt="Pokémon Legends: Z-A"><br><small><b><a href="dm/games/0100F43008C44000/README.md">Pokémon Legends: Z-A</a></b></small></td>
</tr>
Expand Down Expand Up @@ -345,7 +345,7 @@ Under a game, "60 fps with 1.2.0" means it runs at 60 fps (30 on the console) wi
<tr>
<td align="center" valign="top" width="33%"><img src="docs/images/minecraft-dungeons-ii.jpg" width="256" alt="Minecraft Dungeons II"><br><small><b><a href="dm/games/0100A7C01B792000/README.md">Minecraft Dungeons II</a></b></small></td>
<td align="center" valign="top" width="33%"><img src="docs/images/sonic-superstars.jpg" width="256" alt="Sonic Superstars"><br><small><b><a href="dm/games/01008F701C074000/README.md">Sonic Superstars</a></b></small></td>
<td></td>
<td align="center" valign="top" width="33%"><img src="docs/images/dragon-ball-sparking-zero.jpg" width="256" alt="DRAGON BALL: Sparking! ZERO"><br><small><b><a href="dm/games/010035F022078000/README.md">DRAGON BALL: Sparking! ZERO</a></b><br>60 fps, up to 120 on the Mac</small></td>
</tr>
</table>
<!-- end of gallery -->
Expand Down
11 changes: 11 additions & 0 deletions UPSTREAM.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ NXForge is a downstream of [nxnative](https://github.com/seedds/nxnative) (seedd
- The nightly `upstream-check` workflow (`.github/workflows/upstream-check.yml`) test-merges nxnative's `main` and keeps one open issue labelled `upstream` with how many commits `main` is behind and which files a merge would conflict in. It never pushes; the merge is still done on a branch with a Mac build and a play test.
- Add Mac-only features in new files where possible (as `quick_settings_mac.swift` and `capture_mac.m` are), with small hooks into shared files, so upstream merges stay easy.

## Thin fork (from 0.15.0)

NXForge is the NXForge Converter plus a Mac player layer (the Quick settings sidebar and what it drives) on nxnative's engine. The translator, the GPU core and game bring-up are nxnative's; NXForge takes them as they land. Rules:

1. Merge nxnative's `main` whole, never commit by commit: no hand-picked upstream commits on a release branch.
2. An open upstream pull request comes in early only when it fixes a game being played that week. It is listed in `.github/upstream-watch.tsv`, and once upstream lands its own version, that version replaces ours at the next merge.
3. A fix headed upstream stays in NXForge until upstream has landed it (or its own version of it); only then is NXForge's copy removed. Removal is gradual, merge by merge.
4. Player code lives in NXForge's own files: `quick_settings_mac.swift`, `capture_mac.m`, and the `nxforge/` folders beside nxnative's sources (`dm/host/nxforge/*.inc`, `dm/gfx/nvn/nxforge/*.inc`), which nxnative's files include at one line each. A new player feature goes there, with a hook, not into an nxnative function.
5. NXForge's own red lines use `NXF_RED_ONCE` (its own table in `nvn_mtl.m`), never a `RED_ONCE` key, so upstream's keys are never renumbered.
6. The nightly upstream check reports how many files a merge would conflict in. Above 10 is a signal to shrink the fork before the next release.

## Upstream: sending fixes back

- A fix that helps nxnative's users too goes upstream: crashes, rendering, shader, rewriter, frame pacing, input and haptics fixes, and new game profiles. Send it as a small pull request to seedds/nxnative, one fix per PR, from a branch based on upstream `main`, following nxnative's [AGENTS.md](AGENTS.md) rules (findings in the game note or `docs/reference`, `python3 dm/tools/tests/test_docs.py` passing).
Expand Down
2 changes: 1 addition & 1 deletion dm/games/0100000000010000/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ General host and tool changes first needed here; each applies to every game:
- **Small host segments for small grants** (`hostseg_size`): [Host-lent command memory segments](../../../docs/reference/nvn-objects.md#host-lent-command-memory-segments).
- **Shorter state and single texture bind records** (`bind_state`, `p_bind_tex1`): [Model heaps sized by the host's command record sizes](../../../docs/reference/memory.md#model-heaps-sized-by-the-hosts-command-record-sizes); the null-pool grants they caused: [Host-lent command memory segments](../../../docs/reference/nvn-objects.md#host-lent-command-memory-segments).
- **Same-pass feedback snapshots without a per-game list** (a draw that writes the attachment it samples; one snapshot until the game's next barrier): [Same-pass feedback read through a snapshot](../../../docs/reference/rendering.md#same-pass-feedback-read-through-a-snapshot).
- **Cold Mac Metal shader builds:** [Cold Mac shader builds compile each pixel shader more than once](../../../docs/reference/shaders.md#cold-mac-shader-builds-compile-each-pixel-shader-more-than-once). Apple M2, `J=8`, no keys, `own_compilers`: 30:02 (1802 s) to 22:23 (1343.26 s), 1.34×. The next build after this chain is a full cold rebuild.
- **Cold Mac Metal shader builds:** [Cold Mac shader builds compile each pixel shader more than once](../../../docs/reference/shaders.md#cold-mac-shader-builds-compile-each-pixel-shader-more-than-once). Apple M2, `J=8`, no keys, `own_compilers`: 30:02 (1802 s) to 22:23 (1343.26 s), 1.34×.

## Open

Expand Down
2 changes: 1 addition & 1 deletion dm/games/0100152000022000/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ General host changes first needed here; each applies to every game:
- **The Mii database and the MiiModel stand-in** (`hle_mii.c`, `dm_mii_standin`, `MountSystemData`), **the add-on content cache sized as Horizon's RomFS working memory** (`romfs_work_size`), **device save data as a save of its own** for a game that mounts account save data too (`<DM_SAVE>_device`) and **SDK 4's DeviceSink** (`g_sink4`): [Mii database answered by the host](../../../docs/reference/services.md#mii-database-answered-by-the-host), [System data stand-in for the MiiModel archive](../../../docs/reference/services.md#system-data-stand-in-for-the-miimodel-archive), [Add-on content mount cache sized as RomFS working memory](../../../docs/reference/services.md#add-on-content-mount-cache-sized-as-romfs-working-memory), [Device and account save data as two saves](../../../docs/reference/services.md#device-and-account-save-data-as-two-saves), [SDK 4: DeviceSink is command 0xf of 0x130 bytes](../../../docs/reference/audio.md#sdk-4-devicesink-is-command-0xf-of-0x130-bytes).
- **The audio renderer's update lock read off each SDK's `Update`** (`update_lock`): [The renderer's update lock (`update_lock`)](../../../docs/reference/audio.md#the-renderers-update-lock-update_lock).
- **The zero cube for a 2D array of fewer than six layers in a cube slot** (`tex_fit`): [A 2D texture in a cube slot binds the zero cube](../../../docs/reference/rendering.md#a-2d-texture-in-a-cube-slot-binds-the-zero-cube).
- **Cold Mac Metal shader builds:** [Cold Mac shader builds compile each pixel shader more than once](../../../docs/reference/shaders.md#cold-mac-shader-builds-compile-each-pixel-shader-more-than-once). Apple M2, `J=8`, no keys, `own_compilers`: 22:46 (1366 s) to 14:47 (886.86 s), 1.54×. The next build after this chain is a full cold rebuild.
- **Cold Mac Metal shader builds:** [Cold Mac shader builds compile each pixel shader more than once](../../../docs/reference/shaders.md#cold-mac-shader-builds-compile-each-pixel-shader-more-than-once). Apple M2, `J=8`, no keys, `own_compilers`: 22:46 (1366 s) to 14:47 (886.86 s), 1.54×.

## Open

Expand Down
Loading
Loading