Skip to content

About

DILIH (DropItLikeItsHot): runs the Xbox Series build natively on Windows from files you supply. Split memory mode, a shader recompiler for PC GPUs, ray tracing in progress. ~5 fps on an RTX 5080. No game files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DILIH — DropItLikeItsHot

DILIH runs the Xbox Series build of a console title natively on Windows, from files you supply yourself. It started as a fork of VIctory and is now its own project. Its main work in progress is a split-memory mode that treats the console's single shared memory as two (system RAM and the graphics card's VRAM), so data moves only when the other side actually needs it; alongside it, our own speed and graphics work.

  • The executable is dilih.exe (cargo build --release -p victory).
  • Switches can be set as DILIH_*: DILIH_X=1 sets VICTORY_X=1 (and wins over it). The code and its documentation keep upstream's VICTORY_* names and the victory-* crates, so ports from upstream VIctory and its forks merge cleanly.
  • Saves, the shader cache and the pipeline library live in %LOCALAPPDATA%\dilih (an existing %LOCALAPPDATA%�ictory is moved there on the first start).

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

Based on victory-fork (formerly victory-gta6) by fxceless, itself a fork of VIctory by Marvisak and contributors, licensed GPL-3.0-or-later (see LICENSE); their full history is kept below. It also merges MyVictory-Fork (MaDeInCCCP2), asdaasdsaddf/VIctory test/fx-prs, FulGerNet/macca-cl, Trexies/victory-fork VIwork, ZSlayerHQ/victory-world-runtime, WillyboPeep/victory-all-forks and others (see the merge commits). This repository's earlier line, based on XCL (GPL-2.0-only), is kept unchanged on the xcl branch and is not mixed into this one.

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.
  • DILIH's changes were developed with Claude Code.

Status (2026-11-25)

