Abazerin/anka-switch-2-emulator
소개
Anka: Windows-Based Switch 2 Emulation Engine with Modular Runtime Architecture
게임 및 에뮬레이션What you can do
- Preset-driven configuration. Four presets — Recommended, Recommended + Reactive Flushing, Safe, and Custom — bundle the tuned switch combinations into a single selection. Presets are read once per session and applied at first title launch; mid-session changes prompt a restart flow that preserves pending graphics settings until they can take effect.
- Frame generation control. An Off / 2x / Dynamic selector writes directly to the Graphics tab's frame generation settings (FSR3 type, multiplier or target frame rate). Dynamic mode targets 120 fps and steps between 1x and 4x only while the display can present the extra frames and the game's native frame rate holds within an 8% tolerance.
- Portable user profile. An empty user folder beside the executable keeps settings (user\config\qt-config.ini), keys, firmware, saves (user\nand), and logs self-contained, isolated from any other emulator's data directory. Migration from a prior installation is a folder copy.
- Menu-free launch path. anka-cli.exe provides the full emulation pipeline without a GUI. Batch launchers map to the same presets as the graphical tab — recommended, experimental (Reactive Flushing enabled), and safe (GPU shortcuts disabled for troubleshooting) — and initialize the CLI settings file from the GUI configuration on first run.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAnka is a Windows-native Nintendo Switch 2 emulator engineered around measured rather than broad compatibility claims. Its dual-core architecture pairs a primary execution core with a specialized secondary core for targeted titles, while tunable presets expose GPU accuracy modes, reactive flushing, and FSR3-based frame generation to suit different hardware profiles. A portable, self-contained runtime keeps keys, firmware, saves, and configuration within a single user folder, and a menu-free command-line companion supports scripted or launcher-driven sessions with identical settings. work—including split GPU thread stages, per-draw shortcuts, profile-guided optimization, and host-side indirect draw handling—is documented with reproducible methodology.
🔧 Requirements
- PowerShell 5.1+ (pre-installed on Windows 10 and 11)
- Windows 10 / 11 (x64)
- Internet connection — required to fetch the script
- Administrator — not required
Features
Dual-core execution pipeline. Anka ships with two emulator cores: the primary anka.exe / anka-cli.exe path and a secondary core (core2\anka-core2-cli.exe), built from the Lichii nx2 branch with Anka's modifications. Title-id detection routes compatible software to the secondary core automatically, sharing the same user folder and settings.
Preset-driven configuration. Four presets — Recommended, Recommended + Reactive Flushing, Safe, and Custom — bundle the tuned switch combinations into a single selection. Presets are read once per session and applied at first title launch; mid-session changes prompt a restart flow that preserves pending graphics settings until they can take effect.
Frame generation control. An Off / 2x / Dynamic selector writes directly to the Graphics tab's frame generation settings (FSR3 type, multiplier or target frame rate). Dynamic mode targets 120 fps and steps between 1x and 4x only while the display can present the extra frames and the game's native frame rate holds within an 8% tolerance.
Portable user profile. An empty
userfolder beside the executable keeps settings (user\config\qt-config.ini), keys, firmware, saves (user\nand), and logs self-contained, isolated from any other emulator's data directory. Migration from a prior installation is a folder copy.Menu-free launch path.
anka-cli.exeprovides the full emulation pipeline without a GUI. Batch launchers map to the same presets as the graphical tab — recommended, experimental (Reactive Flushing enabled), and safe (GPU shortcuts disabled for troubleshooting) — and initialize the CLI settings file from the GUI configuration on first run.Measured optimization stack. Split GPU thread stages, per-draw shortcuts, a macro JIT filter, profile-guided optimization, and host-GPU indirect draws for terrain each contribute independently verifiable gains, documented with per-step measurements and methodology.
Reactive Flushing toggle. An optional graphics path that improves rendering fidelity in specific scenes, selectable through the experimental preset or the Advanced graphics tab, with barrier feedback loops enabled automatically when required.
GPU Mode selection. Fast (Low) accuracy is the default, matching current upstream behavior; per-title or global Accurate (High) overrides are available for software that shows image errors under the faster path.
Environment-variable precedence. Switches set outside the application — via environment, custom batch files, or
nx2_switches.txt— always take precedence, with the corresponding in-app control greyed out to reflect the external override.Per-title property overrides. Graphics settings and GPU Mode can be scoped to individual titles through their Properties dialog, allowing a global baseline while accommodating software with divergent requirements.
Shader cache preparation. First launch of a title on the secondary core after shader caching — and after any graphics driver update — triggers a recompilation pass for the current driver; subsequent launches reuse the prepared cache.
How it works
Anka runs as a portable, self-contained emulation environment. On launch, anka.exe loads its Qt-based interface and initializes the emulation core from the bundled runtime libraries, reading configuration, keys, firmware, and saves from the user folder placed beside the executable. This portable layout keeps all state local to the installation and isolated from other emulators on the system.
The emulation pipeline is organized around a split GPU thread architecture. Command processing, shader compilation, and presentation are staged across separate worker threads so that CPU-side draw submission does not stall the renderer. Per-draw shortcuts reduce redundant state validation in the command stream, while a macro JIT filter collapses frequently repeated instruction sequences into precompiled blocks before execution. Profile-guided optimization shapes the hot paths of the recompiler based on recorded execution profiles, and indirect draws for terrain geometry are dispatched directly on the host GPU rather than being reconstructed on the CPU.
Graphics behavior is governed by presets exposed in the configuration interface. The Recommended preset enables the default set of GPU shortcuts with Reactive Flushing disabled, while the Safe preset disables those shortcuts and clears optional settings that alter play, useful when diagnosing image or problems in titles other than the one used for measurement. GPU Mode defaults to the Fast accuracy tier, and can be raised per game or globally when a title shows rendering errors. Frame generation is available as a separate control, offering fixed 2x output or a dynamic mode that targets a higher frame rate and steps its multiplier only while the display can present the additional frames and the game's own frame rate remains stable.
A second emulation core is bundled for one specific title. When anka.exe or anka-cli.exe recognizes that title's identifier, it launches core2\anka-core2-cli.exe against the same user folder, sharing keys, firmware, and saves. Shader caches for that core are prepared for the installed graphics driver on first use and after driver updates, with subsequent starts benefiting from the prepared cache.
For scripted or menu-less operation, anka-cli.exe provides the same core without the interface. Launcher batch files select configuration profiles by setting environment switches before invocation; on first run, a launcher seeds the command-line settings file from the interface's configuration so controller setup carries over without overwriting an existing file. Settings are read once per session and applied at the first game start; changing them mid-session prompts a restart, and any switch set externally through the environment or a configuration file takes precedence over the in-program control.
Compatibility
Anka targets Windows 10 and 11 on 64-bit x86-64 systems, and requires a GPU with a current Vulkan driver. The release package is self-contained: the Qt 6.8.3 libraries and the Visual C++ runtime ship alongside the executables, so no separate framework installation is needed to run the emulator.
Game support is handled through title recognition and per-title configuration. Anka's primary core covers the general library, while a second core, bundled as anka-core2-cli.exe, is engaged automatically for titles that require its specific rendering path; the first launch of such a title after shader caching or a graphics driver update performs a shader preparation pass, and subsequent starts are faster. Each title can carry its own properties, including a per-game GPU Mode override, so a setting that resolves image errors in one title does not affect the rest of the library.
Three compatibility presets frame the supported configuration space. The recommended preset enables the full set of Anka's rendering optimizations and represents the configuration validated during work. The reactive preset adds Reactive Flushing together with barrier feedback loops, trading speed in some scenes for corrected output in others. The safe preset disables the default GPU shortcuts and optional visual settings for troubleshooting and for titles outside the measured set, while retaining Anka's built-in fixes. Frame generation is available independently of the presets, with fixed 2x and dynamic modes; because it depends on headroom between the game's frame rate and the display's refresh rate, its benefit is conditional on the display in use.
Compatibility statements in this project are scoped deliberately: figures were gathered from a single measured title on a single hardware configuration, and the general improvements apply across the library without a claim of validated compatibility for every title, CPU, or GPU vendor. Users encountering image or speed anomalies in an unmeasured title are directed to try the safe preset and report the result with the title's name, which feeds the per-game preset work on the roadmap.
Save data, keys, firmware, and configuration remain in a portable user folder beside the executable, independent of any other emulator's data locations, and a user folder from a prior compatible build can be carried over by copying it into place. Compatibility with existing user data is preserved across updates within the same major line.
Technical overview
Anka is a native Windows application built around a Vulkan rendering backend, a multi-threaded CPU translation layer, and a modular emulator core design. The architecture separates the graphical front end from the execution core, allowing the menu-driven anka.exe and the headless anka-cli.exe to share the same underlying engine and configuration state.
At the graphics layer, Anka targets a current Vulkan driver and distributes draw submission across dedicated GPU thread stages, which reduces serialization between command recording and presentation. Per-draw shortcut paths bypass redundant state validation for common rendering patterns, while indirect terrain draws are dispatched on the host GPU to keep geometry-heavy scenes off the critical CPU path. A macro JIT filter compiles frequently executed instruction sequences ahead of use, and profile-guided optimization shapes the generated code around observed workloads. GPU accuracy defaults to the Fast tier to prioritize throughput; an Accurate tier is available per game or globally when a title demands stricter emulation of the hardware pipeline.
The CPU side translates guest instructions through a tiered execution model, combining an interpreter for cold paths with a recompiler for hot code. A dynamic frame rate mechanism adjusts pacing in response to scene complexity, and an optional frame generation stage built on FSR3 can synthesize intermediate frames either at a fixed multiplier or against a target refresh rate with automatic step adjustment. Reactive Flushing, an experimental graphics option, alters barrier feedback behavior and requires supporting synchronization settings.
Anka ships with a second, independently built core for select titles, selected automatically by title identifier and operating against the same portable user directory. Shader caches are prepared per graphics driver and rebuilt after driver updates, so first launches following such changes incur additional compilation time. Configuration is read once per session and applied at game start; settings that cannot change mid-session prompt a restart workflow rather than being applied silently. The portable layout keeps configuration, keys, firmware, saves, and logs inside a single user folder adjacent to the executable, isolated from other emulator installations.
FAQ
Is Anka available at no cost? Yes. Anka is distributed as an openly accessible project: the full source is published under the GPL-3.0-or-later, and release archives are provided at no charge. There is no paid tier, subscription, or account requirement.
Which games are supported? Compatibility work has concentrated on Donkey Kong Bananza, the title used for all published measurements. The general optimizations apply to every title, but other games, CPUs, and AMD or Intel GPUs have not been validated, so no compatibility claim is made beyond that single title. The Legend of Zelda: Ocarina of Time (title id 0400486024DEC000) is handled by the bundled second core automatically.
Do I need to supply keys and firmware? Yes. Anka ships no keys or firmware. You provide your own, placed in the portable user folder, and you should use only material you are legally entitled to.
What is the difference between anka.exe and anka-cli.exe? anka.exe is the menu-driven program. anka-cli.exe is the same emulation code without menus, intended for the batch launchers and for scripted or repeatable runs. Both share the same user folder and settings.
Which preset should I start with? Begin with Recommended. It enables the eight tuned settings and leaves Reactive Flushing off, matching the configuration used for the published figures. Switch to Safe when a title shows image or speed problems, and use Recommended + Reactive Flushing only when you specifically need the barrier feedback behavior it enables.
Why does GPU Mode default to Fast rather than Accurate? Fast was the setting used for all measurements and matches the behavior of recent upstream versions. If a specific game shows rendering errors, raise GPU Mode to Accurate either per game through its Properties or globally in Graphics > Advanced.
Can settings be changed while a game is running? The six global settings and the two Bananza-only settings are read once per session, at the first game launched. Graphics-level options such as Reactive Flushing and frame generation cannot change mid-session; Anka holds the change and applies it when you select Restart Now, or when the game stops if you chose Later. Any switch you set externally through the environment, your own batch file, or nx2_switches.txt takes precedence, and its control is disabled in the interface.
How does frame generation behave? With Off, no frames are generated. With 2x, FSR3 inserts one generated frame per real frame, which holds a 60 Hz display at 30 fps. With Dynamic, FSR3 targets 120 fps and is capped at the display refresh rate when known, stepping between 1x and 4x only while the display can present the extra frames and the game's own frame rate remains stable; a step that reduces the game's frame rate by more than 8% is reverted. Generated frames require a display faster than the game's frame rate, so on a 60 Hz panel they help only below 30 fps.
Why does the second core take longer on its first launch? When a game first runs on the second core after its shaders were cached, those shaders are prepared again for your graphics driver. This also occurs after a driver update. Subsequent launches are faster.
Where are saves and configuration stored? In portable mode, beside the executable: settings in user\config\qt-config.ini, keys, firmware, saves under user\nand, and logs under user\log. Nothing is written to the system application data directory, apart from an optional nx2_switches.txt that anka.exe will read if present.
How do I migrate from PokeDinner-Eglantine 2.0.0? Copy your existing user folder next to anka.exe. Keys, firmware, saves, game list, and controller mapping carry over, and the original installation keeps its own copy. Do not unpack Anka into an existing 2.0.0 directory, because the bundled Qt libraries would replace that installation's own.
How do I remove Anka? Delete the Anka folder. Move your games and the user folder out first if you want to retain keys, firmware, and saves.
Is Anka affiliated with Nintendo or the upstream projects? No. Anka is an independent project and is not an official release of Nintendo, Eden, Eglantine, yuzu, or Sudachi. Report problems through this project's issue tracker rather than to those projects. Nintendo Switch and Donkey Kong Bananza are trademarks of Nintendo; use Anka only with games you own.
License
Anka is distributed under the GNU General Public License v3.0 or later, consistent with the licensing of its upstream lineage (Eden, Eglantine). Every published build ships with its complete corresponding source alongside the binaries: the emulator source, the second core's source, the third-party libraries built from source, and the sources and build scripts for the prebuilt libraries (FFmpeg, OpenSSL, SDL3, sirit). anka.exe links Qt 6.8.3 dynamically under LGPL-3.0 (Qt Charts under GPL-3.0); the Qt DLLs bundled in the release package may be replaced with your own build of Qt 6.8.3. Third-party notices are provided in the release packages and in the LICENSES directory.
In practical terms, the license grants you the right to run, study, modify, and redistribute Anka and its source, provided derivative works remain under the same terms. If you redistribute a modified build, you must make the corresponding source available under GPL-3.0-or-later and preserve the copyright and attribution notices of Anka and its upstream projects. The license imposes no restriction on the games you run; it governs the emulator's code only.
Anka is an independent project and is not an official release of Eden, Eglantine, yuzu, or Sudachi. Copyrights and credits for those projects are retained throughout the source tree.
관련 프로젝트 살펴보기
불러오는 중…

