mkw-recomp README

The project's README from github.com/adriadam10/mkw-recomp. As one markdown file: README.md.

mkw-recomp logo

mkw-recomp

Mario Kart World (Nintendo Switch 2) recompiled to run natively on Linux and Windows.

Download the latest release for Windows Download the latest release for Linux (AppImage) Download the latest release for Linux on ARM (AppImage)

Releases · Help wiki · Discord · Changelog · Contributing · Architecture · Sources · Roadmap · Performance · Issues · Discussions · Archive

English · 简体中文 · Español · العربية · हिन्दी · Português (Brasil) · Português (Portugal) · Deutsch · Tiếng Việt

Mario Kart World (Switch 2, versions 1.0.0 and 1.8.0) turned into a native program for Linux and Windows. You need your own copy of the game, dumped from your own console: nothing of the game is in this repository or its releases.

It is a recompilation, not an emulator. The game's AArch64 code is translated to C ahead of time and compiled for your CPU (x86-64, or AArch64 on Linux); there is no CPU interpreter or JIT. The GPU is not emulated either: NVN2, the Switch 2 graphics API, runs on top of Vulkan, and the game's shaders are translated to SPIR-V ahead of time.

Status

Early, and moving fast (12/11/2026):

Roadmap

The open work, in order (details: docs/project/roadmap.md):

Playing

Stuck? Search the wiki first: installation, settings, controls, known errors by their log line and a FAQ.

The start screen once the game is set up

The Game files page, where the setup takes the player's dump

  1. Dump Mario Kart World 1.0.0 or 1.8.0 from your Switch 2 (exefs/ and romfs/, decrypted; 1.8.0 with the update merged into the base RomFS), or the same dump packed as one .nup or .nx file.
  2. Download the launcher from Releases: the .AppImage on Linux (-aarch64 on ARM; glibc 2.31 or newer: Debian 11, Ubuntu 20.04, SteamOS and later) or the .zip on Windows, unpacked into a folder. About 30 GB free.
  3. Run it (chmod +x the AppImage first), open Game files, optionally Choose game folder (default on Linux: ~/.local/share/mkw-recomp, or the folder you unpacked the AppImage into with --appimage-extract), point it at your dump and press Set up. The first setup takes a while: it compiles the whole game and downloads NVIDIA's nvdisasm and ptxas (84 MB on Linux, 126 MB on Windows). Then Play.
  4. New releases are offered on the start screen (Update to vX); Settings → Menu → Check for updates turns that off.

With RecompLauncher, use Easy Setup and select your decrypted .nup, .nx or the folder containing exefs/ and romfs/. It builds the game in the game's recompdata folder in your Recomp Library and uses the copy there to rebuild after updates. Allow about 30 GB free in that library. RecompLauncher handles updates for this installation. The game, its settings and saves stay in that one folder whether you use Easy Setup or set it up from the start screen, on Windows and on Linux (where the launcher unpacks the AppImage into the library).

Get it on RecompLauncher

