sostenesfreitas/ocarina-recomp
About
Ocarina of Time running natively on Windows, no emulator. Built on your PC from your own copy. No game files included.
Games & EmulationMeasured star growth
- in 24h
- +1
- in 7 days
- +6
- in 15 days
- +27
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
OriginalOcarina Recomp
Ocarina of Time running natively on Windows, with no emulator.
The game's code is translated to C and compiled into a Windows program. The Switch 2 graphics are converted to Vulkan. All of this happens on your PC, from your own copy of the game.
[!NOTE] Change of direction (November 2026). To play, we now recommend Hookshot: it also builds the game on your PC from your own copy.
We compared both on the same PC (RTX 5090) with the same saves:
- both hold 60 fps, and Hookshot renders at a higher resolution for the same cost;
- Hookshot draws vegetation that is missing or wrong here (the hedges in the Temple of Time courtyard, for example).
From now on our fixes go to Hookshot as contributions. This repository stays as a Portuguese-language support point: questions, reports and guides.
Your saves still work: they are the same files. They are in the
perfil\savefolder of the install. Hookshot's save guide (docs/saves.md) shows how to copy them.No
.nupany more? Hookshot Builder also takes a folder that holdsromfsandexefs(its "romfs and exefs folders" option):jogar\hookshot-preparar-jogo.batmakes it from this install's game files, in about 27 GB of free space. Once Hookshot is built,jogar\hookshot-copiar-save.batcopies your save into it; if Hookshot is not in its default folder, drop its game folder on that file. An install made before this change does not have these files: copytools/oot/hookshot.py,jogar/hookshot-preparar-jogo.batandjogar/hookshot-copiar-save.batfrom this repository into the same folders of the install.
[!IMPORTANT] This repository does not contain the game, keys or an executable, and it does not explain how to get them. You need your own copy. Everything the installation creates (
ocarina.exe, the generated code, the shader cache and the saves) comes from your game: do not share it.
Project status
Experimental. It has only been tested on one PC (Ryzen 9 9950X3D, RTX 5090), in the area at the start of the game.
| What | Status |
|---|---|
| Opening and new game, up to the Great Deku Tree | ✅ Works |
| Kokiri village: trees, plants, houses, lighting | ✅ Works |
| Sound, controller, saves and videos | ✅ Works |
| Performance on an RTX 5090 | ✅ About 59 fps standing still, 51 to 55 fps walking |
| Stutter when entering new areas | ⚠️ Still happens, mostly the first time |
| Playing the ocarina | ❓ Fix applied, not yet tested in game |
| Hyrule Field and the rest of the game | ❓ Not tested yet |
| AMD and Intel cards | ❓ Never tested |
How to build
The game does not come ready-made: it is built on your PC from your copy. Choose one of these three ways.
1. With the ZIP installer, the easiest: it installs nothing in Windows and asks for no administrator.
- Download
Ocarina-Setup-...-windows.zipfrom the releases page. - Unpack the whole ZIP to a folder and open the
Instalar-Ocarina.exeinside it. - The executable has no digital signature, so Windows may warn you. Click More info and then Run anyway.
- In the window, choose your game's
.nup(or a folder withexefsandromfs) and click Install. - At the end, click Play, or use the Ocarina Recomp shortcut on your desktop.
To uninstall, delete the install folder. Want to check first? The executable only opens the script instalador\Instalar-Ocarina.ps1, beside it in the ZIP and readable in any editor. The executable's code is a few lines long. Some antivirus programs complain about new unsigned programs and PowerShell scripts: a false alarm is possible, and all the code is here for anyone to check. The releases page lists the file's SHA-256.
[!NOTE] The "Prepare the game files" step is slow, especially on a hard drive: while the clock in the window moves, it is working.
2. With the scripts, which you can read before running (first install the tools from step 1 of the guide):
git clone https://github.com/sostenesfreitas/ocarina-recomp C:\OcarinaRecomp
cd C:\OcarinaRecomp
powershell -ExecutionPolicy Bypass -File .\verificar.ps1 -Jogo "C:\path\your-game.nup"
powershell -ExecutionPolicy Bypass -File .\compilar.ps1 -Simular -Jogo "C:\path\your-game.nup"
powershell -ExecutionPolicy Bypass -File .\compilar.ps1 -Jogo "C:\path\your-game.nup"
verificar.ps1only looks and says what is missing. It changes nothing.compilar.ps1 -Simularshows every command and runs none of them.compilar.ps1runs those commands, shows each one and asks before each step. If it stops, run it again: it continues from where it stopped.
-ExecutionPolicy Bypass applies only to that command and does not change your Windows settings.
3. Fully by hand: follow the step-by-step build guide.
On Linux: compilar.sh runs the same steps and jogar/jogar-ocarina.sh opens the game. Packages and the port's
status are in docs/building.md.
git clone https://github.com/sostenesfreitas/ocarina-recomp
cd ocarina-recomp
./compilar.sh --jogo /path/your-game.nup
./jogar/jogar-ocarina.sh
Bring a save from an emulator
Saves from Lichii, Eden and similar emulators work here. At the end of the installation, click Import emulator save, or run later:
powershell -ExecutionPolicy Bypass -File jogar\importar-save.ps1
It finds the save by itself or asks for the folder, keeps a copy of your current save and does not change the emulator.
Language
The game follows the language of Windows, including Brazilian Portuguese. To change it, press F1 and go to Game → Language.
What this does on your PC
- The ZIP installer and the scripts do not ask for administrator. Only the tools for ways 2 and 3 may, and you install those yourself.
- It writes only inside the project folder, and never changes your game file.
- It downloads the Python packages (
tools\requirements-build.txt), the shader translator's .NET packages and, if the game's executable is compressed, zbic. - To uninstall, delete the project folder. The tools from step 1 are removed through Windows' apps panel.
It takes 30 minutes to 2 hours, and you can use your PC in the meantime. To update, run the installer again or see the end of the guide.
[!NOTE] The first time you open the game, plants can take a few minutes to appear while shaders compile in the background. It gets better after that.
What you need
- 64-bit Windows 10 or 11, with an AVX2-capable processor.
- A graphics card with Vulkan 1.3 and mesh shaders, with an up-to-date driver. We recommend NVIDIA.
- We recommend 16 GB of RAM or more. We never tested with less: the build or the game may fail.
- With 16 GB of RAM, enlarge the Windows page file before playing (initial 16384 MB, maximum 32768 MB): the first time, the game may reach about 24 GB of memory, and Windows closes it past the limit. The installer warns when the limit is low.
- 40 GB free with the ZIP installer. For the other two ways, 60 GB, plus about 15 GB on C: for the tools.
- Internet access during installation.
- Your copy of the game at version 1.1.1. Other versions do not work.
If something goes wrong
| Problem | What to do |
|---|---|
| "This game is not version 1.1.1" | Check that you chose the right, updated game |
| The game opens and closes | Update your graphics driver and look at ultima-partida-erros.log in the install folder |
| The game closed mid-play | Each run's log is kept in logs\ (the last 10). jogar\medir-partida.ps1 shows the crash and the performance. |
| Stutter the first time | This is normal: shaders are being prepared. It gets better when you pass through the same place again |
If the problem continues, open an issue with the error message and your graphics card model. Never send game files.
Controls
Use a controller, or keyboard and mouse. F1 or Esc opens the options menu, F11 toggles fullscreen and F10 shows the frame rate. The full list is in docs/controls.md.
How it works
recomp/gen.pytranslates the game's ARM64 code to C.tools/build_game.pycompiles that C together withruntime/, which plays the part of the console's system.runtime/converts NVN 2 graphics calls to Vulkan.- Switch 2 Ampere shaders are lowered to Maxwell (
lower_to_maxwell.h) and translated to SPIR-V by a patched Ryujinx (tools/xlate/patches).
Want to help?
Read the contributing guide. Testing on other graphics cards and reporting the result already helps a lot.
Credits
Maintained by Miojo (sostenesfreitas). Word is he left a hidden message in the installer and another one inside the game. 🍜
This project exists thanks to the work of many people:
- Lucas-blip-png/dkb-pc-recomp and TotK Recomp: the base of this project, whose history is preserved here.
- seedds/nxnative: reference for how the game uses task and mesh shaders, and the microphone fix.
- zortos293/Lichii and Eglantine/Eden: Ampere shader lowering and the reference for comparing draws.
- Ryujinx: the shader translator.
- kinnay/zbic: executable decompression, downloaded during installation.
The full list is in THIRD_PARTY_NOTICES.md.
License
GPL-3.0, like the original project. Third-party parts keep their own licenses, listed in THIRD_PARTY_NOTICES.md.
Fan project, not affiliated with Nintendo. The Legend of Zelda and Ocarina of Time are trademarks of Nintendo.
Explore related projects
Loading…