Skip to content

Releases

Zakantine v4

Choose a tag to compare

@kanade333 kanade333 released this 10 Nov 00:18

⬇️ Download: Zakantine-v4-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 v4 is built on Fritchii v5.5, Frizti's fork of Lichii (formerly "Frizti v1–v3"), and keeps Zakantine's own changes on top.

First start (Ocarina of Time)

  • "Preparing shaders" runs once. It builds every shader the game uses, from the bundled recipe (recipes/, from Fritchii v5.5) and your own copy of the game. The recipe contains no game code.
    • On a Ryzen 9 9950X + RTX 5080 it prepared 120,436 pipelines in about 11 minutes (25 failed).
    • In the session that followed, pipelines the game needed for the first time were created from the prepared data in about 1 ms each (worst 1.27 ms), instead of being built on the GPU thread.
    • Let it finish once. A new GPU driver or a new graphics card prepares the shaders again.
  • Your shader cache is copied to the new cache version once (v52 → v54).
  • One setting changes once: Extended Dynamic State is set to EDS2, because the prepared shaders are recorded with it. You can change it afterwards.

Measured on our side

Automated runs in Kakariko Village at night (Ryzen 9 9950X, RTX 5080, Windows 11, Handheld), two rounds per build in alternating order:

v3.1 v4
Average FPS 42.8 / 44.2 57.3 / 54.7
Game-side frame time 24.8 / 22.4 ms 19.1 / 19.3 ms
Private memory commit, peak 10.4 / 10.2 GB 13.6 / 14.7 GB

That is about +29% FPS. Treat it as indicative, not as a controlled A/B:

  • the character did not stay in the same spot between runs;
  • v3.1 ran with FIFO vsync instead of Mailbox (a setting stored as "default" reads differently in the two versions).

The higher memory commit is a measured observation, not something we tracked down. The working set stayed stable, and the commit levelled off after about two minutes.

New from Fritchii