Requirements: x86-64 CPU with AVX2 (without it: the -windows-x64-noavx2.zip or -x86_64-noavx2.AppImage package, SSE4.2; or, on Linux, AArch64 with ARMv8.2: LSE, FP16, RCpc, DotProd, CRC32), a GPU with Vulkan 1.3 (VK_EXT_mesh_shader recommended), 16 GB of RAM recommended. In a Docker or Podman container on Linux, allow userfaultfd in the seccomp profile (Docker's default refuses it), or it runs several times slower.

To add your machine to the performance list, open a performance report.

Extra features

Beyond the console, all optional and off (or at the console's value) by default:

Switch 2 controllers over USB on Windows

They only start after a command sent to their second USB interface, which Windows leaves without a usable driver. Once per controller, with Zadig:

  1. Plug the controller in and open Zadig.
  2. Options → List All Devices, pick the controller's Interface 1 (USB ID 057E and 2069 Pro Controller, 2066/2067 right/left Joy-Con, 2073 GameCube). Not Interface 0: replacing it hides the controller from other apps.
  3. Driver WinUSB, then Replace Driver.

The same applies to a virtual controller with those IDs (Switch2Connect's USB/IP mode). To undo it, uninstall that interface's device in Device Manager with "delete the driver" ticked.

Mods

The start screen's Mods page has two tabs:

Mods that replace game files (romfs/) apply at the next start. Mods that patch the game's code (exefs/ .ips or .pchtxt, such as 200cc or 30 FPS) rebuild the game before you play (a few minutes). Two mods that change the same file: the page asks which one wins. It also warns about mods that replace graphics settings or shaders.

A mod with a plugin/ folder carries a native plugin (.dll or .so) that runs its own program on your computer: turn it on only if you trust its source. For modders, the API is one header, runtime/plugin/mkw_plugin.h, explained in the wiki's Writing a plugin; more in the wiki's Mods page.

Mods are made by others and not tested here: one can crash the game or damage your save. Keep a copy of your save, report a mod's problems to its author, and when you report a bug here say which mods were on (the log lists them).

Building from source

Linux, with uv, clang, lld, ninja, SDL3, Opus, libvpx, zstd, xxHash, the Vulkan headers and VMA 3.4.0 (details in tools/build/README.md). Put your dump in game/ (game/exefs, game/romfs) or set MKW_GAME=<dir>, then from the repo root:

uv run python recomp/gen.py --exefs game/exefs --jobs 8  # --out/--patches default to the dump's version (1.8.0: build/generated-180)
uv run tools/shaders/extract.py && uv run tools/shaders/translate.py
uv run tools/build/build.py              # build/mkw; --target windows builds mkw.exe with llvm-mingw (windeps.py)
build/mkw

Shortcuts: make build, make appimage (make help lists them all). On Windows itself, from a packed dump, or on AArch64: see tools/build/README.md. Translating the shaders needs the SM86 encoding specification, generated from NVIDIA's nvdisasm (not shipped): tools/shaders/README.md. Everything generated goes to build/, never to git.

Folder Contents
recomp/ The generator: AArch64 → C
runtime/ What plays the console: kernel, memory, SDK replacements, NVN2 over Vulkan, audio, input, menus, launcher
sm86/ The shader translator: SM86 SASS → GLSL → SPIR-V
i18n/ Menu, start screen and setup texts in every language (gettext .po)
tools/ Analysis, setup, build, game runs, diagnostics
tests/ Tests without the game or a GPU, run in the CI on Linux and Windows
docs/ Research, sources, performance
third_party/ Sources built into the Linux runtime: the FidelityFX SDK's FSR 3 upscaler
.github/ CI, issue and pull request templates

At the root: pyproject.toml and uv.lock (the tools' Python environment), .gitignore, .gitattributes (merge=union for the lists every PR appends to), LICENSE, CONTRIBUTING.md, ARCHITECTURE.md (the whole process in one diagram), CHANGELOG.md, AGENTS.md (guide for coding agents) and Makefile.

Design decisions (30/10/2026)

Topic Decision Why
CPU AArch64→C lifter based on totk-pc-recomp's (MIT), extended to ARMv8.1-8.3 (LSE atomics, CAS, LDAPR; PAC as identity, MTE tags as 0) Same engine family, already scales to a large executable
System The SDK's nn::* functions replaced by name, signatures from the mangled names of main's 1 289 imports No console services to emulate
Graphics NVN2 over Vulkan: 529 of its 699 functions share their name with NVN1; 170 are new Recompilation, not GPU emulation
Shaders Our own SM86→SPIR-V translator, offline, with a decoder generated from the DocumentSASS / nvsass-disassembler specification Covers mesh/task and what Maxwell lacks
Switch 2 extras HDR automatic when the display is HDR (Settings > Screen > HDR); DLSS, ray tracing and touch off by default, their NVN2 functions exist but do nothing Console hardware extras, not needed to play
Defaults The console's look and resolution; lower settings are options The player chooses

How it was made

Written with Claude (Anthropic's coding agent) doing most of the typing, under my direction, in about ten days of full-time work (489 commits from 30/10/2026), each reviewed, measured or tested before it went in.

Licenses and credits

MIT License. Code taken from other projects keeps its own license next to it (LICENSE.* files in recomp/, runtime/, sm86/decode/ and runtime/third_party/): totk-pc-recomp, nvsass-disassembler, Dear ImGui, bc7enc, stb_image, AMD FidelityFX FSR 1, Roboto, Noto Sans Arabic and Noto Sans Devanagari. Every source, with its license and what was taken (code from MIT projects only; from GPL projects, ideas only): docs/project/research.md.

This product uses NVIDIA DLSS (Super Resolution and Frame Generation, NVIDIA DLSS SDK, © NVIDIA Corporation), AMD FidelityFX Super Resolution 3.1 (© Advanced Micro Devices, MIT) and RenHDrum (MIT) for HD vibration. They are not in the package: the settings download each one from its maker's release when you pick it. NVIDIA, NVIDIA RTX and DLSS are trademarks of NVIDIA Corporation; this project is not sponsored or endorsed by NVIDIA or AMD. Their notices and licenses are in the package's licenses/ folder (tools/build/THIRD_PARTY_NOTICES.txt).

Mario Kart World is © Nintendo. This project is not affiliated with or endorsed by Nintendo, contains no game code or assets, and does not help to obtain them.

Mods belong to their authors and their own licenses. This project is not affiliated with GameBanana or any mod's author, does not host, review or distribute mods, and is not responsible for what a mod does: the start screen only shows GameBanana's public listing and downloads a mod from there when you ask.

Contributing

See CONTRIBUTING.md. Bugs and performance reports go to Issues, questions to Discussions.

mkw-recomp (adriadam10/mkw-recomp)

appimage
Searching Database…

What is this?A static recompilation of Mario Kart World (Nintendo Switch 2, version 1.0.0) into a native program for Linux and Windows. It works from your own dumped copy of the game, since nothing of the game is in the repository.
Is it an emulator?No. The game's AArch64 code is translated to C ahead of time and compiled for x86-64, and the graphics API is reimplemented on Vulkan. There is no CPU interpreter or JIT.
How do I get it running?Dump Mario Kart World 1.0.0 from your Switch 2, download the AppImage (Linux) or zip (Windows) from Releases, run it, open Game files, point it at your dump and press Prepare.
Does it need the internet to play?Only for the first setup and for update checks. Setup downloads NVIDIA's nvdisasm and ptxas, while the game itself runs from your local copy.
How fast does it run on an average GPU?Races reach about 30 fps on a Radeon 660M at 720p and less on a GTX 1050 Ti at 1080p (42-45 ms per frame). 60 fps is the goal and is not reached yet.
Why was it built with Claude, and how much of it did AI write?The author says Claude did most of the typing over about ten days (489 commits), under the author's direction. Every commit was reviewed, measured or tested before it went in.
What is the main work needed for 60 fps?Recording the Vulkan back end's big submit (about 19 ms) is on the critical path. The plan is to record with less CPU: dynamic state only when it changes, draw caches across frames, parallel recording and a faster game thread.
Will later game versions like 1.8.0 be supported?They are planned after 1.0.0. Each version is a different executable to recompile, so it needs a contributor who owns that game version (see issue #19).
Are DLSS, HDR, ray tracing and touch supported?They are designed as options that are off by default. When off, their NVN2 functions exist but do nothing, so the game keeps its normal path.
Creator
adriadam10
Size
8.1 MB
Stars
1.5K
Age
26d
Commits · 90 Days