Repository navigation
Zakantine v2
⬇️ Download: Zakantine-v2-Windows-x64.zip
Unzip it anywhere and run zakantine.exe (run vc_redist.x64.exe from the same folder first if Windows asks for the Visual C++ runtime). Your existing settings, keys, saves and games (%APPDATA%\eden) are used as they are. No games, keys or firmware are included: use only your own legally obtained copies.
Do not download "Source code (zip/tar.gz)" to play: GitHub adds those automatically and they contain no emulator.
Zakantine is a performance-focused fork of Frizti's Lichii (Nintendo Switch 2 emulator, based on Eglantine and Eden). v2 contains all of Frizti v2, plus the optimizations below, each one measured before it was kept.
Measured results
Tested with The Legend of Zelda: Ocarina of Time in Hyrule Castle Town (Ryzen 9 9950X, RTX 5080, Windows 11, Handheld mode). Every comparison is an automated A/B run: the same build loads the same save through the debug server's input injection, stands still for 90 s, and only one thing changes between runs (two rounds in alternating order where noted).
| Change | Result |
|---|---|
| Zakantine v2 vs Frizti v2 (same scene) | 44.6 → 46.9 FPS (+5%), 1 s minimum 37.6 → 38.3 FPS |
| MaxContinuousRange per-page memo (our code, before the Frizti v2 merge) | 24.9 → 30.2 FPS (+21%), 1 s minimum 21.9 → 26.8; page-table walks 17,961/s → 33/s; GPU back thread 20.9 → 17.1 µs per draw. Correctness checked against the original walk on 2,097,152 answers: 0 mismatches. |
| GPU thread pinning (our code) | +5.5% FPS (two rounds: 30.4 / 31.5 → 32.6 / 32.7); GPU back thread 16.7 → 15.9 µs per draw |
| Pipeline eviction capped at 6,000 (our code) | Same 10-minute route: pipelines rebuilt during play 931 → 304 (−67%), GPU thread time spent rebuilding 5.7 s → 2.7 s, stutters −49% |
| Merging Frizti v2 into our branch | 30.0 / 32.2 → 42.9 / 45.7 FPS (+43%), with more vegetation detail rendered |
What Zakantine changes
Performance (code)
- MaxContinuousRange cache and per-page memo. Native storage buffer bindings asked the GPU page table for the same contiguous ranges tens of thousands of times a second, walking up to 8 MiB of pages each time. Answers are now cached per address (4,096 entries), and a miss is answered from a per-page memo (big and small pages), so the walk only happens once per page until the page table changes.
EDEN_NX2_RANGE_PAGE_MEMO=0turns the memo off,EDEN_NX2_RANGE_CHECK=1verifies every answer against the walk. - GPU thread pinning (Windows). The GPU front and back threads, the core timing thread and the Vulkan worker each get a physical core of their own on the fastest CCD; the rest of the emulator stays off those cores. On by default from 12 physical cores up (
EDEN_NX2_PIN_THREADS=0turns it off,=1forces it). - Pipeline eviction by cap instead of age. Graphics pipelines unused for 9,000 frames used to be destroyed and rebuilt on the GPU thread when an area used them again. They are now kept up to 6,000 (~2.7 GB of driver memory) and only the least recently used above that are evicted.
EDEN_NX2_PIPELINE_CAPsets the cap,EDEN_NX2_PIPELINE_EVICT_FRAMESrestores the old rule.
Better defaults (fresh installs)
Measured settings are now the defaults; existing configurations keep their values.
- GPU Mode: Fast — "Accurate" disables the split GPU thread (25.8 → 28.2 FPS from this alone, and RAM growth 856 → 150 MB/min in heavy areas).
- Asynchronous shader compilation: on — +28% FPS where new content builds pipelines.
- Asynchronous presentation: on — the GPU thread no longer waits for the Vulkan worker every frame.
- GPU texture unswizzling: on.
Tools
- Finer
EDEN_NX2_GPU_PROFILEzones (storage bindings, texture handle reads, MaxContinuousRange misses and walks). - Automated benchmark scripts (PresentMon and debug-server based A/B runs) used for every number above.
Tested and rejected
Measured and left off because they did not help: preloading every cached pipeline at boot, disabling reactive flushing (−16% FPS), EDEN_NX2_ACQUIRE_PRECHECK=2 and EDEN_NX2_LIST_WAIT_SKIP=1 (the waits moved elsewhere; the latter also read stale command lists), and a GetMemoryLayoutSize cache.
Notes
- First launch is slower (~20 s) because the NVIDIA driver keeps its shader cache per executable name and rebuilds it once for
zakantine.exe. Later launches start as before. - GPU Mode Fast and asynchronous shaders can show small visual glitches (objects popping in the first time, some flicker). Switch them back in Emulation → Configure if a game needs it.
- Known issue from Frizti v2: after the Kokiri Sword boulder area, the path to the Deku Tree can become heavily overexposed.
- Numbers come from one PC and one scene; your gains will depend on your hardware.
Credits
Built on the work of Frizti (Lichii fork, v2), zortos293 and contributors (Lichii), Eglantine and Eden, and Dark (Dynamic FPS patch, bundled with his permission in Frizti v2). Licensed under GPL-3.0: source code at https://github.com/kanade333/Zakantine.