These numbers are from Frizti's own release notes, measured on a Ryzen 7 7800X3D + RTX 4080:

  • Frame pacer. Each frame stays on screen for the same time: 97–99% of frames are even, and long hitches dropped from 70–200 ms to 22–34 ms.
  • Shader preparation (above), built on zortos293/Lichii zortos293#895 and zortos293#896.
  • Busy scenes and crowds:
    • render target relocation, an image pool, an exact frame clock and cleanup of stale copies: about +3 fps each in Castle Town;
    • about 2.4 GB less video memory.
  • Evil's DMA snapshot fix. Most of the GPU thread's waits for the game's occlusion checks are skipped.
  • Semaphore waits are resolved without stopping the GPU threads.
  • GPU thread pinning (Fritchii's version, on by default; EDEN_NX2_PIN_THREADS=0 turns it off).
  • Neural-network passes on the GPU's matrix units (NVIDIA RTX, AMD RDNA3/4).
  • Fixes:
    • white flashes and water flicker;
    • overexposed and too-dark zones in Hyrule Field;
    • wrong geometry in the Kakariko graveyard;
    • disappearing Hyrule Field grass;
    • dialogue text showing scraps of other textures;
    • a rare channel deadlock;
    • and more (see Frizti's notes for Fritchii v4 to v5.5).
  • New interface: home screen, in-game controls at the top of the game, a performance overlay (View > Performance Overlay) and Help > Export Log.

Fritchii's official builds are compiled with clang, profile-guided optimization and ThinLTO. Zakantine v4 is compiled with MSVC.

Zakantine on top of Fritchii

  • MaxContinuousRange per-page memo (since v1, measured then at +21% FPS in Hyrule Castle Town).
  • Host-read visibility barrier before the CPU reads buffers the GPU wrote (since v3).
  • Your choices stay yours. Fritchii re-applies its tuned settings once per revision. In Zakantine that pass only sets the technical ones:
    • What it sets: GPU accuracy, fences, vsync, asynchronous presentation and shaders, shader caches, EDS2, dynamic vertex input.
    • What it leaves alone: console mode, memory size, video decoding, scaling filter, anti-aliasing, CPU accuracy and resolution.
  • Defaults: Handheld and CPU video decoding stay the defaults (Fritchii uses Docked and GPU).
  • Replaced by Fritchii's versions: our thread pinning and our pipeline eviction cap. They are the same ideas, and Fritchii's are more complete.
  • The apricot icon and the Zakantine name.
  • There is no auto-update in Zakantine: get new versions from this page.

Credits

  • Frizti: Fritchii, and the shader preparation recipe.
  • zortos293 and the Lichii contributors.
  • Evil: the DMA snapshot fix.
  • Dark: Dynamic FPS, built in.
  • The Eglantine and Eden projects, and the yuzu team.

Licensed under GPL-3.0. Source: https://github.com/kanade333/Zakantine

Zakantine v3.1

Choose a tag to compare

@kanade333 kanade333 released this 06 Nov 19:55

Zakantine v3.1

A bug-fix release on top of v3. The v2 and v3 changes are all included.

Fixed: white flashes in Ocarina of Time

On the mountain path after Hyrule Castle (and other bright areas), the screen flashed overexposed white.

Cause: with GPU accuracy Fast (the default) and the split GPU thread, the game's macros read occlusion query results from guest memory before the host GPU had written them. The game uses those values for its lighting, so stale values gave overexposed frames.

Fix: zortos293/Lichii #215 (by WeslieDE, built on zortos293#204 by Gavin Schiller). Before a macro DMA read of a region that still has pending query reports, the emulator queues an operation behind those report writes, submits the deferred work, and waits for it. Regions without pending reports do not wait.

Tested: Ocarina of Time on the mountain path, RTX 5080. The white flash is gone, and no other artifacts were seen.

The alternative fix, zortos293/Lichii zortos293#337 (keep fence-flagged reports pending), was also tried. It removed the flash, but caused heavy flickering on NVIDIA, so it is not included.

Install

  1. Extract the zip.
  2. Run vc_redist.x64.exe if needed.
  3. Launch zakantine.exe.

User data stays in %APPDATA%\eden. No games, keys, firmware or saves are included.

Credits

Frizti (Lichii), zortos293, WeslieDE, Gavin Schiller, Bruno Silvestre, the Eglantine and Eden projects, and the yuzu team. Licensed under GPL-3.0.

Zakantine v3

Choose a tag to compare

@kanade333 kanade333 released this 06 Nov 19:19

Zakantine v3

A fork of Lichii (Frizti), itself based on Eglantine and Eden. v3 adds stability and correctness fixes on top of v2. Every v2 performance gain is still included (see the v2 release notes).

What's new in v3

Stability and correctness

  • Lost-wake fix in the thread worker, ported from Lichii zortos293#290 by zortos293. A worker could miss a wake-up signal and stall until something else woke it.
  • Compute write ordering, SSBO split, and a memory barrier in WaitForIdle, ported from Lichii zortos293#295 by zortos293. GPU compute writes are now correctly ordered and made visible before later reads.
  • Host-read visibility barrier for buffer downloads, adapted from zortos293's work. Waiting for the GPU was not enough for the CPU to see its writes, so Vulkan now gets a MEMORY_WRITE → HOST_READ barrier before every host read of downloaded buffers (5 synchronous sites plus the async download path).
  • Atomic pipeline cache copy: the pipeline cache is copied to a .migrating file and then renamed into place, so a crash during the copy can no longer leave a half-written cache.

Performance and options

  • Thread pinning on any CPU with more than 4 cores. v2 only pinned on 12+ core CPUs; that limit is gone. The GPU front, GPU back, core timing and Vulkan worker threads each get their own physical core on the fastest cache cluster. To turn pinning off (for example on a small or heavily loaded CPU), set EDEN_NX2_PIN_THREADS=0.
  • Opt-in async discard, ported from Lichii zortos293#224 by Bruno Silvestre. It is off by default; set EDEN_NX2_ASYNC_DISCARD=1 to try it.

Measurements

No dedicated v2-vs-v3 FPS benchmark was run for this release, because v3 focuses on correctness. The measured v2 gains still apply, measured in Ocarina of Time, Hyrule Castle Town, on a Ryzen 9 9950X with an RTX 5080:

  • +5% vs pure Frizti v2 (44.6 → 46.9 FPS).
  • +21% from the per-page continuous-range memo.
  • +5.5% from thread pinning.
  • −49% stutters from the pipeline eviction cap.

Defaults

These defaults are unchanged from v2: GPU accuracy Fast, asynchronous presentation on, asynchronous shaders on, and GPU unswizzle on.

Install

  1. Extract the zip.
  2. Run vc_redist.x64.exe if needed.
  3. Launch zakantine.exe.

User data stays in %APPDATA%\eden, as in v2. No games, keys, firmware or saves are included: you must dump them from your own console.

Credits

Frizti (Lichii), zortos293, Bruno Silvestre, the Eglantine and Eden projects, and the yuzu team. Licensed under GPL-3.0.

Zakantine v2

Choose a tag to compare

@kanade333 kanade333 released this 06 Nov 07:22

⬇️ 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=0 turns the memo off, EDEN_NX2_RANGE_CHECK=1 verifies 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=0 turns it off, =1 forces 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_CAP sets the cap, EDEN_NX2_PIPELINE_EVICT_FRAMES restores 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_PROFILE zones (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.