Skip to content
LooperSaltyPublic

About

AnyXboxX — prototype d'émulateur Xbox Series X (HLE du GDK sur Unicorn)

Topics

Resources

Contributing

Stars

416 stars

Watchers

7 watching

Forks

Repository files navigation

AnyXboxX — Xbox Series X emulator (prototype)

Discord

English · Français

Note

Where we are (2026-11-26)

  • ✅ The game runs. GTA VI 1.0.2.1 (Xbox Series build) starts, plays its cutscenes and reaches the open world through VIctory, the copy in third_party/victory.
  • 📈 About 16–17 fps in the world (median, Series X mode, RTX 4070 SUPER and i7-13700KF, measured on 2026-11-26), up from 13.4 that morning after #358, #386 and #394. The bottleneck is the processor: the copies and read-backs that emulate the console's unified memory. That work is in progress. Earlier measurements: docs/progress.md.
  • ⛔ Known limits: ray tracing is off, so indoor and shadowed areas are dark; some graphics are missing; the game uses 28–30 GB of RAM, so 32 GB is recommended.

AnyXboxX runs Xbox GDK executables (PE32+ x86-64) on Windows. It is specialised on one build, Grand Theft Auto VI for Xbox Series, version 1.0.2.1, and only translates what that game needs: the console's system functions, the RDNA 2 shaders and the Direct3D 12.x calls. The graphics come from VIctory (Marvisak, GPL-3.0 or later), copied into third_party/victory with the pull requests of its contributors, credited in THIRD_PARTY.md.

This repository contains no game files, keys or executables, and does not explain how to get them. Live status page, with the disk space to plan for: loopersalty.github.io/AnyXboxX.

Requirements

  • Windows 10 or 11, 64-bit, with an AVX2 processor.
  • A Direct3D 12 graphics card with shader model 6.6 and mesh shaders: NVIDIA RTX 20 series or newer, or AMD RDNA 2 or newer. A 12 GB card runs short of texture memory; the launcher has a preset for 8 and 12 GB cards.
  • 32 GB of RAM recommended, and more than 30 GB free on the system drive (the shader cache grows as you play).
  • Your own copy of the Xbox Series 1.0.2.1 build: a folder that contains game_scarlett_master.exe. It is not provided.
  • Rust and Visual Studio 2022 or 2026 Build Tools with the "Desktop development with C++" workload. VIctory is built from source the first time you play.

Run the game

With the graphical launcher (recommended)

  1. Clone the repository: git clone https://github.com/LooperSalty/AnyXboxX.git. VIctory is already in third_party/victory.
  2. Get anyxboxx-launcher.exe from the launcher-v0.1.0 release and put it in the cloned folder, or build it with cargo build --release -p anyxboxx-launcher.
  3. Double-click the launcher. On the Game folder page, choose the folder that holds game_scarlett_master.exe, then press PLAY. The first start builds VIctory and warms the shader cache; judge the speed from the second start.

The full guide, with the options, the files written and troubleshooting, is in docs/launcher.md (French: docs/fr/lanceur.md).

From the command line

cargo build --release -p anyxboxx
.\target\release\anyxboxx.exe run --game-dir <game folder>

anyxboxx run starts the game with the same measured settings as the launcher. Full guide: docs/running-gta6.md (French: docs/fr/lancer-gta6.md).

Translation progress

Progress map: one cell per function, green if translated

Regenerate: scarlett.py --carte <package folder> docs/images/carte-avancee.svg.

Xbox Series X translation progress

  • CPU instructions: 100%. The Series X uses an AMD Zen 2 in x86-64, the same instruction set as a PC: the game's code runs as is.
  • GPU instructions: 89%. 1,330 of the 1,490 RDNA 2 encodings run in the reference interpreter, and the RDNA 2 → DXIL recompiler already draws a first vertex and pixel shader with D3D12.
  • System functions: 66% of the 1,337 functions imported by the DLLs of the test package are resolved.
  • GDK runtime: 210 of the 396 functions are written in AnyXboxX, in Rust and C++: the task queue, the offline user, the Xbox Series X identity, saves, the package, the offline Store and invitations. The other interfaces are served by the Windows GDK runtime when it is installed.

