2026-12-01 01:23:21 +01:00
2026-12-01 01:23:21 +01:00
2026-12-01 00:50:25 +01:00

VKtory

VKtory runs an Xbox Series title on Linux under Wine/Proton, with a direct Vulkan backend instead of a Direct3D 12 translation layer. The name is VIctory + Vulkan: it is a fork of VIctory (see CREDITS.md).

This is a port of the title's platform layer, not an emulator. The title's own x64 code runs natively. VKtory supplies what the console would: a loader, high-level implementations of the console's system libraries, and a renderer that executes the title's GPU work on a PC GPU.

Nothing from the title is included. You need your own, legally obtained copy of the title. The repository holds no game files, shaders, captures, saves or data tables (see docs/asset-policy.md).

⚠️ Expectations: read this first

VKtory is a work in progress for developers. It is not ready to play.

  • Not 30 fps yet. The title targets 30 fps. On the reference system (RX 9070 XT) the reference scenes run at roughly 22-23 fps, with long stalls and hitches while the world streams in. See docs/TASKS.md for the current numbers.
  • Not at console parity yet. Lighting, ray tracing, LOD transitions and other effects still differ from the console in places, some things are missing (e.g. headlights cast no light), and there are known visual bugs. The list of known issues is in docs/TASKS.md.
  • No builds are published. There are no releases, binaries or installers, and there won't be until it is ready. You build it yourself, and you need your own copy of the title.
  • Expect crashes, black screens and breaking changes. Interfaces, formats and scripts change without notice.
  • Only one target system (Linux + AMD RDNA4 with RADV, see Target system). Other hardware may not work at all.

If you want to help get it there, start with CONTRIBUTING and PHILOSOPHY.md. If you want to play the game, this is not for you yet.

How it works

Part Where What it does
Loader crates/victory-loader, crates/victory-pe Maps the title's executable and DLLs, resolves imports, patches the few sites that need it
HLE crates/victory-hle The console system libraries (memory, files, DirectStorage, input, audio, saves, timers, ...)
umem greenfield/umem, greenfield/wine/umem-* Title memory is GPU memory, at the console's addresses: the GPU reads title memory where the title wrote it, with no per-frame copies
vkback greenfield/vkback, greenfield/wine/vkback-unix The renderer: records the title's command lists straight into Vulkan, runs on the Unix side of Wine (a unixlib)
Shader translator crates/victory-shader Console RDNA ISA to DXIL; dxil-spirv then makes SPIR-V
Frame tools greenfield/frame, greenfield/vicrec Decoding, replay and statistics for recorded frames

crates/victory-gpu and parts of crates/victory-hle still carry pieces of the original D3D12 path. They are being slimmed down (see docs/TASKS.md).

Status (2026-11-30)

Measured on the reference system: AMD RX 9070 XT (RDNA4, 16 GB), 31 GB RAM, Mesa/RADV 26.3, Linux 7.x, KWin/Wayland (the title runs through Xwayland), Proton 11.

Works:

  • The title boots, plays its intro and runs its world. All rendering goes through vkback.
  • The prison cell scene renders with the title's own ray-traced indirect light (its BVH builder and walkers, translated, at the console's wave sizes).
  • The boat scene and its cutscenes render correctly: shore and sea, the boat floats, faces animate, hair and glass look right.
  • Free roam after the boat mission is reachable. Audio plays, autosaves are written and load.
  • Shaders that are not translated yet make the draw wait (a small overlay shows the progress) instead of being dropped. Translations are kept in a shader store across runs.
  • No crash in a 45-minute play session.

Performance (goal: a stable 30 fps, every frame at or under 33.3 ms):

Scene fps Frame time
Boat scene, world start with cutscenes, every frame counted 23.1 mean 43.5 ms, p99 164 ms
Prison cell, steady state 22-23 mean 42.7-45.1 ms, p90 58-61 ms

For comparison, the D3D12 path this started from ran the same world at 62-68 ms a frame. In the prison cell both the GPU (~35 ms a frame, mostly ray-tracing and GI compute) and the renderer thread (~33 ms of CPU) are over budget. In the boat scene the worst frames come from streaming.

Known issues:

  • Frame-time spikes while the world streams in; occasional multi-second stalls.
  • Car headlights cast no light.
  • After 30+ minutes, parts of the static world can turn black (reloading a save fixes it).
  • The player character's voice is silent in phone calls.
  • LOD cross-fades draw both levels.
  • No vsync yet: frame-time variation reaches the screen directly.
  • The first start after a translator change is slow while shaders are translated again.

The full list of open work, with what is known and where to start: docs/TASKS.md.

Target system

