Read-only copy of github.com/VictoryX-dev/VictoryX · An experimental Xbox Series compatibility runtime for Windows, focused on native execution, rendering accuracy and performance.
  • Rust 99.2%
  • PowerShell 0.8%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
VictoryX-dev 985a1dd35f
build-release: validating packages needs no SDK folders (#17)
In validate mode -WithFidelityFx / -WithAgilitySdk only say what the packages are expected to carry; the SDK folders are needed only when building.
2026-12-03 05:24:50 +01:00
.github
assets
docs
launcher
packaging
runtime
scripts build-release: validating packages needs no SDK folders (#17) 2026-12-03 05:24:50 +01:00
.gitignore
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
CREDITS.md
LICENSE
NOTICE
README.md
SECURITY.md
THIRD_PARTY_NOTICES.md

VictoryX — Xbox Series Compatibility Runtime for Windows

V I C T O R Y X

Xbox Series Compatibility Runtime for Windows

Native execution. Accurate rendering. Better performance.

Rust Direct3D 12 Windows Status Contributions

GitHub stars Telegram

📣 Follow development and get new builds first: t.me/victoryx_updates

About · Progress · Performance · Experimental Work · Architecture · Roadmap · Documentation · Contribute · Acknowledgements · Licence


A community-driven effort to bring Xbox Series runtime compatibility to Windows through native x86-64 execution and Direct3D 12 translation.

About VictoryX

VictoryX is an experimental compatibility runtime written primarily in Rust. Rather than emulating an entire console, it executes compatible x86-64 title code in-process on Windows and translates the required console operating-system, memory and graphics behavior to the host platform.

Our goal is to build a correct, efficient and maintainable runtime that makes effective use of modern PC hardware — without hiding rendering defects or sacrificing accuracy to inflate FPS numbers.

VictoryX is under active development. It is not a general-purpose Xbox emulator, and broad title compatibility has not been established.

We're opening the project to the community because independent engineering experience matters. We have a functioning runtime, a substantial synthetic regression-test suite and a clear understanding of several remaining bottlenecks. We would love to work with developers who can help solve them.

How we label claims

Every technical claim in this repository belongs to one of four distinct classes:

Class Badge Meaning
Confirmed in gameplay 🟢 Measured in actual runtime gameplay checkpoints on the reference hardware described below.
Synthetic fixtures 🔵 Verified on standalone unit tests, hardware D3D12 fixtures or isolated micro-benchmarks, without gameplay confirmation.
Experimental (unmeasured in gameplay) 🟡 Merged behind an opt-in VICTORY_* switch that defaults to off; passes synthetic tests, not yet validated in gameplay.
Engineering targets ⚪ Development goals we are working toward — not achieved results or release promises.

Development progress

Subsystem Current state
Native x86-64 execution 🟢 Functional in tested workloads
Direct3D 12 translation 🟢 Functional
Xbox Series S profile 🟢 Playable in internal testing
Xbox Series X profile 🟡 Functional in earlier builds; performance work ongoing
Texture streaming 🟢 Functional, further improvements planned
Sparkles and rainbow facial artifacts 🟢 Largely eliminated in RC3 gameplay tests
GPU resource lifetime and synchronization 🟡 Multiple validated corrections; ongoing work
CPU command preparation 🟡 Major optimization target
Shared memory backing 🟡 Architectural redesign in progress
Geometry correctness 🔴 Intermittent stretched geometry remains
Shoreline rendering 🔴 Distance-dependent corruption remains
Traversal frame pacing 🟡 Improved in steady scenes; streaming spikes remain
Native ray tracing 🟡 Experimental; not part of current baseline
Cross-vendor compatibility ⚪ Wider validation needed

What we have achieved

  • Functional in-process x86-64 execution and rendering through the host Direct3D 12 device.
  • Both Series S and Series X console profiles running in internal builds.
  • Substantial improvements to texture streaming, descriptor publication and resource state tracking.
  • Near-elimination of the previously widespread texture sparkles and rainbow facial corruption in observed RC3 gameplay (with zero device removals across RC3 checkpoint launches).
  • Fence-aware resource ownership improvements (VICTORY_RETIRE_BY_OWNER) and fixes for several reproducible GPU synchronization defects.
  • Measured frame-pacing improvements through sliced texture sweeps (VICTORY_SWEEP_SLICES) and deduplicated deferred resource retirement (VICTORY_RELEASE_LEAVE_ONCE), both enabled by default.
  • Indirect command batching and window clamping (VICTORY_INDIRECT_BATCH, VICTORY_INDIRECT_WINDOW) with zero proven stale reads in diagnostic A/B sessions.
  • A growing suite of unit tests, synthetic hardware D3D12 regression fixtures and reversible experimental switches.

Performance

The results in this section are confirmed in gameplay unless explicitly labelled otherwise. They come from internal Series S gameplay checkpoints on one AMD test system and are not universal compatibility or performance claims.

Reference test system

Component Configuration
CPU AMD Ryzen 9 9950X3D
GPU AMD Radeon RX 9070 XT · 16 GB
RAM 32 GB
OS Windows 11
Console profile Xbox Series S
Rendering FSR Quality · 720p internal → 1080p output
Frame Generation / Ray Tracing / Ray Regeneration Disabled

Measured frame-pacing improvements (confirmed in gameplay)

Metric Post-RC3 control Sliced sweeps + leave-once enabled Change
P99 frame time 46.4 ms 35.1 ms −24.4%
P99.9 frame time 54.9 ms 39.0 ms −29.0%
1% low FPS 20.0 27.0 +35.0%
Texture sweep cost 9.0 ms 0.85 ms −90.6%
Longest deferred-release burst 19.2 ms 1.5 ms −92.2%
Card-memory-tight warnings 17 5 −70.6%

The frame metrics represent median heavy-scene measurement windows (~5,080–5,670 draws per frame); the operation timings are reported checkpoint measurements. The runs had similar but not identical workloads. These improvements stabilize frame pacing and do not imply an equivalent increase in average FPS.

Where we stand today (confirmed in gameplay)

  • Steady heavy-scene throughput: approximately 40 FPS without Frame Generation (~39.4–40.1 FPS across heavy-scene Series S windows) with FSR Quality enabled.
  • CPU submission bottleneck: in a representative 25.7 ms frame, the submitting lane spends roughly 22.2 ms active — ~19.9 ms in command preparation (front setup ~6.4 ms including ~4.7 ms waiting on helper threads, per-step refresh walks ~4.5 ms, write-watch queries ~3.7 ms, card copies ~2.2 ms, late work ~1.4 ms, heap work ~1.4 ms, tail ~0.3 ms), ~1.3 ms presenting and ~0.6 ms dispatching.
  • Overlapping memory windows and duplication: diagnostic runs measured ~42% of refreshed stale pages per frame (468 of 1,105) being copied by a second overlapping window, and ~1,358 MB of ~3,431 MB in windows duplicated across overlapping allocations.
  • Memory footprint clarification: total process private bytes reach ~22.6–23.8 GB in heavy scenes, but hardware measurement confirmed that ~10 GB of that private commit is GPU/card-side memory charged 1:1 to Windows private bytes; RAM-side private memory is ~9.8–11.5 GB alongside ~10–13.9 GB dedicated VRAM.
  • Traversal frame pacing: moving through new areas still triggers streaming spikes (P99 55.5–86 ms, 1% low 15.3 FPS, 13–22% of frames exceeding 33.3 ms in traversal windows).
  • Series X and cross-vendor hardware: Series X performance and NVIDIA/Intel GPU behavior require broader validation.

Experimental architecture work (unmeasured in gameplay)

Recent architectural work has landed behind opt-in switches that are off by default and not yet measured in gameplay. Each is backed by synthetic hardware or micro-benchmark fixtures only:

Switch Default Target problem Synthetic fixture status
VICTORY_DEPTH_READ_SAMPLED=1 Off Distance-dependent shoreline blackening Transitions read-only depth planes sampled by shaders to DEPTH_READ | SHADER_RESOURCE so HTILE decompresses; RX 9070 XT synthetic fixture reads z = 0.875 vs 0.373 without it (22 depth fixtures pass off and on).
VICTORY_DRAW_INPUT_ALIAS=1 Off Stretched geometry from stale draw inputs Routes indirect draw/dispatch inputs to the GPU writer's backing after an exact same-list full GPU overwrite; synthetic RX 9070 XT fixture passes.
VICTORY_SUBMIT_TAKE=2 Off Diagnosing post-submit CPU overwrites Audit-only diagnostic mode counting vertex/index pages written by the title after submission. (Rule mode 1 is unreviewed and unsafe; do not enable.)
VICTORY_PREP_PIPELINE=1 Off Serial CPU preparation on the submitting lane Runs large refresh fronts (textures + buffers) across helper threads and folds command-list plans at close; synthetic real-mix probe 7.40 ms → 5.56 ms.
VICTORY_ASK_BETWEEN=1 Off Write-watch reset stalls on the submitting lane Moves write-watch resets to a helper thread between submissions; synthetic cost test 5.8–6.0 ms → 4.0–4.1 ms.
VICTORY_TEXTURE_HOST_WRITTEN_UNQUEUED=1 Off Redundant index-picked texture queue checks Skips queueing host-written textures (RTV/DSV/UAV) into the title-filled texture pass; synthetic stand-mix fixture saves ~0.12 µs per look and ~0.08 µs per write.
VICTORY_WINDOW_WITHIN=1 Off Overlapping buffer window duplication Reuses a longer live window in the same 4 MiB cell; saved ~0.6–1.1 GB private bytes when combined with another switch, unmeasured standalone.

Unconditional diagnostic instrumentation has also been added to help contributors measure memory and submission bottlenecks accurately: per-component memory splitting (memory split in memcensus), submission-lane stage timers and index-picked texture look-end counters. See docs/RUNTIME_SWITCHES.md and docs/KNOWN_ISSUES.md for details.

Engineering targets

Target Objective
Series S 50–60 FPS without Frame Generation
Series X 30–40 FPS without Frame Generation at intended profile settings
Frame pacing Consistent traversal and improved 1% lows
Memory Comfortable operation on 32 GB systems
Rendering Eliminate remaining stretched geometry and shoreline corruption

These are development goals, not achieved results or release promises.

Architecture

flowchart TD
    A["Compatible x86-64 Title Code"] --> B["victory-loader (Map, Bind, TLS, Crash Handler)"]
    B --> C["victory-hle (Console OS, Virtual Memory, Storage, Input, Audio)"]
    C --> D["victory-gpu (D3D12.X Translation)"]
    D --> E["Title Memory, Shadow Copies & Write Watch"]
    D --> F["Descriptor Publication & Submission Lane"]
    D --> G["Texture Streaming & Residency Pools"]
    D --> H["victory-shader (Native Shader IR to Host DXIL)"]
    E --> I["Host Direct3D 12 Device"]
    F --> I
    G --> I
    H --> I
    I --> J["Windows PC GPU"]

No game files are in this repository (runtime/docs/asset-policy.md).

High-level overview. See docs/ARCHITECTURE.md for the full crate map, threading model and memory/descriptor data flow.

The runtime lives in the runtime/ Cargo workspace (9 library crates, the victory CLI and xtask), while the Windows desktop launcher (victoryx) lives in its own launcher/ Cargo workspace.

Roadmap

See docs/ROADMAP.md for the full milestone breakdown and active engineering tracks.

Phase 1 — Runtime foundations

  • Functional native x86-64 execution in tested workloads
  • Direct3D 12 graphics translation
  • Series S and Series X profiles in internal builds
  • Texture streaming and basic resource management
  • Automated synthetic regression-test infrastructure

Phase 2 — Correctness and stability

  • Major sparkle and facial texture corruption improvements (RC3 gameplay)
  • Fence-aware resource ownership and synchronization corrections
  • Validated texture-sweep and deferred-retirement pacing improvements
  • Resolve remaining intermittent stretched geometry
  • Resolve distance-dependent black shoreline rendering
  • Eliminate remaining intermittent resource and rendering defects

Phase 3 — Performance architecture

  • Replace overlapping memory copies with safe shared page-store backing
  • Reduce serial CPU preparation and submission work
  • Validate and tune parallel command preparation
  • Reduce redundant write-watch and copy processing
  • Improve physical RAM and VRAM efficiency
  • Resolve traversal-related frame-time spikes

Phase 4 — Broader compatibility

  • Validate across AMD, NVIDIA and Intel hardware
  • Improve Series X performance
  • Improve experimental ray-tracing compatibility
  • Document supported configurations and reproducible benchmarks
  • Automate development pre-releases on every merge into main while keeping stable releases under manual approval

Documentation

Document Contents
docs/ARCHITECTURE.md Workspace crate layout, virtual memory & shadow copies, descriptor publication, submission lane, relay threads and texture pools
docs/KNOWN_ISSUES.md Open defects and bottlenecks, classed evidence and approaches already tested that did not work
docs/ROADMAP.md Phased plan separating achieved milestones, experimental switches and engineering targets
docs/BENCHMARKING.md Reproducible benchmarking discipline, frame-cadence and memory-split log interpretation and VICTORY_AB A/B testing
docs/RUNTIME_SWITCHES.md Complete reference of VICTORY_* environment variables in this tree, defaults and stability status
docs/BUILDING.md Build prerequisites, Cargo profiles, development builds and release packaging
docs/DEVELOPMENT.md Contributor workflow, test suites, hardware regression runner and asset-policy checks
CHANGELOG.md Milestone history
CONTRIBUTING.md How to propose changes, run checks and submit pull requests
SECURITY.md Private vulnerability reporting policy
CREDITS.md · THIRD_PARTY_NOTICES.md · docs/PERMISSIONS.md Upstream credits, third-party licences and notices, and permissions
docs/GOVERNANCE.md Repository settings, branch protection and the release environment

We need your help

VictoryX is at a point where fresh perspectives can make a real difference. You do not need to understand the entire runtime to contribute.

If you know… You can help with…
Rust / systems programming Hot-path optimization, safe concurrency, allocation, cleanup and data structures
Direct3D 12 / graphics programming Resource states, barriers, descriptors, command lists and pipeline correctness
Virtual memory / GPU memory Shared backing, aliasing, residency and lifetime management
CPU performance engineering Critical-path profiling, parallel preparation and eliminating redundant copies
Rendering / shader systems Geometry corruption, depth sampling, shader translation and material rendering
GPU profiling Identifying bottlenecks, measuring synchronization costs and frame pacing
Testing / CI Synthetic reproductions, hardware regression fixtures and build tooling
Technical documentation Architecture explanations, contributor guides and reproducible benchmarks

High-impact engineering challenges

01 — CPU submission architecture

The submitting thread is a primary bottleneck (~22.2 ms of work in a representative 25.7 ms frame). We need to eliminate unnecessary work, validate parallel preparation (VICTORY_PREP_PIPELINE) and reduce repeated memory processing and write-watch stalls (VICTORY_ASK_BETWEEN).

02 — Memory backing and resource identity

Overlapping window allocations duplicate ~1.36 GB of buffer backing and cause ~42% of refreshed stale pages to be copied more than once. A shared page-store design is in progress to preserve addressing, submission ordering and GPU lifetime correctness while eliminating duplicate copies.

03 — Geometry corruption

Some objects intermittently render with stretched or expanding polygons. Candidate causes include stale draw inputs, reused command lists, indirect arguments, aliasing and post-submit CPU writes. VICTORY_DRAW_INPUT_ALIAS=1 and VICTORY_SUBMIT_TAKE=2 are experimental starting points; we need reproducible evidence connecting affected paths to targeted fixes.

04 — Shoreline rendering

Certain shoreline surfaces appear correct at a distance and turn black when approached. Depth sampling, HTILE decompression, material bindings and mip-level growth are under investigation. VICTORY_DEPTH_READ_SAMPLED=1 passes synthetic RX 9070 XT depth fixtures and awaits gameplay validation.

05 — Traversal and streaming

Steady-state frame pacing improved markedly, but traversing into new areas still triggers streaming spikes (P99 55.5–86 ms). We need improvements that cut streaming stalls without introducing visible texture delays or degrading image quality.

Contributing

Read CONTRIBUTING.md and our Code of Conduct before opening a pull request.

  1. Open an issue or discussion describing the problem or proposed approach.
  2. Coordinate substantial architectural changes before duplicating existing work.
  3. Create a focused branch and keep unrelated changes separate.
  4. Include a synthetic reproduction, regression test or reproducible performance measurement where applicable.
  5. Submit a pull request explaining the change, its risks and how it was validated.

We welcome competing architectural ideas. Existing implementation choices are not sacred, but correctness and reproducibility are essential.

Engineering principles

  • Correctness first: no unsafe resource lifetime shortcuts or silently skipped rendering work.
  • Measure real improvements: distinguish gameplay benchmarks from synthetic tests, experimental switches and targets.
  • Keep experiments reversible: put risky changes behind documented VICTORY_* switches that default to off.
  • Respect resource ownership: preserve synchronization and submission semantics.
  • Keep contributions reviewable: explain why the change works, not just what changed.

Building and testing

See docs/BUILDING.md and docs/DEVELOPMENT.md for prerequisites, Cargo profiles (fast, diag, balanced, release), unit tests and hardware regression fixtures.

Synthetic tests and independently reproducible fixtures are especially valuable. Do not attach proprietary title data, binaries, shader caches or console SDK materials to reports or tests.

Releases and distribution

  • Development pre-releases are built and published automatically after every successful merge into main so contributors and testers can try the latest changes quickly.
  • Stable releases remain under manual maintainer approval after verification.
  • Release packages include AMD's FidelityFX DLLs and Microsoft's D3D12 Agility SDK runtime with their licences and notices (THIRD_PARTY_NOTICES.md); each package's THIRD-PARTY-BINARIES.txt lists them. They are never committed to the repository (docs/BUILDING.md).

Acknowledgements

  • XCL: VictoryX's emulation of console-only CPU instructions on Intel CPUs (runtime/crates/victory-loader/src/console_insn.rs and console_insn_decode.rs) is XCL's code, used under a collaborative agreement with XCL's developers (GPL-2.0-only upstream; see docs/PERMISSIONS.md).
  • VIctory by Marvisak and its contributors: the runtime is a modified fork of it, and of many of its forks.
  • Every upstream project, fork, pull request and developer whose work is in the tree is listed in CREDITS.md; licences and notices are in THIRD_PARTY_NOTICES.md.
  • AI-assisted engineering: VictoryX is developed with substantial AI assistance under human direction. AI coding assistants wrote and changed much of the code, the tests and the documentation; the maintainer set the goals and the rules and decided what was merged, and changes were checked by independent reviews, by tests including hardware fixtures on real GPUs, and by gameplay sessions (see CREDITS.md).

VictoryX is an independent, unofficial software research project. It is not affiliated with, endorsed by or sponsored by Microsoft, Xbox or any game publisher.

The project is intended to publish independently distributable runtime source code and synthetic test materials only. Do not submit proprietary game files, console firmware, SDK materials, copyrighted shader binaries, encryption keys or other unauthorized content, including through issues, discussions and pull requests.

Users and contributors are responsible for complying with applicable laws and licensing terms. A disclaimer does not grant rights to third-party material.

Licence

VictoryX is licensed under GPL-3.0-or-later. See LICENSE and NOTICE; upstream credits are in CREDITS.md, third-party licences and notices in THIRD_PARTY_NOTICES.md, and the permissions the project relies on in docs/PERMISSIONS.md.


Built with ambition. Improved through collaboration.

VictoryX has come a long way, but the most important work is still ahead.

If you can help us make it faster, more accurate or more stable, we'd love to hear from you.

⭐ Star the project · 💬 Join the discussion · 🛠️ Contribute

VICTORYX