[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107610":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":36,"updatedAt":37,"readmeContent":38,"aiSummary":39,"trendingCount":16,"starSnapshotCount":16,"syncStatus":40,"lastSyncTime":41,"discoverSource":42},107610,"dkb-pc-recomp","Lucas-blip-png\u002Fdkb-pc-recomp","Lucas-blip-png","Static recompilation of Donkey Kong Bananza (Switch 2) to native Windows and Linux with Vulkan. 0.5.1 out: NVIDIA shader cache fix, player 2 rumble; one-file Windows launcher, presets, local co-op, 16:10, Thai. Requirements: docs\u002Frequirements.md. Roadmap: #10. No game files included.","",null,"C",1387,82,24,59,0,41,234,1235,183,103.74,"GNU General Public License v3.0",false,"bananza",[26,27,28,29,30,31,32,33,34,35],"arm64","donkey-kong","game-port","nintendo-switch-2","nvn","recompilation","reverse-engineering","spir-v","static-recompilation","vulkan","2026-11-21 22:22:25","2026-11-23 20:15:20","# DKB Recomp\n\n[![License: GPL-3.0-or-later](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-GPL--3.0--or--later-blue)](LICENSE)\n[![Content guard](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Factions\u002Fworkflows\u002Fcontent-guard.yml\u002Fbadge.svg?branch=bananza)](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Factions\u002Fworkflows\u002Fcontent-guard.yml)\n[![Stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FLucas-blip-png\u002Fdkb-pc-recomp?style=flat)](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fstargazers)\n[![Help wanted](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fissues\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fhelp%20wanted?label=help%20wanted)](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues?q=is%3Aopen+label%3A%22help+wanted%22)\n[![Discussions](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fdiscussions\u002FLucas-blip-png\u002Fdkb-pc-recomp)](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fdiscussions)\n[![Ko-fi](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FKo--fi-support%20the%20work-ff5e5b?logo=ko-fi&logoColor=white)](https:\u002F\u002Fko-fi.com\u002Flucasblippng)\n\n**DKB Recomp** is a static recompilation of *Donkey Kong Bananza* (Nintendo Switch 2, 2025) into a native Windows\nx86-64 application with a Vulkan renderer. There is no emulator at run time: the game's ARM64 code is translated to C\nahead of time and compiled into one executable, and its graphics calls are answered by a host implementation of\nNVN 2. It is built on [TotK Recomp](https:\u002F\u002Fgithub.com\u002Fvalentderah\u002Ftotk-pc-recomp), which does the same for *Tears of\nthe Kingdom* on the original Switch.\n\nAs far as we know, no other static recompilation of a Switch 2 game is public.\n\n> [!IMPORTANT]\n> **No game files are included, and none ever will be.** You need your own copy of *Donkey Kong Bananza*, dumped\n> from your own console. Instructions for obtaining those files will not be provided. There are no downloadable\n> builds: everyone builds from their own dump.\n\n## Status\n\n**Not playable yet.** The game boots, goes through the title screen into the tutorial cave, renders the 3D scene and\nanswers the controller: you can walk and punch through the mining tunnel, with the guide movies playing, and one\nhand-played run reached the Ingot Isle Cave-In section. It still\ncan crash (on NVIDIA two light quads are skipped to avoid a GPU fault,\n[#9](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F9)), and\nmany effects are missing.\nThere is no release. An installer builds the game from your own dump: [docs\u002Finstaller.md](docs\u002Finstaller.md).\nProgress, day by day: [docs\u002Fdevlog.md](docs\u002Fdevlog.md).\n\n| Phase | | State |\n| --- | --- | --- |\n| 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. |\n| F1 OS | ✅ | Boots on TotK Recomp's Horizon host with the Switch 2 differences: RomFS, save, audio, controller. |\n| 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. |\n| 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. |\n| F4 Vulkan | ✅ | The title screen and the tutorial's 3D scene render. |\n| F5 Playable | 🚧 | Controller, guide movies (VP9) and push constants work. Open: a GPU fault some minutes in on NVIDIA, the black destructible terrain (its geometry stage, [#45](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F45)), some textures, performance outside the tutorial. |\n\nThe plan, phase by phase: [docs\u002Fbananza-plan.md](docs\u002Fbananza-plan.md). What is open right now:\n[Roadmap to playable](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F10).\n\n## How it works\n\n```mermaid\nflowchart LR\n    subgraph offline[\"At build time, on your PC\"]\n        exefs[\"Your dump: main + sdk\u003Cbr\u002F>(ARM64)\"] --> lifter[\"Lifter\u003Cbr\u002F>recomp\u002F\"] --> c[\"C code\"] --> clang[\"Clang\"] --> exe[\"dkb.exe\"]\n    end\n    subgraph runtime[\"At run time\"]\n        exe --> host[\"Horizon host\u003Cbr\u002F>threads, files, audio, input\"]\n        exe --> nvn[\"NVN 2 front end\u003Cbr\u002F>runtime\u002Fnvn_*\"] --> vk[\"Vulkan back end\"]\n        sass[\"Ampere shaders\"] --> lower[\"Eglantine lowering\u003Cbr\u002F>Ampere → Maxwell\"] --> xlate[\"Translator\u003Cbr\u002F>tools\u002Fxlate\"] --> spirv[\"SPIR-V\"] --> vk\n    end\n```\n\nThe longer version is in [docs\u002Farchitecture.md](docs\u002Farchitecture.md) (shared with TotK Recomp) and\n[docs\u002Fbananza-shaders.md](docs\u002Fbananza-shaders.md) (the NVN 2 shader work).\n\n## How to help\n\nEach open problem is a separate, well-bounded job with its own issue. Pick one, say in the issue that you are on it,\nand keep each pull request to one topic. Issues labelled\n[`in progress`](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues?q=is%3Aopen+label%3A%22in+progress%22) are\nalready taken, and the top of the [roadmap](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F10) says what is\nbeing worked on right now.\n\n**No code needed**, only your PC and your own copy of the game:\n\n- [#3](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F3) **Test on your GPU.** Everything so far was checked\n  on one NVIDIA card. Runs on AMD, Intel and other NVIDIA cards, with logs, show what breaks there.\n- [#7](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F7) **Play past the tutorial** and report where it stops.\n- [#9](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F9) **The GPU fault after the first guide movie**: seen\n  on three NVIDIA drivers (617.14, 617.42, 621.01); runs on AMD and Intel would show whether it is NVIDIA's.\n\n**Code** ([help wanted](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues?q=is%3Aopen+label%3A%22help+wanted%22)):\n\n- [#5](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F5) **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.\n- [#6](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F6) **NVN 2 calls not recorded yet**: mesh shaders, VRS,\n  DLSS and others.\n- **Symbols.** Function names help debugging. They come from\n  [GRAnimated\u002FDKBananza](https:\u002F\u002Fgithub.com\u002FGRAnimated\u002FDKBananza), which welcomes contributions too.\n\nYour first contribution, step by step:\n\n1. Build from your own dump ([Building from source](#building-from-source)).\n2. Run it as in [docs\u002Fdkb-testing.md](docs\u002Fdkb-testing.md) and note how far it gets on your machine.\n3. Report it on #3 or #7, or pick an issue above.\n\nBefore you open a pull request, read [CONTRIBUTING.md](CONTRIBUTING.md). Its hard rule: nothing that came out of the\ngame goes into the repository, not in commits, issues or pull requests. Run `python tools\u002Fcheck_content.py --staged`\nbefore committing; CI runs the same check. Questions go to\n[Discussions](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fdiscussions). Everyone taking part follows the\n[code of conduct](CODE_OF_CONDUCT.md).\n\n## Support the project\n\nIf you want to support the work without writing code, tips go to\n[ko-fi.com\u002Flucasblippng](https:\u002F\u002Fko-fi.com\u002Flucasblippng). A tip pays for time on the project; it buys no game files,\nbuilds or early access, and everything stays open source here. Starring the repository and sharing it with people who\nknow GPUs, ARM64 or the Switch also helps.\n\n## Building from source\n\nThe toolchain is TotK Recomp's ([docs\u002Fbuilding.md](docs\u002Fbuilding.md)): MSYS2 UCRT64 Clang, Ninja, Python 3.12 and the\n.NET SDK for the shader translator. With the Bananza ExeFS and RomFS from your own dump:\n\n```\n.venv\\Scripts\\python tools\\build_xlate.py\n.venv\\Scripts\\python recomp\\gen.py --exefs \u003Cexefs> --out generated\\dkb100 --modules main,sdk --patches recomp\\patches-dkb100.txt\n.venv\\Scripts\\python tools\\dkb_expected.py --exefs \u003Cexefs> --name dkb100 --display 1.0.0\n.venv\\Scripts\\python tools\\dkb_pack_romfs.py --dir \u003Cromfs folder> --out build\\extracted\\dkb100\\romfs\n.venv\\Scripts\\python tools\\build_game.py --version dkb100 --expected tools\\data\\expected-dkb100.json --exefs \u003Cexefs> --romfs build\\extracted\\dkb100\\romfs\n```\n\nEverything the build writes stays under `build\\` and `generated\\`, which git ignores. The game uses about 13 GB of\nRAM, so 16 GB is the minimum for now. Running and testing: [docs\u002Fdkb-testing.md](docs\u002Fdkb-testing.md).\n\n## FAQ\n\n**Can I play it?** Not yet. It reaches the tutorial and crashes often. Follow the\n[roadmap](https:\u002F\u002Fgithub.com\u002FLucas-blip-png\u002Fdkb-pc-recomp\u002Fissues\u002F10) or the [devlog](docs\u002Fdevlog.md).\n\n**Will there be a download?** No. The executable is made from the game's own code, so it cannot be shared. Everyone\nbuilds it from their own dump; the installer does this for you ([docs\u002Finstaller.md](docs\u002Finstaller.md)).\n\n**Which version of the game?** Base 1.0.0. Update 458752 has a different layout and is not supported yet.\n\n**Linux?** TotK Recomp's toolchain supports Linux, so it is possible; nobody has tried with Bananza yet.\n\n**Why GPL?** The shader lowering comes from Eglantine (Eden Emulator Project), which is GPL. Files that came from TotK\nRecomp keep their MIT terms.\n\n**How is AI used?** Most of the code and documentation is written by AI coding agents (Claude Code), as in TotK\nRecomp, and checked by running the game and the differential tests. AI-assisted pull requests are welcome; you are\nresponsible for having read and run them.\n\n## Credits\n\n- [TotK Recomp](https:\u002F\u002Fgithub.com\u002Fvalentderah\u002Ftotk-pc-recomp) by valentderah, the base of everything here, and the\n  projects it builds on: [LAS Recomp](https:\u002F\u002Fgithub.com\u002Fpeiikai\u002FLASRecomp),\n  [MacNativeGames](https:\u002F\u002Fgithub.com\u002Fly05010419\u002FMacNativeGames), [nxnative](https:\u002F\u002Fgithub.com\u002Fseedds\u002Fnxnative),\n  [SavageWindRecomp](https:\u002F\u002Fgithub.com\u002FRevivedx\u002FSavageWindRecomp), [Ryujinx](https:\u002F\u002Fgithub.com\u002FRyujinx\u002FRyujinx),\n  [deko3d](https:\u002F\u002Fgithub.com\u002FdevkitPro\u002Fdeko3d), [hactool](https:\u002F\u002Fgithub.com\u002FSciresM\u002Fhactool) and the rest listed in\n  [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).\n- [GRAnimated\u002FDKBananza](https:\u002F\u002Fgithub.com\u002FGRAnimated\u002FDKBananza) for the game's symbols and research.\n- [Eglantine](https:\u002F\u002Fgit.eden-emu.dev\u002FFranseven\u002FPokeDinner-a-Eglantine-Fork) (Eden Emulator Project) for the\n  Ampere-to-Maxwell shader lowering and its Switch 2 notes, and [Mesa NAK](https:\u002F\u002Fgitlab.freedesktop.org\u002Fmesa\u002Fmesa)\n  for the SM70+ encodings both build on.\n- [libvpx](https:\u002F\u002Fchromium.googlesource.com\u002Fwebm\u002Flibvpx) for the movies.\n- [Switchbrew](https:\u002F\u002Fswitchbrew.org) for the Switch 2 `GetInfo` ids, and the Switch homebrew community.\n\n## License\n\nDKB Recomp as a whole is under the [GNU GPL v3 or later](LICENSE), because it includes Eglantine's GPL Ampere shader\nlowering (`runtime\u002Fthird_party\u002Feglantine\u002F`). The files that came from TotK Recomp keep their\n[MIT License](LICENSE-MIT); third-party code keeps its own license ([THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)).\nThe license grants nothing for Nintendo's game.\n\nDKB Recomp is an independent, non-commercial fan project, not affiliated with or endorsed by Nintendo. *Donkey Kong\nBananza* and *Nintendo Switch 2* are trademarks of Nintendo.\n","这是一个将任天堂Switch 2游戏《Donkey Kong Bananza》静态重编译为原生Windows Vulkan应用的开源项目。它不依赖运行时模拟器，而是通过反汇编ARM64代码、静态翻译为C语言并编译，同时实现NVN 2图形API的主机端Vulkan后端，支持基础3D场景渲染与控制器输入。项目基于TotK Recomp构建，具备ARM64指令集（含ARMv8.3扩展）精准提升、差分测试验证及NVN 2命令缓冲区初步支持等技术特点。适用于游戏逆向研究、跨平台静态重编译技术验证及Switch 2平台早期软件兼容性探索等场景。",2,"2026-11-24 04:32:24","CREATED_QUERY"]