github Eglantine-Community/Eglantine build-77
Eglantine nx2 build 77 (1051d39)

pre-release23 days ago

What this build fixes

Switch 2 video memory: Mario Kart World no longer runs the GPU out of VRAM

  • The Switch 2 texture collector's thresholds were computed from the sum of every heap budget, but on AMD the host-visible device-local heap is the same VRAM, so the critical threshold ended up above the real budget and the collector never ran. Mario Kart World then filled the GPU after a few minutes — on 8 GB cards and on 16 GB cards with uncompressed ASTC — leaving textures created without memory (garbage) and crashing. Thresholds now follow the main device-local heap's budget, are re-read every 30 frames, and unbacked images are counted at the memory they really have instead of their full size.
  • Switch 2 titles on a GPU whose budget is under 12 GiB now re-compress ASTC to BC3 for the session when recompression is set to Uncompressed (uncompressed ASTC needs a 12 GiB budget). EDEN_NX2_KEEP_ASTC=1 opts out; EDEN_NX2_VRAM_LIMIT_MIB=<n> simulates a smaller GPU for testing.
  • That BC3 fallback is now a settings-level override, cleared whenever a program loads, instead of writing the per-game astc_recompression value — it no longer changes your configuration. Heap accounting was unified behind AllocatedUsage() (driver usage minus the space in VMA blocks no allocation uses), and an unparsable EDEN_NX2_VRAM_LIMIT_MIB is now warned about and ignored instead of being read as zero.

Deadlock fix when backing Switch 2 GPU-only memory

Backing a sparse GPU region allocated kernel pages and mapped them into the alias code region while holding the service's region mutex. Mapping can wait on the guest page-table lock, so a guest thread holding that lock could stall behind a host mutex the service thread was itself waiting for — a deadlock between the GPU thread and the guest thread. Allocation and mapping now happen outside the lock (MappedBacking carries the mapping back to the caller), sparse blocks get a BlockPending state so a thread that needs a block another thread is backing waits on a condition variable instead of racing it, and a block whose region is destroyed mid-allocation is unmapped and freed immediately.


Automatic build of nx2 at 1051d39.

Windows: extract the zip and run eglantine.exe, or eden-cli.exe from a terminal.
Linux: make the AppImage executable (chmod +x) and run it; it bundles its libraries and needs glibc 2.39 or newer (Ubuntu 24.04, Fedora 40, Debian 13, Arch).
The -pgo builds are the same programs compiled with profile-guided optimization (clang plus Eden's profile); prefer them when your CPU supports it. The Windows PGO build is a MinGW build, so it carries its own DLLs and needs no Visual C++ redistributable.

Don't miss a new Eglantine release

NewReleases is sending notifications on new releases.