Not playable yet: 2.5 to 5 frames per second, and shadowed areas are lit only by a flat stand-in. 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; walking, the camera, the objective hints and the hold-LT interaction menu work; TALK with a cellmate (dialogue choices) and the next objective, following the guard out of the dormitory into the corridor, the hall and the gate to the yard, work; hair and faces mostly without the 8x8 blocks (some stepped dark edges remain around heads against bright windows) (RTX 5080, 2026-11-24)
Light in shadow stand-in: the game's ray-traced bounce light and ray-traced lamp and sun shadows do not run yet; a flat ambient floor and lit shadow masks stand in for them (on by default, VICTORY_AMBIENT_STUB=0 / VICTORY_SHADOWMASK_STUB=0 turn them off, #30), so interiors are readable but flat
Frame rate in the world 2-4 fps: 420-450 ms per frame without the relay (VICTORY_RELAY=0), 240-350 ms with it (the default now) or with 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. RTX 5080, 2026-11-24: 226-290 ms by default once the shader cache is warm (the first run of a build that changes shaders waits about 7 minutes on some 2,100 pipeline builds); since texture staging buffers are only marked in flight when uploaded (a1f70e3): 208-262 ms in the prison (median 221; settles 13.8 -> 5.2 per frame), about 4-5 fps. With the VIwork port (#32), 2026-11-25: 224-226 ms median on the cutscene bench (204-213 before it); most of the difference is the scene it now draws, the cell walls and the window mesh: about 21 ms more on the card, 13 ms more preparing and 41 MB more copies a frame. The view guard is the part that draws them; VICTORY_VIEW_GUARD=0 runs at 189 ms without them. Split memory stage 1 on by default (#48), 2026-11-25: 193 ms median (212-215 with VICTORY_SPLIT_MEM_WC=0): shader writes to write-combining title memory stay on the card, so copy-back falls from about 36 to 12 ms and copies from 165 to 82 MB a 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)
Linux (Proton) the workspace builds, tests and runs its file-side commands natively; the game via proton/run.sh is new and untested beyond smoke tests (docs/proton.md)

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. In the game it is off: every ray misses without reading memory (the emulated test is only the tests' reference; VICTORY_RT_EMULATE=1 brings it back for comparison, #27). 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, at stage 2 by default; 0 turns it off): 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=1 windows outside buffers, =2 title buffers too, =3 also the big ones kept in the card's memory, off by default; buffers in place declare their shader writes so the relay waits for them and other copies see them; private memory, and the page pool with VICTORY_POOL_COMMIT=1, which makes its sections committed a chunk at a time (VICTORY_POOL_CHUNK_MB, 1024) so that a window there is a buffer in the section's heap; 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_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 lit by one flat grey (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.

Running on Linux

The workspace compiles, tests and runs its file-side commands (config, inspect, census, shader-info) natively on Linux. The game itself needs a Windows environment, which Proton supplies: build victory.exe with cargo win and run it through proton/run.sh. Packages, commands, prefix layout and known Wine gaps are in docs/proton.md.

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

On Windows systems with multiple GPUs, select the hardware adapter used by the shader test harness with a case-insensitive substring of its DXGI name:

$env:VICTORY_SHADER_ADAPTER = 'NVIDIA'
cargo test -p victory-shader --lib
Remove-Item Env:VICTORY_SHADER_ADAPTER

The default is the Windows-selected adapter. Explicit WARP runs still use WARP.

Shaders can be translated ahead of the first run (translate --cache). Use the same cache directory and translation settings for warm-up and play. Shader entries survive rebuilds outside the translator and its build inputs. Changes to the translator or GPU shader capabilities select new entries. Unsupported shader results are cached under the same rules. --pipelines also stores supported pipelines from the shader pack in the host D3D12 library, which is specific to the host GPU and driver. Add --used-pipelines to prebuild only exact pipeline keys requested by earlier runs in that cache. The shader warm-up still covers all input files.

target\release\victory.exe translate --cache --pipelines <game dir>\shaders.rpf <game dir>\<the title's exe> <game dir>\XboxBvhBuilder.dll <game dir>\amd_fidelityfx_upscaler_xbox.dll

Run the title:

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

Or, for normal play with the log in %TEMP%\victory-play.log (clears debugging switches such as VICTORY_KEYS / VICTORY_CAPTURE first):

powershell -ExecutionPolicy Bypass -File scripts\play.ps1 -Game "<game dir>\<the title's exe>"

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 translate [paths...] --cache [--pipelines [--used-pipelines]] [--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_PRESS_FILE=<file> (release builds too) presses what is appended to the file: pad buttons, sticks LSUP..RSRIGHT, LT RT LS RS; NAME:MS holds, +NAME/-NAME keep a key held and let it go
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_CAPTURE_SYNC=1 finishes each presented frame's PNG before presenting it (normally PNG encoding runs on a worker)
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 each list of a submission run and timed on its own (no relay, so the frame rate is not the game's); every command's card time summed by pipeline, our own lists (card sync, preludes, card compare) by their waits; slow lists logged with their slowest commands. No VICTORY_D3D12_DRED needed (it costs card time of its own)
VICTORY_GPU_TIMING_RANK=10 with the above, every that many seconds (0: never) all the sums as gpu timing rank lines; powershell -File scripts/gpu_rank.ps1 <run folder> ranks a window of them (default the last 120 s)
VICTORY_D3D12_WARP=1 host device on the software adapter (slow; cannot reset the driver)
VICTORY_SHADER_LOOP_LIMIT=<n> with diagnostics, override the default loop caps (128 pixel, 256 vertex/mesh/compute) with n iterations per lane; a lower cap can avoid GPU timeouts but also cuts off genuine long loops; own shader cache entries
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.

Switches from the victory-fork VIwork port (#32)

On by default (each can be turned off): VICTORY_VIEW_GUARD=0 (a write through one view of a page is seen at its others), VICTORY_HEAP_RECHECK=0 (textures picked by index looked at again after their upload), VICTORY_TEXTURE_SWEEP=0 (lost views put back), VICTORY_MOUSE=0 (mouse look: a click in the window captures the mouse, Alt or focus loss lets it go; VICTORY_MOUSE_FULL, _SMOOTH_MS, _DEADZONE, _INVERT=1).

Off by default, for A/B runs: VICTORY_FILL_ON_CARD=1, VICTORY_SPLIT_UNWATCHED=1, VICTORY_CARD_BATCH=1, VICTORY_COPY_COMPARE=1, VICTORY_FULL_REFRESH=1|check, VICTORY_EARLY_TEXTURES_MS=12, VICTORY_BAKE_TEXTURES_MS=1500, VICTORY_TEXTURE_ROOM_PERCENT=<50..97>, VICTORY_PLACED_FILLER=0, VICTORY_RT_OFF=1 (the ray-tracing passes not run at all, for comparison with the default clean-miss tracing off). Each is described where it is read.

Fork notes: measured progress on one RTX 3060 12 GB (2026-11-24)

Work on this fork, measured with VICTORY_GPU_TIMING=1 and a frame grabber, same scene each time (the title's opening world, a city street):

change before after
texture refresh without waiting on the remap lock (VICTORY_TEXTURE_NO_WAIT=1) 312–545 ms a frame in texture work 12–23 ms
card-buffer copies kept on the card (VICTORY_CARD_BUFFERS_MIN_MB=8, VICTORY_CARD_BUFFERS_MB=1536) heap pass 262 ms, 1 906 draws heap pass 15–24 ms, 4 833 draws
both together 1.3–1.8 frames a second 2.5–4 frames a second

The menu runs at a locked 30. Saves persist across restarts. Cutscenes render with light and subtitles.

Wave64 → wave32: a console wave64 program runs on a 32-lane host as two host waves when its cross-lane code stays inside each half and its shared memory is ordered. This fork adds an analysis that also halves programs whose every shared-memory access names only the lane's own words (the address derives from the thread id), which needs no ordering at all: of 1 163 dumped compute programs, 37 more now run in waves of 32 than did before. The probe lives in crates/victory-shader/examples (wave_why, lds_dump, validate_dump).

License

GPL-3.0-or-later. See LICENSE.

About

DILIH (DropItLikeItsHot): runs the Xbox Series build natively on Windows from files you supply. Split memory mode, a shader recompiler for PC GPUs, ray tracing in progress. ~5 fps on an RTX 5080. No game files.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages