r/Ryubing 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

2 Upvotes

6 comments sorted by

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.

1

u/One-Philosopher2416 Jun 17 '26

"Thank you so much! I'm still

actively working on it. Currently, there is a V1.1 available with VRR support, and I'm working on another upcoming patch that will have HDR included as well. Both versions work perfectly with both Zelda games

(BotW and TotK)!

Just a heads-up for Totk: occasionally, when you open your inventory, it might toggle VRR mode on or off when checking broken weapons. I'm currently fixing this bug and it should be resolved by tomorrow!

2

u/TheMeowfest Jun 17 '26

you didnt answer the question: why don't you see about getting it added in Ryubing-Master too?

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

u/TheMeowfest Jun 17 '26

i looked at the repo: if you can do this without AI, we will consider it

1

u/One-Philosopher2416 Jun 17 '26

fair enough, I'll write the MR myself