Repository navigation
Releases
Longshot Oberon v2.0.0
Includes a bugfix in Windows builder, thanks @Timbzt
Warning
The first start or two after shader preparation can show a black title screen. Right after the cache is built,
the console reads it for the first time, and the game's title screen can finish loading before its background has loaded.
If it sits for a while with nothing appearing, press a button and the title menu should come up. If that doesn't help:
Close the title and start it again (it can take two or three tries). Once the cache has been read, the title
screen comes up normally and it doesn't happen again on later starts. Nothing needs to be deleted or rebuilt.
Loading a save on these first starts can also be slower than usual while the game finishes reading its shaders.
It's back to normal after that.
HOW TO BUILD
Windows: download the Windows builder, unzip it anywhere, and copy your oot.nup into that folder next to build.cmd. Double-click build.cmd. The first run unpacks the release into longshot_oberon\ and builds; that takes about an hour the first time. The finished title is in longshot_oberon\dist\PPSA93339, and the window and build.log end with where to copy everything and the eboot.bin hash. Options such as --jobs 3 go in build_args.txt. If a run is interrupted, double-click it again and it carries on where it stopped.
Linux / WSL: unzip the release in your Linux home folder (it builds several times faster there than on a Windows drive), copy oot.nup into longshot_oberon/, and run:
cd longshot_oberon
RX_FP_NATIVE=1 PS5_PGO=$PWD/ps5/profiles/vk.profdata bash build.sh
You can also give it a path: bash build.sh /mnt/d/Games/oot.nup. --jobs N sets how many files compile at once; use fewer if a compile crashes for lack of memory. Running it again continues where it stopped.
On the console: copy the whole PPSA93339 folder to /data/homebrew/PPSA93339, put oot.nup inside it (or in one of the other places above), and start Longshot Oberon.
UPDATING
Build from a fresh unzip. This release translates the game's program again, so it's a full build, not just the renderer. Copy the new PPSA93339 folder to the console, keeping your cache/ folder if the build prints the same shader stamp as before. If you kept your own longshot_env.txt, remove any HOS_BG_THROTTLE and RX_VK_CAPTURE lines, or start from the shipped one or a premade profile.
New
Windows builder, no WSL needed. Longshot Oberon can now be built on plain Windows. The Windows builder download carries everything it needs: LLVM 18.1.8 for Windows, Python 3.12 with the build's packages, and the build's helpers compiled for Windows. Nothing is installed on your PC. It runs the same steps as build.sh (checking your game file, translating the game's program, the shader list, button prompts, compiling and linking), and from the same release zip and the same game file it produces a byte-identical eboot.bin to a Linux/WSL build. We checked that hash on both sides.
Your game file can now live inside the title folder. On the console, oot.nup can sit directly in /data/homebrew/PPSA93339/, so the title and the game are one folder you copy over in one go. The old places still work and are checked in this order:
- Inside the title folder (
/data/homebrew/PPSA93339/oot.nup), /data/lichii/roms/oot/oot.nup/data/prosperoeden/roms/oot/oot.nup.
No more paths to type when building. Put oot.nup next to build.sh or build.cmd and run it with no arguments, and the builder finds it. Naming a file, or dragging it onto build.cmd, still works.
PerfCombo is now the default shadow mod, alongside Saturation115. It brings sun shadows in to 200 m with two cascades and fades NPC shadows out at 13–16 m. The PerfShadow mods are still in mods/, but switched off with a leading underscore so they don't fight over the same file. Renaming a folder with a leading udnerscore "_" turns a mod on or off. These are bundled for performance - loss in fidelity is hardly noticeable.
The shipped longshot_env.txt is now the docked 1080p FSR-upscaled locked-30 profile (2b), the setup this release was tested on. The tuned memory and texture settings behind it are now built-in defaults, so the premade profiles only hold what a player would actually change. This also means that this release is performant enough to use a higher resolution while also providing a stable experience.
Fixed
Crashes when entering busy areas (Castle Town entry, among others). The game could hit an empty slot in its actor job lists and crash on it; those empty entries are now skipped.
Light flashing on water and glass in longer sessions, the flash you'd see when the sun lit up a reflective surface. The exposure meter's readback could be read a frame late; it is now always read on time.
Daytime water flashing caused by the two reflection cubes going out of step.
The Market turning blurry: textures made small for lack of memory went from 1,800–10,600 a session to 2.
ASTC textures are decoded exactly (from Longshot upstream), and finer opaque textures are kept as BC1.
Performance
On a locked 30 (base PS5, the shipped profile), a session through 12 different areas averaged 29.8 fps, with about 3 frames in 100 over 40 ms, and no crash.
Memory holds up over long sessions. Pipelines from areas you've left are let go once you've been through three newer ones (RX_VK_PIPE_AREAS, 0 turns it off), and shader modules rebuilt for those areas are released again after a minute unused. Heap growth per new area dropped from ~100–130 MB to ~24 MB. Memory emergencies went from 1–5 a session to 0, and the lowest free memory went from ~450 MB to ~840 MB. Game memory pinned by GPU imports dropped from 2–3 GB to 1.2 GB.
Fewer hitches when turning the camera. When a lot of new textures come into view at once, they're drawn at low resolution first and filled in once the camera settles. Real hitches dropped by about a third. Since there's a small blur and animation while turning, the textures drawn at lower resolution while turning are never actually seen. This allows less hitching while also not sacrificing visuals.
Lighter CPU. The game's code now uses the console's native floating point, and both the game's hottest code and the renderer are built with a profile recorded from real play (PGO). Unlocked, average fps went from ~45 to ~47, frames over 40 ms went from ~16 to ~10 per 1000, and CPU use dropped by about 15%.
Credits
From Longshot upstream, ported to the PS5 build: the exact ASTC decoder (Longshot #2314, from v3.2.0); the heap retry that hands a full model heap's remaining work to its parent (#2452, nightly-805); the static shadow map at reduced size (#1367, here fixed at 75% for the base PS5); command recordings handed over instead of copied (#1780); and replay progress answered from the last timeline read (#1994). Keeping finer opaque ASTC textures as BC1 follows the approach of #521.
Custom to Longshot Oberon: everything else in this release was written for the PS5 port.
The Windows builder: the native Windows toolchain bundle, Python ports of the build and link scripts, and the work that makes Windows and Linux builds produce a byte-identical eboot.bin.
Area-based pipeline release, an area's pipelines are let go three areas later, and the shader modules re-made for them are let go again when idle.
The fixes: the crash guards for empty actor-job entries, the exposure-meter fix for the water and glass flash, and the reflection-cube rounds for the daytime water flash.
The memory work: smaller GPU import chunks, the per-thread heap reuse that cut heap churn by about 4 GB a session, the sliding texture-eviction age, and memory-pressure release of kept-ready pipelines.
Camera-turn hitches: low-resolution-first textures when many come into view at once.
Build-time CPU work: native floating point for the translated game code, and a recorded play profile (PGO) for both the game's hot code and the renderer.
Everything else: the built-in defaults, the PerfCombo mod set, and the new game-file locations.
Tools in the release zip: the Windows side uses the official LLVM 18.1.8 Windows release, CPython 3.12 from python-build-standalone, llvm-mingw (used to build a64emit.dll, zbic.dll and ps5-native-tool.exe for Windows), and zlib. The PS5 side builds on Mihawk-99's PS5_Vulkan, PS5_Mesa and PS5_MihawkGen, John Törnblom's PS5 payload SDK, FFmpeg and zstd; licences and exact versions are in deps/SOURCES.txt.
SHA-256 ff45d595b08efa278fdb0bf2c8ccd25fdbaa8045f21ab2047adfab8968980bd8
Longshot Oberon v1.2.0
New
No more glowing pop-in the first time you see something: the builder now ships Longshot's pipeline list (its pipeline tour of every map, actor and cutscene, plus 126 player-contributed lists, hashes and draw state only, no game code). The first start builds all of it before the title screen, so Link's house, Kaepora, Ganondorf's horse, the Market and so on no longer show up bright white and fill in. Draws left out in play: up to 990 a frame → 0.
Progress for the pipeline list step on the start-up screen and in the log, so it no longer looks stuck.
Premade profiles
10 ready-made settings files for handheld, docked 1080p and 1440p, with or without FSR upscaling and frame generation, from the safe handheld 30 to the risky native 1440p: PREMADE-PROFILES (also in the zip). Pick one, rename it to longshot_env.txt and copy it into the title folder. What each one does and how they compare: Premade profiles in the README.
Fixed
Light flash on some area transitions: the reflection cube is redrawn fully for a moment after a load, so a new area never shows the old one's lighting.
"Compile shaders: All" did nothing on an already prepared cache. It's not needed anymore though: the shipped list covers more.
The title closing itself on every start after a fresh build.
Performance
First start ~2-3x faster while building ~38,000 more pipelines: ~1 h 25 min on a base PS5 (1.1.0: ~2 h 50 min without the list, ~4 h 10 min with it).
- Writes to the title folder in one call instead of hundreds of 4 KB ones: shader programs ~4 → ~70 a second, saving the pipeline cache 230 s → under 1 s.
- 12 workers instead of 8 (
RX_VK_PREPARE_THREADS), after ProjectReLink. - The driver's own disk cache is off while preparing: pipelines 12-19 → ~57 a second.
Pipeline pack: each program's pipelines in their own piece, read only when the game needs them (RX_VK_PIPELINE_PACK=0turns it off). Pipeline cache held in memory 454 → 107 MB. Same route: free memory median 1,083 → 1,556 MB, memory emergencies 13 → 0, no stalls over 300 ms.
Reflection cube redrawn on every 3rd turn (RX_VK_CUBEMAP_EVERY,1= as before): ~440 → ~150 draws a frame in the Market, reflections look the same. The locked 30 holds in the Market while spinning the camera.
Updating from 1.1.x
- Unzip over your old folder (
unzip -o) and runbuild.shagain. Only the renderer recompiles (no new lift). - Copy
eboot.binand the newlongshot_pipeline_states_shipped.binto the console's title folder. - Recommended: delete
cache/andradv-shader-cache/on the console for a clean first start (~1 h 25 min; it resumes if interrupted). The shader stamp is unchanged (2ad58d0865030a27), so keepingcache/also works: the first start builds only what's new and closes once. The clean build is the one tested end to end. - The new settings are built-in defaults, nothing to add to
longshot_env.txt. If you addedRX_VK_PCACHE_LOAD=0orRX_VK_COMPILE_SHADERS=allyourself, remove them.
Credits
Longshot's pipeline tour and every contributor in assets/pipeline_states/contrib/, and ProjectReLink for the thread count idea.
SHA-256 of release.zip: a545712ca135ce2004f70ca13b04de69e97416c90feeca3ae171d84fbc78c7e3
Longshot Oberon v1.1.0
Changelog:
New -
Sprint on L3: the game's own fast run, press once to toggle. From Longshot (#1929, #1948, #1977, #2017, #2038, #2168).
Fixed -
Closing the item, map or quest-log menus no longer reloads the world.
A save stuck at night after the first adult night runs its clock again (Longshot #2298).
Water reflections no longer flash in long sessions: the light cap ships off.
Performance -
Faster mutex lookups on the game's threads.
Renderer profile (PGO) recorded again on the current code so a small boost can be expected.
Build changes -
A moved build folder keeps its compiled files.
Recording your own renderer profile links again.
Building the title:
You need your own dump of Ocarina of Time 1.1.1 (0400486024DEC000 v131072) as a .nup, and a 64-bit Linux PC or Windows with WSL2 (8 GB of memory or more, about 10 GB free).
unzip release.zip
cd longshot-oberon
bash build.sh /path/to/oot.nup
Unzip it in your Linux/WSL home folder, not on a Windows drive: the build is several times faster there.
Install
- Copy
dist/PPSA93339to/data/homebrew/PPSA93339. - Copy your game file to
/data/lichii/roms/oot/oot.nup. - Start Longshot Oberon.
If this is your first start, on first open the title translates every shader (several hours, once), then the title closes. Start it again to play.
For people updating their old builds, this shouldn't cause a shader recompile.
SHA-256 of release-1.1.0.zip for 1.1.0: b64b893283265ca918dd7c38fcb194143aa7cb41e897536782cfb08f3e9587a9
Longshot Oberon v1.0.1 (Build script bugfix)
Longshot Oberon v1.0.1
(No breaking change from v1.0.0 - just a fix in the build script for cases where the parent folder of the unzipped release contains a space)
The first release of Longshot Oberon: The Legend of Zelda: Ocarina of Time (Switch 2) recompiled to run natively on the base PS5, as title PPSA93339. Built on Longshot and tuned for the base console's memory, CPU and GPU targeting at least 30FPS locked.
Highlights
- Locked, evenly paced 30 fps in Kokiri Forest, Hyrule Field and the Castle Town market
- Castle Town plays without crashing; memory holds from a new game to Castle Town
- PS5 button prompts, plus the shadow-distance and saturation mods
- FSR 3.1 anti-aliasing, sharpened before the HUD
What's in release.zip
The source and every tool the build needs, prebuilt: clang/lld 18, Python with its packages, the PS5 payload SDK, RADV, PS5_Vulkan, PS5_MihawkGen, FFmpeg and zstd. No game files: everything made from the game comes from your own dump.
Build
You need your own dump of Ocarina of Time 1.1.1 (0400486024DEC000 v131072) as a .nup, and a 64-bit Linux PC or Windows with WSL2 (8 GB of memory or more, about 10 GB free).
unzip release.zip
cd longshot-oberon
bash build.sh /path/to/oot.nup
Unzip it in your Linux/WSL home folder, not on a Windows drive: the build is several times faster there.
Install
- Copy
dist/PPSA93339to/data/homebrew/PPSA93339. - Copy your game file to
/data/lichii/roms/oot/oot.nup. - Start Longshot Oberon.
The first start translates every shader (several hours, once), then the title closes. Start it again to play.
Full details, credits and the list of what was changed for the base PS5 are in the README.
SHA-256 of release.zip for 1.0.1: 231c57b1722d21213f8972cf799081912e837f168eb776ee593addbad225f0c5
Longshot Oberon v1.0.0
Longshot Oberon v1.0.0
The first release of Longshot Oberon: The Legend of Zelda: Ocarina of Time (Switch 2) recompiled to run natively on the base PS5, as title PPSA93339. Built on Longshot and tuned for the base console's memory, CPU and GPU targeting at least 30FPS locked.
Highlights
- Locked, evenly paced 30 fps in Kokiri Forest, Hyrule Field and the Castle Town market
- Castle Town plays without crashing; memory holds from a new game to Castle Town
- PS5 button prompts, plus the shadow-distance and saturation mods
- FSR 3.1 anti-aliasing, sharpened before the HUD
What's in release.zip
The source and every tool the build needs, prebuilt: clang/lld 18, Python with its packages, the PS5 payload SDK, RADV, PS5_Vulkan, PS5_MihawkGen, FFmpeg and zstd. No game files: everything made from the game comes from your own dump.
Build
You need your own dump of Ocarina of Time 1.1.1 (0400486024DEC000 v131072) as a .nup, and a 64-bit Linux PC or Windows with WSL2 (8 GB of memory or more, about 10 GB free).
unzip release.zip
cd longshot-oberon
bash build.sh /path/to/oot.nup
Unzip it in your Linux/WSL home folder, not on a Windows drive: the build is several times faster there.
Install
- Copy
dist/PPSA93339to/data/homebrew/PPSA93339. - Copy your game file to
/data/lichii/roms/oot/oot.nup. - Start Longshot Oberon.
The first start translates every shader (several hours, once), then the title closes. Start it again to play.
Full details, credits and the list of what was changed for the base PS5 are in the README.
SHA-256 of release.zip: 49611cba09bca85e4e44bd7f4b7f3a0923677bd4ecf0f3cad12cda023a4c168b