A supported console game, running natively on Windows and Linux with no emulator, built from your own copy of the game. Continuation of Hookshot https://longshot.magicbean.dev/
  • C++ 43.9%
  • C 28.1%
  • Python 25.8%
  • TypeScript 0.8%
  • SourcePawn 0.4%
  • Other 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
HumanBean 514591a30d
Some checks are pending
Release / The version (push) Waiting to run
CI / Conventional Commit title (push) Has been skipped
CI / Python source checks (ubuntu-24.04, part 1/2) (push) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (push) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (push) Has been skipped
Release / Linux builder (push) Blocked by required conditions
Release / Windows builder (push) Blocked by required conditions
Release / Sign and publish (push) Blocked by required conditions
Third-party parts / The same as upstream (push) Has been skipped
CI / Workflow lint (actionlint) (push) Successful in 8s
Third-party parts / As their notes say (push) Successful in 9s
Website / Website on Cloudflare (push) Successful in 1m13s
docs: link Discord through discord.gg/magicbean (#274)
## Why

The Discord server now has a vanity invite, discord.gg/magicbean, which is easier to remember and doesn't expire with an invite code. Every Discord link in Longshot should use it.

## What changed

- README, CONTRIBUTING.md, `docs/` (common-issues, saves, reporting-and-contributing): `discord.gg/KX99srmQTe` → `discord.gg/magicbean`.
- website: the hero, footer and team roster buttons, `about.mdx` and `help/antivirus.md`.
- `.forgejo/ISSUE_TEMPLATE/config.yml`: the issue chooser's Discord link.

The same change goes to the Launcher, the Site and the org profile in their own PRs.

## Flags and settings

None.

## Measurements

A links-only change: nothing in the game runs differently, so there is nothing to time. Its check is that no old invite is left.

main: d9648863
this PR: docs/discord-vanity @ a7c8943d
Hardware: n/a (no code changed)
Scene: n/a
Method: `grep -rn KX99srmQTe` and `grep -rn discord.gg/magicbean` over the tree, outside `.git`/`.jj`
How to reproduce: the same greps on each commit

| | main @ d9648863 | this PR @ a7c8943d |
|---|---|---|
| lines linking `discord.gg/KX99srmQTe` | 13 | 0 |
| lines linking `discord.gg/magicbean` | 0 | 13 |

## Testing

**Tested:** read the diff (13 lines, all the same URL swap); confirmed no other copy of the old invite remains.

**Not tested:** the game itself (no code changed). No tests were run on this PC; CI runs the game-free checks on this PR.

**Needs other testers:** None.

## Screenshots

Nothing on screen beyond a link target.

## Risk and rollback

None beyond a wrong link; reverting the commit restores the old invite.

## Checklist

### For everyone

- [x] One topic.
- [x] The title is a Conventional Commit (`type(scope): description`).
- [x] Rebased on current `main` (d9648863).
- [ ] `python -I -B tests/run_all.py` run and passing (not run on this PC; CI skips the source checks for a docs-only diff, and no check under `tests/` or `scripts/` reads these links).
- [x] Tested in the game, or what wasn't is named under Testing.
- [x] Testing filled in: what was tested, what wasn't, and what needs other testers (with test requests).
- [x] Measured: main and this PR at named commits, on the same PC, scene and settings, at least 2 interleaved runs each, the median reported.
- [x] No game files, dumps, build output or generated files.
- [x] `third_party/` untouched (a new folder with a `PROVENANCE.md` instead).
- [x] The license is OK: GPL-3.0-or-later, nothing incompatible and nothing decompiled.

### If applicable

- [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers.
- [x] Docs updated.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Reviewed-on: #274
2026-11-13 18:58:35 +00:00
.claude/skills feat(forge): pr comment --attach puts pictures in the comment (#254) 2026-11-13 18:09:26 +00:00
.forgejo docs: link Discord through discord.gg/magicbean (#274) 2026-11-13 18:58:35 +00:00
assets feat(website): add Longshot player site and team pages (#104) 2026-11-13 08:22:32 +00:00
builder chore(builder): the Builder is command-line only; the launcher is the app (#181) 2026-11-13 11:37:55 +00:00
docs docs: link Discord through discord.gg/magicbean (#274) 2026-11-13 18:58:35 +00:00
gpu fix(menu): a layout preset is applied whole after a face button was cleared (#266) 2026-11-13 18:34:50 +00:00
host fix(input): a mouse button released outside the game is not a click on return (#265) 2026-11-13 18:30:38 +00:00
nx2 feat(gameplay): a Damage taken row (Half to Quadruple) (#138) 2026-11-13 18:14:11 +00:00
scripts feat(forge): pr comment --attach puts pictures in the comment (#254) 2026-11-13 18:09:26 +00:00
tests fix(menu): a layout preset is applied whole after a face button was cleared (#266) 2026-11-13 18:34:50 +00:00
third_party feat(release)!: releases on Forgejo, signed by one key; tools.lock; Forgejo Actions only (#13) 2026-11-13 02:07:46 +00:00
website docs: link Discord through discord.gg/magicbean (#274) 2026-11-13 18:58:35 +00:00
.gitattributes build(release): smaller xz window for the shipped list; .xz is binary 2026-11-10 15:33:52 -05:00
.gitignore build(release): ship the pipeline state list xz-compressed from assets/ 2026-11-10 15:33:07 -05:00
AGENTS.md feat(dev): test a change against a base, as a pack of what it changes (#147) 2026-11-13 15:33:21 +00:00
cliff.toml feat(release)!: releases on Forgejo, signed by one key; tools.lock; Forgejo Actions only (#13) 2026-11-13 02:07:46 +00:00
CONTRIBUTING.md docs: link Discord through discord.gg/magicbean (#274) 2026-11-13 18:58:35 +00:00
LICENSE License: GPL-3.0-or-later for the whole project 2026-11-07 09:00:47 -05:00
README.md docs: link Discord through discord.gg/magicbean (#274) 2026-11-13 18:58:35 +00:00
recomplauncher.json fix(builder): build times measured on nightly-56: the docs, the Builders' estimates and when to measure again (#175) 2026-11-13 10:55:44 +00:00
RELEASING.md chore(builder): the Builder is command-line only; the launcher is the app (#181) 2026-11-13 11:37:55 +00:00
requirements.txt Rename the project to Longshot 2026-11-12 15:36:48 -05:00
tools.lock build(tools): the build tools download from git-cdn.magicbean.dev, Cloudflare's edge, first (#160) 2026-11-13 07:59:20 +00:00


Longshot
Longshot

A supported console game running natively on Windows & Linux, without emulation.

Website | Download | Discord | Status | Install and play | Build from source | How it works | Want to help? | License + Credits

This website is our Git hosting, similar to GitHub.

Longshot is a static recompilation of a supported console game. The game's code is translated to C and compiled into a Windows or Linux program, rebuilding the graphics on Vulkan, with the console's system software reimplemented. All of this happens on your PC, from your own copy of the game.

Longshot is a continuation of Hookshot. The top maintainers have moved to this project.

Join us on Discord!

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 build creates (longshot.exe, the generated code, the shader caches and your saves) comes from your game and stays on your PC. Never share those files.

Project status

Experimental. Players have reported on many PCs, from Kokiri Forest to the dungeons: the table says what works and what does not yet. Open problems are collected in tracking issues, linked below.

What Status
Kokiri Forest: reaching gameplay and walking around ✅ Works
Sound, controller, keyboard and saves ✅ Works
In-game menu, frame generation and upscaling ✅ Works
Flicker (the picture flashing too bright while moving) ✅ Fixed in v2.0.2 (#645)
Ground fog vanishing when looking down ✅ Fixed in v2.0.2 (#638)
Models with missing pieces (doors, fences, parts of trees) ✅ Fixed where tested, more play needed
Stutter when entering new areas ⚠️ Still happens the first time you visit a place. The next visits are smooth
Performance ⚠️ Depends on the PC: some reach a steady 60 fps, others stay below it, more so in Hyrule Field
Hyrule Field, Castle Town, Kakariko and the dungeons ⚠️ Players got there, with open bugs: lighting and shadows (#1004), crashes and freezes (#2507)
Ultrawide and 4:3 ✅ Works. The Aspect ratio row's default, Monitor's shape, widens the 3D to the screen and keeps the HUD and movies in the middle 16:9 (#2119)
NVIDIA cards ✅ Works. The most tested
AMD cards ⚠️ Many tested: reports from the RX 6600, RX 6800 XT, RX 7800 XT, RX 7900 XTX and RX 9070 XT. On Windows, the RX 6000 cards (Navi 21 and 22) draw task and mesh shaders through the compute fallback by default, as the driver lost the GPU with them (#1747, #1992, #2215). Driver crashes and device lost are still reported (#996)
Intel cards ❓ Few reports, many of them black screens or crashes (#999)
Cards without mesh shaders (such as NVIDIA GTX 10 and AMD RX 5000) ⚠️ Run through the compute fallback (since v2.0.6), which runs the mesh programs as compute shaders on cards with buffer device addresses: slower, and it leaves out the mesh draws that take their count from a buffer (#640)
Linux ✅ Works with the AppImage. Tested on several distributions (CachyOS, Fedora, Bazzite, SteamOS) and cards, with open problems on some AMD cards (#1000)

Install and play

🪟  Download for Windows

🐧  Download for Linux (AppImage)

Windows without installing: portable zip · Not sure? longshot.magicbean.dev/download picks for your computer. These links give the newest launcher (stable, or until there is one, the release candidate); for each channel's own, see release channels.

Download the launcher, not the builder. The files on Longshot's releases (LongshotBuilder-…-windows-x64.zip, Longshot-…-x86_64.AppImage, tools.lock) are what the launcher installs for you. Windows may flag the launcher as a Trojan: it isn't, it's just not code-signed yet. See antivirus warnings.

Longshot doesn't come ready to play: it is built on your PC, from your own copy of the game. The Longshot Launcher does all of it for you:

  1. Check that your PC and your copy of the game match what you need.
  2. Download the launcher for Windows or Linux and start it.
  3. Point it at your game and press Build. It downloads this version's Longshot Builder, checks it against the release's signed checksums, and builds the game: about 15 minutes on a 12-core desktop, longer on a slower PC (build times).
  4. Press Play. From then on the launcher keeps the game, and itself, up to date.

Longshot's first version will be v3.0.0; the launcher's first will be v1.0.0 (its numbers are its own).

What you need

Your game copy: program 0400486024DEC000 · update v131072 · build e0f3ccfa. Use a .nup file, or the romfs and exefs folders. Other game versions are not supported.

These are estimates from the tested configurations, not a promise of a particular frame rate: the game runs on more than this, and performance depends on the resolution and settings you choose.

Component Minimum Recommended
Operating system 64-bit Windows 10 / 11, or 64-bit Linux with glibc 2.35 or newer. Same.
Processor A 6-core x86-64 CPU, such as an AMD Ryzen 5 2600 or Intel Core i5-8400. AVX2 is required for the Linux AppImage; Windows and source builds also run without it, more slowly. AMD Ryzen 5 5600 or Intel Core i5-12400 or newer. For a steady 60 fps in demanding outdoor areas, a Ryzen 7 5700X3D or Core i5-13600K.
Graphics card Vulkan 1.3. NVIDIA GeForce GTX 1060 6 GB or GTX 1650, AMD Radeon RX 5500 XT, or Intel Arc A380. Vulkan 1.3 with mesh shaders. NVIDIA GeForce RTX 3060 or RTX 4060, AMD Radeon RX 6600 XT or RX 6700 XT, or Intel Arc A750. Check the project status for each maker's known issues.
Mesh shaders Not required: without them, Longshot draws through a slower compute fallback. Strongly recommended: NVIDIA RTX 20 series and newer, AMD RX 6000 series and newer, Intel Arc.
Video memory (VRAM) 4 GB, with the in-game Minimum (4GB) or Low (6GB) quality preset. 8 GB or more.
System memory (RAM) 16 GB. See the memory guidance below. 16 GB or more.
Storage About 60 GB free while building. A hard drive works, but builds are much slower. An SSD with about 60 GB free.

Memory use depends on the build, driver and scene: recent Linux/NVIDIA runs used roughly 13–19 GiB for the game alone (see tested configurations), so even a 16 GB PC can need swap. Leave room for the desktop and other programs. Swap can prevent an out-of-memory exit, but it is not extra RAM; heavy swapping can make the whole desktop unresponsive.

Drivers: use an up-to-date graphics driver with Vulkan 1.3. On Linux, use Mesa or NVIDIA's driver. Linux examples include Ubuntu 22.04, Debian 12, Fedora, Arch and SteamOS.

Download: an internet connection is required. The launcher installs the builder, which brings its own compiler and tools; there is nothing else to install.

On Windows

  1. Download the launcher for Windows (LongshotLauncher-<version>-windows-x64-setup.exe) and run it. It asks once: Install (for you, no administrator rights, with a Start menu shortcut) or Run portable. To skip the question, take the portable zip, unzip it and run LongshotLauncher.exe.
  2. Press Build the game and choose the Stable channel.
  3. Pick your game. The launcher finds .nup files in your Downloads, Desktop and Documents folders; if yours isn't listed, point it at the file, or at the romfs and exefs folders. It checks the version while the builder downloads.
  4. Choose where the game goes (Games\Longshot in your user folder by default), its language and the options.
  5. Press Build, then Play. The launcher can also add desktop and Start menu shortcuts.

The build prepares the game's shaders at its end, which takes a while; later starts are faster. To keep everything on an external SSD, run the launcher's portable zip from there: its data stays in LongshotLauncher-data beside it.

Compile shaders

Compile shaders (in the launcher's settings, or make_game.py --compile-shaders) chooses what that preparation builds:

  • Most (recommended, the default): every shader and the pipelines the game is known to use (the shipped list and what your own play noted).
  • All: the predicted pipelines too, about 50,000 guesses at pipelines no list names. The preparation takes about 40% longer (415 s against 292 s on an RTX 3090 with a 12-core CPU), and play almost never uses them.

A preparation the game runs at a launch (after "Prepare shaders now" was unticked, or after an update or a new GPU driver changed what the shaders are translated for) follows the same choice, kept as compile_shaders in longshot_options.ini (0 Most, 1 All). --compile-shaders all or most on the game's command line, or RX_VK_COMPILE_SHADERS=all or most, sets it for one run.

On Linux

  1. Download the launcher for Linux (LongshotLauncher-<version>-x86_64.AppImage).
  2. Let it run as a program: in your file manager, open its Properties and turn on "Allow executing file as program" (the wording differs between desktops), or run chmod +x LongshotLauncher-*-x86_64.AppImage.
  3. Start it and build the game as on Windows. The game goes to ~/Games/Longshot by default, and the launcher can add it to your applications menu as "Longshot".

Each version's builder is also released on its own, as Longshot-<version>-x86_64.AppImage (about 95 MB) on Longshot's releases. It has no window: it is what the launcher builds with, and it builds and starts the game from the command line, over SSH or from a script (see Linux, the AppImage from the command line). Its first --cli downloads its build tools (the compiler, the C library it links against, FFmpeg and SDL2: about 170 MB) into ~/.local/share/longshot/builder/toolchains, and later versions reuse the ones that didn't change; the launcher downloads the same tools itself.

Advanced Linux setup

Faster GPU memory on AMD and Intel (/dev/udmabuf). Longshot imports GPU memory fastest through the kernel's udmabuf device. Without access to it, it falls back to host-pointer imports, which can be much slower on AMD (RADV), and warns about it on stderr and in longshot_log.txt. On NVIDIA's own driver you can ignore that warning: NVIDIA refuses these imports, and host-pointer imports are not slow there (the check runs at start, before the game knows its GPU).

Check with ls -l /dev/udmabuf and id. If the device is missing, load the module first (sudo modprobe udmabuf). Then give the game's user access, in one of these ways:

  1. On a desktop (systemd-logind): a rule that grants it to the active local user. Put SUBSYSTEM=="misc", KERNEL=="udmabuf", TAG+="uaccess" in /etc/udev/rules.d/70-longshot-udmabuf.rules (it must come before 73-seat-late.rules).
  2. Over SSH or as a service: create a dedicated udmabuf group, add only the game's user, and use SUBSYSTEM=="misc", KERNEL=="udmabuf", GROUP="udmabuf", MODE="0660" in that file instead.
  3. The device's owning group: add yourself to it, only if its other devices should be yours too (kvm, for one, also grants virtualization).

Apply a rule with sudo udevadm control --reload-rules and sudo udevadm trigger --action=add /sys/class/misc/udmabuf, and log out and back in (or restart the service) after a group change. Never run the game as root or make the device world-writable.

How Play starts the game. When the desktop gives the launcher its own systemd service, Play waits up to two seconds for the game's separate scope before closing its window. If that hand-off fails, it starts the game directly and records the fallback in longshot_startup.log once the game exits. A direct start still ends with the desktop's service: a desktop that stops its children stops the game too.

Updating

The launcher checks for updates when it starts. When a newer version is out on your channel, press Update: it downloads the new builder (only the parts that changed) and builds the game again from the game files the first build kept, so you don't need your .nup again. It updates itself the same way. What changed is on Longshot's releases.

Before updating, copy your saves somewhere safe: the user folder in the game folder on Windows, ~/.local/share/longshot on Linux.

An update keeps An update replaces
Your saves The game in bin and its files
longshot_options.ini: the menu's choices and your controls image.bin and the shader list
longshot_env.txt language.txt, written again with the game's language
mods

Without the launcher: from a clone, git pull, then python -I nx2/make_game.py --update <game folder>; a builder does the same with --cli --update <game folder>.

Release channels

The launcher builds from one of three channels:

Channel What it is The launcher
Stable The released version. Choose this to play. Windows · portable · Linux
Release candidate The next version, before it is released. Windows · portable · Linux
Nightly Built from main after every change; the newest five stay on the releases page. Untested: it may break your saves or settings, so copy them first. Windows · portable · Linux

A nightly launcher builds Longshot's nightlies by default; any launcher can build from any channel. To go back, build a version from the Stable channel.

Another way: RecompLauncher

Each version also ships the files RecompLauncher installs (recomplauncher.json, in LongshotBuilder-<version>-windows-x64.zip and in the Linux AppImage). RecompLauncher only finds releases on GitHub, and Longshot's are on git.magicbean.dev, so for now add a downloaded file to it by hand (docs/releases.md).

Where the files go

The build reads your game and never changes it.

What Windows Linux
The game The folder you chose (Games\Longshot by default) The folder you chose (~/Games/Longshot by default)
Your saves user in the game folder ~/.local/share/longshot
The launcher, each version's builder and its tools (toolchains), the build files (work) %LOCALAPPDATA%\LongshotLauncher (the installed program in %LOCALAPPDATA%\Programs\LongshotLauncher; the portable one's data in LongshotLauncher-data beside it) ~/.local/share/longshot/launcher (the portable AppImage's in <AppImage>.home beside it)
A builder without the launcher (--cli) and its tools %LOCALAPPDATA%\LongshotBuilder ~/.local/share/longshot/builder and ~/.cache/longshot-builder
The in-game menu's choices longshot_options.ini in the game folder longshot_options.ini in the game folder
  • Saves elsewhere: start the game with --user <folder> (command line arguments). A user folder from an earlier Linux build is moved to ~/.local/share/longshot once. To carry on with a save from Hookshot, an emulator (Lichii, Eglantine, Orchid, ...) or NX2navi, or to take yours there, see the saves guide.
  • Build files: the translated code and compiled objects (about 4 GB) are deleted once the game is ready; none are needed to play. To keep them, so that an update compiles only what changed, set LONGSHOT_KEEP_BUILD_FILES=1 for the build; Free up space in the launcher's settings deletes them later. Their folder can be moved there before a build (Change, Default). The romfs is hard-linked instead of copied where the disk allows it.
  • Uninstall: uninstall the launcher (Windows: Apps & features), then delete its folder, the game folder and the shortcuts.

What Longshot connects to

Longshot uploads nothing about you or your PC, and reads no browser data, passwords or session keys. This is everything it does on the network or with other programs:

  • Downloads, from git.magicbean.dev. The launcher reads the release lists of Longshot and of the launcher, downloads a version's files, and checks each one against the SHA-256 in the release's signed SHA256SUMS. The Windows builder's tools come from the links in tools.lock (their makers' releases, or Longshot's tools release), and its compiler from its makers' releases (llvm-mingw, Python), all checked by SHA-256. With DLSS on, NVIDIA's DLSS library comes from github.com/NVIDIA/DLSS. The game itself checks for nothing when it starts.
  • Your Discord status, through the Discord app on this PC. While Discord runs, it shows "Playing Longshot" with the time played, through the Discord app's own local connection (a named pipe on Windows; the socket discord-ipc-0 in $XDG_RUNTIME_DIR, $TMPDIR or /tmp on Linux). It sends "Longshot", the Longshot version, the start time and the icon's name. Turn it off with Gameplay → Discord status in the in-game menu.
  • Files outside the game folder: the builder's folder, the settings and the saves (above), and shortcuts if you ask for them. Bug report (Gameplay tab) writes a folder in bug-reports in the game folder, with your home folder and user name taken out of its logs, and Save my pipeline list saves a zip in your Downloads folder: you decide whether to send them anywhere.

Only download Longshot from the launcher's releases and Longshot's on git.magicbean.dev, or through longshot.magicbean.dev/download, which sends you there. Each version's files are listed with their SHA-256 in its SHA256SUMS, signed by the release key, which the launcher checks. A copy from anywhere else may not be ours.

If something goes wrong

Start with the log: longshot_log.txt in the game folder holds the last run, and longshot_log.1.txt to .4.txt the four before it (started from a terminal, the game prints there instead). Every 600 frames it writes a vk: status: line with the video memory in use against what the driver allows, and DLSS's details while it draws; vk: over the driver's video-memory allowance says when the game went past it.

Problem What to do
Building
"Longshot supports build e0f3ccfa" or "This version isn't supported" Check that you chose the right game, with its update installed.
"Your antivirus removed part of the build tools" A false alarm on unsigned programs. Restore the files from Windows Security's Protection history, and add %LOCALAPPDATA%\LongshotLauncher and %LOCALAPPDATA%\Programs\LongshotLauncher to its exclusions, then build again (common problems).
Starting
The game opens and closes, or the log says "device lost" Update your graphics driver. AMD cards have known crashes (#708, #614).
Linux: the game doesn't start, or the picture is broken The game needs a Vulkan 1.3 driver, ideally with mesh shaders: vulkaninfo | grep mesh should list VK_EXT_mesh_shader. Update Mesa or the NVIDIA driver.
Linux: low-memory warning, or the whole desktop becomes unresponsive while loading Close other programs and check free -h: the Mem and Swap rows are separate. Below 10 GiB of physical RAM the game warns even with plenty of swap; absence of that warning does not mean a run will fit. Do not keep retrying a load that locks up the PC. After restarting, keep the failed session's log before launching again, and check journalctl -k -b -1 for an out-of-memory kill or a GPU reset (if the previous boot's journal was saved).
Graphics
Parts of the picture are missing, or a message says your card has no mesh shader support The card or its driver has no mesh shaders, so Longshot draws through its compute fallback, which leaves some draws out. Update the driver; a card with mesh shaders draws everything (#640).
A place has a wrong texture, or a floor or wall is missing Look for longshot_damaged_files.txt in the game folder. The build writes it when your dump is incomplete (about 23.3 GB instead of 23.8 GB), listing each damaged file and what was put in its place. Dump the game again and build from the new dump; the file is then removed.
AMD: blocky textures, solid rectangles in the sky or unusually dark courtyard surfaces Try the AMD texture workaround. It uses more graphics memory.
Performance
Stutter the first time you see something Normal for now: shaders are being prepared, and it is smooth the next time you pass. You can help remove it for everyone: send your pipeline list.
Windows, NVIDIA: stutter on every start, in places you have seen The driver's shader cache is too small to keep them all (the first start builds about 2 GB of pipelines). In the NVIDIA Control Panel, under Manage 3D settings, set Shader Cache Size to Unlimited (or 10 GB). On Linux the game raises the driver's limit itself.
Low FPS See Low FPS or stutter below.
Steam Deck: the game freezes and closes in Kokiri Forest or the Great Deku Tree (gfx_0.0.0 timeout in journalctl -k) Add RX_VK_MESH_NOCULL=2c56dc1006942f74 to longshot_env.txt: it gets past it with every model drawn, by turning off the culling pass that runs for seconds. RX_VK_SKIP_CODE=2c56dc1006942f74 also gets past it, but the models those draws make go missing (development guide, #817).
Other
The game is in the wrong language Change the code in language.txt in the game folder. The file lists them all, and an update keeps the one you set.

Still stuck? Report it with the version, where you were in the game, your graphics card, longshot_log.txt and a screenshot or video, and never game files. Gameplay → Bug report in the in-game menu gathers all of it in one press.

Low FPS or stutter

  1. After the shaders are prepared, walk through the same spot twice. Note whether the slowdown clears the second time, or lasts until you restart the game.
  2. Turn off Frame generation, so the FPS counts the game's own frames, and keep the resolution, upscaler and frame rate cap the same between runs. For a slowdown after an update, compare the same spot and settings on both versions if you still have the earlier build.
  3. Attach the log from the slow run (and from the earlier build, if you have it). Say where the FPS dropped, and keep the lines around the drop that show presents, GPU time, waits for shaders or pipelines, VRAM: and memory heaps. Compare the total and per-heap memory with the driver's allowances; the texture cache has its own budget on the VRAM: line.
  4. If the GPU time stays high, run once more with RX_VK_PASS_TIMING=1 in longshot_env.txt: every 600 presents it reports which GPU passes take the time. That timing adds work itself, so keep the first log for the FPS comparison, and remove the switch afterwards. The development guide has more switches.

AMD texture workaround

Some AMD texture artifacts go away when decoded ASTC textures are kept as RGBA8 instead of being re-encoded to BC3 (#57, #1006): turn on ASTC as RGBA8 in the menu's Debug tab, under Developer, and restart the game. It is a workaround for these artifacts, not a lighting fix, and it can use much more graphics memory, causing stalls when the card runs out. To undo it, turn the row off and restart.

RX_VK_ASTC_RGBA8=1 in longshot_env.txt does the same, as earlier versions of this readme said; while that line is there, the menu row shows its value and can't be changed, so remove the line to choose in the menu. RX_VK_ASTC_BC7=1 keeps those textures as BC7 instead of BC3: the same memory (8 bits a texel), but BC7's mode 6 keeps gradients and alpha much better, so textures look cleaner where BC3 shows bands or blocks. It is off unless set, and RX_VK_ASTC_RGBA8=1 wins when both are.

In-game menu

By default, press Insert, F1 or Esc in game. On a controller, press Home or Select and Start together; on a DualShock 4 or DualSense, clicking the touchpad does the same as F1. The same keys close it; with every Menu shortcut, Esc goes back a page or closes the open menu. F1 always works. Controls → Menu shortcut can leave Insert free for another overlay (F1 only). With Insert or F1, or with F1 only, Esc does not open the menu: it only lets the mouse go. Options saved by an older version on Insert or F1, the default then, move to Insert, F1 or Esc; F1 only stays. The menu has five tabs, Graphics, Audio, Gameplay, Controls and Debug: Q and E (or Tab and Shift+Tab) switch between them, LB and RB on a controller (or the triggers). Up and Down choose a row, Left and Right change it (Enter changes it too); beside the rows, the help says what the row is and, on a line of its own, what the value chosen does. On a controller the D-pad chooses and changes, A changes too and opens a page (Motion, Controls, the Teleport list, the inventory), and B goes back or closes the menu: A and B are the buttons your layout puts the Switch's A and B on (with the Nintendo layout, A is the right face button). The mouse is free while the menu is open: click a tab, click a row's name to choose it (its value stays), click the left or right half of a value to lower or raise it, drag a slider, turn the wheel to scroll the rows (it never changes a value), and right-click to go back. The button prompts at the bottom show the keys or the controller's buttons, whichever you used last. Your choices are saved in longshot_options.ini in the game folder.

The menu, the FPS counter and the start-up screen are drawn in the style of the game's own menus. They use the game's own menu font, read into memory from your game files (the romfs folder the game runs from) the first time one of them is drawn. It is never copied anywhere, and Longshot does not include it. Without it, or if it has no Latin letters, they use Libertinus, which Longshot includes.

The rows marked "after a restart" below are read when the game starts. While one is changed, it is tagged "After restart" and the help on the Graphics tab lists it; closing the menu then asks whether to restart now. Later keeps the change for the next start (and is not asked again until you change one of those rows); Restart now saves your choices and starts the game again, so progress since your last save is lost.

A row for something this PC cannot use is not shown: NVIDIA Reflex and AMD Anti-Lag 2 without a GPU and driver that have them, the DLSS model where DLSS does not run. HDR paper white and HDR peak brightness and HDR contrast show only while HDR is on, the HDR tone mapper only with HDR set to Native.

The Graphics tab groups its rows under section titles: Resolution and upscaling, Frame generation and latency, Screen, HDR, Detail, and GPU and memory (last: the rows to change when something is wrong). The table lists them in that order.

Tab Option Choices Default
Graphics Quality preset Custom, Minimum (4GB), Low (6GB), Balanced (8GB), High (12GB), Ultra (16GB+), Auto (this PC) Auto (this PC) on a first start; Custom in an options file from before it
Aspect ratio The shapes your screen's resolutions have, narrowest first (5:4, 4:3, 16:10, 16:9, 21:9, 32:9, ...), your monitor's own marked "(monitor's)" (after a restart) Your monitor's
Output resolution The Aspect ratio's sizes: your screen's resolutions and the common ones (1440p, 4K, 5K at 16:9; 1920x1200, 2560x1600 at 16:10; 3440x1440 at 21:9; ...), and 2048x1152 (the game's own) at 16:9; your screen's own size is marked "(native)" (after a restart) 2048x1152, or your screen's size where it is smaller (a Steam Deck's 1280x800, a 1080p monitor); Auto (this PC) leaves it as it is
Profile Docked, Handheld (after a restart) Docked; a quality preset sets it
Upscaler Game's own, NVIDIA DLSS (only in builds with NVIDIA's DLSS SDK, below, on NVIDIA RTX GPUs), AMD FSR 3.1 (every build, on GPUs it runs on, below), AMD FSR 4 (only in builds with FSR 4, below, on GPUs AMD's files cover), Off (no upscaling). NVIDIA DLAA and AMD FSR 4 Native AA are DLSS's and FSR 4's Native, chosen on the Render resolution row Game's own; Auto (this PC) chooses DLSS or FSR 4 where they run
DLSS model Transformer (K), Transformer 2 (M), Transformer 2 (L), NVIDIA default (shown where DLSS runs; used by DLSS and DLAA) Transformer (K)
Render resolution Auto (the game's own dynamic resolution), 100%, 75%, 67%, 50% (each with its size). With DLSS or FSR 4: Auto, Native (DLAA or FSR 4 Native AA: the 3D at full size), 92%, 83%, 75%, Quality (67%), Balanced (58%), Performance (50%), Ultra Performance (33%). With FSR 3.1: Auto, 100% (its native AA), then the same as DLSS from 92%. With Off: Auto, 100%, 75%, 67%, 50%, 33% Auto; a quality preset sets it
Sharpness 0 to 100%, in steps of 10 0%; a quality preset sets it
Frame generation Off, Auto, 2x to 8x Off
Frame generation by Auto (NVIDIA DLSS Frame Generation where it runs: RTX 40 and newer, with a temporal Upscaler; else the built-in one; with frame generation on, the row shows who makes the frames, as Auto: DLSS FG, and why not DLSS FG when another does), Built-in FG. Changes at once Auto
Frame pacing Off, On Off; a quality preset turns it on
Game frame rate cap 60 (the console's), 90, 120, 144, 165, 240, Uncapped (changes at once) 60
NVIDIA Reflex Off, On, On + Boost (shown only on NVIDIA GPUs with VK_NV_low_latency2) Off
AMD Anti-Lag 2 Off, On (shown only on AMD GPUs with VK_AMD_anti_lag) Off
Fullscreen Off, On (the same as F11) Off
V-Sync Auto, On, Off Auto
Window scaling filter Off, Catmull-Rom, Lanczos (shows "Not needed (window = output)" while the window is the Output resolution's size) Off; a quality preset sets it
Ultrawide menus Full width; Centred, blurred sides; Centred, black bars (with the Aspect ratio at the monitor's shape) Centred, blurred sides
HDR Off, Expanded, Native (the game's) Off
HDR paper white 80 to 400 nits, in steps of 10 (while HDR is on) 200 nits
HDR peak brightness 400 to 4000 nits, in steps of 100 (while HDR is on) 1000 nits
HDR contrast 50% to 200% around mid grey, in steps of 5 (while HDR is on) 100%
HDR tone mapper Vanilla (the game's curve), PsychoV35 (RenoDX's; with HDR set to Native. DLSS/DLAA with their NVIDIA frame-generation inputs, and AMD FSR 4, can be tried with RX_VK_PSYCHOV35_DLSS=1; FSR 3.1, TAAU and Upscaler Off still fall back to the game's network) Vanilla
Anisotropic filtering Game's, 2x, 4x, 8x, 16x 16x
GPU device Auto, or each graphics card by name (after a restart) Auto
VRAM budget Auto, 3.6, 4.8, 6, 7.5, 9, 11 GB (2.2 GB only from the Minimum (4GB) preset); a quality preset sets it Auto
Audio Volume 0 to 100%, in steps of 5 100%
Mute in background Off, On Off
Audio output Auto, Stereo, 5.1 (after a restart) Auto
Gameplay FPS counter Off, FPS, Frame time, Graph, Breakdown, Dev Off
FPS counter position Top right, Top left, Bottom right, Bottom left Top right
Menu size Small, Medium, Large Medium
Game speed Per frame, Real time Real time
Field of view 50% to 150%, in steps of 5; applies immediately during gameplay 100% (original)
Text speed Normal, 2x, 4x, Instant Normal
Text size Original, 110%, 125%, 150%, 175% (dialogue, Navi and signs) Original
Microphone Off, Default, or each microphone by name Default
Game language The game's 16 languages, each by its own name (after a restart) language.txt's, else English (US)
Menu language Auto (the game's language), or English, Português (Brasil), Español (Latinoamérica), Español (España), Français, Deutsch, Italiano, Nederlands, Polski, Русский, 日本語, 한국어, 简体中文, 繁體中文 Auto
Discord status Off, On ("Playing Longshot" and the time played in your Discord status, while Discord runs on this PC) On
Skip opening Off, On (skips the new-game opening: the story movie and Navi waking Link; later cutscenes and the title screen stay) Off
Bug report Saves a report into a new folder in bug-reports (below)
Controls Controller in background Off, On Off
Mouse camera As the stick, Native, Off As the stick
Disable camera centering Off, On Off
Mouse sensitivity 0.10 to 5.00, in steps of 0.10 1.00
Invert mouse vertical Off, On Off
Invert camera X Off, On Off
Invert camera Y Off, On Off
Camera speed 50% to 400%, in steps of 25 100%
Stick dead zone Default (24%), 5%, 10%, 15%, 20%, 30% Default (24%)
Rumble strength Off, 25% to 150%, in steps of 25 100%
Layout preset Nintendo (Def), Xbox / PC, Swap Face; Custom once you bind a button yourself (on the Controls page) Nintendo (Def)
Button prompts Auto, Switch, Xbox, PlayStation 4, PlayStation 5, Steam Deck, Keyboard (on the Controls page; changes at once where the game allows it, else after a restart) Auto
Motion Opens the Motion page: Motion controls (Off, On; On), Motion sensitivity X (10% to 600%) and Y (10% to 300%, in steps of 10; 100%), Invert motion X and Y (Off, On; Off), Motion deadzone (Low, Standard, High; Standard)
Controls Opens the Controls page
Menu shortcut Insert or F1; F1 only; Insert, F1 or Esc Insert, F1 or Esc
Compact menu key Right Shift, Right Ctrl Right Shift
Debug Debug tools Off, On (while on, the tools below it: Heart protection, No-clip flight, Mark position, Return to mark, Set time, Inventory item, Change quantity, Free camera, Teleport, Switch age, Inventory, Movement speed) Off
Player: Damage taken Half, Normal, Double, Quadruple (live, while Debug tools is on; Half rounds damage up to a quarter heart; Heart protection wins) Normal
Developer: Save my pipeline list Saves a zip of the pipelines your play built into Downloads (below)
Developer: Descriptor reuse Off, On (changes at once) On
Developer: Sampler cache Off, On (changes at once) Off
Developer: Robust buffers Auto, Off, On (after a restart) Auto
Developer: ASTC as RGBA8 Off, On (after a restart) Off
  • Quality preset sets Render resolution, Window scaling filter, Sharpness, Frame pacing, Game speed, Profile and the video memory limits for a card with that much memory. It leaves the Upscaler and Frame generation as you chose them: with DLSS, FSR 3.1 or FSR 4, the preset's resolution becomes their nearest mode. Changing most other rows yourself sets it back to Custom.
  • Auto (this PC), which a first start begins on, chooses for the PC it runs on: the memory tier from the card's video memory (an integrated GPU, a Steam Deck or a card without mesh shaders at Minimum), DLSS on an NVIDIA RTX card or FSR 4 on an AMD RX 9000 where the build has them (else the game's own upscaler). It leaves the Output resolution as it is: on a first start the game's own 2048x1152, or the screen's size where that is smaller. In the first minute of play it then measures the GPU: while frames are missed with the GPU over 90% busy it lowers the Render resolution a step, and while the frame rate cap holds with the GPU under half busy it raises it a step, up to the best mode that still upscales (DLSS or FSR Quality, or 100% with the game's own; never DLAA or native AA). At most two steps; a PC that holds its cap keeps its picture. It chooses again when the card or the screen changes. longshot_log.txt's Auto (this PC) lines say what it chose and why.
  • Menu size is how large the menu, the FPS counter and the start-up screen are drawn: Medium unless you choose Small (a desk) or Large (a TV across the room). It stays the same whether you use a controller or the keyboard and mouse.
  • Field of view changes the gameplay camera's vertical angle: 100% keeps the game's view, higher shows more of the world and lower brings it closer. The game's zoom changes remain relative to your choice. Aiming has been tested in the 50% to 150% range, including with ultrawide enabled. Cutscenes, the HUD and movies keep their own view. The setting is saved as field_of_view in longshot_options.ini.
  • GPU device matters on a PC with more than one graphics card (a laptop's integrated and dedicated GPUs, or a second card for Lossless Scaling). Auto prefers a dedicated one, and only cards with Vulkan 1.3 are listed. longshot_log.txt lists every card as vk: device <n>; RX_VK_DEVICE=<n> chooses one for a single run and wins over the menu.
  • Frame generation makes extra frames between the game's own. It adds a little input delay, and fast motion can show artifacts. The renderer's own interpolation makes the frames; at 2x, AMD FSR 3.1's frame interpolation can make it instead with RX_VK_FSR_FG=1 (below: it moves the HUD with the scene, so it is not the default). Frame pacing shows frames at an even interval: less stutter, up to one frame of delay. It paces the frames that frame generation shows, so it has no effect while Frame generation is Off.
  • Game frame rate cap limits the frames the game renders. With a cap of 60 and Frame generation at 2x, the output can reach 120 FPS. Choose Auto in Frame generation to target the display's refresh rate instead of a fixed multiplier. A cap past 60 is experimental: the game keeps real time, but some cutscenes and bosses still count frames and can misbehave (Gohma running into the wall, the intro's narration running ahead: #1742). 60 is the safe choice. Scarecrow's Song keeps the timing of its eight-note recording and playback above 60. Saved songs are not retimed; re-record a song after updating if its recorded rhythm was lost. Uncapped renders as fast as the PC can (the game still keeps real time). A display that waits for its refresh still holds the frames to its refresh rate: V-Sync on, or the driver's FIFO mode. HOS_FPS_MAX=<61-1000> sets a cap for one run.
  • Bug report writes a folder bug-reports/<date>_<time> in the game folder with what an issue needs: report.txt, which answers the game problem form's questions under its own headings (the version, the map you are in, your graphics card and driver, CPU, RAM and system, the menu options and the RX_/HOS_ switches you changed) and ends with a link that opens the form with them filled in (the switches by name only); longshot_log.txt (this run's log so far) and longshot_log.1.txt (the run before's, which has the crash if the game crashed last time); and picture.png, the game's picture without the menu. Your home folder is written ~ (%USERPROFILE% on Windows) and your user name <user> in the logs' paths. A switch's value is written only when it is a number, a size or on/off, and never for a name with TOKEN, KEY, ROOM, SECRET, PASS, SERVER or USER in it; other values read (value left out). Nothing else goes in (no saves, no game files, not longshot_options.ini or longshot_env.txt themselves), and nothing is sent: open the form, write what happened, and drag the folder's files into it (from File Explorer on Windows, a file manager on Linux; on a Steam Deck, in Desktop Mode). The row then shows the folder's name. A game that stops before its menu can be used leaves its log as longshot_log.1.txt: start it again, or attach that file yourself.
  • The scaling rows, in the picture's order: Output resolution is the size of the game's whole frame, HUD included. The Upscaler fills it from the 3D: the game's own network, NVIDIA DLSS or DLAA (the 3D at full size, edges smoothed), AMD FSR 3.1, or AMD FSR 4 or its Native AA (below). DLSS and DLAA look softer than the game's own: set Sharpness to around 80% with them. Off is no upscaler at all: the game's own network is left out too, and the 3D is stretched to the output with a plain linear filter (the fastest choice, below). DLSS model chooses their network (below). Render resolution is the 3D's share of the output. The Window scaling filter then scales the frame to your window, and Sharpness sharpens it, by the picture's pixels: when the window is much larger than the picture (the Handheld Profile's 1536x864 on a 4K screen), a Sharpness kept from an older version is stronger than it was, so a lower one may suit. Changing the Upscaler keeps your chosen render scale, including across a restart. An engine without that scale temporarily uses and shows its nearest supported size: DLSS Balanced (58%) shows 50% with the game's own, then 58% again on returning to DLSS. Changing Render resolution or choosing a Quality preset replaces that saved scale.
  • Aspect ratio and Output resolution: the menu lists the resolutions your screen offers (its display modes, as Windows lists them, DSR's included), with the common sizes of each of those shapes your screen does not list (1440p, 4K and 5K at 16:9, 1920x1200 and 2560x1600 at 16:10, 3440x1440 at 21:9, ...), grouped by shape. Aspect ratio lists the shapes, your monitor's own marked "(monitor's)" (the default: 21:9 on an ultrawide, 16:10 on a 16:10 screen); Output resolution then lists that shape's sizes, your screen's own marked "(native)". A size larger than your screen is drawn at that size and scaled down to the window. The marks are for the monitor the game's window is on, and follow it: moved to another monitor, or the desktop's resolution changed while playing, the menu adds that screen's sizes. On Linux the screen's size comes from SDL (the primary display). A portrait screen has no shape the game can draw, so the row shows Monitor's shape as a value of its own there. Docked only. A shape other than 16:9 widens the cameras (21:9, 32:9) or narrows the picture (16:10, 4:3, 5:4) and keeps the HUD and movies in the middle 16:9. At 16:9 on a 5120x1440 (32:9) monitor, the game's 16:9 picture is stretched across the 32:9 output, sharp but wide. Options saved by an older version at 16:9, the default then, move to Monitor's shape on a screen narrower than 16:9 (16:10 such as the Steam Deck's, or 4:3), where 16:9 only adds bars above and below; an ultrawide keeps its 16:9. The output's rows below show the sizes for the output you chose. At your screen's own size the HUD and text map pixel for pixel. Above 2560x1440 the game's render targets get a bigger GPU pool, so a full-size 3D fits. Where the screen's modes are not known (Linux), the menu offers 1920x1080, 2560x1440, 3840x2160, 5120x1440 and 5120x2880. For a size the menu does not offer, set output_res=<width>x<height> in longshot_options.ini: each side a multiple of 8, at least 640x360, at most 5120x2880's pixels, and between 5:4 and 48:9 in shape; anything else uses the game's 2048x1152. The menu then offers it as its own choice. A picture wider or narrower than 16:9 is kept to 5120x2160's pixels, so above that a size of another shape is not a native frame. A size's own shape sets the camera's, even when the OS reports a single 16:9 primary monitor. For three 16:9 monitors, use 5760x1080 or 7680x1440 and a window or logical display that spans all three. Both render at full size: 7680x1440 has 5120x2160's pixels, the most a wide picture takes. For one run, set HOS_OUTPUT_RES to a size, such as HOS_OUTPUT_RES=3840x2160.
  • Window scaling filter matters only when your window's size differs from the Output resolution: for the sharpest picture, set the Output resolution to your screen's, and the row shows "Not needed (window = output)". It and Sharpness also work when Frame generation is Off.
  • Anisotropic filtering keeps textures sharp on surfaces seen at a slant: the paths and floors ahead of Link. The game asks for 1x or 2x, which at a PC's resolutions smears the ground a few metres off; 16x costs little on most cards, and Game's is the console's own. RX_VK_ANISO=<n> sets it for one run (0: the game's).
  • Upscaler Off (dlss=6 in longshot_options.ini) is for slow GPUs and for measuring: no DLSS, no FSR, and not the game's own network either, which otherwise runs on every frame (at the game's usual 3/4 share it scales the 3D up and smooths its edges; at 100% a pass of the same kind still smooths them). In its place the 3D is stretched to the output with a linear filter, and the HUD is drawn over it at the output's size as always. Nothing is kept from frame to frame, so there is no ghosting, but no anti-aliasing either: edges are jagged, and below 100% the picture is soft. The Render resolution then sets the 3D's size alone (Auto, 100%, 75%, 67%, 50%, 33%): lower is faster. RX_VK_DLSS, RX_VK_FSR4 and RX_VK_FSR set for a run go over it, as over the row's other choices.
  • Texture detail with DLSS, FSR 3.1 or FSR 4: DLSS and DLAA sample the world's textures as NVIDIA's DLSS guide asks: at the output's size and one mip step finer (the game's own bias + log2(3D / output) - 1), which DLSS resolves over its frames, so they keep the detail of the full-size picture instead of the 3D's smaller size. FSR 3.1 and FSR 4 sample them one finer mip step for each halving of the 3D below 75% (the game already does so for its own 75%). RX_VK_UPSCALE_LOD_BIAS=0 turns it off; RX_VK_DLSS_LOD_OFFSET=<steps> sets DLSS's extra step for a run (-1 by default, 0 for none, down to -3).
  • NVIDIA Reflex Off is the game as without it. RX_VK_REFLEX_LOG=1 logs the driver's latency timings every 300 frames while it is on.
  • AMD Anti-Lag 2 Off is the game as without it. It works with Frame generation too: each game frame's present stage is given when that frame itself is shown, not at the made frames before it.
  • Profile runs the game as the console docked (at the Output resolution) or Handheld (1536x864): lighter on the GPU.
  • Mesh shaders (how the game's mesh programs, much of the scenery, run) is no longer a menu row: changing it made the next start translate every shader again. The game uses the GPU's own mesh shaders where it has them, and the compute path where it has not and on Linux AMD cards (issue 2245). For troubleshooting, RX_VK_MESH_SHADERS=compute in longshot_env.txt uses the compute path on every GPU (try it if your card crashes or leaves objects out; usually a little slower), and RX_VK_MESH_SHADERS=native the GPU's own for every draw. A mesh_shaders= line left in longshot_options.ini is no longer read.
  • Ultrawide menus: with the Aspect ratio at the monitor's shape, the pause, item and map menus stay in the middle 16:9, with what the game draws beside them out of focus, or black; Full width stretches them over the whole screen, as before. Loading screens and pre-rendered movies get the same sides. It changes at once.
  • V-Sync: Auto is mailbox where the driver has it (no tearing, no wait for the display); otherwise On, or on Windows Off. On waits for each refresh (FIFO): no tearing, at most the display's rate. Off shows each frame at once and can tear (where the driver cannot, it is Auto). It changes at once. RX_VK_FIFO=1 (On) or RX_VK_IMMEDIATE=1 (Off) chooses for one run.
  • Robust buffers (Debug tab, Developer): a read past a buffer's end is dropped instead of stopping the GPU. Auto is on, on every card; Off can be faster on some NVIDIA cards.
  • ASTC as RGBA8 (Debug tab, Developer): the AMD texture workaround below.
  • Game speed: with Per frame, the game runs slower whenever it is below 60 fps. Real time keeps it at normal speed down to 15 fps.
  • FPS counter shows in a corner (FPS counter position; at the top right while the menu is open), at one of five levels. FPS is the number alone (an options file's old On); with frame generation on, it also shows the game's own rate and who makes the frames: Base 60, DLSS FG (NVIDIA DLSS Frame Generation), FSR 3.1 FG or Built-in FG. Frame time adds the game's frame time and its 1% low (the rate of the slowest 1% of frames over the last 10 seconds). From this level on, the number and the frame time are green at the Game frame rate cap's rate, amber under it and red under two thirds of it. (The cap's rate is the display's refresh instead with V-Sync On when that is slower; with Uncapped and V-Sync not On there is no line, and the colours are against 60.) Graph adds the frame times of the last 4 seconds (each point the slowest frame of its span, so no stutter is missed), with a dashed line at the Game frame rate cap's frame time and a red mark over frames that took more than twice it; its scale follows the usual frame, so a spike is drawn at the top rather than flattening the rest. Breakdown adds where the frame's time went on the game's presenting thread, as a bar and in numbers: the game's own code (Game), recording and submitting the GPU's work (Renderer), waiting for the GPU (GPU wait), and waiting for the frame's turn (Pacing: the frame rate cap, vsync, Reflex); then the GPU's own time per frame, and the shaders built and draws left out in the last 4 seconds (red marks on the graph where they happened, the usual cause of a stutter). Dev adds the renderer's own numbers, for debugging and bug reports: video memory used of what the driver allows (red past it), the textures held and their memory, draws, dispatches and render passes a frame, draws skipped a frame (red when any), texture uploads a second and the pipelines built since the start.
  • Volume scales the game's whole sound, on top of the game's own sound settings and Windows' volume. Its steps follow a curve so they sound about even: 50% is a quarter of the level (-12 dB). Mute in background silences the game while another window has the focus; an overlay such as Steam's or Discord's does not count as another window while the game was in front.
  • Audio output is the speakers the game mixes its sound for. Auto is 5.1 when your default output device has 5.1 or more speakers, else stereo; Stereo or 5.1 chooses one whatever the device has (5.1 on stereo speakers is mixed down). For one run, HOS_AUDIO_CHANNELS=2 or 6 chooses stereo or 5.1 and wins over the menu.
  • Microphone is what the ocarina hears when the game's own microphone option is on (an instrument, or humming). Default follows Windows' default recording device; the list shows each microphone by name, and a change applies at once. A chosen microphone that is unplugged stays chosen (shown as not connected): Default stands in until it is back. On Linux (SDL2) two microphones with the same name cannot be told apart: the first is used. Windows must allow desktop apps to use the microphone (Settings, Privacy & security, Microphone). HOS_MIC_LOG=1 logs what the game reads, a line a second.
  • Game language is the game's own text, language.txt in the game folder: the row writes it once you leave the row, and the game reads it at its next start (HOS_LANGUAGE, when set, wins over the file, as for the game). Where the folder cannot be written the row goes back to the file's language. Menu language is this menu's: Auto follows the language the game runs in until the restart (English (UK) and French (Canada) take English and French). The translations are machine-made and want checking by speakers of each language: each is one line in gpu/vk/menu_i18n.h. Place and item names stay English for now. Japanese, Chinese and Korean letters come from the game's own fonts for them, with Windows' (Yu Gothic, Microsoft YaHei, Microsoft JhengHei, Malgun Gothic) or Linux's Noto CJK where a game font lacks one.
  • Discord status shows "Playing Longshot" and the time played in your Discord status. It is on by default and does nothing unless a Discord client is running on this PC; with the row Off nothing is sent to it.
  • Controller in background: On keeps the controller working while another window has the focus. The keyboard and mouse still need the game's window.
  • Mouse camera: Native turns the camera with the mouse one to one, as in a PC game. As the stick uses the mouse in place of the right stick. The - and = keys change the sensitivity in game too. When another camera takes over, Native leaves it alone; on returning, mouse look starts from the game's current pitch and yaw rather than restoring the old view. Off leaves the mouse out of play: a click in the window doesn't capture it, so it neither turns the camera nor presses buttons. Play with a controller or the keyboard.
  • Disable camera centering: On stops the game gradually turning the camera toward your movement, so it does not fight native mouse look. Off keeps the game's standard behavior. Changes apply immediately with either Mouse camera mode. Manual controls, explicit recentering and scripted camera headings still work; automatic pitch adjustment is unchanged.
  • Camera speed is how fast the right stick turns the camera, in percent of the game's own speed. The camera keys follow it, and so does the mouse with Mouse camera on As the stick; Native mouse look has its own sensitivity. The game's own camera speed option still picks the speed this multiplies.
  • Stick dead zone: how far a stick moves from center in any direction before it counts. Default is about 24%. Use a lower value for a precise stick or a higher one for a stick that drifts. The game also applies its own dead zone.
  • Rumble strength scales the controller's rumble: 100% is the game's own, Off turns it off. The game's HD rumble goes to a controller's heavy and light motors by its frequency.
  • Motion controls (Controls tab, Motion page): the controller's gyroscope aims where the game uses motion, as on the Switch. It works with Switch Pro controllers and pads in Switch mode, DualSense and DualShock 4 (through SDL). Its row says whether the connected pad has a gyroscope; Off leaves the game seeing a pad lying still. Motion sensitivity X/Y scale the left-right and up-down aim (100% is the console's), Invert motion X/Y turn either direction around. The game gets the motion state as a Switch (and Eden) builds it, so how you hold the pad when motion starts does not matter. Motion follows the pad used last. The gyroscope's drift is learned while the pad rests on a table, so set it down for a second if the aim creeps. HOS_MOTION_DEBUG=1 (in longshot_env.txt) logs what the game gets twice a second.
  • Layout preset: Nintendo has A on the right face button, Xbox / PC and Swap Face put A on the bottom one. Changing a button yourself sets it to Custom.
  • Button prompts (on the Controls page): the button icons in the game's texts, hints and menus. Auto shows the first controller's; with no controller connected, the keyboard's. Keyboard shows the key or mouse button your controls put each action on (the first of its two), and WASD and the mouse for the sticks; the ocarina's notes and the pause menu's controller keep the Switch's buttons.
  • Save my pipeline list (Debug tab, under Developer): see Send your pipeline list.

Controls

Use a controller, or the keyboard and mouse. On the keyboard, W A S D move and the arrow keys (or I J K L) turn the camera. With the default keyboard bindings, press E to select New Game on the title screen.

Mouse in the game's menus (Windows): the title screen and its file list, the pause menu, the Key Items, Threads of Time and Map pages, the options and the save dialogs free the mouse while they are shown. Point at an entry to select it, left-click to choose it (A) and right-click to go back (B); the tabs, the L and R signs and the Back prompt can be clicked too. The wheel turns the pause menu's pages and scrolls lists; on the map it changes floors and zooms. Drag with the left button to pan the map and the tapestry or turn a stone on Key Items. The cursor stays hidden while you play on a controller or the keyboard, until the mouse moves.

Rumble: a Nintendo Switch Pro Controller or Joy-Con plays the game's HD rumble as the Switch does, each side and both frequency bands as the game asks, with SDL3 (the Windows game brings it; on Linux the system's SDL3, where it has one). Other controllers, Switch 2 controllers, a pair of Joy-Cons used as one controller, and SDL2's own library get the game's rumble on their two motors. The menu's Rumble strength scales it too. HOS_HD_RUMBLE=0 sends the Switch controllers the motor rumble too. On Linux, SDL talks to the Switch controller itself through its hidraw device, which needs read and write access for your user; Steam's udev rules (the steam-devices package on most distributions) give it. Without them the kernel's hid-nintendo driver runs the controller, and it gets the motor rumble. HD rumble goes to anything SDL reports as a Switch Pro Controller or Joy-Con, and that includes third-party controllers in Switch mode (8BitDo, GameSir and others; SDL gives them Nintendo's ids). Some of them may turn it into weak rumble or none: set HOS_HD_RUMBLE=0 to give them the plain motor rumble.

To change which gamepad button or key presses a Switch button, or which keys move and turn the camera, open the Controls tab's Controls page. Choose a row and a column (Gamepad or Keyboard), press Enter (or the bottom face button), then the new button or key. Esc cancels, Delete clears it, and Reset to defaults puts them all back. A gamepad button taken from another Switch button swaps with it. The page saves them in longshot_options.ini.

Ocarina notes: the page gains five rows, Ocarina note (L), (R), (A), (Y), (X), unset by default: the game's own buttons play until you bind a note to a key or gamepad input of your own, and a bound note then answers only that input while the game waits for it. A dialogue or cutscene that takes the buttons ends the wait, and a song lesson keeps the game's own too.

Writing the controls in longshot_options.ini yourself
pad_a=0
key_a=69,13

pad_<button> is a gamepad input by position: 0 bottom face button, 1 right, 2 left, 3 top, 4 Select or Back, 5 Home, 6 Start, 7 and 8 the stick presses, 9 and 10 the shoulder buttons, 11 to 14 the D-pad (up, down, left, right), 15 and 16 the triggers, -1 none. key_<button> is one or two Windows key codes in decimal (69 is E, 13 Enter), 0 none; the mouse's buttons are 1 (left), 2 (right), 4 (middle), 5 and 6 (side buttons), and count while the mouse is captured. The buttons are a b x y l r zl zr plus minus ls rs left up right down, for keys only the left stick's and the camera's directions: move_up move_down move_left move_right cam_up cam_down cam_left cam_right, and the ocarina's five notes, which also take a pad_ line: note_l note_r note_a note_y note_x. A button the file leaves out keeps its default.

Mods

Put mods in a mods folder in the game folder, beside longshot.exe (or point HOS_MODS at another folder), in the layout emulators use: mods/<name>/romfs/... holds files that replace or add to the game's own. Deeper layouts such as mods/contents/<title id>/<name>/romfs work too. A folder whose name starts with - or _ is off. When two mods have the same file, the one whose folder name sorts last wins, so name them 01-..., 02-... to set the order.

Only RomFS mods are loaded. exefs patches (.pchtxt, .ips) are left out: Longshot compiles the game's code ahead of time, so patching its instructions would need a rebuild. The log (longshot_log.txt) names each mod and the files read from it.

A mod file larger than the game's own does not load unless the resource size table allows for it: System/Resource/ResourceSizeTable.Product.111.Nin_Ounce_NVN2.rsizetable.zs gives each file the memory the game sets aside for it (by the CRC32 of its path without .zs; for a texture, its decompressed size + 280). Past that, the game goes on without the mod's file, or a loading screen waits for good. A mod that makes files bigger (HD textures, longer parameter files) ships the table with its entries grown. Since only one mod's table is used, mods that each grow files need one table with all their entries, in the mod that sorts last. Longshot merges the button prompts' entries into that table (each file gets the larger of the two), so your controller's icons stay in texts; the log says (with the button prompts' sizes merged in) after the table's line. A table it cannot read that way (not the game's format, or a zstd frame that does not give its size) is used as it is, with the Switch's icons. If a mod includes tables for several game versions, the prompts use the table name from the game's own RomFS, not the first table found in the mod. Other versions' tables do not change the prompts' font or its size entries.

Build from source

For developers, and for players who prefer the command line. The launcher and the builders run the same script, nx2/make_game.py. CONTRIBUTING.md has more.

Windows, from the command line
python -I nx2/make_game.py --nup "C:\path\your-game.nup" --out "C:\Games\Longshot" --language en-US
python -I nx2/make_game.py --romfs "C:\path\romfs" --exefs "C:\path\exefs" --out "C:\Games\Longshot" --language en-US

Add --check with your .nup or --exefs to only check the game's version. It builds nothing. Add --log "C:\path\build.log" to also save the build's output to a file (UTF-8, replaced if it exists); it works with --check and --update too, and on Linux. LONGSHOT_JOBS=<n> (or --jobs <n>) limits how many files compile at once. LONGSHOT_MEM_LIMIT_GB=<n> lets the compilers take that many GB together, whatever is free now; up to 4 always run.

You need:

  • Python 3 from python.org (the Microsoft Store's Python installs packages where python -I does not look), with pip install -r requirements.txt (core tools plus the button-prompt packages).
  • llvm-mingw (the ucrt-x86_64 build), unpacked as llvm-mingw in the clone or with LONGSHOT_MINGW set to its folder. Without it the build uses the clang from emsdk at C:\emsdk with Visual Studio's C++ tools and the Windows SDK (LONGSHOT_MSVC=1 forces that route).
  • What the builder's tools folder carries and a clone does not. From an unpacked release zip, run LongshotBuilder.exe --cli --help once (it installs the tools, then runs make_game.py --help): the folder is %LOCALAPPDATA%\LongshotBuilder\versions\<version>\LongshotBuilder\tools. The builder sets the variables itself; from the command line, set them before you run make_game.py:
    • tools\cpm: the Vulkan headers and FFmpeg. Set RX_CPM to this folder. Without it (and without system Vulkan / SPIR-V / VMA headers or LONGSHOT_*_HEADERS), the standalone build stops instead of shipping a game with no renderer.
    • tools\wgpu-native: set WGPU_NATIVE to this folder.
    • tools\third_party: the prebuilt files a clone lacks (a64emit, lld-link, zbic and SDL2). Copy its .dll, .exe, .lib and .sha1 files to the same places under third_party\.
    • tools\work: copy it to work\. It holds the hot-function list, the link order, the profile and the icon; without them the game builds but runs slower.
  • .NET 8, only if you want to change the builder's --cli program itself (builder/LongshotBuilder).
Linux, the AppImage from the command line
./Longshot-<version>-x86_64.AppImage --cli --nup ~/your-game.nup --out ~/Games/Longshot   # make_game.py's options
./Longshot-<version>-x86_64.AppImage --play ~/Games/Longshot   # the game in that folder
./Longshot-<version>-x86_64.AppImage --cli --update ~/Games/Longshot # that folder built again with this release

LONGSHOT_JOBS=<n> (or --jobs <n> with --cli) limits how many files compile at once. LONGSHOT_MEM_LIMIT_GB=<n> lets the compilers take that many GB together, whatever is free now. Linux stops a compiler that does not fit; it is then compiled again alone at the end.

In a game folder, longshot is the launcher and the game itself is bin/longshot. Started with no arguments, the AppImage only says to get the Longshot Launcher.

Linux, without the AppImage

You need clang and lld (LLVM 23 or newer reads the play profile; an older one builds without it), Python 3 with pip install -r requirements.txt, FFmpeg's development files (with dav1d, for the movies) and SDL3 (SDL2 works too). Then run python -I nx2/make_game.py ... as on Windows. Vulkan / SPIR-V / VMA headers come from the distro, from LONGSHOT_*_HEADERS, or from a CPM cache via RX_CPM.

scripts/linux/deps.sh tools fetches and builds all of these into build-linux/deps (the AppImage's own tools, tools.lock's Linux lines), and scripts/linux/appimage.sh makes the AppImage. A folder built from a source checkout has no launcher: longshot there is the game.

The Windows game, built on Linux

Unpack llvm-mingw's Linux build (ucrt-ubuntu-22.04-x86_64), then run make_game.py with RX_TARGET=windows and LONGSHOT_MINGW set to its folder. The objects go to ~/.cache/longshot-builder-windows, apart from the Linux game's. The game folder runs under Proton or on Windows.

Running the game from the command line

The built game is bin\longshot.exe on Windows and bin/longshot in a packaged Linux game folder. A build from a source checkout has longshot.exe or longshot in its build folder, with no launcher beside it. The longshot.exe or longshot launcher in the game folder does not pass these arguments to the game, so start the game directly to use them.

Argument What it does
image.bin The game image to run. Without it the game uses the image.bin, romfs and user in its folder
--romfs <folder> The extracted RomFS folder
--user <folder> Where the game keeps per-user data: saves, caches and temp files (and mouse_sens.txt when HOS_MOUSE_SENS is set; the menu keeps the sensitivity otherwise). Default: user in the game folder on Windows, ~/.local/share/longshot on Linux; with an explicit image path, user in the current folder
--trace Log every Horizon OS call (the same as HOS_TRACE=1)
--prepare-shaders Prepare the shaders as the first start does, then exit without starting the game (no build step runs it)
--compile-shaders all or most What a preparation of this run builds, over compile_shaders in longshot_options.ini (the same as RX_VK_COMPILE_SHADERS): all the predicted pipelines too, most without them. See Compile shaders

For example, keep saves somewhere else:

cd "C:\Games\Longshot"
.\bin\longshot.exe --user "D:\Longshot data"
cd ~/Games/Longshot
./bin/longshot --user "$HOME/longshot-data"

longshot_env.txt and the other test switches are documented below.

AMD FSR 3.1 (every build)

AMD FSR 3.1 in the Graphics tab's Upscaler row (dlss=3 in longshot_options.ini; RX_VK_FSR=1 for one run, RX_VK_FSR=0 never) upscales in place of the game's own network, and with Frame generation at 2x its frame interpolation can make the frame in between with RX_VK_FSR_FG=1 (opt-in: the game draws its HUD into the same picture and FSR 3.1 has no HUD-less colour to keep it still, so the HUD smears; by default the renderer's own makes it). Both are AMD's FidelityFX SDK 1.1.4 shaders (third_party/fidelityfx-sdk, MIT), compiled into the renderer: no AMD runtime or DLL is needed, and the row offers FSR 3.1 on any Vulkan 1.3 GPU with push descriptors, extended storage image formats and storage writes without a format (vk: fsr3: ... can run on this GPU in the log). It upscales on the same inputs as DLSS and FSR 4: the scene's colour, its depth, motion from the camera with the skinned characters' own drawn over it (Link, his shield and the people around him keep their outline while they move), and the same camera jitter (RX_VK_FSR_JITTER=0 turns it off). Things that move by themselves and are not skinned (Navi's body, props) can still trail. RX_VK_FSR3_CHAIN=0 gives it the camera's motion alone, as before.

NVIDIA DLSS (optional, NVIDIA's SDK under NVIDIA's license)

A game built with NVIDIA's DLSS SDK offers NVIDIA DLSS and NVIDIA DLAA in the Graphics tab's Upscaler row on NVIDIA RTX cards (dlss= in longshot_options.ini, RX_VK_DLSS=0/1/2 for one run): DLSS Super Resolution in place of the game's own upscaler, with camera jitter (NVIDIA Reflex needs no SDK and is in every build). NVIDIA's files are NVIDIA's, under its own license, the NVIDIA RTX SDKs license. Longshot never includes or redistributes them: each build downloads them for itself, and only after you accept that license. Never share a game folder built with them, and do not post builds made with them.

  • The Longshot Launcher, Windows and Linux: turn on DLSS in the build's settings. It is off by default and shows NVIDIA's license when you turn it on. The build downloads the SDK into the launcher's folder and puts DLSS's runtime (nvngx_dlss.dll, libnvidia-ngx-dlss.so.<version> on Linux) and DLSS Frame Generation's (nvngx_dlssg.dll, libnvidia-ngx-dlssg.so.<version>) in the game folder's ngx folder. An update of that folder keeps DLSS.
  • A builder from the command line: --cli with make_game.py's --fetch-ngx-sdk --accept-nvidia-license (below: what they do).
  • Windows, the command line: python -I scripts/ngx_sdk.py --platform windows <sdk folder> asks you to accept NVIDIA's license (or pass --accept-nvidia-license) and fetches the headers, nvsdk_ngx_s.lib, nvngx_dlss.dll and nvngx_dlssg.dll, each checked against its SHA-256. Then build with LONGSHOT_NGX_SDK=<sdk folder>: make_game.py copies both runtimes into <game folder>\ngx. NGX is also pointed at %LOCALAPPDATA%\Longshot\ngx, and at RX_VK_DLSS_DIR when it is set, and uses the newest of each it finds across them (to try a given one, make sure no other folder has a newer one). Without nvngx_dlssg.dll there, frame generation takes the driver's own copy, which may be older: one that makes 1 frame at most, or refuses every set. Never copy NGX's core, _nvngx.dll, beside the game: it comes with NVIDIA's driver.
  • Linux, a build from source: scripts/linux/ngx-sdk.sh <sdk folder> (it runs scripts/ngx_sdk.py --platform linux) asks you to accept NVIDIA's license and fetches libnvsdk_ngx.a for the build, libnvidia-ngx-dlss.so.<version>, DLSS's runtime, and libnvidia-ngx-dlssg.so.<version>, frame generation's. Then run the build with LONGSHOT_NGX_SDK=<sdk folder> set: make_game.py puts both runtimes in the game folder's ngx folder. NGX's core comes with NVIDIA's Linux driver.
  • Linux, a game folder with other than plain English letters in its path: NVIDIA's NGX on Linux loads DLSS's runtimes only from a folder whose whole path is ASCII. A game in ~/Games/Zelda needs nothing more. A game in a folder such as ~/Games/Zelda-Café (the é is not ASCII) cannot use the runtimes in its own ngx folder, and the log and the Insert menu say so: copy libnvidia-ngx-dlss.so.* and libnvidia-ngx-dlssg.so.* from there into $XDG_DATA_HOME/longshot/ngx (~/.local/share/longshot/ngx), which the game also looks in, or into any other folder with an ASCII path and name that folder in RX_VK_DLSS_DIR.

The DLSS model row chooses DLSS's network, by NVIDIA's preset letter, for every mode: Transformer (K), the transformer model and the one tested most here (the default); Transformer 2 (M), NVIDIA's second-generation transformer as it picks it for Performance; Transformer 2 (L), the same generation as tuned for Ultra Performance; NVIDIA default, which lets DLSS's runtime pick for each mode, so it can change with a runtime update. The runtime the SDK comes with (310.9.16) has all of them. A change applies at once, without a restart (dlss_model= in longshot_options.ini, 0 to 3 in that order). RX_VK_DLSS_PRESET=<letter> (or 0 for NVIDIA's default) chooses the preset for one run and wins over the row; the log's vk: NVIDIA DLSS: ... preset <letter> line says which one was asked for, and with RX_VK_DLSS_LOG=1 NGX's own Using App hint Preset <letter> lines say which it took.

8 GB cards: DLAA draws the 3D at full size, and DLSS and DLAA add images of their own beside the game's. In busy areas that can pass what the driver allows the game, and the game then stutters: Quality or Balanced is safer there. The log's vk: status: line every 600 frames shows the video memory in use of the allowance, with DLSS's details (its images' size, the jitter and the actor motion) appended while it draws, and a vk: over the driver's video-memory allowance line says when the game passed it.

The game's log says whether DLSS started, and why not when it did not (vk: NVIDIA DLSS: lines in longshot_log.txt). NGX starts on demand: when the Insert menu first opens (to know whether the Upscaler can offer DLSS) or at the first gameplay upscale with DLSS chosen, so on the title screen the log has no NGX lines yet. With RX_VK_DLSS_LOG=1 NGX's own lines go there too (ngx:). Some of them look like errors but are not: failed to load NGXCore: 126 (twice) is NVIDIA's library looking for _nvngx.dll and nvngx.dll beside the game, which are not there on purpose, before it loads the driver's; Feature ... failed to load from cache is NGX finding no model of its own downloads (C:\ProgramData\NVIDIA\NGX\models) before it uses the game folder's nvngx_dlss.dll.

AMD FSR 4 (optional, AMD's DLLs not included)

A game built with FSR 4 offers AMD FSR 4 and AMD FSR 4 Native AA in the Graphics tab's Upscaler row: AMD's machine-learned temporal upscaler in place of the game's own, on the same inputs as DLSS (the scene's colour and depth, the camera's and the characters' motion, and the camera jitter). Native AA draws the 3D at full size and smooths its edges. With HDR on Native, it takes the game's HDR colour as linear light, so highlights above the paper white are kept (RX_VK_FSR4_HDR=0: cut at the paper white, as before). Unlike FSR 3.1 (above), it runs AMD's own DLLs, so it needs them beside the game. Choose it in the menu (dlss=4 or 5 in longshot_options.ini, RX_VK_FSR4=1 or 2 for one run, RX_VK_FSR4=0 to leave it out).

  • Windows, the Longshot Launcher: turn on FSR 4 in the build's settings. It shows AMD's license first and stays on only if you accept; the build then fetches AMD's DLLs for you (below), into the launcher's folder and the game folder.
  • The command line: make_game.py --fsr (or LONGSHOT_FSR=1 for nx2/build.py). Rebuilding a folder built with it (--update) keeps it; --no-fsr takes it out.
  • AMD's files: Longshot includes only AMD's MIT-licensed API headers (third_party/fidelityfx). Put amd_fidelityfx_loader_vk.dll and amd_fidelityfx_upscaler_vk.dll from the FidelityFX SDK 2.4 release (Kits/FidelityFX/signedbin) beside the game's exe (bin\longshot.exe) or in the game folder. (RX_VK_FSR_DIR names another folder, for testing: set it in the environment or a HOS_ENV_FILE file; longshot_env.txt takes no paths.) Without them the Upscaler row says so and offers the rest. On Linux, a Vulkan FSR 4 library (amd_fidelityfx_upscaler_vk.so, such as fsr4-vk's) takes their place: AMD publishes none for Linux, so you put it beside the game yourself. A Linux build with FSR 4 (--fsr) compiles its own Vulkan back end, as with DLSS, since the AppImage's prebuilt one has no FSR 4: a few minutes longer.
  • Or fetched for you (Windows): make_game.py --fsr --fetch-fsr-runtime --accept-amd-license downloads those two DLLs and AMD's license from AMD's FidelityFX SDK repository at the v2.4.0 tag, checks each against its SHA-256, and puts them in the game folder (LONGSHOT_FFX_SDK=<folder> keeps them between builds, default work fx-sdk). python -I scripts/ffx_sdk.py --accept-amd-license --game <game folder> does the same for a game built already. Without --accept-amd-license nothing is downloaded (the script asks when run by hand), as with NVIDIA's license for DLSS. AMD DLLs already in the game folder that are not v2.4.0's (a newer SDK put there by hand) are left alone, and the build says so. They are AMD's, under AMD's FSR SDK license (LICENSE-AMD-FSR-SDK.md beside them). On Linux the flag does nothing but say so.

The log's vk: AMD FSR 4: lines say which of AMD's upscalers it found for the card and which it uses (the newest FSR 4; never an older FSR in its place), and why not when it did not start. Tested on an RX 6700 XT (RDNA 2).

Switches for testing (longshot_env.txt)

Switches to test (RX_VK_NOOPT=1 and the others) go in longshot_env.txt in the game folder, one NAME=VALUE a line, on Windows and Linux. The running game reads it, not the builder. A test run can name another file with HOS_ENV_FILE=<path>; the game then reads that one instead and leaves longshot_env.txt alone. longshot_env.txt sets only the game's own switches (names that start with RX_, HOS_, LONGSHOT_, EDEN_, NVN_ or SDL_, but not SDL's library names such as SDL_VULKAN_LIBRARY), and no value that is a path except RX_VK_DLSS_DIR's (a folder on this PC, not a network share), and no value at all for the switches that name a file or folder (HOS_AUDIO_DUMP, RX_VK_SHOTS and the like) or press buttons on a timer (HOS_INPUT_SCRIPT, RX_VK_MENU_SCRIPT); other lines are left out, and the log says so. Switches that need a path, or other variables, go in a file named by HOS_ENV_FILE. A switch set in the environment the game is started with (a shell's HOS_FULLSCREEN=0 ./longshot, a launcher's own) goes over the same name in the file, and the log says so; within the file, a later line replaces an earlier one. A switch that stands in for a menu row (RX_VK_PACE, RX_VK_UPSCALE, RX_VK_FRAMEGEN_MULT, HOS_REALTIME_STEP, HOS_DYNRES, HOS_OUTPUT_RES) applies to that run only: longshot_options.ini keeps the value chosen in the menu.

To enable the debug tools, turn Debug tools on in the menu's Debug tab (or add HOS_OOT_CHEATS=1 to longshot_env.txt in the game folder). The tools then show below it on the same tab. Damage taken is in the Player group beside Heart protection: Half, Normal (the default), Double or Quadruple. It applies only while Debug tools is on: off, Link takes Normal damage, and the saved choice returns when the tools do. Heart protection takes priority while enabled. The tab's Developer section, always shown, has the Descriptor reuse, Sampler cache, Robust buffers and ASTC as RGBA8 rows.

A save whose minimap stopped showing after a Teleport on an earlier build (the area left had hidden it, and the flag stayed set in the save) is mended by the Teleport itself: teleport to an outdoor area, wait until you can move, then save from the game's System menu. The minimap then stays after a restart.

RX_VK_UI_GAME_FONT=0 draws the menu with the included font (Libertinus) even when the game's files have the game's own menu font. RX_VK_UI_PROMPTS=pad (or keys) shows the controller's (or the keyboard's) prompts whatever was used last, for screenshots.

For a first run on a 4 GB card such as a GTX 1650, RX_VK_LOW_SPEC=1 starts with the Minimum (4GB) preset, with frame generation and upscaling off. It applies only when there is no longshot_options.ini yet; after that, change the settings in the in-game menu.

On Minimum (4GB), when the driver reports a nonzero VRAM budget of at most 4.5 GiB, sampled ASTC textures use a 1024 dimension limit and an 8 MiB decoded-size threshold for leaving out their top mip levels. This lowers texture detail to reduce the working set. Other presets and larger or unknown budgets keep the 2048 / 64 MiB defaults; uncompressed render targets, depth images and the separate RX_VK_TEX_MAX_MB allocation limit keep their handling. The driver budget is sampled at the first texture creation and kept for the session. It is a heuristic, not a physical VRAM measurement: other applications can lower the budget even on a larger card.

RX_VK_LOW_VRAM_MIPS=0 (also off, false or no) disables the automatic rule. RX_VK_TEX_MAX_DIM overrides only the dimension limit, so setting it to 2048 still leaves the automatic 8 MiB threshold active on Minimum with a small budget. RX_VK_TEX_SKIP_MB overrides that threshold using its existing parsing. For a more aggressive experiment, use RX_VK_TEX_MAX_DIM=512 RX_VK_TEX_SKIP_MB=2. Changes to these environment switches take effect after a restart.

RX_VK_MOVIE_UPSCALE=linear replaces the movies' neural upscale with the plain linear one. The default, auto, keeps the networks and falls back only when a movie frame takes the GPU more than 40 ms. That is on NVIDIA cards: on other cards, or where the GPU cannot multiply the networks' matrices itself, the movies always get the linear upscale. It does not change the gameplay upscaler, and movies can look softer. RX_VK_NETWORK_KEEP=all takes precedence and keeps the movie networks.

RX_VK_SKIP_CODE=<prefix,...> leaves out the draws of every program with a stage whose native code key starts with one of the prefixes (the keys the log prints after "its code:"). On a Steam Deck, RX_VK_SKIP_CODE=2c56dc1006942f74 avoids a GPU hang in Kokiri Forest and the Great Deku Tree: the GPU runs for seconds in the programs that share that task shader (a culling pass) until the kernel resets it (#817). It is a workaround, not a fix: those are task + mesh programs, so the geometry they draw goes with them, and key models are missing while it is set. Off unless set.

The switches for scripted test runs, screenshots, frame dumps and profiles are in the development guide.

RX_VK_WB_MAX_KB=<KB> (off by default; 1024 is the tested value) is the size from which a written GPU binding may go without most of its write-back. OoT writes tens of MB of culling lists and per-frame buffers through the GPU that the CPU never reads, and copying them back sat on every submit's memory sync: in Hyrule Field on a 10 GB RTX 3080, about 66 MB and 4.4 ms a submit, holding the scene at 45-48 fps. The CPU does read and write parts of some large ones, so a binding over the size is written back whole for the first RX_VK_WB_PROBATION submissions that write it (default 8), and after that only the ranges the CPU read or wrote meanwhile, and its first and last page when it shares them, are written back (gpu/vk/wb_learn.h). The trade-off: a range the CPU first touches only after that (read more rarely than every 8 frames) gets the stale copy once, and is written back from then on; the log names each one (in a binding whose write-back was left out). Unset or 0, every written binding is copied back whole. It is off by default because, measured so far (an RTX 3060 Ti on Windows, an RX 580 on Linux with its mirror forced on), it copies back ~50 MB a frame less at the same frame rate: results from laptops and other slow PCIe links are wanted. RX_VK_LOG_WB_SKIPS=1 lists the bindings left out every 600 submits.

RX_VK_PROGRAM_CACHE_ZSTD=1 keeps the translated shader programs in longshot_programs.zst.bin, each record compressed with zstd and unpacked when it is read. The uncompressed cache is about 6.9 GB; in the reference cache (46,587 programs) zstd's level 3 made it 1.83 GB (3.75x). It is a file of its own: an existing longshot_programs.bin is left alone, and the first run translates the programs into the compressed cache.

How it works

  1. nx2/lift.py translates the game's ARM64 code to C.
  2. nx2/build.py compiles that C together with host/, which plays the part of the console's system.
  3. host/nvn_native.c records the game's NVN2 graphics calls, and gpu/vk/ replays them on Vulkan.
  4. Switch 2 Ampere shaders are lowered to Maxwell (lower_to_maxwell.h) and translated to SPIR-V by Eden's shader recompiler.

More detail is in the development guide and the design notes.

Want to help?

Testing on other graphics cards and reporting the result already helps a lot, and so does playing further into the game than anyone has yet.

Send your pipeline list

The first time the game meets a pipeline it builds it on the spot, which stutters. Releases build a list of known pipelines before the title, and every player's play adds to it. To send yours:

  1. In the game, open the menu (Insert or F1), go to the Debug tab and choose Save my pipeline list (under Developer). Or, from a clone, run python -I nx2/pipeline_share.py <game folder>.
  2. It saves longshot-pipelines-<date>.zip in your Downloads folder, copies a filled-in report to the clipboard and opens the Submit your pipelines issue in your browser.
  3. Attach the zip to a comment there, paste the report and fill in where you played.

The zip holds only longshot_pipeline_states.bin (shader hashes, formats and draw state, and the hashes of the compute programs your play ran, so that a release can keep those ready too: no game code, game data or personal info) and the report (the version, OS, GPU and driver, output and render resolution, upscaler, frame generation, HDR and the mods the game loaded). Nothing is uploaded for you. If the list is missing or damaged, it says so and saves nothing. In a run without a window (HOS_HEADLESS) the menu saves the zip but opens nothing.

Bigger ways to help:

  • Linux testing. The Linux build (host/posix) has been tested on several distributions and cards: reports from others still help.
  • Fixes in your own fork. Fork the project, fix what you find and send the change back. Keep game files, keys and anything generated from your game out of it.

CONTRIBUTING.md has the setup, the test commands, the code conventions and what a good pull request looks like.

License

Longshot is free software under the GNU General Public License, version 3 or later (GPL-3.0-or-later). It is a modified version of Hookshot, which NotRexed released under the same license; the changes made since the fork are Longshot's.

Hookshot: Copyright (C) 2026 NotRexed and the Hookshot contributors
Longshot: Copyright (C) 2026 the Longshot contributors

It includes code from Eden and suyu, which are under the GPL too. Third-party parts under other licenses that work with the GPL (Sirit, the Vulkan Memory Allocator, SDL, Opus, Dear ImGui, zstd, the Libertinus fonts, zbic and the a64-kit tools) keep their own notices in their folders.

Longshot is an unofficial fan project, not affiliated with or endorsed by Nintendo. The Legend of Zelda and Ocarina of Time are trademarks of Nintendo.

Credits

Longshot is a fork of NotRexed's Hookshot, and exists thanks to the work of many people:

  • NotRexed: Hookshot, which Longshot is a fork of, BlueShell (Mario Kart World), Skybound (Tears of the Kingdom) and the a64-kit tools.
  • Eden and Eglantine: the shader recompiler and Switch 2 shader work.
  • suyu: the graphics decoders and the AArch64 translator.
  • seedds/nxnative: reference for how task and mesh shaders work.
  • EvilBoyce / evilmfkr (EvilOOT): the GPU culling that brings back Kokiri's foliage (trees, ferns, grass, falling leaves, fireflies), the ambient light probes, the pond's water, the game's own fog, the freeze after Load (Horizon's mutex handoff) and the exposure flicker fix.
  • zortos293/Lichii: reference for Ampere shader lowering, and its compare-exchange retry fix.
  • mstorsjo/llvm-mingw: the bundled Windows compiler (no Visual Studio needed).
  • NVIDIA DLSS: builds made with NVIDIA's DLSS SDK (optional, downloaded by each build, never bundled) use NVIDIA DLSS Super Resolution, NVIDIA's technology. NVIDIA and DLSS are trademarks of NVIDIA Corporation.
  • AMD FSR 3.1 and FSR 4: every build has AMD FidelityFX Super Resolution 3.1, built from AMD's MIT-licensed FidelityFX SDK shaders; builds made with FSR 4 (optional; AMD's DLLs are never bundled) use AMD FidelityFX Super Resolution 4 through AMD's MIT-licensed FSR API headers. Both are AMD's technology. AMD, Radeon and FidelityFX are trademarks of Advanced Micro Devices, Inc.
  • kinnay/zbic, Opus and SDL: decompression, audio and controllers.
  • sostenesfreitas/ocarina-recomp: this README's layout, and its notes confirmed the mesh stage's control section.
  • MythosOfs/Orchid: the fog and exposure workaround Ocarina of Time used before its fog and lighting were fixed.
  • Mesa (NAK): the reference for Ampere's instruction encoding.
  • Everyone who sent fixes: SkippySteve (Linux and the AppImage, and many more), monsterlag, klimovich008, hckrman101 (NVIDIA DLSS, DLAA and Reflex, the exposure flicker and fog fixes, build speed, CI), madebyjordan (AMD FSR 4.1), N3oTraX (FSR 4 on Linux), shayderrr, gab9281, Wpaif, nicholasgower, ZurielAtr, Joey-Magnus, Zorkats, d3zessete, chrispository, vzeol, leonidasmark, Segmentree, ShyVortex, hiKareeem and i900gaming, among others.