[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116113":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":9,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":15,"starSnapshotCount":15,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},116113,"xc2-ns2-recomp","weile10000\u002Fxc2-ns2-recomp","weile10000","Static recompilation of Xenoblade Chronicles 2 (Nintendo Switch 2 Edition) to Windows + Vulkan. GPL-3.0, no game data included.",null,"Python",152,13,8,12,0,16,75,80,90.94,"GNU General Public License v3.0",false,"main",[],"2026-11-23 18:42:56","2026-11-23 19:54:43","# Xenoblade Chronicles 2 · Nintendo Switch 2 Edition — static recompilation (PC)\n\nAhead-of-time (\"static\") recompilation of the retail **Xenoblade Chronicles 2 – Nintendo Switch 2 Edition**\n(title id `0100E95004038000`, game version **3.0.1**) running on Windows x86-64 through Vulkan.\n\nThe game's NSO modules are lifted to C++ by [nxrecomp](https:\u002F\u002Fgithub.com\u002Fdrakolordx7\u002Fnxrecomp) and linked against a small\nSwitch runtime ([third_party\u002Ffefw-recomp](third_party\u002Ffefw-recomp)) whose NVN implementation replays the\ngame's graphics API on Vulkan. Shaders are translated from Maxwell \u002F Ampere SASS to SPIR-V by Ryujinx's\ntranslator, driven by our offline harness.\n\n> **This repository contains no game code and no game assets.**\n> It is the toolchain, the runtime and the project's documentation. You need your own legally acquired copy\n> of the game — see *What you must supply* below.\n\n## Status (2026-11-18)\n\n| | |\n|---|---|\n| Boot | ✔ reaches the title screen, loads a 2022 clear save, plays in the field |\n| Frame rate | **59–60 fps** in the port and most areas (1080p, 1440p or 4K alike); **43–52 fps** in the open plain, the heaviest area; 1% low ≈ 51 |\n| Graphics | NVN 3.5 replay on Vulkan; Maxwell shaders translated offline; Ampere (Switch 2) shaders translated from SASS |\n| Upscaling | the game's DLSS\u002FNDSR slot is served by the built-in **TAAU** by default; **FSR 4.1.2** and **FSR 3.1.6** are selectable at run time (`[dlss] upscaler = fsr3`) |\n| Audio | Opus (software decoder) + `nn::audio` OutputStream on the host sink |\n| Movies | **4K cutscenes play** (AV1 3840×2160, 30 fps) with lip sync; the retail build's BGM, effects and voices come out through a host XAudio2 sink |\n| Input | keyboard\u002Fmouse and gamepad |\n\n### Known issues\n\n* A blue-grey rim around characters and other objects where they meet the cloud sea. Measured to live inside\n  the game's 640×360 volumetric-fog layer (the in-scatter ramp across the depth step); the platform-level\n  suspects (depth filtering, shadow-map compare, texture gather rounding, upscalers) were each tested and\n  excluded, so the fix has to be inside the game's own fog pass.\n* Residual shimmer in the cloud sea in-game (the game dithers its volumetric fog at 640×360; the console leans\n  on its neural upscaler).\n* Slow frames on area transitions are dominated by texture uploads and guest\u002Fhost lock waits.\n* A 4K cutscene waits while the game is still loading: 1–20 s of stalls at the start of a CG, and an occasional\n  audio drop in that window. The film is fine once the game has finished loading.\n* The first cutscene frame can flash green for a moment on some runs.\n\n## What you must supply\n\nThe recompiler needs the game's own files; they are never part of this repository and are never downloaded:\n\n| what | where it goes (default) |\n|---|---|\n| ExeFS of the 3.0.1 program: `main`, `sdk`, `subsdk0`, `subsdk1`, `subsdk2`, `subsdk3`, `rtld`, `main.npdm` | `xc2\u002Fgame\u002Fxc2ns301\u002F` |\n| the 3.0.1 romfs (`bf2.ard`, `bf2.arh`, `stream\u002F`) | referenced by `NXRT_FS_ROMFS` at run time |\n| add-on content (optional) | referenced by `NXRT_AOC_DIR` |\n\nThe built executable embeds the lifted game code, so **builds are not distributed**: build it locally from\nyour own dump (see `docs\u002FBUILD.md`).\n\n## How it works\n\n```\nExeFS (NSO) ──nxrecomp lift──▶ C++ ──clang-cl──▶ main.lib ──┐\n                                                            ├──▶ xc2_boot.exe\nruntime (fefw-recomp: NVN\u002FNVN2, hid, fs, audio, kernel) ────┘\n        │\n        └─ NVN calls ──▶ Vulkan replay ──▶ SPIR-V shaders (offline harness, Ryujinx translator)\n```\n\nThe runtime is a general Switch\u002FNVN service layer (not XC2-specific); everything game-specific lives in this\nrepository: the lift sites, the boot glue, the launcher, and the analysis tools.\n\n## Build\n\nSee [docs\u002FBUILD.md](docs\u002FBUILD.md). In short: a Windows toolchain (MSVC + LLVM clang-cl, .NET 10 SDK,\nVulkan SDK, Python 3.12), then\n\n```powershell\n# once, after placing your 3.0.1 ExeFS in xc2\\game\\xc2ns301\\\n.\\tools\\build\\build.ps1 -Exefs xc2\\game\\xc2ns301 -Run:$false `\n    -Modules 'main,sdk,subsdk0,subsdk1,subsdk2,subsdk3,rtld' `\n    -LiftDir xc2\\build\\301\\lift -ObjDir xc2\\build\\301\\obj -LibDir xc2\\build\\301\\lib\n.\\tools\\build\\build-boot.ps1 -Exefs xc2\\game\\xc2ns301 -OutDir xc2\\build\\301\\boot `\n    -LibDir xc2\\build\\301\\lib -MainLib xc2\\build\\301\\lib\\main.lib -Defines XC2_MODULES_7\n```\n\n## Documentation\n\n* [docs\u002FQUICKSTART.md](docs\u002FQUICKSTART.md) — ten minutes from a clean clone to the title screen\n* [docs\u002FARCHITECTURE.md](docs\u002FARCHITECTURE.md) — how the lift, the runtime and the shader pipeline fit together\n* [docs\u002FCOMPATIBILITY.md](docs\u002FCOMPATIBILITY.md) — what runs, what does not, and the measured frame rate\n* [docs\u002FTROUBLESHOOTING.md](docs\u002FTROUBLESHOOTING.md) — symptom first: black screen, driver crashes, wrong frame rate\n* [docs\u002FINVARIANTS.md](docs\u002FINVARIANTS.md) — the three rules the project holds itself to\n* [CONTRIBUTING.md](CONTRIBUTING.md) — reporting a problem, building, opening a pull request\n* [CHANGELOG.md](CHANGELOG.md) — dated milestones\n* `docs\u002Freports\u002F` — the lift and NVN service reports\n* The §-numbered working notes (one file per round, with every experiment and dead end) are kept outside this\nrepository. Code comments and the reports refer to them as `HANDOVER N` or `§N`: those numbers are kept so the\ncode and the notes stay cross-referenced, but the notes themselves are not published.\n* [docs\u002FMODS.md](docs\u002FMODS.md) — the mod interface: folder layout, order, conflicts, code patches (draft)\n* `docs\u002FENVIRONMENT.md` — toolchain, Python packages, build entries, data layout\n* `tools\u002FREADME.md` — the analysis and run tools\n\n## Credits\n\n* [nxrecomp](https:\u002F\u002Fgithub.com\u002Fdrakolordx7\u002Fnxrecomp) — the static recompiler used to lift the game\n* **[Goldoire\u002Ffefw-recomp](https:\u002F\u002Fgithub.com\u002FGoldoire\u002Ffefw-recomp)** — the Switch runtime this project is built on,\n  and the reason it exists at all: the NVN\u002FNVN2 replay layer, the service HLE, the shader pipeline and the\n  exe+DLL packaging split all started there. Our fork lives in [third_party\u002Ffefw-recomp](third_party\u002Ffefw-recomp)\n  and every change to it is listed in its `MODIFICATIONS.md`.\n* Ryujinx (MIT) — the Maxwell shader translator used by the offline shader harness\n* SDL3, Vulkan-Headers, VMA, and the other vendored dependencies (see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md))\n* [AksharDP\u002Fxc2-recomp](https:\u002F\u002Fgithub.com\u002FAksharDP\u002Fxc2-recomp) and the [Lichii](https:\u002F\u002Fgithub.com\u002Fzortos293\u002FLichii) PRs — read for reference findings, no code copied\n* **DeepSeek V4.1 Flash** (build 1017, [@deepseek](https:\u002F\u002Fgithub.com\u002Fdeepseek)) — pair-programmed this project\n  with its author, from the first lift to this release: the runtime work, the replay optimisation, the\n  documentation and the review rounds\n* **[@capibawa](https:\u002F\u002Fgithub.com\u002Fcapibawa)** — [nxnative, branch `xc2-ns2-profile`](https:\u002F\u002Fgithub.com\u002Fcapibawa\u002Fnxnative\u002Ftree\u002Fxc2-ns2-profile):\n  the launch switches and the host-side movie\u002Faudio takeover that this project's film path follows\n\n## Licence\n\nThe project's own code is **GPL-3.0-or-later** — [LICENSE](LICENSE) carries the GPL-3.0 text and the \"or later\" is\nthis project's choice. Third-party components keep their own licences, listed in\n[THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) and in `third_party\u002Ffefw-recomp\u002FMODIFICATIONS.md`. **No licence\nhere grants any right to Nintendo's game.** The lifted code the build produces from your own dump is not covered by\nthis licence, is not distributed, and remains the property of its rights holders.\n\n## Legal notice\n\nThis is an independent, non-commercial fan project. It is not affiliated with, sponsored by, or endorsed by\nNintendo. *Xenoblade Chronicles*, *Xenoblade Chronicles 2*, *Nintendo Switch* and *Nintendo Switch 2* are\ntrademarks of Nintendo; *Xenoblade Chronicles 2* was developed by MONOLITH SOFT. This repository contains no game\ncode, no game assets and no keys, and gives no help in obtaining them.\n\n本项目是独立的非商业粉丝项目，与任天堂没有任何关联，也未获得任天堂的认可。《异度之刃 2》、Nintendo Switch\n与 Nintendo Switch 2 是任天堂的商标；《异度之刃 2》由 MONOLITH SOFT 开发。仓库中不含任何游戏代码、游戏资源或密钥，\n也不提供任何获取途径。\n\n## 中文说明\n\n本项目是《异度之刃 2（Nintendo Switch 2 Edition）》**3.0.1 零售版**的静态重编译（PC \u002F Windows + Vulkan）：\n把游戏的 NSO 模块整体举升成 C++，再链接一个通用 Switch 运行时（自己实现的 NVN → Vulkan 重放层）运行。\n\n* **仓库里没有任何游戏代码、游戏资源或密钥**；需要你自己的游戏 dump（路径见上表），构建产物（含举升后的游戏代码）\n  **不随仓库分发**，只能本地构建。\n* 当前状态：能启动、读 2022 通关存档、进游戏；港口与多数区域 **59–60 fps**，大平原 43–52 fps，4K 输出几乎零成本；\n  **4K 过场 CG 30fps 正常播放、音画同步**。已知问题见 `docs\u002FCOMPATIBILITY.md`。\n* 构建方法见 `docs\u002FBUILD.md`；工具链见 `docs\u002FENVIRONMENT.md`；架构见 `docs\u002FARCHITECTURE.md`。\n* 影片\u002F音频的宿主接管思路来自 [@capibawa 的 nxnative（`xc2-ns2-profile` 分支）](https:\u002F\u002Fgithub.com\u002Fcapibawa\u002Fnxnative\u002Ftree\u002Fxc2-ns2-profile)。\n* **本项目的运行时来自 [Goldoire 的 fefw-recomp](https:\u002F\u002Fgithub.com\u002FGoldoire\u002Ffefw-recomp)**：NVN\u002FNVN2 重放层、\n  服务层 HLE、着色器管线、exe + DLL 的打包形态都奠基其上。没有那个项目，就没有这次重编译。我们的分支在\n  `third_party\u002Ffefw-recomp`，改动逐条记在它的 `MODIFICATIONS.md`。\n","这是一个将《异度之刃2：Nintendo Switch 2版》（v3.0.1）静态重编译为Windows平台并基于Vulkan运行的开源工具链项目。核心功能包括：使用nxrecomp将NSO模块提升为C++代码，通过定制Switch运行时（NVN 3.5 Vulkan回放）执行游戏逻辑，离线翻译Maxwell\u002FAmpere架构GPU着色器为SPIR-V，并支持TAAU、FSR 3.1.6\u002F4.1.2等实时超分方案。项目不包含任何游戏代码或资源，仅提供编译工具、运行时和文档。适用于拥有合法游戏副本、希望在高性能PC上以接近原生帧率（43–60 fps）运行该Switch 2专属版本的技术用户及模拟器研究者。",2,"2026-11-24 04:52:51","CREATED_QUERY"]