[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111120":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":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":9,"rankLanguage":9,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":29,"discoverSource":30},111120,"AnkaNative","EddizEge\u002FAnkaNative","EddizEge","Anka Native: run your own Switch 2 games natively on Android (Snapdragon\u002FAdreno)",null,"C",168,11,2,8,0,16,42,3,55.32,"MIT License",false,"main",true,[],"2026-11-15 18:37:40","2026-11-22 06:53:34","\u003Cp align=\"center\">\u003Cimg src=\"android\u002Fimages\u002Flogo.png\" alt=\"Anka Native logo\" width=\"128\">\u003C\u002Fp>\n\n# Anka Native\n\n**Anka Native runs Switch 2 games' own code natively on Android, with their graphics rebuilt on Vulkan.** Released as\n**Anka Native by EddizEge**; this release is **Anka Native 0.1.0**.\n\nIt is not an emulator: the game's own ARM64 code runs directly on the phone's CPU. A small host answers the system calls the game\nmakes, and the game's NVN graphics (including the Switch 2's task and mesh shaders) are replayed on Vulkan, with the game's shaders\ntranslated once, ahead of time, from your own dump.\n\nNot affiliated with Nintendo, any game publisher, or the projects credited in [NOTICE.md](NOTICE.md); please report problems in this\nrepository's Issues, not to them. https:\u002F\u002Fgithub.com\u002FEddizEge\u002FAnkaNative\u002Fissues\n\n> [!CAUTION]\n> Nothing from any game is in this repository or in the app: no game code, no game data, no keys, no firmware, no shader libraries.\n> Use only your own, legally owned game dumps. Do not ask for games, keys or dumps, and do not share them in Issues.\n\n## The name\n\nAnka is the Zumruduanka (Zümrüdüanka) of Turkish myth, the phoenix that rises from its ashes. Anka Native shares its name and its mark\nwith the Anka emulator by the same author: here the games rise again on a phone, from their own code.\n\n## Games\n\n| Game | Title ID | Version | Status |\n|---|---|---|---|\n| The Legend of Zelda: Ocarina of Time (Switch 2) | `0400486024DEC000` | update v131072 (`.nup` dump) | **Experimental, playable with problems.** Measured on one phone (below) |\n| Donkey Kong Bananza | `040074A01BF12000` | update 458752 | Played on Android before Anka Native's changes; **not tested again since** |\n| Mario Kart World | `0400C3F00006E000` | 1.8.0 (base game) | Experimental before Anka Native's changes (in game and driving, with graphics problems); **not tested again since** |\n\nOther versions are refused with a message that says which version the app needs. Each game is built into its own app\n(for example **Anka Native** with the id `dev.ankanative.android.oot` for Ocarina of Time).\n\n**Measured in Ocarina of Time, on one phone.** Every number here comes from a POCO F8 Pro (Snapdragon, Adreno 830, 12 GB of RAM) with a\nTurnip driver, playing the game from a `.nup` dump. No other phone was tried, and Donkey Kong Bananza and Mario Kart World were not run\nwith these changes.\n\n- From the save it loads into Kokiri Forest and Link's house; it stayed in the forest for 18 minutes without being closed, and saving\n  from the pause menu (System > Save) worked.\n- Frame rate at the start of the game: 12.7-16.2 fps (it was 4.8-5.4 before the shader page index). GPU time at Link's house 59.1 ms a\n  frame (from 121.6 ms). Not 30 fps: the forest's terrain shaders are still the main cost.\n- At a low frame rate the game now runs at about 0.8-1.0 of its normal speed (it was about a quarter at 15 fps).\n- Memory is the limit on 12 GB: about 10 of the phone's 10.9 GiB were in use while it played, and Android closed background apps. With\n  the RAM saver on, total RAM use was 9.6 GB.\n\nWhat changed, with more numbers: [CHANGELOG_ANKA_NATIVE.md](CHANGELOG_ANKA_NATIVE.md). The game's notes:\n[dm\u002Fgames\u002F0400486024DEC000\u002FREADME.md](dm\u002Fgames\u002F0400486024DEC000\u002FREADME.md).\n\n## What you need\n\n- Android 13 or newer, a 64-bit phone with a **Snapdragon (Adreno) GPU** and **12-16 GB of RAM**. Only a 12 GB POCO F8 Pro (Adreno 830)\n  was tried with this release; with 12 GB, memory is tight.\n- **Less than 16 GB of RAM: turn the RAM saver on** (the game's ⋯ › Game settings › RAM saver). Without it Android may close the\n  game in heavy areas; with it, total RAM use in Ocarina of Time dropped to 9.6 GB on the 12 GB test phone. It costs storage writes\n  (about 2 GB per area load) and needs that much free space.\n- A Vulkan driver with `VK_EXT_map_memory_placed`. Phone drivers often lack it (the POCO F8 Pro's own Qualcomm driver does): install a\n  Turnip driver, such as the [Anka Turnip driver](#the-anka-turnip-driver). The app's readiness check (Settings > Readiness check)\n  says whether yours has it.\n- **Your own game dump**, of a game you legally own: a `.nup` file or a dump folder (`base\u002F` with `exefs\u002F` and `romfs\u002F`, and\n  `updates\u002F\u003Cversion>\u002F` if any). NSP and XCI files do not work for Switch 2 games. No keys or firmware are needed.\n- Time to prepare the game once (see \"Install\"): on the phone itself (new in 0.2.0, experimental), or on a computer (Windows, Linux or Mac).\n- Free storage on the phone: the prepared game (the pack, with its shader library) is a few hundred MB to a few GB; the RAM saver writes\n  about 2 GB per area load.\n- Optional: your own `Lossless.dll` from Lossless Scaling for Windows, for frame generation (never included).\n\n## Download and check\n\nThe release has the APK (`anka-native-\u003Cversion>.apk`, app id `dev.ankanative.android`) and `SHA256SUMS.txt`. To check a download on a computer:\n`sha256sum -c SHA256SUMS.txt --ignore-missing` (on a Mac: `shasum -a 256 -c SHA256SUMS.txt`). Only download the app from this\nrepository's Releases: a copy from anywhere else may be modified.\n\n## Install\n\nThis is an experimental build with no warranty ([LICENSE](LICENSE)).\n\n**On the phone** (new in 0.2.0, experimental): copy the dump (or the `.nup`) to the phone, install the APK, open **Anka Native**, allow\n**All files access**, tap **Add game**, pick the dump and tap **Prepare**. The app rewrites the game's code and translates its shaders in\nthe background, with a notification (keep the phone charging: it takes a long time, over an hour for Ocarina of Time). When it is done,\nthe game's card says Ready; tap **Play**. If anything fails, the card says why and keeps its log; preparing on a computer still works.\n\n**On a computer** (Windows, Linux or Mac):\n\n1. **Prepare the game on a computer**, once: make the environment and run `scripts\u002Fpack_android.py` on your dump, as\n   [android\u002FREADME.md](android\u002FREADME.md#the-environment) describes ([Pack a game](android\u002FREADME.md#pack-a-game)). It rewrites the\n   game's code for Android and translates its shaders for Vulkan into a pack (`\u003Ctitle ID>-work\u002Fandroid-pack`, next to the dump).\n   Ocarina of Time has about 42,000 shaders: this takes a long time and needs .NET and several GB of free disk.\n2. Copy the dump (or the `.nup`) to the phone, for example to `Switch2\u002F`, and the pack next to it as\n   `Switch2\u002F\u003Ctitle ID>-work\u002Fandroid-pack`. The pack is made from your dump for your phone: never share it.\n3. Install the APK, open **Anka Native** and allow **All files access**.\n4. Install a GPU driver if the readiness check asks for one ([below](#the-anka-turnip-driver)).\n5. Tap **Add game** and pick the dump folder or the `.nup`. The app finds the pack next to it; tap **Play**.\n\nSaves are kept in the app's own storage (`Android\u002Fdata\u002F\u003Capp id>\u002Ffiles\u002Fsaves`). When you uninstall, Android asks whether to keep that\ndata. A game's ⋯ menu backs saves up to `Switch2\u002Fsave-backups\u002F\u003Ctitle ID>\u002F` (kept when the app is uninstalled) and restores them.\nAnka Native has its own app id, so it installs beside other builds and does not see their saves; move a save with the game's\n⋯ menu (back up in one app, restore in the other).\n\n## The Anka Turnip driver\n\nThe games run on Turnip, Mesa's open Vulkan driver for Adreno GPUs. The Anka Turnip driver is a Turnip build prepared for Anka Native:\nhttps:\u002F\u002Fgithub.com\u002FEddizEge\u002FAnkaTurnip (download its release zip). In the app: Settings > **GPU driver** > **Install...** > **Pick a\nzip...**, then start the game again. Settings > GPU driver also offers to download community Turnip builds. A driver is never part of\nthis repository or of the APK.\n\n## Settings\n\nThe gear on the main screen holds the app's settings; a game's ⋯ menu > **Game settings** holds that game's own.\n\n| Setting | What it does |\n|---|---|\n| **RAM saver (uses storage)** (Game settings) | Off by default; **turn it on if your phone has less than 16 GB of RAM**. The game's large textures live in a file in the app's cache folder instead of in RAM, so Android can drop and reload them instead of closing the game. For phones short of RAM with free storage; it writes about 2 GB to storage per area load in Ocarina of Time |\n| Frame-rate cap | the game's own, 60, 30, 20 or 15 fps |\n| Game resolution | the phone's 1080p or the game's own |\n| GPU driver | the Vulkan driver the game runs on (the system's, or an installed Turnip zip) |\n| Frame generation | Lossless Scaling's frame generation (2x, 3x, 4x or a target frame rate); needs your own `Lossless.dll` |\n| Performance overlay | fps, GPU time, throttling and battery over the game |\n| Readiness check | what the phone is missing for a game, with a button to fix most items |\n\nOn-screen controls have a layout editor; gamepads work. Every switch the host reads is listed in\n[docs\u002Fenv_switches.tsv](docs\u002Fenv_switches.tsv); a game's tested settings are in its profile.\n\n## Known issues\n\n- **Ocarina of Time is slow**: about 12-16 fps at the start, lower in open areas. The forest's terrain shaders are the main cost.\n- **Memory on 12 GB phones**: Android may close the game after a long session or in a heavy area; it closes background apps while the\n  game runs. Turn the RAM saver on (recommended below 16 GB of RAM). Back up your saves often.\n- **Textures** may pop in while walking (textures released under memory pressure are made again) and **shimmer**; some foliage is\n  **black** (mesh shaders).\n- **Short stalls while walking** come from pipelines built late and from memory pressure.\n- **Anti-aliasing** is not visible yet: the game's SMAA pass runs, but its blend weights are all zero.\n- Donkey Kong Bananza and Mario Kart World were **not tested** with Anka Native's changes. Only one phone was tried.\n- The phone gets hot, and the frame rate drops when it throttles.\n\n## Feedback\n\nTell us how it runs on your phone in [Discussions](https:\u002F\u002Fgithub.com\u002FEddizEge\u002FAnkaNative\u002Fdiscussions): the\n[device reports](https:\u002F\u002Fgithub.com\u002FEddizEge\u002FAnkaNative\u002Fdiscussions\u002F1) thread has a short template (phone, RAM, driver, game, frame rate, what works\nand what does not). Bugs you can reproduce go to [Issues](https:\u002F\u002Fgithub.com\u002FEddizEge\u002FAnkaNative\u002Fissues). Settings › Share log sends the app's\nnewest log. Never post game files, keys or packs.\n\n## Building\n\nHow to set up the environment, prepare a game and build the APK: [android\u002FREADME.md](android\u002FREADME.md) (and\n[android\u002FTESTING.md](android\u002FTESTING.md) for testing on a phone). This release's APK was built with:\n\n```sh\ncd android\u002Fapp\n.\u002Fgradlew --no-daemon -q -PnxGames=0400486024DEC000 -PnxApp=oot -PnxPackEngine=fake apk   # -> out\u002Fanka-native-oot.apk\n```\n\n`-PnxApp=\u003Csuffix>` sets the app id `dev.ankanative.android.\u003Csuffix>` and `-PnxLabel` its name; `-PnxPackEngine=fake` leaves out the\non-phone packer. Signed releases are built with `android\u002Ftools\u002Frelease.sh` ([docs\u002FRELEASING.md](docs\u002FRELEASING.md)). The icons are made by `android\u002Ftools\u002Fanka_icons.py`. The Mac and iPhone builds this repository also holds are\ndescribed in [docs\u002Fmac-and-iphone.md](docs\u002Fmac-and-iphone.md).\n\n## AI disclosure\n\nMost of Anka Native's code, its commit messages and these documents were written by an AI coding assistant (Claude Opus 5.5, by\nAnthropic) working under the direction of the human maintainer, who decided what to try, played and tested the builds on his phone, and\nis responsible for the release. Many of the measurements were taken by automated runs on that phone. It is experimental and has bugs.\n\n## License\n\nMost of the code is MIT ([LICENSE](LICENSE)); the frame generation port (`dm\u002Fgfx\u002Fvk_android\u002Flsfg`), one shader translator file\n(`InstEmitAmpereMesh.cs`) and the Anka mark's script (`android\u002Ftools\u002Fanka_logo.py`) are GPL-3.0-or-later. **The Android app is GPL-3.0-or-later as a whole**, because it links GPL-3.0-or-later parts (frame\ngeneration, and the shader translator in an APK that carries the on-phone packer); its source is this repository at the commit in the\napp's build tag. Credits, third-party code and their licenses: [NOTICE.md](NOTICE.md). The Anka mark and its icons are EddizEge's own\ndesign, GPL-3.0-or-later. The app's About section names the license and points to NOTICE.md.\n\nUse only games you own. Do not ask for games, keys or dumps.\n","Anka Native 是一个在 Android 设备（基于 Snapdragon\u002FAdreno 平台）上原生运行 Switch 2 游戏的运行时框架，不依赖传统模拟器。其核心机制是直接执行游戏原始 ARM64 二进制代码，通过轻量宿主层拦截并响应系统调用，并将 Switch 2 的 NVN 图形 API（含任务\u002F网格着色器）实时映射至 Vulkan，同时对游戏自有 shader 进行离线翻译。项目强调零游戏资产嵌入，仅支持用户本地合法拥有的 `.nup` 格式游戏转储。适用于具备高性能 Adreno GPU 的安卓旗舰设备，用于技术验证与低延迟原生游戏移植探索。","2026-11-24 04:40:11","CREATED_QUERY"]