Skip to content
GeckomacabrePublic

About

Work-in-progress Xbox Series compatibility layer (a VIctory fork) tuned for speed on NVIDIA. No game files.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

vx-layer

Run your own dump of an Xbox Series title on a Windows PC, tuned for NVIDIA cards.

Since 2026-11-26 vx-layer is built on TaynanGT's Vice-Tay, which builds on cool_fox's tree and avatarmanz's engine, all forks of VIctory; before that it was a fork of fxceless's victory-fork. It runs the title's own x64 code directly on the PC and translates its graphics to Direct3D 12. Everything here is measured on an RTX 4090 with a Ryzen 9 5900X.

No game files, code or assets are included. You need your own copy of the title. GPL-3.0-or-later, like the projects it comes from.


At a glance (2026-11-26)

Frame rate about 10-15 fps in the open world at 1920x1080 (Series S profile, RTX 4090, 32 GB RAM); about twice the previous base
What works the world, characters and interface draw; mouths move in cutscenes; story missions play; boats float; saves load; daylight picture close to clean
Known problems blocky square shadow tiles (street lamps at night, some daylight views); a black blot around the sun; the first minutes in a new place stutter while shaders build; the title uses most of 32 GB
Best setup Series S profile (-SeriesS), the PC settings below, tools\vx-play.ps1

1. PC settings that matter

These made the biggest single difference so far. Both were changed together, so their shares can't be told apart, but the result is clear:

Same area, same build Before After
Frame time 206 ms (~4.9 fps) 145 ms (~6.9 fps)
Copying title memory 74 ms 46 ms
Copying GPU results back 53 ms 34 ms
Setting Where Why
RAM at its rated speed (XMP / D.O.C.P. / EXPO) BIOS The layer spends most of each frame copying memory. On the test PC the RAM had fallen back to 2133 MHz instead of its rated 3600. Check it in Task Manager, Performance, Memory, "Speed".
Resizable BAR + Above 4G Decoding, with CSM off BIOS Lets the CPU write straight into the card's memory. Check with nvidia-smi -q -d MEMORY: "BAR1 Total" should equal the card's memory size, not 256 MiB.
Page file of 32 GB or more Windows, System, Advanced, Virtual memory The title commits about 30-33 GB while it loads. With 32 GB of RAM and a small page file it can run out.
NVIDIA Smooth Motion (optional) NVIDIA App, per program Inserts generated frames: motion looks smoother, the real frame rate stays the same. Works best above ~20 fps.

2. Quick start

  1. Build: cargo build --release -p victory

  2. Configure: copy victory.example.toml to victory.toml and point it at your own dump. The game folder is only ever read.

  3. First sessions build the shaders and pipelines as places are seen (a few minutes of stutter); later sessions reuse them. After an update that changes the shader translator they are built again.

  4. Play:

    powershell -ExecutionPolicy Bypass -File tools\vx-play.ps1 -GameExe "<game folder>\<title exe>" -SeriesS
