CTA lets the Xbox Series version of GTA VI run on a Windows PC, from your own copy of the game. It targets a mid-range PC with an NVIDIA graphics card (RTX 4060), aiming at 8 GB of RAM and 8 GB of video memory at 1080p.
No game files, keys or executables are in this repository, and it does not explain how to get them.
CTA is looking for people who know GPUs, Windows internals, Rust or reverse engineering, or who just like hard, well-traced problems. The open work is listed top down in docs/PLAN.md under Now; each item names what the tracer measured and when it counts as done. Pick one, open an issue or pull request, and say which item it is.
Most console runtimes translate the console's graphics into a desktop API (DirectX, Vulkan) and let the driver compile it again. CTA takes a shorter road:
- No CPU emulation. The game's x86-64 code runs natively; only the console's system calls are answered by us. That leaves the CPU for the game.
- Console shaders straight to NVIDIA PTX. The console's RDNA2 shader code is lifted once and emitted as PTX, cached as cubins. One translation instead of two, and we control every instruction the card runs.
- Our own memory model. Title memory, GPU copies and the RAM/VRAM ledger are ours, so we can fit an 8 GB RAM / 8 GB VRAM PC instead of hoping the driver does.
- Two paths on the same PTX. The default hybrid path launches through Direct3D 12; a CUDA-only path uses Direct3D only to show the picture. Each one checks the other.
If it works, the same pieces (shader lifter, PTX emitter, memory ledger) are useful to anyone running console code on a PC.
Every problem here is meant to be found in one traced run, not by guessing:
scripts/hang.ps1: one live run with tracer groups switched on or off (-Trace hang,desc,ram,sync,d3dorlight); at the end it prints a verdict, replays the stuck kernel offline and runs it under compute-sanitizer.ctx(crates/cta-tools), the developer CLI:- run logs:
summary(a verdict per open item),hang-pc(where every stuck warp sits),words(who waits on which memory word, and who writes it),fault,timeline,breakdown,compiles,draw-why,present-why; - shaders:
disanddis --lift(RDNA2),ptx --check,ptx-all,isa-cov,sass,fuzz(random shader ops checked against a CPU interpreter); - replay and profiling:
replay(one captured kernel or draw, no game needed),sanitize,ncu,etw,perf-bisect; - setup:
warm(fill the shader cache offline),nvprofile.
- run logs:
- The tracer in the runtime: names lost-device kinds (timeout vs fault), long GPU ops and what every queue is running, RAM by module and protection, and why each present waited.
All commands and switches are in docs/CLI.md. You need your own copy of the game to run it; the offline tools (dis, ptx, fuzz, replay of a capture) work on shader dumps alone.
- The game's own code runs as is. A PC and the Xbox use the same kind of processor, so nothing is emulated there.
- We stand in for the Xbox's system parts. When the game asks the console for memory, files or graphics, CTA answers instead.
- The Xbox graphics card's programs are translated for an NVIDIA card. The game ships them already built for the console's card. CTA reads them, turns them into NVIDIA (CUDA) programs once and keeps them.
- Drawing runs on the NVIDIA card as our own PTX programs. The console's draw steps (triangles, blending, textures) are rebuilt as PTX. Two ways of running them are kept: the default hybrid launches them through Direct3D 12 (better known in the community), and a CUDA-only path (
CTA_CUDA=1, in progress) uses Direct3D only to put the picture on screen, with less memory.
Early, not playable. On the default hybrid path the game boots, plays the intro movie, shows the account picker and draws the loading screen with its artwork on one 1080p plane. An untraced run reaches about 29 fps (median, frames 0-1200) with about 6.6 GB of private memory; recent RAM cuts took our own heap from 2.3 to 1.4 GB. Runs get past frame 1200 (furthest 1688) and then end with a lost device: kernels read descriptor slots from the mirror that were never refreshed after the title wrote them (PLAN #1, parked with its lead recorded). Open issues being traced: a short present wait about every 30 frames (stutter in the intro movie), flicker on the loading screens, and memory the tracers themselves add. The tracer is being rebuilt to name these in one run at low cost: hang.ps1 -Trace hang,desc,ram,sync,d3d|light switches heavy tracer groups on and off, the RAM ledger splits memory by protection and by module, and ctx present-why reads why a present waited. Step-by-step progress is in docs/PLAN.md.
pwsh -File scripts/build.ps1 -Target target -Cargo 'build --profile diag -p cta --features diagnostics -p cta-tools'Run it with target\diag\cta.exe run <path to the game's exe>; no launcher is needed. Development runs go through scripts/run.ps1 (or scripts/hang.ps1 for a traced run), which takes the exe from CTA_GAME (or -Game).
| Path | What is there |
|---|---|
apps/cta |
The cta program: run, shaders, warm |
crates/cta-core |
Shared base layer |
crates/cta-loader, cta-pe |
Loads the game's x86-64 exe and runs it natively |
crates/cta-hle |
The Xbox system calls the game makes (memory, files, display, speech) |
crates/cta-mem |
Memory core: title memory, GPU copies, the RAM/VRAM ledger |
crates/cta-gpu, cta-stream |
The console's D3D12.X and its command stream, on the NVIDIA card |
crates/cta-shader |
Console (RDNA2) shaders translated to PTX |
crates/cta-formats, cta-game, cta-pipeline |
Xbox data formats, known game builds, cached offline conversions |
crates/cta-feed, cta-probe |
Telemetry, and a no-game check of what this PC's driver allows |
crates/cta-tools |
ctx, the developer CLI (disassembly, PTX checks, replays, hang and perf reports) |
cta_gpu::dxil |
The older D3D12.X-to-host-D3D12 (DXIL) path from victory-gpu, kept beside the PTX paths |
scripts/ |
Build and live-run scripts |
docs/ |
Design notes, research and the plan's history |
GPL-3.0. Other open-source runtimes we learned from or borrowed pieces of are credited in docs/CREDITS.md and docs/PIECES.md.