An experimental Xbox Series compatibility layer for Windows, tuned for AMD Radeon (RDNA) graphics cards. It runs an Xbox Series title's x86-64 code natively inside its own process, supplies the platform underneath it (loader, runtime services, Direct3D 12.X on top of the PC's Direct3D 12), and recompiles the console's GPU shaders to DXIL.
victory-amd takes a layer built and tuned on NVIDIA cards and makes it work on AMD. On a Radeon the inherited defaults lose the GPU device, crash the driver's shader compiler, hang the card, or leave most of a scene undrawn for minutes. This project found why, one cause at a time, and puts together the configuration and fixes that make it run.
This repository contains no game files, no game code and no game assets, and it never will (see docs/asset-policy.md). You need your own, legally obtained copy of the software you run. This project is not affiliated with, endorsed by or connected to Microsoft, Xbox, AMD, or any game developer or publisher.
Status: experimental, not playable. It starts, runs menus at full speed and reaches 3D scenes, but those run at 1–3 frames per second with visible rendering errors. Treat it as a research and testing tool.
Tested on one machine: Windows 11 Pro, AMD Radeon RX 9060 XT 16 GB (RDNA 4), Adrenalin driver 32.0.32029.2010, Intel Core i7-9700K, 32 GB RAM, Series X profile.
| Area | State |
|---|---|
| Boot, first-run screens, menus | works, 30 fps |
| Video playback with sound | works |
| Saves and profile | works (offline user) |
| Loading into a 3D world | works; slow while shader pipelines are first built |
| 3D rendering | characters, clothing, faces, textures, sky and glass render; much is still wrong (see limitations) |
| Input | XInput pads; keyboard as a pad |
| Audio | music, voice and effects play |
| Stability on AMD | no device loss in normal runs with the settings below |
- Frame rate: 1–3 fps in 3D scenes. About 150–230 ms of each frame goes to copying GPU results back to the console's memory, and much of the rest to preparing copies.
- Lighting: ray-traced lighting (bounce light, reflections, ray-traced shadows) does not run yet. Areas not lit directly are dark, and light does not bounce off surfaces.
- Wrong colours: some materials, foliage and objects show bright purple or over-bright light; hair can look far too bright. Ray-traced resolve shaders run with incomplete input.
- Missing geometry: some walls, floors and ceilings are missing, or appear late, until their pipelines have been built.
- Level of detail: distant characters can stay at low detail and some objects never finish loading their textures.
- Shading: some faces and bodies look faceted (flat-shaded polygons).
- First runs are slow: thousands of shader pipelines are built on first use; built pipelines are kept on disk, so later runs start faster. A run that crashes may lose pipelines built during it.
- AMD driver issues: a few compute shaders crash or never finish in AMD's shader compiler and have to be skipped (see the settings below).
- Memory: about 17–24 GB of RAM in use during play; a large Windows paging file helps.
- Tested on one GPU, with one title. Other titles and other cards are unknown.
All of it measured on the RX 9060 XT above, from VIctory's own logs, crash reports and GPU breadcrumbs (DRED), one change per run.
Found here:
- Most of the scene was missing because the meshlet culling pass had been skipped, a workaround AMD setups used for an earlier hang. With it running, characters, clothing and faces render.
- Missing walls and a frozen loading screen while the title ran on behind it: a backlog of about 1,500 pipelines being built at one a second, because four workers ran below the title's own threads. Six workers at normal priority clear it in seconds instead of minutes.
- The safe set of skips: of the dozens of compute programs AMD setups skipped, only five still crash, page-fault or never finish on AMD's driver with the settings here; the rest run, among them the ones that shade characters' materials.
- A GPU hang without a loop cap on this card, from a translated loop running until Windows resets it; capped at 1,024 iterations.
- Tooling traps that make runs misleading: logging the title's output through PowerShell stalls the title, and settings left in a window change the next test.
- Cross-lane retries that never ran on AMD: the translator retries a compute program
stopped "where not every lane runs" by leaving out its early-outs and its skips, and accepts
the result if the program no longer needs 64 lanes. That whole ladder was gated on a host
whose widest wave is 32 lanes, which is what NVIDIA reports: RDNA reports 32 to 64, so on
this card the gate never opened and such a program stayed dropped for the whole run. The two
forms that only change the program are exact on a wave of any width, and now run there too.
One compute program (
b22a16a178976e1b, 14 dispatches a frame) went from refused to validated at 64-lane waves offline.
Confirmed here, after reports by other testers:
- The submission relay thread (
VICTORY_RELAY), which NVIDIA setups turn on, loses the device on AMD (seen here as a page fault at an address with no memory behind it). Without it, with submissions sent ahead instead (VICTORY_LATE_WAIT=3), the device stays up. - One of the translator's clean-up passes (pass 4) makes AMD's shader compiler crash
(
amdxc64.dll); with it off (VICTORY_SHADER_OPT=11) those programs compile. - A skipped pipeline was still compiled ahead of its first use, so skipping a crashing program did not help; the build includes the change that fixes that.
- A larger texture-queue budget makes textures arrive in seconds instead of minutes.
Built: the combined code (the changes below, with their conflicts resolved), the AMD
configuration, scripts/run-amd.ps1, and this documentation, including the tooling traps
met on the way (logging through PowerShell stalls the title; settings linger in a window).
Changes from other projects included in the code: victory-fork pull requests #172 (skipped pipelines are not compiled early) and #106 (texture queue limits), and T-Crypt's pipeline-worker commit.
| Setting | Why |
|---|---|
VICTORY_LATE_WAIT=3 |
sends submissions ahead without waiting for the card; about 3× the frame rate, stable |
no VICTORY_RELAY |
the relay thread loses the GPU device on AMD within minutes |
VICTORY_SHADER_OPT=11 |
clean-up pass 4 off: it makes AMD's shader compiler crash |
VICTORY_SHADER_LOOP_LIMIT=1024 |
a translated loop can otherwise run until Windows resets the GPU |
VICTORY_PIPELINE_WORKERS=6, VICTORY_PIPELINE_PRIORITY=normal |
pipelines are built fast enough for scenes to appear |
VICTORY_TEXTURE_QUEUE_MB=1024, VICTORY_TEXTURE_QUEUE_MS=1000 |
textures picked by index arrive in seconds |
VICTORY_SKIP_PIPELINES=... |
five compute programs that crash or hang AMD's driver (listed in scripts/run-amd.ps1) |
Requirements: Windows 10/11 x64, a CPU with AVX2, a Direct3D 12 GPU with shader model 6.6
and mesh shaders, Rust (version pinned in rust-toolchain.toml), and a large Windows paging
file (32 GB or more recommended).
cargo xtask install-hooks # asset-policy check on every commit
cargo test --workspace # needs no game data
cargo build --profile diag -p victory --features diagnostics # target\diag\victory.exeRun with the AMD settings (edit the paths at the top of the script first):
powershell -ExecutionPolicy Bypass -File scripts\run-amd.ps1The script writes the log to the file named at its top. Saves, settings and crashes.log
live in the data folder (default %LOCALAPPDATA%\victory\data), derived data in the cache
folder (default %LOCALAPPDATA%\victory\cache). Close the title normally rather than
killing it, so built pipelines are saved.
Tips:
- Log to a file with
cmd /c "... > log 2>&1", as the script does. Piping the output through PowerShell (| Tee-Object) slows the title down until it stalls. - Environment variables stay set in a PowerShell window; set every switch explicitly, or use a new window, when comparing settings.
- The first run with new shader settings recompiles everything; judge rendering on the second run.
Input: XInput pads. With none connected, the keyboard acts as a pad while the window has focus:
| Keys | Pad |
|---|---|
| W A S D / I J K L | left / right stick |
| arrows | D-pad |
| Enter, Backspace, X, Y | A, B, X, Y |
| Q / E, Z / C | shoulders, triggers |
| F / H | stick clicks |
| Esc, Tab | Menu, View |
victory inspect <exe|dll> [--imports] [--exports]
victory census [paths...] [--missing] [--strict]
victory lib-exports <import.lib> [--list]
victory shader-info [paths...] [--verbose] [--disasm]
victory translate [paths...] [--validate] [--pipelines] [--list] [--jobs N]
victory run <exe> [--execute] [--unimplemented trap|zero] [--strict]
[--console series-x|series-s] [-- <title arguments>]
victory config
| Variable | Effect |
|---|---|
VICTORY_LOG=<target>=debug,... |
debug and trace output |
VICTORY_STACKS=20,60 |
every thread's stack at those seconds |
VICTORY_D3D12_DEBUG=1 |
host debug layer |
VICTORY_D3D12_DRED=1 |
on a GPU failure, the commands in flight and the page fault, in crashes.log |
VICTORY_GPU_TIMING=1 |
each list run and timed on its own (slow) |
VICTORY_D3D12_WARP=1 |
software adapter (slow, cannot reset the driver) |
VICTORY_SKIP_PIPELINES=<hash>,... |
omit draws and dispatches whose pipeline contains a listed 16-digit shader hash, and do not build them |
VICTORY_SHADER_LOOP_LIMIT=<n> |
translated loops stop after n iterations per lane |
Every build appends crashes and GPU failures to crashes.log in the title's data folder.
Upstream's architecture notes are in docs/architecture.md.
- Frame rate: cut the per-frame copy-back of GPU results (the
VICTORY_CARD_BUFFERS*andVICTORY_WIDE_BACKswitches), measured one switch at a time on AMD. - Keep built pipelines when a run ends abnormally, so restarts do not rebuild them.
- The bright purple artifacts: find which shader writes out-of-range values.
- Faceted shading: fix how interpolated values reach pixel shaders.
- Fix the remaining AMD compiler and page-fault cases in the translator, so no shader needs skipping.
- Ray-traced lighting (see docs/fork-ray-tracing.md).
Contributions follow the asset policy: nothing from any game, in any form — no files, no dumps, no screenshots, no shader listings.
VIctory (GPL-3.0-or-later), by way of
victory-fork at 2119b0e, with the changes
listed under "What this project did". This repository's history starts with one commit
holding the combined code; the earlier history is in those projects.
GPL-3.0-or-later, as VIctory. See LICENSE.