Skip to content

Eglantine nx2 build 174 (f500990)

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Nov 07:29
f500990

What's new in this build

This is build 174 of nx2 (f500990): three changes on top of build 171. Mario Kart World's 1.8.0 NSP boots, Pokopia stops splitting every frame on tiled GPUs, and Coffee Lake-era Intel CPUs no longer crash at launch.

Nothing needs configuring: all three are on by default and none has a switch.

Builds 172 and 173 were CI runs cancelled when a newer commit arrived, so they were never published; this build carries all three changes.

Mario Kart World: the 1.8.0 NSP dump boots

A loose 1.0 dump of Mario Kart World booted, but the NSP of 1.8.0 crashed during startup. The Switch 2 check only knew about loose ExeFS dumps and .nup containers, so an NSP launch was set up with the original Switch's memory layout and clock and the game died early.

NSP and NSZ containers are now read the same way as the others: the program NCA's main.npdm is read before kernel initialisation, and a Switch 2 program gets the Switch 2 memory layout. Mario Kart World 1.8.0 gets past startup.

Pokopia: fewer render pass splits on tiled GPUs

Every buffer upload used to end the current render pass. On a tiled GPU — Apple Silicon, most Android GPUs, some Intel — each of those splits writes the attachments out and reads them back, and Pokopia's first gameplay scene had about 50 of them a frame.

Mapped uploads already carry their own barrier, or run in the upload command buffer, which ends with one, so the extra barrier only cost the split. On an M3 MacBook Air (MoltenVK, 1x docked) the first gameplay scene goes from about 35 ms to 29.5 ms of GPU time a frame, and from 28.5 to 32 fps. OpenGL uploads immediately and keep the barrier.

A lost GPU now says so in the log

When the Vulkan device is lost, the wait in MasterSemaphore::Wait threw VK_ERROR_DEVICE_LOST on the fence thread or the GPU thread, where nothing caught it: the process aborted with no line in the log at all, because ReportLoss is only reached from submit and present. A Pokopia crash on macOS left the log ending a second before the abort, with no hint of the cause.

The failure is now logged as critical before the process ends. On macOS, MoltenVK's own reason — a GPU hang or a page fault — goes to stderr.

Coffee Lake and other Intel CPUs that report no crystal frequency

Guest clock reads were switched to the measured RDTSC clock on any CPU that reported no TSC frequency. That was meant for AMD, which has no CPUID leaf 0x15 at all; it also caught Intel CPUs that have the leaf but report a crystal frequency of 0, such as the i5-9400F. With the same fallback in another Eden-based build, an i5-9400F crashed about 3.5 s after launch.

The fallback now applies only to CPUs without leaf 0x15. Those Intel CPUs keep the OS clock, as they did before the fallback existed, and AMD CPUs are unchanged — a Ryzen 7 9800X3D reports max leaf 0xd and still gets the measured clock.

Coming from build 171?

Nothing is missing, and the Android APKs introduced in build 171 are still here.

Thanks to @Sssnowyyy (Pokopia and the GPU wait logging), @Duck912 (the TSC measurement) and @cira0100 (NSP detection) for the fixes (#361, #373, #349).

How it works, for the technically curious

  • buffer_cache.h: any_buffer_uploaded is only set when USE_MEMORY_MAPS_FOR_UPLOADS is false. Vulkan uploads are mapped and barrier themselves — either CopyBuffer with its barrier set or the upload command buffer — so the barrier recorded before the next draw or dispatch only ended the render pass.
  • vk_master_semaphore.cpp: the wait loop is wrapped in a try that logs Waiting for GPU tick {} failed: {} and rethrows, so the abort keeps its reason.
  • core.cpp: IsSwitch2Program now takes the program id and index, opens the container as NSP{file, program_id, program_index}, takes the program NCA's ExeFS — or the extracted ExeFS directly — and loads main.npdm into ProgramMetadata before the kernel memory layout and clock are chosen.
  • cpu_features.cpp: the measured-TSC fallback now requires max_std_fn < 0x15.

Automatic build of nx2 at f500990.

Linux

Linux packages come as an AppImage (self-contained, needs glibc 2.39 or newer: Ubuntu 24.04, Fedora 40, Debian 13, Arch) and a tar.gz (uses your system libraries, so Qt 6 and the usual libraries must be installed).

Build Type Standard PGO (Recommended) Notes
amd64 AppImage · tar.gz AppImage · tar.gz Make the AppImage executable (chmod +x) and run it
ARM (aarch64) AppImage · tar.gz AppImage · tar.gz

Windows

Windows packages are in-place zip files: extract and run eglantine.exe, or eden-cli.exe from a terminal.

Build Type Standard PGO (Recommended) Notes
amd64 / x86_64 (MSVC) MSVC zip Use if you run into graphical issues on other builds
amd64 / x86_64 (MinGW) PGO zip Built with MinGW clang; bundles its own DLLs, no Visual C++ redistributable needed

macOS

Build Type Standard PGO (Recommended) Notes
arm64 (Apple Silicon) zip macOS 15 or newer. Not notarized: right-click and choose Open the first time, or run xattr -dr com.apple.quarantine eglantine.app. eden-cli is inside the app, in Contents/MacOS

The PGO builds are the same programs compiled with profile-guided optimization (clang plus Eden's profile); prefer them when your CPU supports it.

Android

Build Type APK Notes
arm64 APK Android 13 or newer
arm64 (AnTuTu package) APK Installed as com.antutu.ABenchMark, which some GPU drivers run with higher clocks. Cannot be installed alongside AnTuTu itself