The chart is regenerated by scarlett.py --traduction <package folder> docs/images/traduction.svg.

Project progress

Step Status
Rust launcher anyxboxx-launcher and anyxboxx run: check the machine, build VIctory, warm the shader cache, start the game ✅ done
The Xbox Series 1.0.2.1 build runs through VIctory: boot, cutscenes, open world (about 16–17 fps in the world, Series X mode, RTX 4070 SUPER) 🟡 in progress
Unified memory emulation: copies and read-backs between the console's memory and the PC's (main cost of the CPU) 🟡 in progress
Ray-traced lighting (the BVH structure builder is off) ⏳ to do
NVIDIA Smooth Motion switch in the launcher, presets for 8 and 12 GB cards ✅ done
Runtime DLLs in Rust: xmem, kernelx, d3d12_xs, anyxboxx_tls, XCRDAPI; xgameruntime ported and checked against the C++ DLL, which is still the one shipped 🟡 in progress
GDK runtime: 210 of 396 functions written in AnyXboxX; the others delegated to the Windows GDK runtime, named by the trace 🟡 in progress
XTaskQueue, XAsync, XThread, XUser, XSystem, XGameSave, XPackage, XStore written by AnyXboxX ✅ done
D3D12.X: D3D12XboxCreateDevice, console ID3D12* interfaces, served by TomBox's Rust d3d12_xs.dll (MIT) 🟡 in progress
RDNA 2 disassembler: 1,490 mnemonics, checked against 38,999 public LLVM encodings 🟡 in progress
RDNA 2 disassembler operands identical to LLVM's text (scalar, VOP1/VOPC, DS, EXP) ✅ done
RDNA 2 → DXIL shader recompiler: vertex and pixel shaders drawn with D3D12, textures with image_sample, identical to the reference interpreter on the GPU and on WARP 🟡 in progress
Wave64 compute programs on GPUs with 32-lane waves 🟡 in progress
Shader cache: translated shaders compiled to DXIL once, then reused from disk 🟡 in progress
Console DXIL → PC DXIL retarget (Xbox2Windows, MIT) ✅ done
Console textures in Rust: BC7 and GFX10 SW_4K_S tiling, ported from Xbox2Windows (MIT) 🟡 in progress
Console XMA2 audio decoded to WAV by TomBox's Rust port of FFmpeg's decoder (LGPL) 🟡 in progress
x64 SEH exceptions (.pdata), dynamic loading of a DLL at run time (LoadLibrary + DllMain) ⏳ to do
D3D12.X graphics to Direct3D 12 / Vulkan ⏳ to do
1900+ automated tests ✅ done
Pull request checks: lint and the English and French READMEs kept in sync (rows, images, test count) ✅ done

Research and history

Tests

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements.txt -r requirements-dev.txt
.\.venv\Scripts\python.exe -m pytest

The tests that need the C++ runtime are skipped when it is not built. GPU tests need dxc and the GPU runner; without a GPU they use WARP.

Contributing

The main branch is protected: every contribution goes through a reviewed pull request, and the tests must pass. Bugs and functions to emulate are reported in the issues. The full rules are in CONTRIBUTING.md.

Discussion, help and test reports: Discord

License

AnyXboxX is distributed under the GNU GPL 3.0 or later. Third-party parts keep their own license: the Task module of libHttpClient (MIT, runtime/third_party/libhttpclient-task) and the RDNA 2 tables generated from LLVM's public encoding tests (Apache 2.0 with LLVM exception, PrototypeScarlett/emu/rdna2_ops.py and rdna2_shapes.py).

Third-party components and credits: THIRD_PARTY.md.

About

AnyXboxX — prototype d'émulateur Xbox Series X (HLE du GDK sur Unicorn)

Topics

Resources

Contributing

Stars

416 stars

Watchers

7 watching

Forks

Releases

Packages

Contributors

Languages