Package Details: azahar 1:2126.2-1

Git Clone URL: https://aur.archlinux.org/azahar.git (read-only, click to copy)
Package Base: azahar
Description: An open-source 3DS emulator project based on Citra.
Upstream URL: https://github.com/azahar-emu/azahar
Licenses: GPL-2.0-or-later
Submitter: HurricanePootis
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 25
Popularity: 1.19
First Submitted: 2025-03-16 23:06 (UTC)
Last Updated: 2026-10-11 06:33 (UTC)

Pinned Comments

HurricanePootis commented on 2025-03-19 19:46 (UTC)

If anyone has any comments about the package, please let me know!

Latest Comments

1 2 3 4 Next › Last »

HurricanePootis commented on 2026-08-10 20:16 (UTC)

Since the AUR can't be pushed to, apply this diff to the PKGBUILD to update to 2126.0 for now:

diff --git a/PKGBUILD b/PKGBUILD
index 4bc4d97..c8782a3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
 # Maintainer: HurricanePootis <hurricanepootis@protonmail.com>
 pkgname=azahar
-pkgver=2125.1.3
+pkgver=2126.0
 pkgrel=1
 epoch=1
 pkgdesc="An open-source 3DS emulator project based on Citra."
@@ -13,7 +13,7 @@ makedepends=('cmake' 'ninja' 'vulkan-headers' 'rapidjson' 'doxygen' 'graphviz' '
         'catch2' 'libinih' 'ffmpeg4.4' 'qt6-tools' 'boost')
 source=("$url/releases/download/${pkgver}/$pkgname-unified-source-$pkgver.tar.xz")
 install=${pkgname}.install
-sha256sums=('e26502b03e17c8a261dcb4809d41825508b27073c2b40f91be83fe3594245de0')
+sha256sums=('c2764473fa465f88f3b8c90efd56b3aa0a6244919a49742eeb407fe42bd869a8')

 prepare() {
    cd "$srcdir/$pkgname-unified-source-$pkgver"
@@ -33,7 +33,7 @@ build() {
    -DCMAKE_SHARED_LINKER_FLAGS="$LDFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=None \
-   -DUSE_DISCORD_PRESENCE=ON \
+   -DENABLE_DISCORD_RPC=ON \
    -DUSE_SYSTEM_BOOST=ON \
    -DUSE_SYSTEM_CATCH2=ON \
    -DUSE_SYSTEM_CRYPTOPP=ON \

asyync1024 commented on 2026-06-29 15:01 (UTC)

Also @HurricanePootis, there are redundant 'cd "$srcdir"' calls, which is not required. At the start of every function, makepkg resets the current directory to "$srcdir", I have confirmed this behaviour by using pwd. Thanks.

asyync1024 commented on 2026-06-29 14:58 (UTC)

I can successfully reproduce the issue even with generic binaries. I have posted about this on the LLVM discussion threads: https://discourse.llvm.org/t/clang-produces-a-much-more-inefficient-binary-azahar-as-compared-to-gcc/91174

asyync1024 commented on 2026-06-27 15:56 (UTC) (edited on 2026-06-29 11:37 (UTC) by asyync1024)

I finally benchmarked a grand total of 10 binaries (compiling was a PAIN, 2h48m for 6 builds w/ gcc). I tested both compilers with O2, O3, GCC w/ different vectorization cost models (-fvect-cost-model=), though I excluded the unlimited preset as I think it shouldn't produce positive results. And ThinLTO vs FLTO for Clang.

Here are the raw results w/ perf stat: https://pastebin.com/GV8bKXcF

Interpretation is that Clang seems to produce FAR worse binaries than GCC (roughly 2x more cpu time consumed, and ~43% more instructions retired) And O3 seems produce better binaries for both compilers, As for ThinLTO vs FLTO, the latter produces better binaries.

Basically, the better binaries were: GCC: O3 dynamic (closely tied with O2 dynamic, but loses slightly), Clang: O3 FLTO.

Extra Info:

  • All binaries compiled with same flags otherwise stated in the data, though GCC used Mold and Clang LLD linkers, respectively (linkers don't affect runtime performance).
  • Both LLVM and GCC are 21.1.8 and GCC 16.1.1+r346, respectively.
  • Benchmarks were conducted with the emulator running idle at a scene where I got 25 FPS max, the frametimes were similar for all instances.
  • Benchmarks were conducted for a fixed 25 seconds time window.
  • Specs: Q9550 @ 3.33GHz, DDR2 800 MT/s Dual Channel, GT 740 (470xx), SATA 2 SSD.

Benchmarking script: https://pastebin.com/ianvMF4a

As for Clang being much worse, I attribute that to possibly being micro-architecture tuning differences? (I used -march=native on my Q9550, which has a max ISA of SSE4.1). Clang has the SandyBridge tuning model for my CPU, whereas GCC has a more specific, Core2 model. Though I hardly believe it should cause such large differences, usual gains over the generic CPU profile account for 1-5% max.

I plan to test this with generic CPU flags (-march=x86-64 -mtune=generic) tomorrow, though a smaller range of binaries (compiling is PAIN, remember?). I had also tested if it was a threading difference, though both seemed to have single major dominant threads with background threads, which I tested via eyeballing htop.

If I can't find anything myself, I think I will ask the Azahar developers and if they can't help either, then possibly LLVM forums and report this to LLVM upstream.

Phew, thanks for reading this long!

asyync1024 commented on 2026-06-27 06:07 (UTC)

@HurricanePootis

Makes sense! I had in fact checked a few months ago that upstream CI does use Clang.

Though I am going to benchmark GCC and Clang with perf in the next few days (I am intending to do it today) and if I found some differences, I will post it here and probably some other places as well.

Thank you for the response!

HurricanePootis commented on 2026-06-27 04:26 (UTC)

@assync1024

I usually use clang if upstream uses in their builds, it builds faster, or projects fails to compile with GCC. With Azahar, I used clang as that is what many switch/3ds emulators use(d)

asyync1024 commented on 2026-06-26 09:12 (UTC)

@HurricanePootis Yes, I remember that. And I proposed these changes as compared to the current state of the PKGBUILD, using GCC.

Though I am still curious to why you made the switch to GCC, as I said, I am guessing it was something like performance or compile times improved with GCC 16? Or is it just the thumb of rule that "Compile everything with the system compiler unless the build fails".

HurricanePootis commented on 2026-06-26 04:59 (UTC)

@asyync1024

I had options=(!lto) because in the past, I was using Clang + LLD with ThinLTO. I needed to enable ThinLTO without clang falling back to fat LTO.

asyync1024 commented on 2026-06-23 08:38 (UTC) (edited on 2026-06-23 09:00 (UTC) by asyync1024)

Also, -DENABLE_LTO=OFF is redundant, it should be removed completely, or it should be -DENABLE_LTO=ON. Enabling LTO twice (as in options=(lto)) is not problematic.

As seen in mold's CMakeLists.txt, LTO is enabled, and so is explicitly in the official Arch Linux package via CMake explicitly, without listing options=(!lto).

As seen in this line of Azahar's CMakeLists.txt, it enables LTO as well — the same case should apply.

Thanks!

asyync1024 commented on 2026-06-23 07:21 (UTC) (edited on 2026-06-23 08:49 (UTC) by asyync1024)

Build currently fails: https://pastebin.com/JQ4mbhyu

Fix is to add the following patch to prepare() (derived from azahar-git):

    sed -i '/^namespace/i #include <cstring>' src/audio_core/{cubeb_input,cubeb_sink}.cpp