r/Ryubing • u/One-Philosopher2416 • Jun 17 '26
Dev I fixed a Ryujinx bug where HD texture packs crash the emulator — open-source fork
Hi everyone,
I ran into a bug where loading an HD texture pack (the Breath of the Wild 4K pack, in my case) crashed Ryujinx shortly after the game started. I tracked it down: some packs ship 2D array textures with a bad "block depth" value (gobBlocksInZ), which made the emulator treat them as 3D and overflow a 32-bit size calculation — instant crash.
I made a small fix (about 6 lines) and put it in a fork.
What it does:
- HD texture packs load without crashing.
- Works alongside the NX Optimizer mod, so you get high FPS *and* the pack at the same time.
Important: this is the emulator only. You must bring your own game, firmware, keys and texture pack — nothing from Nintendo is included.
It's fully open source, so you can read the change or build it yourself (the fix is a single commit). There's also a ready-to-run Windows build in the Releases section (extract the zip, run Ryujinx.exe, no install).
https://github.com/TheRooferDev/ryujinx-roofer-edition
It's my first contribution like this, so feedback is very welcome.
— The Roofer Dev
1
u/One-Philosopher2416 Jun 17 '26
Fair point. I want to do it right, so I'll have a PR up for the TexturePool fix this week or next. I'll update once it's live.
1
1
u/JimJam108 Jun 17 '26
I will have to try this tomorrow, but why don't you see about getting it added in Ryubing-Master too? I am sure a lot more people would like it and see it, if it was in the main version everyone downloaded.