Read-only copy of github.com/Slaktarn700/SlaktarnVI · Valhalla, by Slaktarn: an Xbox Series compatibility layer (VIctory fork) for Linux under Proton, tuned for AMD RX 9070 XT. No game files.
  • Rust 97.8%
  • Python 1.4%
  • Shell 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Slaktarn700 517764250a Indoor light and the sun with ray tracing off, a see-through stats panel, no frame cap
- Rooms no longer go dark when the camera turns from a window: the light
  estimate took the change for a new place and forgot the window's light,
  the room fell to black and the window blinded when it came back.
- The light estimate reads the scene's depth, not its stencil plane.
- Shade by day is no longer nearly black (the game's sky light in the shade
  held to 8 times the estimate, not 2.2): the sun, sky and reflections glare
  less.
- The stats panel is blended over the picture; the frame cap has No limit;
  a missing shaders.rpf is said plainly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-12-05 21:42:19 +01:00
.cargo A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
.githooks Valhalla, by Slaktarn: a VIctory fork for Linux under Proton on AMD RX 9070 XT 2026-11-27 15:29:16 +01:00
.github/workflows A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
apps/victory A plain warning for another build of the game, a texture upload race fixed, FSR jitter counted 2026-12-05 07:08:46 +01:00
config A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
crates Indoor light and the sun with ray tracing off, a see-through stats panel, no frame cap 2026-12-05 21:42:19 +01:00
docs The long-session crash fixed, 1.5 GB less video memory, no glowing dust indoors 2026-12-05 05:50:11 +01:00
linux Indoor light and the sun with ray tracing off, a see-through stats panel, no frame cap 2026-12-05 21:42:19 +01:00
patches A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
scripts A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
tests/fixtures/hle-probe Valhalla, by Slaktarn: a VIctory fork for Linux under Proton on AMD RX 9070 XT 2026-11-27 15:29:16 +01:00
tools A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
xtask Asset policy: .desktop files allowed (the launcher's menu entry from #54) 2026-12-05 04:20:45 +01:00
.gitattributes A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
.gitignore A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
.victory-root A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
build.sh A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
Cargo.lock A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
Cargo.toml A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
env.sh A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
install.sh Fixes from issues and PRs: dxil.dll from the Windows zip, spirv-tools-dev, a message on Windows, Tools steps stop on failure 2026-12-05 04:20:07 +01:00
LICENSE Valhalla, by Slaktarn: a VIctory fork for Linux under Proton on AMD RX 9070 XT 2026-11-27 15:29:16 +01:00
README.md Indoor light and the sun with ray tracing off, a see-through stats panel, no frame cap 2026-12-05 21:42:19 +01:00
run.sh A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
rust-toolchain.toml Valhalla, by Slaktarn: a VIctory fork for Linux under Proton on AMD RX 9070 XT 2026-11-27 15:29:16 +01:00
rustfmt.toml Valhalla, by Slaktarn: a VIctory fork for Linux under Proton on AMD RX 9070 XT 2026-11-27 15:29:16 +01:00
setup.sh A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00
victory.example.toml A new base: VIctory-xmem, with steadier light, fewer texture flashes and a new README 2026-12-02 16:11:00 +01:00

SlaktarnVI: Valhalla, by Slaktarn. An Xbox Series compatibility layer for Linux and AMD Radeon.

License: GPL-3.0-or-later Platform: Linux GPU: AMD Radeon Base: VIctory-xmem Rust 1.98

Start here  |  Status  |  Quick start  |  How it works  |  Presets  |  Keyboard and mouse  |  Troubleshooting  |  Credits


Caution

Linux and AMD Radeon only

Your PC Does SlaktarnVI run?
Linux with an AMD Radeon card (8 GB or more, resizable BAR on; tested on RDNA 4, RDNA 3 recommended too, RDNA 2 reported to run) Yes
Windows, with any card No
Linux with an NVIDIA or Intel card No
Steam Deck or other AMD handhelds Not tested

The program runs under Proton with a copy of Mesa's AMD driver (RADV) that it builds for itself, and it relies on that driver: the game's memory is mapped straight into the card. Windows' drivers and NVIDIA's cannot do that, so on this base those systems cannot be supported, not "not yet".

Installing through a launcher does not change this. Launchers that list many projects (VILauncher, i95, ViceLauncher and others) may offer SlaktarnVI on Windows too: there it stops at the start with "unified memory is not there", and since 2026-12-05 the log says plainly that Windows is not supported. On Windows or with an NVIDIA card, please choose a project made for your system.

When you report a problem or rate this project, please say your system: reports from Windows or NVIDIA describe a PC it was never made for.

Important

No game files, code or assets are in this repository, and no binaries built from them. You need your own legally obtained copy of the title. This project is not affiliated with or endorsed by the title's developer or publisher, nor by Microsoft or AMD.

SlaktarnVI (Valhalla, by Slaktarn) is a fork of VIctory-xmem by lobomfz, itself built on VIctory by Marvisak and many other forks. VIctory-xmem lets a patched AMD driver map the title's memory straight into the graphics card, the way the console shares it, so nothing is copied back and forth every frame. On top of it this fork adds its own launcher, keyboard and mouse play, the light and texture fixes below, and fixes taken from other forks with their authors' names (Credits).

Start here

1. Before you begin

  • Linux: Arch or CachyOS, Fedora, Debian or Ubuntu (Bazzite inside a Fedora distrobox). Not Windows.
  • An AMD Radeon card (RDNA 3 or 4 recommended) with resizable BAR on: in the BIOS, "Above 4G Decoding" and "Re-Size BAR" (or "Smart Access Memory").
  • 16 GB of RAM at least (32 GB recommended): the game needs about 12 GB of it free when it starts.
  • Steam with Proton Experimental installed: in Steam, Library, search "Proton Experimental", Install.
  • Your own copy of the game, version 1.0.2.1: the fixes are made for that build, and another one stops at the start.

2. Open a terminal and paste this

curl -fsSL https://raw.githubusercontent.com/Slaktarn700/SlaktarnVI/main/install.sh | bash

Answer its questions. It asks before it installs anything (sudo then asks for your password) and where your game is. The first time takes 20 to 40 minutes.

You do not download anything else by hand: the command gets everything itself, each file from its maker's own release and kept only if its checksum matches. That includes the Windows DLLs the game needs (Microsoft's d3dcompiler_47.dll and dxil.dll, AMD's FidelityFX amd_fidelityfx_upscaler_dx12.dll and amd_fidelityfx_framegeneration_dx12.dll), the driver copy and Proton, all built or fetched for you. Only Steam's Proton Experimental (step 1) and your game files are yours to provide. If a DLL is ever reported missing, the launcher's TOOLS, Get the DLLs fetches it again.

3. Play

Start SlaktarnVI from your applications menu, choose the S70 preset, and press PLAY.

To update later, paste the same command again.

Features

Area What you get
Graphics The console's Direct3D 12 and its shaders translated to PC ones, at Series X or Series S settings
Memory The title's memory mapped straight into the card by this project's copy of the RADV driver
Lighting without ray tracing A stand-in for the traced indirect light that remembers the light by direction, so turning or looking up does not swing the whole room
Upscaling The title's own upscaler in the presets; AMD FSR 4 and FSR 3.1 by choice
Frame generation AMD FSR, one generated frame for each real one (by choice; see Frame generation)
Keyboard and mouse Built in, with a key guide on F1 and your own keys in a file
Controller Works as on the console, also beside keyboard and mouse
Screens Windowed or borderless full screen; on an ultrawide screen the picture keeps its shape, with black bars beside it
Launcher Presets, resolution, upscaler, controls, the driver and Proton set-up, shader and pipeline preparation, logs, launcher music (a file of your own, from a chosen second, looped, with volume and mute)
Numbers on screen F3: rendered and displayed rate, upscaler, frame time, 30 s high, low and average, draws, CPU, GPU, RAM, VRAM
Ray tracing Works, about 40% slower (22.6 against 38 fps in two short drives from the same save, 2026-12-05) and with picture problems: off in the presets

Status

Real frames per second on the tested PC: previous release about 18 in the open world and 20 to 22 in the opening scenes; this release a median of 43.1 and 35.3 for the slowest tenth over three hours.

Tested on one PC only (below), 2560x1440, Series X settings, ray tracing off, no frame generation:

Real frames a second
This release, a 3-hour session in the open world (2026-12-02, preset S70) median 43.1, slowest tenth 35.3, lowest 21.7; no crash
This release, shorter runs with the light memory and the texture fixes (2026-12-02) median 41 to 45, slowest tenth 35
Previous release, opening scenes (2026-11-29, FSR 4 Quality) 20 to 22
Previous release, a parking lot in the open world (2026-11-30, FSR 4 Quality) about 18

The two releases differ in base and in upscaler (the previous one used FSR 4 Quality, the presets now use the title's own), so the comparison is of what you get, not of equal work. Scene cuts still drop for a moment. The goal is a steady 30 real frames a second without ray tracing, then with it.

Note

Ratings on community trackers are mostly of the previous release. The reports there (8 to 11 fps) were made before 2026-12-02, with ray tracing on (the S70 preset had it on until 2026-12-01), and close to half of them from Windows or NVIDIA, which this project does not support. If you test the current release, a new report with your system named helps everyone.

What is new

2026-12-05.5: indoor light, the sun, a see-through panel, no frame cap

All with ray tracing off (the standard); with it on, the game lights itself and none of these change it.

  • Rooms no longer go dark, and windows no longer blind: turning from a window to a wall made the light estimate forget the window's light (it took the change for a new place), so the room fell to black, the game raised its exposure to the top, and the window glared white when it came back. Measured with the light probe on the same walk in one room: near-black frames 26 % before, none after; the room's light 2.7 times higher on average (VICTORY_AMBIENT_SETTLE=250,3 for the old behaviour).
  • The light estimate reads the scene's depth: it read the depth texture's stencil plane instead (found by ReVIctory), so it placed every surface wrong.
  • The sun, sky and reflections glare less: shade by day was nearly black (the game's own sky light in the shade was held to 2.2 times the estimate; now 8). The game's exposure no longer rises for black shade, so sunlit places, reflections and the sky calm down (VIctory-xmem issue 141 measured it; VICTORY_AMBIENT_MOST).
  • The stats panel is see-through: the game's interface shows behind it; the text keeps a solid outline.
  • "No limit" in the frame cap, beside 30 and 60 fps.
  • A missing shaders.rpf is said plainly when shaders are prepared, instead of only "not prepared".

Not fixed yet: a blue-white glow on some indoor surfaces (beds, door frames), black mirrors, and frame drops while driving into new areas.

2026-12-05: the long-session crash, less memory, no indoor specks
  • The crash after 10 to 90 minutes (unhandled exception ... +0x2215c35, also +0xad533c and +0x2626911): two of the title's worker threads could change the same entry of its own memory allocator at once, which broke its lists; the title then hung until its watchdog ended it. The entry is now changed under the title's own lock. From VIctory-xmem (#466 by vMohammad24); reported gone after hours of play there. Here: both patches apply to the 1.0.2.1 executable; please report if it still happens.
  • 1.5 GB less video memory: the title's textures are placed with tight alignment where the driver allows it, and upload buffers are used again instead of made anew (both from VIctory-xmem, by Jenslee Dsouza). Measured here at the same spot: 11.9 GB in use instead of 13.4 GB, textures let go for lack of room 192 MB instead of 2,178 MB, the same frame rate.
  • No glowing dust and haze indoors: without ray tracing, the title lit indoor dust and smoke with the open sky's light (white specks, a pale veil). That light is now held to the light around (VICTORY_AMBIENT_ALPHA, on; 0 for the old look). From VIctory-xmem (by Spel0).
  • FSR Ultra Performance is gone from the launcher: the program takes render scales from 0.5 to 1.0, so it was refused and the game rendered at full size. The other modes were checked: Performance renders 1280x720 for a 2560x1440 picture.
  • Frame generation costs far less (2026-12-05.4): it now runs without the extra "proxy" swap chain, which on RADV left the graphics card idle about 6 ms of every real frame (from VIctory-xmem, by coil111; the launcher turns it on with frame generation). Measured here at the same place: FSR 4 Quality with frame generation 40.7 real fps (about twice that shown), against 44.0 with neither; before, frame generation cost 10 to 15% of the real rate.
  • Later the same day (2026-12-05.3): surfaces whose texture is not made yet show neutral grey instead of green or black patches (from VIctory-xmem #557 by deebsy); rivers and pools no longer drag the player or a boat one way (the water's flow map reaches the game's physics; from ReVIctory); a texture's early upload no longer throws away a newer refresh (from Darner); and the log says plainly when the game executable is not version 1.0.2.1.
  • "Skip the intro" is gone from the launcher: it cut the game's video (green TVs) and pressed Enter by itself through the menus. The game now always starts as on the console.
  • Two switches to try, off by default: VICTORY_KEEP_SHOWN=3 (a waiting texture slot keeps its picture even when the card is short of memory; from VIctory-xmem #503) and VICTORY_HDR_CLAMP=1 (bright pixels held to the console's range, against glitter; from ReVIctory). The second makes the first start translate the shaders again.
2026-12-02: a new base, steadier light, fewer flashes
  • A new base: VIctory-xmem. The title's memory is mapped straight into the card by a patched RADV (Mesa's AMD Vulkan driver), which this project builds as a copy for itself (linux/setup-driver.sh; your system's driver is not changed). About twice the real frame rate of the previous release on the tested PC.
  • Light that does not swing as you turn. Without ray tracing the indirect light is estimated from what is on screen; a bright window or looking up or down used to brighten or darken the whole room. It now remembers the light by the direction it came from, in the title's own camera frame, and a direction never seen does not count (VICTORY_AMBIENT_MEMORY, on in the launcher). The title's camera is read as ReVIctory decodes it.
  • Fewer black and grey flashes on textures, four fixes on in the launcher: a texture whose memory has not all arrived is shown from its first complete level instead of black (VICTORY_PARTLY_CLAMP, from foxhound); a slot keeps its texture while the next one uploads, also when the card is short of memory (VICTORY_KEEP_SHOWN=2, from jaxe); slots that wait or were let go show grey, not black (VICTORY_GRAY_WAITING, from Leila); the grey stand-in's alpha is under a half, so leaves are not drawn as grey cards while they load (VICTORY_NEUTRAL_ALPHA=127, from jaxe).
  • No more dark 16x16 tiles in the local lights' shadows (wave-wide branch splits off by default).
  • Vehicle parts: four instance-culling pipelines that could not be made before (a loop with two back edges) are made now.
  • Full screen on any screen: borderless full screen, with black bars on screens that are not 16:9, also with the interface on a plane of its own (by ARustyOven, and ours for the two-plane case). The numbers' panel reports the frame's size, not the window's (by ARustyOven).
  • The numbers' panel is ours again (F3), and the key guide sits beside or below it.
  • Small card buffers placed together in shared heaps (by Bushyon, VICTORY_CARD_POOL=0 to turn off).
  • Shader preparation runs on a larger stack and no longer stops on a deep shader.

The launcher, later the same day:

  • Six presets: Low, Medium, High and Ultra are back beside S70 and S700, and the PLAY page suggests the one for your card (its memory, and RX 9000 or not). A Custom set-up has Back to its preset.
  • TOOLS, Update: brings SlaktarnVI up to date and builds again what changed, without a terminal.
  • TOOLS, Clear caches: for when something looks wrong after an update (asks first; saves and settings kept).
  • Prepare after an update: when an update changes how shaders are translated, PLAY offers to prepare them again first, against stutter and dark places.
  • The game folder is found by itself (SYSTEM, Find it, and at PLAY when none is set), in your home, Games, Downloads, Steam's libraries and other drives.
  • Last time's numbers next to PLAY: how long you played and the median real frame rate.
  • When the game stops by itself it says so plainly, with Copy a report and Open the logs.
  • "Skip the intro" no longer stops the TVs: it skips the movies of the first 90 seconds only (the logos and the intro), not the clips the TVs play in the world (VICTORY_SKIP_BINK=intro).

Open pull requests made for the previous base may no longer apply. Please rebase them on main.

Earlier updates (previous base)

2026-12-01: starts and first starts on other PCs

  • Set up Proton (Tools, or linux/setup-proton.sh): the two Proton patches, built for you. About twice the frame rate where they were missing (21 against 8 to 11 fps), and no random crashes while loading.
  • A crash of the driver's shader compiler no longer ends the game without a word; the pipeline is left out and named in the log.
  • No face or broken hair on a first start: what the game makes once is waited for.
  • Cards of 8 GB: textures get the memory first (8 GB is the least; 4 GB stays mostly black).
  • A d3dcompiler_47.dll or dxil.dll that is a web page, incomplete, 32-bit or ARM64 is named before the start.
  • Two presets, S70 and S700, instead of five; the HUD at its 4K size below 4K (by Timmybread22); fewer card-memory waits (by Timmybread22); frame generation takes the picture without the HUD (by Timmybread22); full screen and a compact overlay (by BottyIvan).

2026-11-30

  • Picture fixes from other forks: BC7 textures read one step off (coloured specks), decorations baked after their uploads, the ocean's height map in memory, the terrain's page table in time.
  • The launcher has logs and "Copy a report"; what is missing or wrong is named instead of a black screen; the executable is found by itself; settings that ruined the game are gone or mended.
  • FSR drew a black picture in release builds: fixed. Keyboard and mouse play. FSR 3.1 on cards that are not of the RX 9000 series. A damaged newest save never costs an older whole one. Phone calls, TVs and other filtered sound are heard (after ReTerryDavis/ReVIctory and zeex64).

2026-11-29 and before

  • The shore's sand and the plants on the water are drawn (after ReTerryDavis/ReVIctory); late or lost textures; pipelines prepared on an empty cache; a crash dumper and a stall watch that do not hang; a dead zone for the sticks (thanks to pmaho); characters stretched to a point; trees popping.

Known problems

  • The crash after 10 to 90 minutes (+0x2215c35) has a fix in 2026-12-05.2 that is reported to work after hours of play elsewhere; tested here only in short runs. Please report if it still happens (#49).
  • AMD FSR can look soft in every mode (#48): the render size changes with the mode as it should; whether the title moves its camera by the sub-pixel steps FSR needs is being looked into.
  • Water was seen to disappear for good during a jet ski mission on the High preset (#55), and an indoor wall to turn dark (#50): not reproduced yet.
  • Scene cuts drop the frame rate for a moment; the first start prepares every pipeline (several minutes).
  • Without ray tracing the light still follows the title's own exposure (its eye adaptation) and, out of doors, its own sky light, which change with the view. Ceilings can look dark when you look up while facing a bright window.
  • Textures can still arrive late or flash for a moment in places; please report where.
  • Ray tracing is slow and has picture problems.
  • Keyboard and mouse: some button meanings are guesses (change them in keys.txt); in vehicles the mouse buttons do nothing yet.
  • Not supported: Windows, NVIDIA, Intel (above). Not tested here: AMD cards other than RDNA 4. Several fixes came from people who reported them.

Quick start

One command does all of it, from nothing to PLAY, and the same command updates it later:

curl -fsSL https://raw.githubusercontent.com/Slaktarn700/SlaktarnVI/main/install.sh | bash

In nine steps, each skipped or quick when it is done already:

Step What it does
1. This PC Checks for an AMD Radeon with resizable BAR and for Steam's Proton Experimental, and says how to fix either
2. Tools and libraries Names everything your system lacks at once, with the command for Arch/CachyOS, Fedora or Debian/Ubuntu, and offers to run it (sudo asks for your password); offers to install rustup too
3. The source Clones into ~/SlaktarnVI, or brings it up to date with git pull (a clone with your own changes is left as it is)
4. The launcher Puts its Python library (PySide6) in linux/.venv if your system has none
5. The program linux/setup-build.sh: Rust through rustup, cargo-xwin, the build (asks you to accept Microsoft's SDK license)
6. The DLLs linux/setup-dlls.sh: Microsoft's shader compiler and AMD FSR
7. The driver linux/setup-driver.sh: this project's copy of the AMD driver
8. Proton linux/setup-proton.sh: the patched copy of Proton Experimental
9. Your game Asks where it is (or --game <folder>), offers to prepare its shaders and pipelines, and adds SlaktarnVI to your applications menu

Then it starts the launcher. Nothing is changed outside the folder, your home's caches and the menu entry, unless you say yes to installing packages or rustup. In a clone, ./install.sh does the same. Options: --game, --dir, --yes (yes to every question), --check (says what is there and what is missing, changes nothing), --no-fsr, --no-proton, --no-prepare, --no-menu, --no-launch; --help lists them. The first run takes 20 to 40 minutes and roughly 1 to 2 GB of downloads: the driver and Proton are built from source.

Desktop entry for a manual build

The generic linux/slaktarnvi.desktop starts valhalla.sh from the desktop session's PATH. After setting up the launcher and its dependencies, install it for your user from the repository root:

mkdir -p "$HOME/.local/bin" "${XDG_DATA_HOME:-$HOME/.local/share}/applications"
ln -s "$PWD/linux/valhalla.sh" "$HOME/.local/bin/valhalla.sh"
cp linux/slaktarnvi.desktop "${XDG_DATA_HOME:-$HOME/.local/share}/applications/"

Ensure ~/.local/bin is in the desktop session's PATH (a terminal-only PATH change is not enough), and keep the source folder in place. If you move it, update the symlink. Alternatively, ./install.sh creates a menu entry with an absolute path.

The steps it runs, to do them by hand:

You need: your own copy of the title; an AMD Radeon card (RDNA 3 or 4 recommended) with resizable BAR on in the BIOS ("Above 4G Decoding" and "Re-Size BAR"); Steam's Proton Experimental; rustup (not your distribution's rust or cargo package); Python 3 with PySide6; git, curl, unzip, a C compiler and the build tools the set-up scripts name.

1. Get the source and build it

git clone https://github.com/Slaktarn700/SlaktarnVI
cd SlaktarnVI
./linux/setup-build.sh

It installs, through rustup, the Rust version rust-toolchain.toml names with the Windows target, then cargo-xwin, and builds the Windows program in target/ (--diag for the build with diagnostics). It uses rustup's own cargo whichever comes first in your PATH. cargo-xwin downloads Microsoft's C runtime and Windows SDK headers and libraries on first use; the script asks whether you accept Microsoft's license (or set XWIN_ACCEPT_LICENSE=1 once you have read it).

The same by hand
rustup toolchain install 1.98.1 --profile minimal --component rustfmt,clippy --target x86_64-pc-windows-msvc
rustup run 1.98.1 cargo install --locked cargo-xwin
rustup run 1.98.1 cargo xwin build --locked --release -p victory --bins --target x86_64-pc-windows-msvc

2. Build this project's driver (once, and again when patches/mesa.patch changes)

./linux/setup-driver.sh

A copy of Mesa 26.3.1's AMD Vulkan driver with this project's patch, in linux/driver, used by this program alone. Your system's driver is not replaced or changed, nothing is installed and no rights are asked for; delete linux/driver to undo it. About 1.5 GB of disk and 5 to 15 minutes. The launcher can do it too (Tools).

3. Set up Proton (once, recommended)

./linux/setup-proton.sh

A copy of Proton Experimental in linux/proton-patched with two files built again from Valve's source with this project's patches: on the tested PC about 21 fps with it and 8 to 11 without, at the same place and settings, and no memory that reads as zeros (random crashes in 2 of 60 test runs without it, 0 of 60 with). Steam's own Proton is not changed. About 4 GB of disk and 5 to 20 minutes. Details: docs/proton-patches.md.

4. Microsoft's shader compiler and AMD FSR

./linux/setup-dlls.sh

Fetches the Windows DLLs the program needs, from their makers' own releases, and keeps each only if its SHA-256 is the expected one:

File Where it goes From Needed
d3dcompiler_47.dll linux/keep/ms-d3d/ Microsoft's shader compiler, a Windows 10 SDK build (via mozilla/fxc2) yes: without it the world is black
dxil.dll linux/keep/ms-d3d/ Microsoft's DirectX Shader Compiler, release v1.9.2609 yes
amd_fidelityfx_upscaler_dx12.dll linux/keep/fidelityfx/ AMD FidelityFX SDK 2.4 for FSR only
amd_fidelityfx_framegeneration_dx12.dll linux/keep/fidelityfx/ AMD FidelityFX SDK 2.4 for frame generation only

About 125 MB of download (--no-fsr: about 36 MB, Microsoft's two only). DLLs already there are kept, also ones you put there yourself; --check says what there is and changes nothing, --force fetches all again. The launcher does the same from Tools, Get the DLLs. Nothing is installed anywhere else.

Warning

A d3dcompiler_47.dll of your own must be a Windows 10 or 11 SDK build (file version 10.0.x). The 6.3.9600 one many games ship knows no shader model 5.1: the world would be black under the interface. The script and the launcher both say so, and the script replaces such a one.

5. Start the launcher

./linux/valhalla.sh

Choose the title's folder (anywhere outside this repository), choose a preset, and press Play. Before the first start, or after an update, run Shaders and pipelines in Tools: every shader is translated and the pipelines are built (several minutes and about 6 GB of cache). Saves, caches, logs and the launcher's settings are in ~/.local/share/valhalla-xmem/ (VALHALLA_HOME= for another place), never in the source folder.

Without the launcher

GAME_DIR=/path/to/your/copy ./linux/run-xmem.sh play

./linux/run-xmem.sh shaders and warm prepare the shaders and pipelines. RT=1 turns on ray tracing, OUT=3840x2160 sets the picture's size, CONSOLE=series-s runs as that console, and any VICTORY_ setting in the environment wins over the script's own. The launcher's choices (the light memory, the texture fixes) are set by the launcher; without it, set them yourself as in Settings.

How it works

The program is a Windows program; Proton runs it, and the card's Linux driver draws.

flowchart LR
  A["Your copy<br/>of the title"] --> B["Valhalla<br/>loader, system calls,<br/>the console's Direct3D 12"]
  B --> C["Shaders translated<br/>and kept on disk"]
  B --> D["Proton (Wine),<br/>patched copy"]
  C --> E["vkd3d-proton<br/>Direct3D 12 to Vulkan"]
  D --> E
  E --> F["RADV, this project's copy:<br/>the title's memory mapped<br/>into the card"]
  F --> G["Radeon card"]
  B --> H["Stand-in light,<br/>texture fixes, FSR"]
  H --> E
  • Built on Linux: cargo xwin makes the Windows program here; no Windows is needed.
  • The driver: linux/driver, made by setup-driver.sh from Mesa's source and patches/mesa.patch, used through VK_DRIVER_FILES by this program alone.
  • Proton: the launcher takes linux/proton-patched/ if it is there, else PROTON=, else Steam's Proton Experimental. The console's memory tricks make thousands of memory views, and Wine looks them up slowly: linux/wineserver-view-tree.patch finds them by address. The second patch, for ntdll.so, fixes memory that Wine can lose for a moment.
  • Patches: patches/ holds what changes in Mesa, vkd3d-proton and Wine (from VIctory-xmem).

Presets

Preset Output Upscaler Frame cap For
Low 1920x1080 AMD FSR Performance 30 fps weaker cards
Medium 1920x1080 AMD FSR Quality 60 fps mid-range cards
High 2560x1440 AMD FSR Quality 60 fps strong cards
Ultra 3840x2160, rendered at 2560x1440 AMD FSR Quality 60 fps cards of 16 GB
S70 2560x1440 the title's own 60 fps the tested settings
S700 3840x2160, rendered at 2560x1440 the title's own 60 fps the tested settings at 4K, cards of 16 GB (up to 15.7 GB in use)

All of them: full screen, Series X settings, no frame generation, no ray tracing, and the light memory and the four texture fixes on. Where AMD's FSR DLLs are missing, the FSR presets use the title's own upscaler. S70 and S700 are what the numbers above were measured with; Low, Medium, High and Ultra are back from the first release, without the settings that were taken out because they broke the game on some PCs (the Series S profile, low memory mode, the pipeline wait).

On cards under 9 GB every preset is 1080p; the 4K ones on cards under 15 GB, or whose memory is not known, are 1440p. Change any setting and it is Custom. FSR 4 Quality runs at about the speed of the title's own upscaler (44.8 against 46.8 fps standing, equal while driving).

FSR

Your card FSR 4 FSR 3.1 What the launcher picks with "AMD FSR"
RX 9000 (RDNA 4) yes, best picture yes FSR 4 (turn "FSR 4" off for 3.1)
RX 7000, RX 6000 and others no yes FSR 3.1, by itself
Mode Share of each side At 1440p At 4K
Native AA 100% 2560x1440 3840x2160
Quality 67% 1706x960 2560x1440
Balanced 59% 1505x847 2258x1270
Performance 50% 1280x720 1920x1080

Tip

A lower mode helps only where the graphics card is the limit. By hand: VICTORY_FSR_VERSION=4 or 3. Under Proton, FSR 4 comes through PROTON_FSR4_UPGRADE, which the launcher sets on RX 9000 cards.

Frame generation

One generated frame for each real one (2x), with FSR. Since 2026-12-05.4 it runs without the extra "proxy" swap chain and costs about 4 to 5% of the real rate (40.7 real fps with FSR 4 Quality and frame generation against 44.0 with neither, same place); before it cost 10 to 15%. It is still off in the presets: turn it on in the launcher when the real rate is already near 40. Motion looks smoother with it; the game still reacts at its real rate.

Keyboard and mouse

On in the launcher (Controls). Click into the window to hold the mouse; F2, Esc or Alt+Tab free it. A controller works at the same time. The title sees the keys as a pad.

Key Always
F1 The key guide: which key is which button, in the lower right corner
F2 Holds or frees the mouse
F3 The numbers' panel
Caps Lock Changes between the on foot and vehicle keys by hand (F does it as you get in or out)
Page Up, Page Down Mouse sensitivity, more and less
Esc, Enter, Backspace, arrows Pause, A, B, D-pad (menus)
Key On foot In a vehicle
W A S D Move Accelerate, brake, steer
Mouse Look Look
Left, right mouse Fire (RT), aim (LT)
Space Jump (A) Handbrake (RB)
Shift Run (X) A
Ctrl Crouch (L3) Horn (L3)
F Interact, get in (Y) Get out (Y)
E D-pad right D-pad right
Q Cover (RB) D-pad left
R Reload, back (B) B
X X X
Tab (hold) Weapon wheel (LB) Weapon wheel (LB)
H R3 Horn (L3)
C, middle mouse R3 R3
I J K L Look (right stick) Look (right stick)
P Phone out, and away again; the wheel scrolls in it the same
M Map, and away again; the mouse moves it, the wheel zooms, a click marks the same
G, Z D-pad left, D-pad down the same
1 2 3 4 D-pad up, down, left, right the same
Mouse wheel D-pad right, left

Mouse sensitivity is set in the launcher (Controls: sensitivity, up and down, while aiming, invert) and while playing with Page Up and Page Down, on top of the launcher's. If fast turns stay slow at a high value, raise the camera speed in the title's own settings: it turns the view as with a pad's stick.

Some button meanings are guesses: the title knows only a pad. Change any key in ~/.local/share/valhalla-xmem/keys.txt (changes count while it runs). All of it: docs/keyboard-mouse.md.

Settings

What the launcher sets, for runs without it. Any of these in the environment wins over the start script.

Setting What it does
VICTORY_AMBIENT_MEMORY=1 The stand-in light remembers the light by direction (launcher: on)
VICTORY_PARTLY_CLAMP=1 Textures not all there yet are shown from their first complete level (launcher: on)
VICTORY_KEEP_SHOWN=2 A slot keeps its texture while the next one uploads (launcher: on)
VICTORY_GRAY_WAITING=1 Waiting or released slots show grey, not black (launcher: on)
VICTORY_NEUTRAL_ALPHA=127 The grey stand-in's alpha under a half (launcher: on)
VICTORY_AMBIENT=0.8 The stand-in light's strength (launcher: Indirect light)
VICTORY_FULLSCREEN=1, VICTORY_PILLARBOX=1 Borderless full screen; black bars on screens that are not 16:9
VICTORY_OUTPUT=2560x1440 The picture's size
VICTORY_PANEL=1 (or compact) The numbers' panel at the start (F3 shows and hides it)
VICTORY_KBM=1 Keyboard and mouse play
VICTORY_CARD_POOL=0 Small card buffers each in memory of their own again
VICTORY_SKIP_BINK=intro Skip the movies of the first 90 s (logos, intro); intro,<seconds> for another time; 1 every movie that plays once (the TVs too), all the menu's too (not used by the launcher)
RT=1 The title's ray tracing

Troubleshooting

What you see Try
On Windows: "unified memory is not there", or "Windows is not supported" This project runs on Linux with an AMD card only (above), also when a launcher offers it on Windows
Ubuntu or Debian: "still missing: SPIRV-Tools" although spirv-tools is installed Update: the check needs spirv-tools-dev (fixed 2026-12-05); or sudo apt install spirv-tools-dev
"no bin/x64/dxil.dll in the DirectX Shader Compiler's zip" Update: Microsoft's zip names its files with backslashes (fixed 2026-12-05)
The log says "outside the image" for every patch and the game stops at the start Your game executable is not build 1.0.2.1; use that version
Shaders not prepared: "files read 0, walk errors 1" The game folder's name ends with a dot or a space, which Wine drops: rename the folder and choose it again
cargo install cargo-xwin fails, or the build says can't find crate for core or that the target x86_64-pc-windows-msvc is not installed Your distribution's Rust is in use: install rustup and use ./linux/setup-build.sh (step 1). A linker cc not found: install a C compiler
It does not start The launcher says why; also Tools, "The launcher's log"
"The driver is not built yet" or "of another patch" Run ./linux/setup-driver.sh (again after an update)
"not enough free memory: ... (12 GB or more are needed)" Close other programs; the game needs about 12 GB of RAM free
"Resizable BAR is off" Turn on "Above 4G Decoding" and "Re-Size BAR" in the BIOS
World black under the interface ./linux/setup-dlls.sh (step 4): the 10.0.x d3dcompiler_47.dll
Very slow while driving The Proton patches; ray tracing off
TVs show a green, glitching picture, or the menus click through by themselves Update (TOOLS, Update): the launcher no longer has "Skip the intro" (2026-12-05), which cut the game's video and pressed Enter for you
A crash after 10 to 90 minutes, unhandled exception ... +0x2215c35 Update to 2026-12-05.2 or later (TOOLS, Update); if it still happens, Copy a report into #49
It ends without a word Started from VS Code or another Electron program, it can inherit a realtime limit of 0 and the kernel ends it (found by Fedalv): start it from a terminal of its own or the desktop's menu
Mouse stuck, or the wrong keys Alt+Tab or F2; Caps Lock for the other layout; check keys.txt
W fires on foot The vehicle keys are in use: Caps Lock

Reports are welcome: say what you did and add "Copy a report" from the launcher's Tools (read it first; your home folder's name is left out). The whole logs are in ~/.local/share/valhalla-xmem/. No game files or links to them, please.

Tested system

Part Version
OS CachyOS, kernel 7.3.5-2-cachyos
GPU AMD Radeon RX 9070 XT (RDNA 4, gfx1201), 16 GB, resizable BAR on
GPU driver This project's RADV, built from Mesa 26.3.1 with patches/mesa.patch
CPU AMD Ryzen 7 9800X3D (8 cores)
RAM 32 GB
Proton Proton Experimental experimental-11.0-20261112, with both patches
Rust 1.98.1 (rust-toolchain.toml), target x86_64-pc-windows-msvc, cargo-xwin 0.24.1
Python 3.14 with PySide6 6.12 (the launcher)

For developers

The build with the diagnostics the logs need:

cargo xwin build --locked --profile diag -p victory --features diagnostics --bins --target x86_64-pc-windows-msvc

cargo xtask policy checks that only small text files we wrote are in the tree. Tests are Windows programs too (cargo xwin test --no-run); the card's tests run under Proton on a real Radeon. Pull requests go through the checks in .github/workflows; a pull request that changes files able to run code at build time waits for the owner's review. Upstream's own scripts (setup.sh, run.sh, build.sh) are kept, and its README is in docs/README-xmem.md.

Credits and license

GPL-3.0-or-later, as VIctory and VIctory-xmem (see LICENSE).

  • Base: VIctory-xmem by lobomfz and its contributors, on VIctory by Marvisak and contributors, through the forks of avatarmanz, fxceless, DexNom, Belobug, FQY55kai, myokex, triippywhale, trustno1-coder, PastiiJay, Geckomacabre and cxy0072019-sketch.
  • Taken into this fork, under their authors' names: vMohammad24 (the range allocator fix, the long-session crash), Jenslee Dsouza (tight texture placement, upload buffers used again), Spel0 (indoor dust light), YaBulochka (textures kept while waiting), ARustyOven, Bushyon, TreXito, psychonaut0, Not4Eric, MathiewMay, LOCKhart07, k-qno1, Unverifiedd; BottyIvan (the desktop entry, Tools steps that stop on a failure, full screen, the compact overlay); earlier Timmybread22 and Molier.
  • Ideas and code ported by hand, credited in the code: ReVIctory by ReTerryDavis and zeex64 (the title's camera, light rules, the HDR clamp from MiniVI), foxhound by readmet3xt-lab (partly mapped textures), jaxe by eikkapine (keeping textures shown, the grey stand-in's alpha), Leila by tshado (grey for waiting slots), VIctory-Belobug-AMD by beloooo (the stand-in light), and the forks of ivall, HexNomad23, fcompanies, MJ26gaming and borntofrag34.

Thank you to everyone who reports, measures and sends patches, among them fasjgkgjalksjkgau, who found why dxil.dll was not found, and the testers whose logs led to the fixes above.