Launcher option What it does
-SeriesS Series S profile: the fastest setup on PC
-Monitor DISPLAY2 play on that monitor (its device name, or its place in Windows' list)
-Windowed a centred window instead of full screen
-Safe without the base's newest recording paths, if moving things smear
-OverlayFeed feed the VX Overlay ReShade add-on (addons/vx-overlay; ReShade is installed separately)
-NoOverlay without the status bar on the window's bottom edge
-More @{VICTORY_X='1'} any other setting

Keyboard as a pad (while the window has focus): Enter = A, Backspace = B, W A S D = left stick, I J K L = right stick, arrows = D-pad, Q / E = shoulders, Z / C = triggers, Esc = Menu, Tab = View.


3. Branches

Branch What's on it
main Builds that played well in long sessions. Start here.
testing The newest work. Every new switch is off by default until it is measured.

4. What vx-layer adds

On the Vice-Tay base (2026-11-26). Every switch below is off by default unless said; tools\vx-play.ps1 sets the ones marked (launcher).

Area Change Switch
Picture Series S: both of the title's upscaler choices return its own upscaler (byte-checked, known build only) on with --console series-s (VICTORY_TITLE_PATCHES=0 = off)
Mouths move: 16-bit values moved bit-exactly through a table's typed views (pull request #927 by tippythetaidum, via VIctory-NVIDIA's port), SDWA sign extension on (VICTORY_HALF_VIEWS=0 = off)
Rays miss while the structure builder is off: no more black/white square patches from the ray-traced shadow masks VICTORY_BVH_MISS=1 (launcher)
Underwater: the submerged transmission volume pass in its 32-lane form; the tiled pair opt-in on (VICTORY_WAVE_WIDE_DEFAULTS=0 = off), VICTORY_WAVE_WIDE_TILED=1
Reflections held between a least and a most part of the light around (asphalt, glaze on floors) VICTORY_AMBIENT_REFLECT, VICTORY_AMBIENT_REFLECT_LEAST
Wider render target for ultrawide screens and PC controls (Bigprice0451's adapter) VICTORY_SCENE_WIDE=3440x1440, VICTORY_PC_CONTROLS=1
The window, or full screen, on a chosen monitor VICTORY_MONITOR=DISPLAY1 (launcher)
Streaming Streamed data written only into pages the title maps at the write (no stale page tables) VICTORY_DS_WAIT_MAPPED=1 (launcher), probe VICTORY_DS_PAGE_CHECK=1
Feel The title's longest game step raised, so the world keeps closer to real time at low fps VICTORY_MAX_STEP_MS=100 (launcher)
Audio Phone-call audio through the console's kind-2 DSP effect VICTORY_DSP_PASSTHROUGH=1 (launcher)
Tools A shared block with frame times, memory, CPU, streaming and the pad for the VX Overlay add-on (addons/vx-overlay, a ReShade add-on; ReShade itself is not included) VICTORY_OVERLAY_FEED=1

Before the Vice-Tay base (still in the history; the engine parts below are not in the current tree: zero-copy, settle room, texture prelude, table waits):

Area Change Switch
Speed Small pipelines are built first, big compute programs on fewer workers VICTORY_PIPELINE_SMALL_FIRST=1
Texture reads no longer wait for remaps of unrelated memory on by default (VICTORY_MAPPING_RANGES=0 = old)
Batched page remaps VICTORY_REMAP_BATCH=1
Submissions prepared on a thread of their own, second queue, windowed indirect clamps VICTORY_ASYNC_SUBMIT, VICTORY_QUEUE2, VICTORY_INDIRECT_WINDOW (launcher)
Parallel file reads for DirectStorage: world reached in 76 s instead of 94-217 s on by default
Caches that survive rebuilds: shaders keyed by the translator's own fingerprint on by default
Picture Series S draws: the title keeps its own upscaler, and both present planes are composed --console series-s
Lighting stand-in while the ray-tracing builder can't run on 32-lane GPUs VICTORY_BVH_MISS=1, VICTORY_AMBIENT=0.6
32-lane forms of the title's visibility and light-list passes: characters lit in colour VICTORY_WAVE_WIDE_ONLY=<hashes>
Boats float: ocean textures the title's CPU reads are copied back VICTORY_TEXTURE_BACK (on)
Textures streamed in later are uploaded again (fewer blocky clothes) on by default
No startup flicker in the loading video VICTORY_TEXTURE_HOT=1
The window is centred and can go on a chosen monitor VICTORY_MONITOR=DISPLAY3
Shader writes stay on the card; a CPU touch fetches them on demand (zero-copy stage 1): about -25 ms a frame VICTORY_KEEP_GPU_WRITES=1 (launcher)
Only the 64-byte pieces of card copies that changed are sent up (zero-copy stage 2) VICTORY_CHUNK_UPLOAD=1 (launcher)
Fewer mid-frame waits for the card in the open world (18-39 ms down to under 5 ms) VICTORY_SETTLE_ROOM=1 (launcher)
A draw whose descriptor table finds no free slots waits up to 4 ms instead of being dropped (vegetation, lights and compute passes were missing in busy scenes); the descriptor pool is sized to what the card allows on by default (VICTORY_TABLE_WAIT_MS=0 = old)
A new pipeline shows late instead of freezing the frame for seconds VICTORY_PIPELINE_GATE_S=10 (launcher)
cool_fox's CPU scheduling, page mappings in runs, XMA/XAsync/XTaskQueue fixes and Wave32 translator parts (ported in batches) on as measured; see cf-port notes in the history
Picture Mouths move: 16-bit values the face network reads through typed views are moved bit-exactly (fxceless/victory-fork, pull request #927 by tippythetaidum) on by default
Streamed data is written only into pages the title still maps (fixes rainbow and black faces from stale page tables) VICTORY_DS_WAIT_MAPPED=1 (launcher)
Sampler heaps backed to 2,048 slots with null samplers past the title's count: skin, shadow and sky flicker largely gone (after Belobug) on by default
Textures found changed at submission go up in that list's prelude, not a frame late (after Belobug) VICTORY_TEXTURE_PRELUDE=1 (launcher)
Lighting stand-in mode that keeps a floor of light in shaded areas VICTORY_AMBIENT_MODE=floor (launcher)
Audio Phone-call audio through the console's kind-2 DSP effect VICTORY_DSP_PASSTHROUGH=1 (launcher)
Feel The world keeps closer to real time at low frame rates: the title caps a frame's game step at 1/15 s, so at 5-8 fps it ran at 25-50 % speed; this raises the cap (byte-checked title patch) VICTORY_MAX_STEP_MS=100 (launcher; 200 = full real time but jumpy)
Picture Underwater haze drawn (the submerged transmission volume pass runs in a 32-lane form) and the alpha-transmission prefilter translates exactly on by default
Reflections held to half the light around (no white glaze on floors) with a least light (asphalt was black) VICTORY_AMBIENT_REFLECT=0.5, VICTORY_AMBIENT_REFLECT_LEAST=0.3 (launcher)
Memory No new heap textures while free commit is under 1 GB (a 32 GB RAM safety net) VICTORY_RAM_GUARD=1 (launcher)
Shaders 42 more shader programs translate; more GFX10 instructions; one interpolation mode per signature row and level queries without an array slice (after Belobug) -
Tools Status bar that says WORKING (not frozen) when frames stall tools/vx-overlay.py
Opt-in crash dumps VICTORY_CRASH_DUMP_DIR=<folder>
Offline shader dump and wave-size check examples/isa_dump, examples/wave_check

Measured and not adopted:

  • the card reading title memory in place (VICTORY_INPLACE=2): 643 ms per frame;
  • bigger title memory budgets (Series X's on a Series S run): slower and a crash on load;
  • shared texture heaps: scrambled textures;
  • the 32-bit constants heap read in place and title-reported descriptor slots (avatarmanz's renderer patches 1 and 2, VICTORY_PORT_CONSTANTS / VICTORY_PORT_DESCRIPTORS): no gain on this PC in clean runs;
  • joining consecutive submissions (VICTORY_JOIN): joins little, the checking stays;
  • the approximate 64-lane fallback (VICTORY_WAVE_LDS_OWN=1): does not fix underwater.

5. History

2026-11-26, night: the base moves to Vice-Tay
  • New base: TaynanGT's Vice-Tay (avatarmanz's engine with cool_fox's tree and TaynanGT's own work) ran about twice as fast on the test PC: 75-90 ms a frame against 120-200 ms for the previous base, same save, warmed. Our fixes were ported onto it one by one, each behind its switch (section 4).
  • Picture, as played: with VICTORY_BVH_MISS=1 the daylight picture is close to clean (user: "much, much better"). The square black/white patches on characters and the ground came from the ray-traced shadow masks walking structures that were never built.
  • Still open: at night, street-lamp shadows (local lights, paged shadow maps rendered by compute) still show square tiles, and blocky stair-stepped shadow blocks show in some daylight views too; a black blot can sit around the sun (cause not found yet); some of Vice-Tay's faster recording paths smear moving geometry in some scenes (its -Safe set avoids it).
  • Measured: 10-15 fps in the open world at 1920x1080 on an RTX 4090 (Series S profile).
2026-11-26, evening: underwater, roads, real-time feel
  • Underwater is no longer black: the title's submerged transmission volume pass was refused by the translator and dropped every frame; it now runs in a 32-lane form, and the alpha-transmission prefilter translates exactly.
  • Asphalt is no longer black: reflections get a least light from the stand-in; bright glaze on floors is capped.
  • Slow motion at low frame rates: the title caps each frame's game-time step at 1/15 s, so at 5-8 fps the world ran at a quarter to half speed. VICTORY_MAX_STEP_MS raises the cap (100 ms by default in the launcher).
  • Measured and not adopted: ray-traced shadows off in the game's settings (shadow maps): sharper textures but 3-5 fps instead of 6-9; render scale 0.5 without the engine work below: softer picture, no gain (the CPU paced the frame).
2026-11-26, day: mouths move, no more dropped scenery, less flicker
  • Mouths move in cutscenes. The face network reads 16-bit indices through typed buffer views; the translator now moves them bit-exactly (fxceless/victory-fork, pull request #927 by tippythetaidum; plus SDWA sign extension of 16-bit results, upstream VIctory #3124).
  • Vegetation, lights and compute passes no longer vanish in busy scenes. The 262,144 dynamic descriptor slots ran out at 18,000-25,000 tables a frame and those draws were dropped (green bushes, broken shading). A table now waits up to 4 ms for room, and the pool is sized to the card's limit.
  • Skin, shadow and sky flicker largely gone: sampler indices past the title's sampler count read undefined samplers; the heap is now backed to 2,048 with null samplers (after Belobug).
  • cool_fox ported in batches onto the good build: isolated fixes, CPU scheduling, page mappings in runs, a RAM guard, Wave32 translator parts. Its engine-bound parts (card steps, thin recording, its texture pipeline) were left out.
  • Zero-copy stages 1 and 2 (VICTORY_KEEP_GPU_WRITES, VICTORY_CHUNK_UPLOAD) and stale-page streaming fix (VICTORY_DS_WAIT_MAPPED).
  • Measured (Series S, same save, clean runs): about 112 ms a frame against 161 ms for the previous good build; open world 5-9 fps. The frame is paced by the CPU preparing each submission (~80-100 ms).
  • Still open: underwater is black (the submerged transmission volume pass is refused by the translator), shadow pop-in, some dark shaded areas.
2026-11-26: PC settings, 30% faster
  • With the RAM back at its rated speed and Resizable BAR on, the same build went from 206 to 145 ms per frame in the first area (all memory-bound costs about a third lower). See section 1.
  • Upload buffers in the card's memory (VICTORY_GPU_UPLOAD=1, which needs Resizable BAR) were tried: no faster, and black blocks appeared on some doors in that run. Left off.
2026-11-25, evening: lighting stand-in, more shaders
  • Lighting while the ray-tracing structure builder is off.
    • The builder is a console program for 64-lane waves, which 32-lane GPUs refuse. So the title's rays walked structures that were never built and came back "hit": bounce light was black, and the sun's shadow mask came out in blocks.
    • VICTORY_BVH_MISS=1 makes every structure test miss, so rays reach the sky and far-field light (after Flamingo, realblastex/flamingo).
    • VICTORY_AMBIENT=0.6 replaces the indirect light with a level shaded from the scene's depth (after Belobug, via VItoriaBr).
    • First room: lit evenly instead of murky; 212 ms at 4,500-6,000 draws (228 before).
  • 42 more shader programs translate.
    • 14,249 of 14,259 vertex and pixel programs, 2,724 of 2,734 compute, and all 8,765 mesh programs.
    • From DexNom's fork, and from zm0kiemedia's fork (by AscilCH).
  • The heap pass's buffer views are rescanned every 64 frames instead of 16 (VItoriaBr 5a84eb4, by uiliannn). Neutral in frame time.
2026-11-25, later: faster light scenes, centred window, fewer refused tables
  • Texture reads no longer wait for remaps of other memory (from zm0kiemedia's fork, by Last Thylacine). A read and a remap now hold only the bytes they touch: one lock over all title memory had made every texture refresh wait for 650-1,100 remaps a frame.

  • Measured, first room, Series S, medians at equal draws:

    Draws a frame Before After
    1,500-3,000 210 ms 177 ms
    3,000-4,500 255 ms 194 ms
    4,500-6,000 230 ms 228 ms
  • Dynamic descriptor slots (VItoriaBr 009856f, by uiliannn): a free run of slots crossing the search's start is found, so draws stop losing their tables.

  • The window is centred, whatever its size.

2026-11-25: Series S draws the world
  • The title keeps its own upscaler on Series S (fxceless/victory-fork #798 by KyleS98). Two of its functions are patched in memory at load, after checking their bytes; files on disk are never changed. VICTORY_TITLE_PATCHES=0 turns it off.
  • Both present planes are composed (world and interface; crates/victory-gpu/src/compose.rs).
    • Plane stride from ZSlayerHQ #10 (Cleverdee).
    • Blending from victory-fork #423 (canalmaloqueru-design).
    • Drawing pass after #188 (sagouindupm).
  • Ray-tracing feed passes (VICTORY_BVH_PASSES=1): without them, an open-water mission had no clouds, no waves and an unlit boat.
  • Measured: Series S 244 ms median, against about 325 ms on Series X; Series S also needs less memory.
2026-11-24 and earlier: the foundations
  • Boats float. The title's CPU reads two ocean textures its compute passes write: a height map and a displacement map. They are now copied back into title memory in the console's layout (VICTORY_TEXTURE_BACK). VICTORY_READ_WATCH=1 (diagnostics builds) finds such reads.
  • Depth planes written by shaders arrive in time (VICTORY_PLANE_NOW): the tiled lighting's material classes were one frame late.
  • Parallel DirectStorage reads: each read gets its own handle, so reads no longer queue behind each other. 0.47 ms per read instead of 6.3, and the world loads in 76 s.
  • Caches that survive: translated shaders are keyed by the translator's fingerprint, and the pipeline library is never overwritten by RenderDoc's empty one.
  • Lighting on 32-lane GPUs (VICTORY_WAVE_WIDE_ONLY), no startup flicker (VICTORY_TEXTURE_HOT), small pipelines first, batched remaps, the status bar.
  • Merged:
    • fxceless/victory-fork, including the skin and hair texture recheck, the depth bounds test and faster defaults;
    • VItoriaBr (copy-back relay race, descriptor-mirror locking);
    • victory-world-runtime: myokex's victory-amd line, Joshua Odom's kernel-read fix, and the mesh culling of stray triangles.

6. Credits

Built on the work of Marvisak (VIctory), TaynanGT (Vice-Tay) and fxceless (victory-fork), with code and ideas from:

  • TaynanGT's Vice-Tay and its contributors (Taynan Piza; PRs by beloooo, pawcijo, zzzz, efsebayern, meshahid.973, cwWwWwW, cxy0072019-sketch and others; every committer is listed in docs/credits.md);
  • the cool_fox lineage (codec_d's tree) and avatarmanz's engine, which Vice-Tay builds on;
  • Bigprice0451 (ultrawide and PC-controls host adapter, GPL-3.0);
  • trustno1-coder (VIctory-NVIDIA: its port of pull request #927);
  • uiliannn (VItoriaBr);
  • myokex (victory-amd);
  • ZSlayerHQ (victory-world-runtime);
  • zm0kiemedia's fork;
  • DexNom, Belobug and Flamingo (realblastex);
  • KyleS98, Cleverdee, canalmaloqueru-design, sagouindupm, AscilCH, Last Thylacine, Paul H and Joshua Odom.

The ray-miss switch (VICTORY_BVH_MISS) comes from Flamingo (realblastex/flamingo, FLAMINGO_BVH_MISS). The VX Overlay add-on uses ReShade's add-on API by crosire (BSD-3-Clause headers in addons/vx-overlay/third_party) and Dear ImGui (MIT); ReShade is installed by the user, not shipped here.

Each change above names its source. Developed with Claude Code.


VIctory fork (work in progress)

This branch: victory-amd + a DirectStorage read fix

A fork of myokex/victory-amd at 070df42 with one change on top (on this fork's victory-amd branch, and on fix-dstorage-guard-race):

  • Kernel reads into title memory are read beside and copied in. With the guard over all the views of a page (on by default in 070df42), a raw DirectStorage request could fail with ERROR_INVALID_USER_BUFFER (0x800706f8) and the title stopped itself seconds after the world's first frame: 2 runs out of 2. Those reads now land in a buffer and are copied in from user mode, where the guard takes the write; fread does the same. With the fix and the guard on, a run went 5.5 minutes past the world's first frame without a failed request.

Tested on one machine only: Windows 11, Radeon RX 7800 XT 16 GB (driver 32.0.32015.7029), Ryzen 7 7700X, 32 GB RAM, Series X profile. Other GPUs, NVIDIA's especially, may behave differently.

No game files, code or assets are here, and none are shared. Shaders are translated on your machine from your own copy of the game.

Reproducing the check run

  1. Install Git, Visual Studio Build Tools (MSVC C++ workload and a Windows 10/11 SDK), rustup, and a current GPU driver. The pinned Rust toolchain is installed by itself on the first build.

  2. Get the code and set up the config:

    git clone https://github.com/JoshuaO22/victory-amd
    cd victory-amd
    copy victory.example.toml victory.toml   # set game_dir to your own dump, outside the repo
    cargo test --workspace                   # optional; needs no game data
    cargo build --profile diag -p victory --features diagnostics
  3. Recommended, about 4 minutes: translate the shaders ahead of time. Without it, each shader is translated the first time the title uses it, and what it draws is left out until then: the opening cutscene and the world's first minutes show missing objects and effects, and run slower. With it, every shader is ready from the first frame. The translations are made on your machine from your own copy of the game, and are kept in the cache for later runs. Use the same build as the runs (the cache key includes it) and no shader-related VICTORY_* switches:

    target\diag\victory.exe warm

    Run it again after updating this repository: a change to the translator makes the cached translations stale, and they are made again.

  4. Run the title with a fresh data folder and a log:

    $env:VICTORY_LOG = 'info'
    $env:VICTORY_DATA_DIR = '<data folder>\check-1'   # any new folder outside the repo
    Start-Process target\diag\victory.exe -NoNewWindow -Wait -RedirectStandardError check-1.log `
      -ArgumentList 'run', '"<game dir>\<the title''s exe>"', '--execute', '--console', 'series-x'

    Go through the first-time setup and legal screens with a controller; they do not advance by themselves. The test window is the first minutes after the story's world starts loading. Let it run about 7 minutes, then close it.

  5. Passed if VICTORY_DATA_DIR\<title id>\crashes.log does not exist and the log has no dstorage: request failed line. The log names the world's start in a line with the first frame of 500 draws or more. Without the fix, the same run stops within about 25 seconds of that line.

To repeat it without a controller: copy saves and storage from the data folder of a run stopped before the first autosave into a new data folder. Setup and legal screens are then done, and the story starts from the beginning again.

victory-amd

This copy is a fork of fxceless/victory-fork, itself a fork of VIctory. It adds fixes found while running on an AMD card, tested on one machine only: Windows 11, Radeon RX 7800 XT 16 GB (driver 32.0.32029.2010), Ryzen 5 7500F, 32 GB RAM.

State on that machine (2026-11-25, Series X profile): the prologue's cutscene and the first room are drawn, with the player moving, at 2 to 3 frames per second. Runs of 8 minutes mostly end without a device loss; one ended with DXGI_ERROR_DEVICE_HUNG after about 5 and a half minutes, cause unknown. Lamps were dark in one run. The first room's walls were missing in several runs; with the guard over all the views of a page (below) they were there in two runs out of two, too few to call it fixed. Some shots of the opening cutscene come out white. Ray-traced light does not run.

What it changes over victory-fork (each is explained in a comment where it is):

  • Texture views are told apart by the memory their mips really take, so textures streamed in part are not taken for one another and are uploaded from their first mip that is there.
  • Views of placed textures the host lost sight of are put back (VICTORY_TEXTURE_SWEEP).
  • Dispatches of more than 65,535 groups are made in two parts (the final gather at 2560x1440 asks for 115,200).
  • DirectStorage requests read their page array when they run, and wait for it.
  • The list of pipelines to make early keeps what earlier runs listed, and compute pipelines get their own waiting time while a world loads.
  • A write of the title's through one view of a physical page is seen by the copies taken through its other views (VICTORY_VIEW_GUARD=0 turns it off).
  • Textures picked by index are looked at again after their upload (VICTORY_HEAP_RECHECK=0 turns it off).
  • View indices past the host heap are clamped on AMD too.
  • Programs that stop the AMD driver's compiler, or take it minutes and tens of GB, are left out (ray-tracing resolves).
  • Diagnostics: VICTORY_NULL_MAGENTA, victory warm, more captures.

The guard over all the views of a page is code of victory-fork #115 by Spexivus with its correction by joroyt and a part of VIctory #1122 by tightfall, adapted here. The second look at textures is fxceless's idea (victory-fork a803c87), written anew. Other parts were prompted by pull requests and issues of VIctory and victory-fork, and their code was written anew. Developed with Claude Code.

A work-in-progress fork of VIctory, a compatibility layer that runs an Xbox Series title natively on Windows from files the user supplies. This fork follows upstream main and adds fixes aimed at one goal: getting the game's world to render correctly and playably on one particular PC.

This repository contains no game files, code or assets. You need your own copy of the game. It is not affiliated with or endorsed by the game's developer or publisher.

Credits

  • VIctory by Marvisak and its contributors is the base of everything here: the loader, the runtime services, the Direct3D 12 back end and the shader recompiler. Licensed GPL-3.0-or-later; so is this fork. Upstream's history is kept intact below the single commit that carries this fork's changes.
  • XCL by ivall and its contributors (GPL-2.0-only) was used as a reference for how the same title behaves under another layer. Fixes inspired by it were written anew in VIctory's code.
  • The guard over every view of a memory page is code by myokex (victory-amd, commit c6dc4d8), which adapts pull request #115 here by Spexivus, its correction by joroyt and a part of VIctory #1122 by tightfall. The read-beside fix for kernel reads into title memory is by Joshua Odom (commit 10ea38e of the same fork family). Both are carried here unchanged apart from one merge conflict.
  • This fork's changes were developed with Claude Code.

Status of this fork (2026-11-25)

Not playable yet: 2.5 to 4 frames per second, and shadowed areas are black. Tested on one machine: Windows 11, Intel i7-14700KF, NVIDIA RTX 4070 12 GB, 32 GB RAM. The Series X profile is used throughout.

Stage State in this fork
Boot, menus, start screen works, 30 fps (as upstream)
Opening cutscene plays from start to finish, in order, lit: title cards, credits cards, night and dusk shots
Saves the game autosaves a checkpoint and loads it again
First gameplay scene (the prologue) renders: characters, textures, sky, sunlit exterior; HUD, pause menu and pad input work
Light in shadow missing: the game's ray-traced bounce light and ray-traced lamp and sun shadows do not run yet, so anything the sun does not hit directly is black
Frame rate in the world 2-4 fps: 420-450 ms per frame by default, 240-350 ms with the newer switches (VICTORY_RELAY=2, or VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024); it started at 3-6 seconds per frame
Stability no driver hang or device loss in normal runs (a hang introduced by the wave64 update was found and fixed: its barrier form for 64-lane programs is now off unless VICTORY_WAVE_WIDE=1)

Newest (2026-11-25, later the same day)

Update, the same night: the first room now renders right on the test machine (walls, textures, people, lamps), at 190 to 450 ms a frame (2 to 5 frames a second): the picture work has caught up, the frame rate has not. What did it, on top of the list below:

  • Descriptor records the title copies into its heap as plain bytes are mirrored before every submission (pull request #305 by Flyander, after upstream VIctory 86a5ed6). Measured here: about 40,000 records a frame that no call had announced; their host slots were empty or stale.
  • A buffer view that does not start on an element of its buffer's host copy gets a copy of its own bytes instead of being refused (after upstream 86a5ed6): 3 to 6 such views a frame.
  • Room on the card is kept for the render targets and buffer copies a world makes in its first frame: 98 buffer copies are made (945 MB) where the runs before made 1, and the processor no longer compares 550 to 710 MB a frame looking for shader writes (25 MB now).
  • Levels on demand ran on the card for the first time (VICTORY_LEVELS_ON_DEMAND=1, still off by default; with the fixes of pull request #747 by AscilCH): 3.1 GB of the card not allocated for texture levels the title does not hold, no device loss.
  • Guarded blocks under storage writes are opened by default; 14 more shader programs translate; a program is translated with first-half interpolation pairs only if it was refused for one (with that on for every program, 8,551 working pixel programs came out changed).
  • Frame rate, first cuts on the processor side: the descriptor sync uses a cheap fingerprint and leaves draw-table slots to their draws (the pass over the heap went from 70-220 ms a frame to about 3), and memory the guards already hold is not asked of the write watch (pull request #670 by Jonirulah). Card copies' pieces can come down inside their own flights (pull request #648 by Jonirulah, VICTORY_CARD_FETCH_INFLIGHT=1, off by default: the copy-back thread's wait went from 181 ms a frame to 0 here, but the card got busier, so no gain is claimed yet). The frame is still 250 to 380 ms: the card is the limit now, most of it the per-record clamp before each of some 6,700 indirect draws a frame.
  • Pull request #220 (cheaper indirect draws) is IN this tree now, its windows off by default (VICTORY_INDIRECT_WINDOW=1). History, so nobody repeats it: with windows on it lost the device three times here. Its own checker (VICTORY_INDIRECT_WINDOW_CHECK=1) then showed one list drawing 90 records of 2^24 vertices from a window, where the per-draw path lets eight through; a record of 2^23 vertices an instance or more now runs empty. Since that fix: five runs with windows on, no device loss, the card's time per frame roughly halved. One loss after the fix had the in-flight fetch (#648) on as well; do not combine the two. The in-flight fetch itself measured slower here in two runs and stays off.
  • Frame rate, second night (an RTX 4070; the first room went from about 3.5-4 to 6-7 frames a second with ALL of the switches below; the defaults are unchanged and give about 4.5-5):
    • VICTORY_ASYNC_SUBMIT=1: submissions are prepared and sent by a thread of the layer, not by the title's render thread, which a profile showed inside the submit path for 257 of 292 ms a frame.
    • VICTORY_QUEUE2=1: fetches of what shaders wrote go to a copy queue (brought back, with the fix for a piece fetched beside a later flight); the copy-back thread's wait fell from about 125 to 7 ms a frame.
    • VICTORY_INDIRECT_WINDOW=1: see above.
    • VICTORY_TEXTURE_NO_WAIT=1: a texture refresh no longer waits while the title remaps memory; the loading phase had 5 readings over a second where it had 18.
    • VICTORY_MERGE_GAP=64 VICTORY_MERGE_RUNS=4096: title bytes put in under flights' shader writes are joined over small gaps (NOT exact: read the comment at merge_gap before using it).
    • On by default: fills of upload memory and read-only buffer copies no longer wait for flights and are checked against what the flights then wrote (VICTORY_FILL_WAIT=1 waits as before; no mismatch in any run so far); up to 512 idle host lists and texture staging buffers are reused instead of made and freed every frame.
    • VICTORY_PROFILE=1 (diagnostics builds): a sampling profiler inside the layer; it is how the above was found. Still open: the frame rate dips (5-second readings of 300-500 ms among 150-215); in some of them texture uploads are 3-5 times the usual, in others nothing logged stands out. Not shader compiles (checked: 4-9 first uses and no waiting in those readings). A per-frame logger is the next step.
  • Known and counted, not fixed yet: an indirect compute pass asks for about 77,500 thread groups in x where one dispatch runs 65,535 (the rest is cut off).

Memory sync between the title's memory and the copies on the card:

  • A write through one view of a physical page is seen by the copies taken through its other views (VICTORY_VIEW_GUARD=0 turns it off). The title shows one page at several addresses and a copy was guarded at one of them only. Measured on the test machine: 0.8 to 1.0 million such writes in a five-minute run, every one of which used to leave a copy stale. Since it went in, the first room had its walls in the later frames of 4 runs out of 4 (2 of 5 before); the room's very first shot still comes up without walls in some runs.
  • Kernel reads into title memory are read beside and copied in, so a block guarded again in between no longer fails the read.
  • Writes of the storage layer into physical pages are counted where the title has those pages mapped (10,000 to 50,000 guarded blocks of copies lay under them in every run) and open the guards there, the placed textures under them looked at again, as for a kernel write (on by default in this tree; VICTORY_PAGE_WRITES=0: counted only).
  • Failed page-destination reads are retried (VICTORY_DSTORAGE_RETRIES=0 = as before).

Card memory (the test card is full from the first frame of the world: 85 to 99 % of its budget for a whole run, about 26,000 texture copies let go and 3,400 made again in five minutes, 2.8 GB of render targets that are all in use):

  • Levels on demand, off by default (VICTORY_LEVELS_ON_DEMAND=1): a texture the title fills takes card memory only for the levels the title holds (2.2 to 3.0 GB of the copies were levels it does not hold). Its test runs on the software adapter; it has not run on a card yet.
  • Refused texture slots are held back for a few seconds so that a pass reaches the slots behind them (VICTORY_FULL_CARD_PASS=0 = as before); room can be kept for the card copies of title buffers (VICTORY_CARD_ROOM_FOR_BUFFERS=1, off).

Tools and diagnostics:

  • Warming the shader cache ahead of a run (victory warm in this tree, which also makes the compute pipelines; the fork's own translate --warm is not taken); the shader cache is keyed on the translator's source, so a new build that does not touch the translator starts warm.
  • Counters, all off or diagnostics-only: VICTORY_MERGE_RACE=1 (title bytes a copy-back is about to put back to older values: none found in 138,000 copy-backs), VICTORY_WALLS_TRACE, VICTORY_CARD_ACCOUNTING, and a census of the copies the texture sweep never lets go.

What this fork changed (summary)

Rendering:

  • Meshlet culling read its scene buffers as the wrong kind of view, so the world drew almost nothing; fixed.
  • Per-draw descriptor tables could run out, after which draws used slots never made for them and the card hung; fixed.
  • Light packed by the game's compute shaders was read back through empty copies (sky, probes, fog); fixed for every mip level and layer.
  • The fog reconstruction, shadow-mask, hair, blend-shape skinning, fire and several material programs did not translate; fixed.
  • Gathers at a named mip level (with and without an offset) read level 0; fixed.
  • Implicit-level samples outside pixel shaders produced invalid DXIL in 730 compute programs; fixed.
  • Rectangle lists, depth and stencil twins for depth textures written by compute, texture read-backs.
  • Ray tracing, in progress and off by default: the game's own structure-builder programs translate, title memory can be read by raw address from shaders, the hardware ray/box and ray/triangle test is emulated in DXIL (checked against a reference on the GPU), and 59 of the 64 trace programs translate. Nothing is lit by it yet. See docs/fork-ray-tracing.md.

Speed and memory:

  • Waits for memory values, write-watch queries and page queries no longer walk page tables per call.

  • Large title buffers get a copy in card memory, with shader writes found by hashing on the card.

  • Submissions can be sent ahead of the wait for the card (VICTORY_LATE_WAIT), with a relay thread that lands results as the card finishes (VICTORY_RELAY): in a first five-minute run the card's idle time behind the submitting thread fell from about 136 to 30 ms per frame.

  • Title memory can be opened as a graphics heap so that buffers are used in place instead of copied (VICTORY_INPLACE, first stage only; a probe confirmed the approach on the test GPU).

  • The bindless texture queue no longer uploads stale views; the view table no longer grows without bound; the pipeline library is mapped instead of read into memory.

  • An intermittent device loss was traced to the pipeline library file being replaced while mapped; fixed.

  • Translated shaders get clean-up passes over the finished module (dead code, constant folding, reuse of values, branch facts); the pack's host instruction count falls by about 43 %, worth about 20 ms of GPU time per frame on the test machine (VICTORY_SHADER_OPT=0 turns them off).

Most of the newer speed changes sit behind environment switches that are off by default (VICTORY_LATE_WAIT, VICTORY_RELAY, VICTORY_WIDE_BACK, VICTORY_CARD_BUFFERS_MIN_MB, VICTORY_INPLACE, VICTORY_BVH_BUILDER, ...). Each is described in a comment where it is read.

Known problems

  • Everything in shadow is black (see above).
  • The interior of the first gameplay room is sometimes not drawn after the cutscene hands over to gameplay.
  • Around 24 GB of memory is in use during play.
  • A few style lints are switched off for this fork in the workspace Cargo.toml until the newer code is tidied.
  • Many changes here are specific to this title and this GPU, and some are marked shortcut: in the code where they approximate what the console does.

Everything below this line is upstream VIctory's own README, unchanged; its status section describes upstream, not this fork.


VIctory

Runs the title (Xbox Series X|S) natively on Windows, from files the user supplies.

The title's x86-64 code runs unchanged inside our process; VIctory supplies the platform underneath it and converts the title's data, ahead of time where it can and on first use where it must (shaders). See docs/architecture.md.

Status (2026-11-23)

Not playable yet. The title boots, runs its menus at its own 30 fps and loads the world, where rendering fails.

Stage State
Boot, first-boot screens (accessibility, language, settings, legal) works, 30 fps
Intro video with sound works
Start screen, profile and saves works
Loading into the world (about 50 s) works
The world (first mission's intro) reached and runs with indirect draws; its title card renders, the scene after it is still dark; 0.5-1.8 s per frame

Tested on one machine: Windows 11, AMD RX 6700 XT.

Warning. Entering the world on a real GPU can currently hang it, and Windows then resets the display driver (every monitor goes black for a moment). To look further, use a diagnostics build with VICTORY_D3D12_WARP=1, which renders on the software adapter.

What each part does today and what it still needs:

Subsystem Today Needs
Loader Runs the title's executable and its DLLs in our process; crash reports name the faulting code and are kept in crashes.log –
Runtime services One signed-in offline user, licences, packages, saves that survive a kill at any step, text entry dialog Speech is silent; the dialog and relaunch are untested live
Network Offline by design: the title cannot reach the network –
Files and streaming Archives and streamed data read, zlib and BCPack decoded in parallel Loading is limited by writes into title memory
Input XInput pads, keyboard, keyboard stand-in pad Trigger rumble
Audio Menu, video and loading sound; XMA voices and Opus streams decode Reverb is silent; Opus results unverified against the title
GPU: menus Draws, compute and presentation on host D3D12; only changed title memory is copied Frame pacing drifts on one screen in release builds
GPU: world Mesh pipelines, shader-written buffers, descriptor lifetimes, indirect execution (arguments clamped), pipelines made by worker threads and kept on disk Most of the scene is still missing (untranslated shaders drop draws); frames take seconds; real queries, depth bounds, HDR and scaling are missing
Shaders Console GPU code recompiled to DXIL at first use, cached on disk. Menus: all. World: mesh 8,191 of 8,506, vertex/pixel 10,617 of 12,346, compute 1,643 of 2,539 64-bit image atomics, merged geometry stages, the ray-tracing builder's shaders; some compute programs need a GPU with 64-lane waves
Textures Console tiled layouts and detiling for the modes the title uses Render-target metadata planes
Series S mode Runs through the menus to the loading screen The world, as above

Getting started

Requirements: Windows 10/11 x64, a CPU with AVX2, a Direct3D 12 GPU with shader model 6.6 (and mesh shaders for the world), Rust (pinned in rust-toolchain.toml).

The title also needs several GiB of available Windows commit at startup. Check Committed under Task Manager → Performance → Memory. If crashes.log reports Windows error 1455, close other applications or increase the Windows paging file size, then retry.

cargo xtask install-hooks                # asset-policy check on every commit
copy victory.example.toml victory.toml   # then set your paths (outside the repo)
cargo test --workspace                   # needs no game data
cargo run -p victory -- config           # check your paths

Run the title:

cargo build --release -p victory
target\release\victory.exe run <game dir>\<the title's exe> --execute

The window caption shows the framerate. Saves, settings and crashes.log are kept under the data folder (default %LOCALAPPDATA%\victory\data), derived data under the cache folder.

Input: XInput pads. With none connected the keyboard is a pad while the title's 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

Commands

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

Logging: VICTORY_LOG=victory_loader=trace,info (a release build logs info and above).

Debugging

A release build has no debugging aids. Build them in with

cargo build --profile diag -p victory --features diagnostics   # target\diag\victory.exe
Variable Effect
VICTORY_LOG=<target>=debug,... debug and trace output
VICTORY_STACKS=20,60 every thread's stack at those seconds
VICTORY_WATCH=<rva>,... logs a title u32 when it changes
VICTORY_KEYS=30:Enter,35:X presses keys at those seconds, focus or not
VICTORY_CRASH_SAVE=<rva>:<len>,... saves title memory to the cache folder on a crash
VICTORY_CAPTURE=<dir> saves presented frames (powers of two, or VICTORY_CAPTURE_FRAMES=<list>)
VICTORY_DUMP_TARGETS=1 with the two above, saves every render target of those frames
VICTORY_D3D12_DEBUG=1 host debug layer
VICTORY_D3D12_GBV=1 with the above, GPU-based validation (bad descriptor use reported, not faulted; slow)
VICTORY_D3D12_DRED=1 on a GPU failure, the allocation hit and the commands in flight
VICTORY_PIPELINE_WAIT_MS=24 reduce the per-frame wait for background pipeline creation from the default of 500 ms. A draw can be omitted until its pipeline is ready
VICTORY_SKIP_PIPELINES=<hash>,... omit draws and dispatches, including indirect ones, whose pipeline contains a listed 16-digit shader hash
VICTORY_GPU_TIMING=1 with the above, each list of a submission run and timed on its own; slow lists logged with their slowest commands
VICTORY_D3D12_WARP=1 host device on the software adapter (slow; cannot reset the driver)
VICTORY_SHADER_LOOP_LIMIT=<n> translated shader loops stop after n iterations per lane instead of 2^20 (own shader cache entries); if a lower n makes world frames much faster, loops hitting the limit are what makes them slow
VICTORY_AUDIO_CAPTURE=<file.wav> records what the title plays (our process only)
VICTORY_XMA_DUMP=<dir> saves the first 32 XMA voices' context and input

Every build appends crashes and host GPU failures to crashes.log in the title's data folder.

License

GPL-3.0-or-later. See LICENSE.

About

Work-in-progress Xbox Series compatibility layer (a VIctory fork) tuned for speed on NVIDIA. No game files.

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages