# DKB Recomp [![License: GPL-3.0-or-later](https://img.shields.io/badge/license-GPL--3.0--or--later-blue)](LICENSE) [![Content guard](https://github.com/Lucas-blip-png/dkb-pc-recomp/actions/workflows/content-guard.yml/badge.svg?branch=bananza)](https://github.com/Lucas-blip-png/dkb-pc-recomp/actions/workflows/content-guard.yml) [![Stars](https://img.shields.io/github/stars/Lucas-blip-png/dkb-pc-recomp?style=flat)](https://github.com/Lucas-blip-png/dkb-pc-recomp/stargazers) [![Help wanted](https://img.shields.io/github/issues/Lucas-blip-png/dkb-pc-recomp/help%20wanted?label=help%20wanted)](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues?q=is%3Aopen+label%3A%22help+wanted%22) [![Discussions](https://img.shields.io/github/discussions/Lucas-blip-png/dkb-pc-recomp)](https://github.com/Lucas-blip-png/dkb-pc-recomp/discussions) [![Ko-fi](https://img.shields.io/badge/Ko--fi-support%20the%20work-ff5e5b?logo=ko-fi&logoColor=white)](https://ko-fi.com/lucasblippng) [![GitHub Sponsors](https://img.shields.io/badge/GitHub%20Sponsors-support-ea4aaa?logo=githubsponsors&logoColor=white)](https://github.com/sponsors/Lucas-blip-png) [![Discord](https://img.shields.io/badge/Discord-join-5865F2?logo=discord&logoColor=white)](https://discord.gg/kCkDsqu37y) Get it on RecompLauncher **DKB Recomp** is a static recompilation of *Donkey Kong Bananza* (Nintendo Switch 2, 2025) into a native Windows x86-64 application with a Vulkan renderer. There is no emulator at run time: the game's ARM64 code is translated to C ahead of time and compiled into one executable, and its graphics calls are answered by a host implementation of NVN 2. It is built on [TotK Recomp](https://github.com/valentderah/totk-pc-recomp), which does the same for *Tears of the Kingdom* on the original Switch. As far as we know, no other static recompilation of a Switch 2 game is public. > [!IMPORTANT] > **No game files are included, and none ever will be.** You need your own copy of *Donkey Kong Bananza*, dumped > from your own console. Instructions for obtaining those files will not be provided. The game itself is never > downloadable: the [release](https://github.com/Lucas-blip-png/dkb-pc-recomp/releases/latest) carries the installer, and > everyone builds the game from their own dump. ## Status **Playable on recent NVIDIA cards, well past the first level.** Players report runs through layer -101, sublayer 200, the Glacier layer, Snow World (Layer 500), the Resort and the Tempest layer. The current release is 0.5.7 (3 December), the second fix for 0.5.5's setup: it refused 3.2.0 dumps of the update alone and dumps a few files short, and the game window opened behind the console. 0.5.5 brought no frame drops while smashing, USB pads that froze the game work again, a field-of-view setting, less ghosting with temporal upscalers (opt-in), faster Linux on AMD and Intel GPUs and less system memory. The [latest release](https://github.com/Lucas-blip-png/dkb-pc-recomp/releases/latest) carries `DKB-Launcher.exe`, one small Windows file that installs the build tools, builds the game from your own dump (`.nup`, `.nx` or folders) and updates in place with one click. It also has the setup zip, a Linux AppImage, and a macOS preview: [docs/installer.md](docs/installer.md). New in 0.5.7: a dump short of the expected RomFS file count by up to 1 % installs with a warning (#634). New in 0.5.6: update-only 3.2.0 `.nup` and `.nx` dumps pass setup again (#634), and the game window opens in front with the keyboard focus (#639). New in 0.5.5: - Fewer frame drops while smashing (#582, #588), a field-of-view setting (`fov`, F1 menu), and USB pads such as an 8BitDo in XInput mode no longer freeze the game (`pad_libusb`, #627, #631). - Less ghosting with temporal upscalers, opt-in: the FSR 3.1 reactive mask and per-object motion vectors, characters included (`reactive_mask = on`, `objmv = 2`); sharper FSR 3.1 (`fsr3_sharpness`, `lod_bias = amd`, `fsr3_shading_change`). - Linux on AMD and Intel GPUs: the shadow storage write-back copies only bytes the GPU changed (#570, #591). - Setup: separate base, update and DLC `.nup` files, full `.nx` support, RecompLauncher named inputs (v0.90.0-beta.68 or newer), and a check that refuses an incomplete RomFS (#632). Handheld mode fits small outputs (#549, #622). - Steadier pacing on 4-thread CPUs, about 0.5 GB less system memory on discrete GPUs, no audio hiss (#576), RenHDrum 0.7 (#610) and a calibrated gyro (#585). New in 0.5.4: - RecompLauncher on Windows builds and starts the game (the setup gets its own temporary folder when `TEMP` is missing). - Replay threads on by default for discrete AMD GPUs under RADV (#570), and diagnostics for stalls and audio (#575, #576). New in 0.5.3: - Amiibo from your own tag dumps (F1 > Amiibo, #567), button prompt style and Player 2 controller rows (#569), `frame_gen_by = dlss` on RTX 40 or newer (#561), Simplified Chinese (#553, #554) and gyro under Steam Input (#551). - Shader pipelines precompiled before start (#564), many replay speed-ups (#529 to #544) and ten guest registers in C locals. - `preset = lowspec` and its opt-in settings for integrated GPUs, ported from evolis-game's low-spec fork ([docs/dkb-lowend.md](docs/dkb-lowend.md)). New in 0.5.2: - Settings are `DKB_*` and files `dkb.*`; `TOTK_*` variables are ignored, and `totk.ini` is copied to `dkb.ini` once. - Fixes for the black shards on the Feast Layer muck (#439), the missing grass on Linux (#462), nearly full 4 GB cards (#437) and GPUs that share system memory (#497). - Draw merge on by default (#468), 4 replay threads from 6 logical processors, Switch 2 controllers on USB without Steam (#496), `pad_background` (#502) and `pad_shortcuts` (#516). New in 0.5.0: - Performance presets (`preset = 1..5` or `recommended`, F1 menu "Preset") and expected frame rates per hardware tier: [docs/requirements.md](docs/requirements.md). - `dlss_mode` picks the DLSS and FSR quality mode by name. The setup can fetch NVIDIA's DLSS DLL or AMD's FSR 4 after you accept their licenses. - Local co-op with a second gamepad as Pauline (#240), Thai on 3.2.0 (#180), and 16:10 screens (#249). - Prompts follow your button swaps (#416, #440), and a start-up screen shows progress (#430). - Entering a level stalls about half as long on Windows with NVIDIA (#442). - 4 to 7 thread CPUs stall less: draws cost about 14% less to record, and level transitions no longer starve the replay. - `replay_threads` is on by default on every discrete AMD card on the proprietary driver. - Crash fixes: a 1.0.0 banana pickup crash (#428), a layer-change crash (#443, #204), and EmeraldRush with `realtime = 1` (#411). - Setup and launcher work: RomFS in place (#305), the packed shader cache, Uninstall, `--set`, `--play`, and every cache kept inside the install folder (#402). The full list, with credits, is in the release notes. What still fails: - GPU hangs under RADV on Linux (#99, #122, #198, #204), and a driver fault on Intel Arc (#3). - Guest crashes without a reproduction here (#126, #148), and a device loss on an RTX 5080 at B1000 (#336). - Hitches in the Resort and Tempest layers on 4 GB cards (#437; `preset = 1` or `astc_bc = 1`). - Heavy scenes stay around 40 to 45 fps on CPUs with 4 to 6 threads ([docs/dkb-lowend.md](docs/dkb-lowend.md)). - Text is soft above 1080p unless `scene_res = full` (#214). Earlier releases: 0.4.0 fixed the Snow World and Glacier device loss on NVIDIA and the AMD Windows device loss. 0.4.1 added the FSR 3.1 and FSR 4 upscalers, frame generation, CRT and window filters, and Polish. 0.4.2 cut stalls in heavy scenes, on first runs and on CPUs with few threads. **Next: 0.6.0.** The next large release is about four things: - Handhelds: device profiles for the Steam Deck, ROG Ally and Ally X, Legion Go and Go S, MSI Claw and similar machines, picked automatically, with settings and a menu that fit a small screen. - Mods: a mod manager in F1 (enable, disable and order mods, see conflicts), mods in the layout Switch emulators use (`romfs/`, `exefs/`, zip), and code patches (`.pchtxt`, IPS) applied when setup builds the game. - Debugging and testing: a one-click bug report zip, recording a whole repro (input, waits and save), a debug page in F1, and batches of scripted runs that compare builds. - The open crashes and slowdowns, alongside. Already in the `bananza` branch for it: the handheld profiles and the bug report zip, the mod manager with Switch-layout mods, zips and code patches, input recordings that replay as a whole scenario, the F1 Debug tab, keyboard button prompts (#637), a native Metal back end for Apple Silicon (`DKB_GPU=metal`, #628), the fullscreen setting applied again at start (#644) and `audio_period` for devices that crackle (#576). Progress: [roadmap #10](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues/10). If you own a handheld, the [tester guide](docs/tester-guide.md) says what to measure. RecompLauncher on Linux and macOS: [docs/recomp-launcher.md](docs/recomp-launcher.md). Progress, day by day: [docs/devlog.md](docs/devlog.md). Last updated: 3 December 2026. | Phase | | State | | --- | --- | --- | | F0 CPU | ✅ | `main` and `sdk` (180,061 functions) lift with no unsupported instruction (ARMv8.3 pointer authentication and `LDAPR` added). Differential tests against Unicorn pass. | | F1 OS | ✅ | Boots on TotK Recomp's Horizon host with the Switch 2 differences: RomFS, save, audio, controller. | | F2 NVN 2 | ✅ | 700 NVN 2 entry points answered; the game loop runs. 51 new command buffer calls (mesh shaders, VRS, DLSS, push constants…) are accepted but not recorded yet. | | F3 Shaders | ✅ | All 4,820 Ampere shader stages of the first 3D scene go through Eglantine's Ampere-to-Maxwell lowering and TotK Recomp's translator to SPIR-V. | | F4 Vulkan | ✅ | The title screen and the tutorial's 3D scene render. | | F5 Playable | ✅ | Controller, guide movies (VP9), push constants, installer and releases 0.1.0 to 0.4.0. | | F6 Stability | 🚧 | Device lost on NVIDIA and AMD, RADV hangs and guest crashes in later areas. | | F7 Performance | 🚧 | A heavy scene runs at about 58 fps on `bananza`, with a stall of about 0.45 s on area loads. | | F8 Image | 🚧 | Missing effects, some textures and terrain details. | | F9 Platforms | 🚧 | Linux and macOS preview packages, RecompLauncher, audio and DLC. | The plan, phase by phase: [docs/bananza-plan.md](docs/bananza-plan.md). What is open right now: [Roadmap](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues/10). ## How it works ```mermaid flowchart LR subgraph offline["At build time, on your PC"] exefs["Your dump: main + sdk
(ARM64)"] --> lifter["Lifter
recomp/"] --> c["C code"] --> clang["Clang"] --> exe["dkb.exe"] end subgraph runtime["At run time"] exe --> host["Horizon host
threads, files, audio, input"] exe --> nvn["NVN 2 front end
runtime/nvn_*"] --> vk["Vulkan back end"] sass["Ampere shaders"] --> lower["Eglantine lowering
Ampere → Maxwell"] --> xlate["Translator
tools/xlate"] --> spirv["SPIR-V"] --> vk end ``` The longer version is in [docs/architecture.md](docs/architecture.md) (shared with TotK Recomp) and [docs/bananza-shaders.md](docs/bananza-shaders.md) (the NVN 2 shader work). Mods: [docs/mods.md](docs/mods.md). ## How to help Each open problem is a separate, well-bounded job with its own issue. Pick one, say in the issue that you are on it, and keep each pull request to one topic. Issues labelled [`in progress`](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues?q=is%3Aopen+label%3A%22in+progress%22) are already taken, and the top of the [roadmap](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues/10) says what is being worked on right now. **No code needed**, only your PC and your own copy of the game: - [#3](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues/3) **Test on your GPU.** Everything so far was checked on one NVIDIA card. Runs on AMD, Intel and other NVIDIA cards, with logs, show what breaks there. - **Play as far as you can** and report where it stops, with the crash form. - [#9](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues/9) **The GPU fault after the first guide movie**: seen on three NVIDIA drivers (617.14, 617.42, 621.01); runs on AMD and Intel would show whether it is NVIDIA's. **Code** ([help wanted](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues?q=is%3Aopen+label%3A%22help+wanted%22)): - [#5](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues/5) **Checkerboard textures** on some rock surfaces. The Switch 2 GOB layout (f4f7b17) fixes the gold rock in the tutorial cave; the other surfaces still need a check. - [#6](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues/6) **NVN 2 calls not recorded yet**: mesh shaders, VRS, DLSS and others. - **Symbols.** Function names help debugging. They come from [GRAnimated/DKBananza](https://github.com/GRAnimated/DKBananza), which welcomes contributions too. Your first contribution, step by step: 1. Build from your own dump ([Building from source](#building-from-source)). 2. Run it as in [docs/dkb-testing.md](docs/dkb-testing.md) and note how far it gets on your machine. 3. Report it on #3 or #7, or pick an issue above. Before you open a pull request, read [CONTRIBUTING.md](CONTRIBUTING.md). Its hard rule: nothing that came out of the game goes into the repository, not in commits, issues or pull requests. Run `python tools/check_content.py --staged` before committing; CI runs the same check. Questions go to [Discussions](https://github.com/Lucas-blip-png/dkb-pc-recomp/discussions) or the [Discord server](https://discord.gg/kCkDsqu37y) (#help, #bugs, and #brasil in Portuguese). Everyone taking part follows the [code of conduct](CODE_OF_CONDUCT.md). ## Support the project If you want to support the work without writing code, tips go to [ko-fi.com/lucasblippng](https://ko-fi.com/lucasblippng) or [GitHub Sponsors](https://github.com/sponsors/Lucas-blip-png), once or monthly. The current goal, US$20 a month, pays for the Claude Pro plan used for reviews, tests and much of the lifter and renderer work; its progress bar is on both pages. A tip pays for time on the project; it buys no game files, builds or early access, and everything stays open source here. Help that costs nothing counts as much: - Test on hardware we don't have (AMD and Intel GPUs, 4-thread CPUs, and handhelds such as the Steam Deck, ROG Ally, Legion Go or MSI Claw: [docs/tester-guide.md](docs/tester-guide.md)) and post the numbers in #3 or on Discord. - When something breaks, attach `logs/dkb.log`; for a bug at one spot, your `profile/save` folder (zipped) and an input recording (`input_record` in `dkb.ini`) let us replay it here. - Star the repository and share it with people who know GPUs, ARM64 or the Switch. ## Building from source The toolchain is TotK Recomp's ([docs/building.md](docs/building.md)): MSYS2 UCRT64 Clang, Ninja, Python 3.12 and the .NET SDK for the shader translator. With the Bananza ExeFS and RomFS from your own dump: ``` .venv\Scripts\python tools\build_xlate.py .venv\Scripts\python recomp\gen.py --exefs --out generated\dkb100 --modules main,sdk --patches recomp\patches-dkb100.txt .venv\Scripts\python tools\dkb_expected.py --exefs --name dkb100 --display 1.0.0 .venv\Scripts\python tools\dkb_pack_romfs.py --dir --out build\extracted\dkb100\romfs .venv\Scripts\python tools\build_game.py --version dkb100 --expected tools\data\expected-dkb100.json --exefs --romfs build\extracted\dkb100\romfs ``` Everything the build writes stays under `build\` and `generated\`, which git ignores. The game commits about 14 GB (13.5 GiB at the start and 13.75 GiB after 40 minutes, rising about 6 MB per minute; longer sessions are untested), so 16 GB of RAM plus a large page file is the minimum for now and 32 GB is comfortable. System requirements and measured frame rates: [docs/requirements.md](docs/requirements.md). Running and testing: [docs/dkb-testing.md](docs/dkb-testing.md). ## FAQ **Can I play it?** Partly. One hand-played run went from the title screen through the tutorial, its cutscene and the first stage to its end on an RTX 5060 Ti, with drops while a new area loads; other cards are untested and it can still crash. Follow the [roadmap](https://github.com/Lucas-blip-png/dkb-pc-recomp/issues/10) or the [devlog](docs/devlog.md). **Is there a download?** Of the installer, on the [release page](https://github.com/Lucas-blip-png/dkb-pc-recomp/releases/latest). The executable is made from the game's own code, so it cannot be shared. Everyone builds it from their own dump; the installer does this for you ([docs/installer.md](docs/installer.md)). **How do I install and update on Windows?** From the first release that carries it, download `DKB-Launcher.exe` once, put it in a folder of its own and start it. It downloads the build tools (checked by SHA-256) into `DKB-Recomp` beside itself, asks for your dump and the install folder, and builds the game. After that it opens on Play, looks for a new release at each start, shows what is new and updates with one click: the new tools are downloaded and checked, the old version stays until the new one has started, and only the steps whose inputs changed run again; saves (`profile/`) and `dkb.ini` are kept. A tick box on that screen (or `DKB_NO_UPDATE_CHECK=1`) turns the check off; the only request is to GitHub's release API. The setup zip keeps working as before ([docs/installer.md](docs/installer.md), "Launcher and updates"). **Which version of the game?** Base 1.0.0 and update 3.2.0 (title version 458752, the newest). The installer takes either a `.nup` file (the container Eglantine and Eden load; with the 3.2.0 update inside it builds 3.2.0; the base, the update and the DLC can also be separate `.nup` files, given together) or ExeFS and RomFS folders. Other updates are refused by their hashes. The 3.2.0 build installs and boots, and holds 60 fps for 150 s at the start on an RTX 5060 Ti, but nobody has played it yet. Add-on content (DLC) has a reader (an `aoc-` folder beside the executable, [docs/dkb-testing.md](docs/dkb-testing.md)) checked against synthetic packs and a real one, but it has not been tried in the game. **Linux?** Preview. The release page carries `DKB-Setup--linux-x86_64.tar.gz`: the sources and a setup script, not a binary. You install the system packages and it builds the game from your dump. The build from source is verified on AMD and NVIDIA GPUs ([docs/installer.md](docs/installer.md), "Bananza Linux and macOS packages"). **macOS?** Preview. `DKB-Setup--macos-arm64.zip` is the same kind of package. It builds and boots on Apple Silicon with MoltenVK: the game reaches the mode select ([docs/building.md](docs/building.md), "macOS"). It is not verified beyond that, and the destructible terrain is missing until the geometry stages have a vertex-stage replacement. **Why GPL?** The shader lowering comes from Eglantine (Eden Emulator Project), which is GPL. Files that came from TotK Recomp keep their MIT terms. **How is AI used?** Most of the code and documentation is written by AI coding agents (Claude Code), as in TotK Recomp, and checked by running the game and the differential tests. AI-assisted pull requests are welcome; you are responsible for having read and run them. ## Credits and origin DKB Recomp is built on [TotK Recomp](https://github.com/valentderah/totk-pc-recomp) (*Tears of the Kingdom*, Switch 1) by valentderah and its contributors (MIT, kept in [LICENSE-MIT](LICENSE-MIT)). It uses Eglantine's Ampere shader lowering (GPL-3.0-or-later, `runtime/third_party/eglantine/`) and Ryujinx's shader translator (MIT, vendored with MacNativeGames' patches), plus the other projects in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). The whole is under [LICENSE](LICENSE). - [TotK Recomp](https://github.com/valentderah/totk-pc-recomp) by valentderah, the base of everything here, and the projects it builds on: [LAS Recomp](https://github.com/peiikai/LASRecomp), [MacNativeGames](https://github.com/ly05010419/MacNativeGames), [nxnative](https://github.com/seedds/nxnative), [SavageWindRecomp](https://github.com/Revivedx/SavageWindRecomp), [Ryujinx](https://github.com/Ryujinx/Ryujinx), [deko3d](https://github.com/devkitPro/deko3d), [hactool](https://github.com/SciresM/hactool) and the rest listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md). - [GRAnimated/DKBananza](https://github.com/GRAnimated/DKBananza) for the game's symbols and research. - [Eglantine](https://git.eden-emu.dev/Franseven/PokeDinner-a-Eglantine-Fork) (Eden Emulator Project) for the Ampere-to-Maxwell shader lowering and its Switch 2 notes, and [Mesa NAK](https://gitlab.freedesktop.org/mesa/mesa) for the SM70+ encodings both build on. - [libvpx](https://chromium.googlesource.com/webm/libvpx) for the movies. - [Switchbrew](https://switchbrew.org) for the Switch 2 `GetInfo` ids, and the Switch homebrew community. ## License DKB Recomp as a whole is under the [GNU GPL v3 or later](LICENSE), because it includes Eglantine's GPL Ampere shader lowering (`runtime/third_party/eglantine/`). The files that came from TotK Recomp keep their [MIT License](LICENSE-MIT); third-party code keeps its own license ([THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)). The license grants nothing for Nintendo's game. DKB Recomp is an independent, non-commercial fan project, not affiliated with or endorsed by Nintendo. *Donkey Kong Bananza* and *Nintendo Switch 2* are trademarks of Nintendo.