Skip to content

Eglantine nx2 build 177 (46967a1)

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 03 Nov 08:49
46967a1

What's new in this build

This is build 177 of nx2 (46967a1): three changes on top of build 175 — an Arch Linux package, a contributing guide that points at this repository, and less per-draw work on the GPU thread in crowded scenes.

Nothing needs configuring: the performance change has no switch, and the Arch package is opt-in.

Build 176 was a CI run cancelled when a newer commit arrived and was never published; this build carries all three changes.

Arch Linux: an eglantine-git package

dist/packaging/arch/eglantine-git/ now holds a PKGBUILD that builds Eglantine from the nx2 branch and installs it as eglantine-git, with both the GUI and eden-cli. It links the system's Qt 6, SDL3 and FFmpeg instead of bundled copies, uses the project's own install rules, disables the built-in updater because the package manager owns updates, and lists qt6-wayland as an optional dependency for native Wayland.

It is in this repository, not in the AUR. It has not been built or run end to end on Arch yet — bash -n PKGBUILD and git diff --check pass, namcap has not been run — so treat it as something to test and report back on rather than a finished package.

Crowded scenes: less per-draw work on the GPU thread

In a Fire Emblem: Fortune's Weave city scene — about 2,100 draws a frame — two pieces of per-draw bookkeeping were a measurable share of the GPUBack thread:

  • The texture cache's "invalid sampler index" and "invalid image view index" messages fire for unused binding slots on every draw. They were LOG_DEBUG, which is filtered from the console but still costs a call and argument packing per message: 3.1% of the thread's samples. They are LOG_TRACE now, which release builds compile out.
  • DescriptorTable::Read reads one 32-byte TIC/TSC entry per texture and sampler of every draw through the generic page walk: 5.0% of the thread's samples. An entry that sits within one page is contiguous in host memory, so it is now one page lookup and a memcpy. Entries that cross a page, and pages with no host memory, still take the block read and still read as zero.

The same change in another Eden-based build cut those reads from 6.4% to 0.4% of its GPU thread. This is CPU-side work, so expect it in frame time in draw-heavy scenes rather than in GPU utilisation.

The contributing guide points here now

CONTRIBUTING.md and the pull request template still sent people to Eden's Forgejo and its account-registration instructions. They now describe the flow that applies here: fork Djihads80/Eglantine, branch from nx2, follow the AI and coding policies in docs/policies/, and open a pull request on this repository. The donation links and the Forgejo/Codeberg/email submission routes are gone, and the Discord invite and issue tracker are this project's.

Coming from build 175?

Nothing is missing.

Thanks to @FranzQDH (the Arch package, #323), @Mcm190 (the contributing guide, #382) and @Duck912 (the per-draw work, #374).

How it works, for the technically curious

  • PKGBUILD: source=("eglantine::git+https://github.com/Djihads80/Eglantine.git#branch=nx2"), pkgver() from git rev-list --count and git rev-parse --short=7; CMake with ENABLE_UPDATE_CHECKER=OFF, YUZU_CMD=ON and YUZU_USE_BUNDLED_{QT,SDL3,FFMPEG}=OFF; the desktop entry's icon name is satisfied by installing the SVG as dev.eglantine.eglantine.svg.
  • descriptor_table.h: one_page is (gpu_addr & Core::Memory::YUZU_PAGEMASK) + sizeof(T) <= Core::Memory::YUZU_PAGESIZE, and gpu_memory.GetPointer(gpu_addr) supplies the host pointer for the memcpy; everything else falls back to ReadBlockUnsafe.
  • texture_cache.h: the two invalid-index messages are LOG_TRACE(HW_GPU, ...).

Automatic build of nx2 at 46967a1.

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.