Linux with an AMD RDNA4 GPU (RX 9070 XT) on RADV is the target. Every design decision and every optimisation is made for this exact system, and that will not change.

Fixes for NVIDIA or other GPUs, other drivers, or a Windows port are welcome only if they do not limit how far the code can be optimised for the target system and do not make the code worse or messier. Changes that add vendor branches through hot paths, lowest-common-denominator designs, abstraction layers for other platforms, or extra maintenance burden on the target path will not be merged, however useful they are elsewhere. Work on other platforms happens in your own fork first (see Contributing).

Building

Requirements:

  • Linux on x86-64, Mesa/RADV, a Vulkan 1.3 driver with the extensions vkback asks for (it says which one is missing at start).
  • Rust via rustup; rust-toolchain.toml pins the version and the x86_64-pc-windows-msvc target.
  • cargo-xwin for the Windows (PE) side.
  • glslc (shaderc) for vkback's helper shaders.
  • git, cmake, ninja and a C++17 compiler for dxil-probe (built once).
  • Proton (Experimental or 10+).
  • Your own copy of the title, and the BCPack format tables (below).
cp tools/vktory.example.conf vktory.conf   # then set your paths (vktory.conf is git-ignored)
tools/build-dxil-probe.sh                  # once: dxil-spirv + dxil-probe into the data dir
tools/build.sh                             # victory.exe, libvkback_unix.so, translate-dir, rect-gs, vk-store

Native unit tests of the pure crates:

cargo test -p victory-shader -p victory-formats -p victory-core -p xtask   # xtask: the asset policy
(cd greenfield && cargo test -p umem -p frame -p vkback --lib)

GPU tests and the translator's on-card tests (wave64, VALU, waterfall) need the GPU; the latter run under Proton (see tools/proton-run.sh and docs/tools.md).

BCPack tables. The title's DirectStorage textures are BCPack-compressed. The decoder needs the format's constant tables (entropy models, rank tables, BC7 control words, dictionaries). They cannot be derived and are not ours to ship, so they are not in this repository. Point VICTORY_BCPACK_TABLES at a tables file you have (the layout is documented at Tables::parse in crates/victory-formats/src/bcpack.rs). Without it, BCPack reads fail loudly.

Running

tools/play.sh            # store warm-up, then the title; press-A is automatic until the world shows
RUN_SECS=300 tools/play.sh

Each start gets a run folder under VKTORY_RUNS with log.txt (PE side) and vk.log (vkback). F9 in the game window marks a moment: a line in vk.log and a screenshot in the run folder. Every switch (VKB_*, UMEM_*, VICTORY_*) is documented where it is read, and listed in greenfield/tools/policy/toggles.txt.

Contributing

Don't ask for permission first: fork, build it, and show it working. Pick an item from docs/TASKS.md or anything else you want to work on, including NVIDIA, Intel or Windows support, and do it in your own fork. Once you have something that works and is measured, open a pull request and we talk about merging it. Issues are for bugs you can show and findings you measured, not for asking whether something would be accepted.

Expect slow answers. This is a one-person project. Issues and pull requests can sit without a reply for days; that is not a rejection.

Keep the game out of issues, pull requests and comments. No screenshots, videos, game files, shader dumps or captures, and no story, characters, places or other game content. Describe problems technically: the scene ("the boat start", "the prison cell"), what renders wrong, frame times, logs with our own messages. Technical identifiers our tools print (shader hashes, pass and shader names) are fine. Posts that break this get edited or removed.

What keeps a fork mergeable:

  1. Read docs/AGENTS.md. It holds the codebase rules (for people and coding agents alike), each with the incident behind it, and the learnings index in docs/learnings/.
  2. One topic per pull request. Two unrelated fixes are two pull requests.
  3. Performance claims need measurements: the standard scene, before and after, interleaved runs (A B B A), frame-time statistics from the latency trace (VKB_LAT, read with greenfield/tools/frec/frames.py), and the machine you measured on. Changes that touch what is drawn need before/after screenshots at fixed points.
  4. The console is the reference. A fix names the console behaviour it reproduces. A change whose only evidence is "it looks better" is not a fix.
  5. Never commit anything from the title: no game files, shaders, captures, dumps or saves. cargo xtask policy checks the tree.

Issues and pull requests go to the project page: https://github.com/vktory6/VKtory

License

GPL-3.0-or-later, as VIctory. See LICENSE. Copyright notices in individual files stay as their authors wrote them; contributors are listed in CREDITS.md.

S
Description
Run the Xbox Series title on Linux + AMD: Wine/Proton with a direct Vulkan backend (RADV, RDNA4)
Readme GPL-3.0
4.1 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 98.3%
Python 1.3%
Shell 0.2%
C++ 0.2%