Repository navigation
Releases
v0.5.2
Super Paper Mario NX v0.5.2
An unofficial fan project. Not affiliated with Nintendo. No game data is included in this release: the port reads the game's files from your own extracted copy of the game, as before.
What's new
- The in-game updater now works end to end. Check, download, apply, and an optional restart into the new version are all proven on hardware in a full tap loop: declining keeps the game running with the update staged, the offer is re-offered on the next boot, and accepting applies the update and restarts into the new version.
- Update and Later are button rows now. The Update row no longer looks like a setting with a value; tapping it checks for a new version. The Later row keeps the update staged so you can apply it on the next boot.
- Verifying and Applying are shown distinctly. While the download is checked you see "Verifying...", and while the new files are swapped in you see "Applying...", each with its own help text. The Applying frame was captured on screen during testing.
- Layout fix: zips with backslash entry names now extract. The updater normalizes backslash separators in zip entry names before the prefix check, so an update package zipped on Windows extracts correctly instead of failing the check.
This release keeps the v0.5.1 Chapter 6-1 crash fix: the extdrv.c texture guard fires at :364 and :839, so the oversized animation texture that used to kill the game is logged and the game carries on.
Updating
Extract this zip over your existing switch/spm-nx/ folder, merging with what is already there. Do not delete the folder first: your saves, settings and caches in UserData/ carry over untouched. If you update from inside the game instead, the updater handles the same steps for you and offers the restart when the download is ready.
The NRO is the same size as the v0.5.1 lab build it replaces. Frames were flat in the hands-on sessions.
Known issues
- Performance in heavy 3D areas is still much slower than the original game. This release fixes the updater; it does not change performance. Keep expectations low in those areas.
- The Touch Tippi calibration is still the approximate one shipped in v0.4.0, with a known residual offset. Unchanged in this release.
v.0.5.1
Super Paper Mario NX v0.5.1
An unofficial fan project. Not affiliated with Nintendo. No game data is included in this release: the port reads the game's files from your own extracted copy of the game, as before.
What's new
- Fixes the Chapter 6-1 crash. The extdrv.c texture guard that was dead on Switch now fires at :364 and :839, so the oversized animation texture that used to kill the game is logged and the game carries on. Verified by a hands-on 6-1 playthrough past Sammer's intro with both guard lines in the log and no crash.
Updating
Replace the .nro file with the new one. Nothing else needs to change unless the release notes say so, and for this release nothing else does. Your saves, settings and caches in UserData/ carry over untouched.
The NRO is about 1.8 MB larger than v0.5.0 from the per-call-site hook-check code. Frames were flat in the hands-on session.
Known issues
- Performance in heavy 3D areas is still much slower than the original game. This release fixes the 6-1 crash; it does not change performance. Keep expectations low in those areas.
- The Touch Tippi calibration is still the approximate one shipped in v0.4.0, with a known residual offset. Unchanged in this release.
v0.5.0
Super Paper Mario NX v0.5.0
An unofficial fan project. Not affiliated with Nintendo. No game data is included in this release: the port reads the game's files from your own extracted copy of the game, as before.
What's new
- Smoother frame pacing in 3D scenes. The way each finished frame is handed off to the display has been reworked so the game thread spends less time waiting at the frame boundary. 3D areas pace noticeably steadier; how 2D plays is unchanged.
- Less wasted work per frame. The coplanar depth reference the renderer maintains for frozen draws is now computed only when something actually reads it, instead of being recomputed on every draw whether it is used or not.
- The display-list apply memo is on by default. When a display list and the vertex state it needs are unchanged since the last hand-off, the port skips re-applying that state. It has been verified extensively against the unmemoised path and produces identical output.
Updating
Replace the .nro file with the new one. Nothing else needs to change unless the release notes say so, and for this release nothing else does. Your saves, settings and caches in UserData/ carry over untouched.
If you have edited dk_diag.txt by hand, the new mechanisms each have an off ramp there: sealdefer=0 restores the old frame hand-off, zfreezelazy=0 restores the eager depth reference, and applymemo=0 turns the apply memo off.
Known issues
- Performance in heavy 3D areas is still much slower than the original game. This release improves frame pacing there; it does not close the gap. Keep expectations low in those areas.
- The Touch Tippi calibration is still the approximate one shipped in v0.4.0, with a known residual offset. Unchanged in this release.
v0.4.0
spm-nx v0.4.0
spm-nx is an unofficial fan project. It is not affiliated with Nintendo, and Super Paper Mario and all related game content remain Nintendo's. The port's own code is GPL licensed; no game data is distributed, and you need your own legally obtained copy of the game to use it.
This project builds on JosiahG's New Super Paper Bros work. The original PC project by JosiahG lives at https://github.com/josiahg2502-glitch/NewSuperPaperBros, and this repository is the Switch port of it. The in-game Options menu is his as well.
The headline this time is the performance work under the hood: one of the game's most-called maths routines now runs natively, freeing up a meaningful slice of processor time every frame in the game's busiest rooms. The CRT filter, Touch Tippi and the prompt fixes are all here too.
New
- CRT filter and Vignette options (Display page of the menu, both off by default). A CRT filter with Off / Low / Med / High / Max steps adds scanlines, a grille and a gentle colour grade in the style of an old TV, and the Vignette option darkens the corners on its own stepped scale. Thanks to Ljodsi for the suggestion (issue #27). One quirk: the effect is applied to the finished picture, so the menu itself is filtered while it is open.
- The Controls diagram stays up a moment longer. When you close the game's Controls screen, the overlay's control diagram now holds and fades over about a second and a quarter instead of dropping away at once, so the game's own menu no longer flashes through underneath it.
- The falling hint bubble shows the right button. The speech bubble that appears while Mario is falling after switching to 3D now shows a clean B button where it used to draw the old Wii button underneath it. The button art itself was already right; the fix is in how the port caches its composited button pictures, which could keep serving an older picture after the art changed. The button disc also sits a little lower in the bubble now, with a smoother edge, and that change applies to every button disc the port draws, not just this one.
- Touch Tippi (Controls page, off by default). In handheld mode you can drag on the touchscreen to aim Tippi, and letting go over something interesting examines it, the way a click would. Dragging never examines mid-drag, and letting go does not fire in the Flipside Arcade games, where aiming is the game. Thanks to Matriculaso for the suggestion (issue #13). Known issue: the pointer can still sit slightly off from your finger in places. A first calibration pass is included and much improved over the initial offset, and a fuller fix is in the works.
Performance and under the hood
- The headline performance change: a native sqrt routine. One of the game's most-called maths routines now runs as native code instead of translated code. Its results are identical, verified exhaustively against the original routine on real hardware. Native execution removes the great majority of that routine's per-frame cost in the game's busiest rooms, including Flipside's 2D and 3D scenes, giving the processor time back where the game needs it most.
- A persistent index for the game's hit-object name lookups, which used to rescan the whole table from the top on every call, every frame. The index is kept honest by tracking every write that can change the table, and it was proven against the original scan in shadow mode, comparing every single answer, before it was allowed to answer a call itself.
- More of the game's linked-list machinery (constructors and destructors that used to go through an indirect dispatch on every call) now runs as native code as well.
- An optional broadphase cache for collision bounds checks. It is off by default and changes nothing unless you turn it on in dk_diag.txt (bboxcache=1); it remembers the combined bounds of a collision object instead of re-walking its shapes on every check.
- Work from earlier in this cycle that is in the tree: the frame overlap work (the game's copy step now runs inside the graphics worker's stream instead of stalling the game thread on a drain) and the incremental layout hash for display lists.
Honest expectations
- The performance work in this release mainly buys back processor time; it does not erase the separate graphics bottleneck. Heavy 3D scenes are still much slower than the 2D game, so keep expectations low there; the work continues.
v0.3.0
spm-nx v0.3.0
The big one since 0.2.0: the save-load hitch is fixed, heavy 3D runs smoother at stock clocks, and the settings menu gains a full reset.
Fixed: the save-load hitch
Loading a save used to freeze the game for about six seconds, a second or two after you got control. The cause was a leftover diagnostic from the port's early bring-up: 30 seconds after every launch it dumped the game's thread table, which lands right in the middle of a normal save load, and the dump held a lock the game's thread switching needs, so everything waited until the walk finished.
The watchdog only dumps now when the screen is genuinely stuck (nothing presented, or a black picture), and the dump itself walks a snapshot instead of holding the lock, so no diagnostic can freeze gameplay that way again. Measured on hardware: the worst frame in the load window went from about 6.5 seconds to about a quarter of a second, across repeated boots.
Performance
- Heavy 3D is smoother. The GX worker's late-service change (gxsvclate, on by default) rose out of the stock-clock A/B work: a drain waiting on the worker now runs the guest timing service only after 4 ms instead of at every 1 ms timeout, so frames stop missing retraces they should have caught. Heavy 3D at stock clocks went from about 30 to about 36 fps in the measured areas, and it feels smoother than the number suggests because the pacing evened out. Audio is unaffected.
- An opt-in wake switch. gxfutex (off by default, set in dk_diag.txt) has the GX worker sleep on Horizon's address arbiter so a publish can never lose its wake. It removes the lost wakes and measures frame-time neutral, so it ships as a switch rather than a default.
- Heavy 3D is still much slower than full speed; keep expectations low there for now. The current state of the performance work, the method behind these numbers, and what is next are written up in switch/docs/PERF-HANDOFF.md.
New: Reset all settings
Options > Game > System > Reset all settings puts every setting the menu owns back to the fresh-install defaults, behind a confirm prompt: game, display and sound settings, the session cheats, controller bindings for every style, the Developer page's values and the Diagnostics switches. Saves, mods and the shader cache are not settings and are not touched.
Also in this release
- Everything from v0.2.0, including the door-transition fix (the ~600 ms frame on doors) and the Options help text fix.
- The README and the Switch layer docs were combed over for this release: the Diagnostics switch counts now match the code (36 page rows, 46 dk_diag keys), and every switch's default is documented.
Installing or updating
Download spm-nx-v0.3.0.zip, unzip it, and copy the switch folder to the root of your SD card, merging with the folder already there. Never delete the spm-nx folder and replace it: your saves, settings and caches live in UserData/ and must carry over.
You need your own USA disc of Super Paper Mario (R8PE01, revision 0), extracted into switch/spm-nx/game/ (the files and sys folders). No game data is included. Full instructions are in switch/README.md.
Checksums
spm-nx.nroSHA-256:8e7d99089fbe368761900c970b2c29c9f73629790fc82964de07b6a58c143432spm-nx-v0.3.0.zipSHA-256:a4401533fb234b088313df055516c1a1cef35f7908f974e2246e5657c013560f