Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. The goal is parity with both versions of the title: the Series X version as on a Series X and the Series S version as on a Series S. 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.
- Linux and AMD RDNA2 or newer on RADV (see Supported hardware). The RX 9070 XT is the reference system everything is measured on. Other GPUs and operating systems 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.
Found a bug? Read How to report a bug first: what to collect, a template to copy, and what must stay out of issues (no screenshots or game content). It's written for players, not just developers.
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).
- 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.
Supported hardware
Linux with an AMD RDNA2 or newer GPU on RADV is supported. It should work on all of them: a bug on an RX 6800 is a bug, not "unsupported hardware". The reference system is an RX 9070 XT (RDNA4, 16 GB): every measurement in this repository is made there, and where a design choice has to favour one generation, it favours that one.
Cards with less memory (8 GB): changes that make the title fit in less video memory are welcome (using less, giving unused memory back, smarter residency), because they help every card. Changes to the architecture made only to fit a smaller card are not: no separate low-memory design, no second code path that holds the bigger cards back.
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 AMD on Linux 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 supported 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.tomlpins the version and thex86_64-pc-windows-msvctarget. - 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+).
- A per-process memory-map limit well above 210,000 (
sysctl vm.max_map_count). The title maps its memory in ~150,000-210,000 pieces at world entry; 1,048,576, the default on most current distributions and on SteamOS, is enough. An older default of 65,530 is below what a run uses (not tested what happens then: expect mapping failures). - 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.
Without the tables the failure is not only loud: BCPack-compressed textures (character skin/hair among them) sample black, and the title treats a failed streamed decode as fatal, so moving the camera into newly streamed content can end the run. Supplying a tables file fixes both.
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. How to write a bug report: docs/bug-reports.md.
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, no story or plot, and no character names. Plain descriptions of where you are and what looks wrong are fine and wanted: "the boat start", "the café cutscene", "a character's face is black", "the prison yard". Add what renders wrong, frame times and 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:
- 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/.
- One topic per pull request. Two unrelated fixes are two pull requests. Don't edit
docs/TASKS.md: name the item your change fixes, and the maintainers update the list. The pull request template has the short checklist of the rules reviews most often had to fix. Keep one pull request per change, and leave "Allow edits by maintainers" on. Reviews often push small fixes to your branch. Don't close and re-open the pull request or force-push to rebase it: that drops those commits. When main moves, the maintainers merge it into your branch; you don't need to rebase. - 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 withgreenfield/tools/frec/frames.py), and the machine you measured on. Changes that touch what is drawn need before/after screenshots at fixed points. - 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.
- Never commit anything from the title: no game files, shaders, captures, dumps or saves.
cargo xtask policychecks 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.