Grand Theft Auto VI (Xbox Series X|S), running natively on Windows, from your own dump.
Rewritten for speed and stability: NVIDIA GPUs, frame rate and memory first.
Status β’ Rewrite β’ Coverage β’ Performance β’ Roadmap β’ Getting started β’ Project VI additions β’ Contributing
Important
Not playable yet. The game boots, runs its menus at 30 fps, loads the world and reaches the prologue with the graphics fully drawn, but the world runs at about 1 to 5 frames per second, depending on the GPU and the patches applied.
Note
Project VI contains no game files and never will (asset policy). You need your own dump of the game. This project is not affiliated with Rockstar Games, Take-Two Interactive or Microsoft. Grand Theft Auto is a trademark of Take-Two Interactive.
As of 2026-11-28. This section is the current runtime (crates/); the from-scratch rewrite has its own section.
The title's own x86-64 code runs unchanged inside our process. Project VI supplies the Xbox platform underneath it and converts the title's data for the PC: shaders and pipelines ahead of time where it can, everything else on first use. See docs/architecture.md.
| Stage | State | Notes |
|---|---|---|
| Boot and first-boot screens (accessibility, language, settings, legal) | β | 30 fps |
| Intro video with sound | β | |
| Start screen, profile and saves | β | Saves survive a kill at any step |
| Loading into the world | β | About a minute from an SSD |
| Intro cutscene | π‘ | About 1 fps. Textured, lit characters, buildings, sky, depth of field, credits. Missing: ray-traced shadows and indirect light |
| Prologue | π‘ | Reached and fully drawn, at about 1 fps |
| Playable frame rate (30 fps) | β | See Performance and Roadmap |
| Subsystem | State | Works today | Still missing |
|---|---|---|---|
| Loader | β | The title's exe and DLLs run in-process; crash reports in crashes.log |
β |
| Runtime services | π‘ | Offline user, licences, packages, saves, text entry | Speech is silent; the text dialog and relaunch are untested live |
| Network | β | Offline by design | β |
| Files and streaming | π‘ | Archives and streamed data; zlib and BCPack decoded in parallel | Loading is limited by writes into title memory |
| Input | π‘ | XInput pads, keyboard as a pad | Trigger rumble |
| Audio | π‘ | Menu, video and loading sound; XMA and Opus decode | Reverb is silent |
| GPU: menus | β | Draws, compute and presentation on D3D12 | Frame pacing drifts on one screen |
| GPU: world | π‘ | Mesh pipelines, indirect execution, bindless heaps, pipelines prebuilt and cached on disk | Ray-tracing structures are never built; about 1 s a frame; real queries, HDR |
| Shaders | π‘ | Console GPU code recompiled to DXIL, cached on disk | See Translation coverage |
| Textures | β | Console tiling and detiling for the modes the title uses | Render-target metadata planes |
| Series S mode | π‘ | Runs with the PC FidelityFX upscaler | The title's own upscaler DLLs: six passes untranslated |
β works π‘ works with gaps β not yet
Project VI is being rewritten from scratch in next/, designed around what the current runtime taught us. The central change: the CPU and the GPU share one copy of the game's memory, so the shadow copies, change tracking and copy-back that cost the current runtime most of its frame time and gigabytes of memory are gone. Every line follows a strict coding standard in the spirit of NASA/JPL's Power of Ten: no recursion, bounded loops, no allocation on hot paths, no leaks. See next/docs/architecture.md.
As of 2026-11-29, on an RTX 3060 (driver 616.92) and title 1.0.2.1. About 107,000 lines of Rust and 860 tests, all passing under clippy -D warnings with pedantic lints.
| Milestone | State | Where it stands | |
|---|---|---|---|
| M0 | Workspace, architecture, coding standard | β | CI builds, lints and tests next/ on its own |
| M1 | Load: map the title, bind every import | β | All 924 imports of the title and its DLLs bind |
| M2 | Memory: one copy shared by CPU and GPU | β | Works at full PCIe speed (25.9 GB/s in, 23.7 GB/s out), no leak across process exit; remaps never leave a gap another thread can fault in |
| M3 | Boot: the title runs to its first window | β | The title runs its frame loop and presents steadily at about 29 fps (3,298 frames over 113 s, no device removal), crash-free over 12 runs in a row |
| M4 | Shaders: translate the title's programs | π‘ | Decode 100 %, structuring 96.5 %, HLSL that DXC validates 81.4 % (below) |
| M5 | First frames: menus at 30 fps | β | The title's first menu screen shows after its first scene load, which now comes 8 to 12 s in (it took 2.5 to 3 minutes at 6 fps), and holds the title's 30 fps: frames 33.3 ms at the median and 33.6 ms at the 90th percentile, 20 ms of each spent waiting for the frame clock, 21 draws and a compute dispatch a frame (PVI_FRAME_TIMING, 3 runs). 6-minute runs end with no crash or exception, teardown included. What it took is in next/docs/textures.md ("Why the presented frame was black"); page mappings into the tiled heap are made in title memory |
| M6 | The world, measured against the current runtime | β | |
| M7 | Replace the current runtime | β |
| Area | Done | Progress |
|---|---|---|
Imports bound (pvi-next run) |
924 / 924 | ββββββββββββββββββββ 100 % |
| Shader programs decoded | 26,698 / 26,698 | ββββββββββββββββββββ 100 % |
| Shader programs structured | 25,762 / 26,698 | ββββββββββββββββββββ 96.5 % |
| Shader programs translated to HLSL that DXC validates | 20,773 / 25,516 | ββββββββββββββββββββ 81.4 % |
The shader counts come from the user's own shader pack, over every program in it: a full emission census, DXC over every program that newly emits (2,923, all validate) and over a sample of up to 600 per stage of the rest (all validate), on top of the earlier full DXC pass (2 hours on 8 threads). Per stage: compute 623 of 1,529 (wave32) and 826 of 1,151 (wave64), mesh 6,928 of 8,291, pixel 652 of 1,121 (wave32) and 9,877 of 10,916 (wave64), vertex 1,867 of 2,118; one pixel program fails validation (a loop DXC finds no exit from). 796 mesh programs are refused for outputs over the validator's 32 KiB: every parameter row up to the highest is declared so that the pixel program links. The largest refusals left are the mesh output size (796), masks merged with data (514), masks joined where lanes from different paths meet (468) and samplers built in code (463); wave tests across the two halves of a 64-lane wave are down to 124.
| Crate | State | What it has |
|---|---|---|
vi-core |
β | Config, the repository guard, rate-limited warnings |
vi-image |
β | PE parsing, mapping, relocation, import binding, TLS, crash reporter. Every image of the title maps and binds |
vi-memory |
β | Sections shared by CPU and GPU, the console memory API, the page table |
vi-hle |
π‘ | Threads, sync, files, memory, audio, input, offline networking, DirectStorage, the GDK runtime areas, run-time DLL loading, an always-responsive window |
vi-formats |
β | Texture layouts and tiling, BCPack, zlib, XMA2, Opus, each checked against a reference |
vi-shader |
π‘ | Container, GFX10 decoder, CFG, SSA, structuring, resource tracing, HLSL, DXC |
vi-gpu |
π‘ | Descriptors on use, submission without waiting, breadcrumbs, zero-copy buffers, pipelines, textures, render targets, present |
pvi-next |
π‘ | run maps, binds and runs the title |
The current runtime (crates/). The rewrite's shader progress is above.
Shaders are the part most likely to break a picture: a program that doesn't translate means its draws are dropped.
NVIDIA and Intel GPUs run 32 lanes per wave. Console compute programs that need 64 run as two 32-lane halves (the wave64 work); vertex, pixel and mesh waves are sized by the driver.
Measured on an RTX 3060 (driver 616.92, Windows 11, title 1.0.2.1): pvi translate --validate --pipelines over shaders.rpf, the executable and the title DLLs, every program checked by the validator and created as a pipeline on the GPU.
| Stage | Before wave64 halves | Now: validated | Now: pipelines | Coverage (pipelines) |
|---|---|---|---|---|
| Vertex + pixel | 14,258 | 14,258 | 14,258 / 14,259 | ββββββββββββββββββββ 99.99 % |
| Mesh | 8,765 | 8,694 | 8,765 / 8,765 | ββββββββββββββββββββ 100 % |
| Compute | 2,328 | 2,398 | 2,398 / 2,763 | ββββββββββββββββββββ 86.8 % |
| All programs | 25,351 (98.31 %) | 25,350 (98.31 %) | 25,421 / 25,787 | ββββββββββββββββββββ 98.58 % |
- Compute: +70 pipelines over the previous
main, program by program, and none lost. Every compute program that emits now also validates (1,985 did before). - Still refused, compute: 345 programs exchange data across the two halves (149 one-wave LDS without a barrier point, 114 64-bit masks read as data, 82 cross-half operations).
PVI_WAVE32_APPROX=1translates them approximately (a ballot counts 32 lanes, not 64), so it stays off by default. 20 more need other translation work. - Mesh: 71 programs fail validation (vertex plus primitive output over 32 KB, a D3D12 limit), though the driver creates their pipelines.
- 195 geometry programs (not counted above) address a resource through an SGPR that is no root parameter.
- The validator is the Windows SDK's (10.0.26100).
The title caps itself at 30 fps, so the target is 33.3 ms a frame. Measured in the world:
| GPU | OS | Build | Frame time | FPS | Source |
|---|---|---|---|---|---|
| NVIDIA RTX 3060 12 GB | Windows 11 | Project VI | measuring | β | Project VI |
| Resource | Needed in the world |
|---|---|
| Windows commit (RAM + paging file) | ~33 GB. With 32 GB of RAM, enlarge the paging file |
| Video memory | ~10 GB. 8 GB cards slow down as it fills |
Tip
Frame rate and memory work has its own ranked plan: docs/optimization-plan.md. It covers build settings, CPU and GPU rewrites, and memory leaks, each with its measured or estimated effect.
- Boot, first-boot screens, menus at 30 fps, saves
- Intro video and audio (XMA, Opus)
- Load the world, play the intro cutscene, reach the prologue
- Ahead-of-time shader translation and pipeline prebuilds, cached on disk
- Toolchain and test baseline on an RTX 3060 (Ampere, Windows 11)
-
cargo xtask pgo: profile-guided builds trained on your own machine (details) - NVIDIA heap cap. NVIDIA allows 1,000,000 descriptors, and 2,097,152 were asked for; view heaps are now sized to the host's limit, tested on an RTX 3060
- Two NVIDIA shader-test failures no PR fixes: the stride read by element, and gathers at a level
- Validated 32-lane shader census on native Windows:
translate --validate --pipelines(see Translation coverage) - Wave64 compute on 32-lane GPUs: +70 compute pipelines, none lost
- Native Windows frame budget on the RTX 3060
- PGO trained on game runs: the profile is written before the title's process ends
- Rewrite from scratch in
next/: architecture, coding standard, the workspace (M0); one memory shared by CPU and GPU, proven on the RTX 3060 (M2) - Rewrite: load and boot (M1, M3): every import binds; the title boots crash-free and presents steadily
- Rewrite: shaders (M4): structuring at 96.5 %, HLSL that DXC validates at 81.4 %, the remaining refusals next
- Rewrite: menus at 30 fps (M5): the first menu screen renders and holds the title's 30 fps cap
- Rewrite: the world measured against the current runtime (M6)
- Raw pipelines: the title's 28,139 pipelines of bare machine code with register blobs (device slots 0x1c8 and 0x218, 25,450 graphics and 2,689 compute, all refused before) are made, their programs translated like container ones and bound by the same contract (
next/docs/shader-abi.md, "Raw programs"); none is drawn on the first menu screen.PVI_NATIVE_CENSUS=1builds them all at boot and counts the results: 1,754 of the 8,043 distinct compute, vertex and pixel programs translate and compile, and 1,303 pipelines are made - Raw pipelines, the rest: mesh programs (12,062 of the graphics pipelines), vertex programs that fetch their vertices through the console's vertex buffer table, and the translator's refusals of the others
- Frame-rate setting in
pvi-next, for testing only:PVI_FRAME_INTERVAL=60(any rate from 10 to 1000) oruncappedreplaces the title's 30 fps, since the frame clock it waits on is ours. The title's physics follow its frame rate, so anything but 30 runs the game faster or slower - Exact cross-half compute on 32-lane GPUs: the 345 programs that exchange across the halves, translated exactly instead of refused or approximated
- Video memory growth over long sessions: find what grows and fix it
- Our own shader translation: the 21 programs refused for other reasons (lane-mask joins of untracked masks, lane masks read as data,
v_permlanex16_b32, a partial-channel image store, barycentrics read directly), and the 71 mesh programs over the 32 KB output limit - Rewrite the CPU hot paths (copy-back, change checks, heap mirroring, lock contention), measured against today's code
- Frame generation (FSR 3): 60 fps on screen while the title still runs at 30. The title already hands colour, depth and motion vectors to its FidelityFX upscaler every frame; that call feeds FSR 3's frame interpolation, which runs on any recent GPU (DLSS Frame Generation needs RTX 40 or newer). Latency stays at the 30 fps level
- Ray-traced shadows and indirect light: the title's BVH builder
- Merged geometry stages (195 programs)
- Audio reverb, trigger rumble, HDR, real GPU queries
- 30 fps in the world
| OS | Windows 10 or 11, x64 |
| CPU | AVX2 |
| GPU | Direct3D 12, shader model 6.6, mesh shaders (for the world) |
| Memory | 32 GB RAM plus a large paging file (about 33 GB of commit in the world) |
| Disk | About 200 GB for the dump, plus a few GB of cache. An SSD is strongly recommended |
| Tools | Rust (pinned in rust-toolchain.toml), and the MSVC C++ build tools (the "Desktop development with C++" workload) |
| Game | Your own dump of the Xbox Series release |
winget install --id Rustlang.Rustup -e # once; the pinned toolchain installs itself
git clone https://github.com/hello3928/Project-VI.git
cd Project-VI
$env:CARGO_TARGET_DIR = 'C:\vt' # keep build paths short (see below)
cargo xtask install-hooks # asset-policy check on every commit
copy pvi.example.toml pvi.toml # then set your paths (outside the repo)
cargo test --workspace # needs no game data
cargo run -p pvi -- config # check your paths
cargo build --release -p pviTip
Keep build paths short. From a checkout about 170 characters deep, the blake3 build script fails in ml64.exe with A1009: line too long. Setting CARGO_TARGET_DIR to something like C:\vt avoids it, and pvi.exe then lands in C:\vt\release.
C:\vt\release\pvi.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
C:\vt\release\pvi.exe run <game dir>\<the title's exe> --executetranslate --cachetranslates every shader the title can ask for into the cache, about 1.3 GB. It takes minutes, and you run it again after any change to the translator.--pipelinesthen builds the roughly 27,000 host pipelines (4 MB). The result belongs to the GPU and driver it was made on. Stopping early keeps what it made.- In the game: press A (Enter) on each first-boot screen and on the start screen. The world loads in about a minute.
Controls, window size and upscaling
With no XInput pad connected, the keyboard acts as 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 |
- Window size:
PVI_WINDOW_MAX=1920x1080limits the window to that box. It scales the displayed image only, not the render resolution. - Upscaling (Series S mode): to run the PC build of AMD FidelityFX instead of the console one, point
PVI_FIDELITYFX_DIR(or[paths].fidelityfx_dir) at the FidelityFX SDK'sKits/FidelityFX/signedbinfolder. - Files: the window caption shows the frame rate. Saves, settings and
crashes.loglive in%LOCALAPPDATA%\pvi\data; derived data lives in the cache folder.
Commands
pvi inspect <exe|dll> [--imports] [--exports]
pvi census [paths...] [--missing] [--strict]
pvi lib-exports <import.lib> [--list]
pvi shader-info [paths...] [--verbose] [--disasm] [--effects]
pvi translate [paths...] [--validate] [--pipelines] [--list] [--jobs N]
pvi translate [paths...] --cache [--pipelines] [--jobs N]
pvi run <exe> [--execute] [--unimplemented trap|zero] [--strict]
[--console series-x|series-s] [-- <title arguments>]
pvi config
Logging: PVI_LOG=pvi_loader=trace,info (a release build logs info and above).
Shader-test validator (dxil.dll)
The shader tests validate shader model 6.6 containers with dxil.dll. An older Windows SDK validator can load but then reject them with Unknown shader model 'ps_6_6'. In that case, use a current one from DirectX Shader Compiler releases:
$env:PVI_DXIL = 'C:\tools\dxc\bin\x64\dxil.dll'
cargo test -p pvi-shader --lib --locked -- --test-threads=1Without the override, the newest installed Windows SDK's bin/<version>/x64/dxil.dll is used. The translated shaders don't need it at runtime.
Debugging: the diagnostics build and its switches
cargo build --profile diag -p pvi --features diagnostics # C:\vt\diag\pvi.exeThe on/off switches (...=1) are off when unset or set to 0.
| Variable | Effect |
|---|---|
PVI_LOG=<target>=debug,... |
debug and trace output |
PVI_STACKS=20,60 |
every thread's stack at those seconds |
PVI_WATCH=<rva>,... |
logs a title u32 when it changes |
PVI_POKE=<rva>:<byte>,... |
writes a title byte twice a second (a hang watchdog's tick, say) |
PVI_KEYS=30:Enter,35:X |
presses keys at those seconds, focus or not |
PVI_CRASH_BREAKPOINTS=1 |
appends first-chance breakpoints to crashes.log, including ones a handler may recover from |
PVI_CRASH_SAVE=<rva>:<len>,... |
saves title memory to the cache folder on a crash |
PVI_CAPTURE=<dir> |
saves presented frames (powers of two, or PVI_CAPTURE_FRAMES=<list>) |
PVI_DUMP_TARGETS=1 |
with the two above, saves every render target of those frames |
PVI_CAPTURE_WORLD=<list> |
with PVI_CAPTURE, also the frames at these offsets from the world's first frame (the first to run 500 draws) |
PVI_DUMP_WRITERS=<hash>,... |
with the two above, also the textures a pipeline containing a listed shader hash writes |
PVI_PEEK=<hex address>[:<bytes>],... |
in listed frames, those bytes of title memory logged after each submission, plus small targets, table views and buffers |
PVI_D3D12_DEBUG=1 |
host debug layer |
PVI_D3D12_GBV=1 |
with the above, GPU-based validation (slow) |
PVI_D3D12_DRED=1 |
on a GPU failure, the allocation hit and the commands in flight |
PVI_SKIP_PIPELINES=<hash>,... |
skip pipelines containing a listed shader hash, and the draws and dispatches that use them |
PVI_GPU_TIMING=1 |
with the above, each list of a submission run and timed on its own; slow lists logged with their slowest commands |
PVI_TRACE_SHADERS=<hash>,... |
with PVI_D3D12_DRED, every draw and dispatch of a listed shader logged with what it binds |
PVI_D3D12_WARP=1 |
host device on the software adapter (slow; cannot reset the driver) |
PVI_PIPELINE_LOG=<file> |
a line per title pipeline created, first used, and made or loaded |
PVI_PREBUILD_KEYS=<file> |
translate --cache --pipelines makes nothing and lists each pack record's key, shaders and state |
PVI_SHADER_LOOP_LIMIT=<n> |
translated shader loops stop after n iterations per lane instead of 2^20 |
PVI_AUDIO_CAPTURE=<file.wav> |
records what the title plays |
PVI_XMA_DUMP=<dir> |
saves the first 32 XMA voices' context and input |
Every build appends unhandled exceptions, panics and host GPU failures to crashes.log in the data folder.
- A startup breakpoint (
0x80000003): run the diagnostics build withPVI_CRASH_BREAKPOINTS=1, and keep the console output along with the newcrashes.logentries. - On Series 1.0.2.1: a missing
appdata0.rpfcauses a breakpoint at+0x2237178before the first window. Restore it from the same package. - Hardware vs. software rendering: compare a run against one with
PVI_D3D12_WARP=1.
PGO builds pvi.exe once with instrumentation and runs it on a real workload. The compiler then rebuilds it using the measured branch and call counts. The profile is trained on your machine and your files, so it never enters the repository. By default it lives in the cache folder; pass --dir to put it elsewhere.
rustup component add llvm-tools # once
cargo xtask pgo instrument
$pgo = 'C:\vt\pgo-instrumented\x86_64-pc-windows-msvc\release\pvi.exe'
& $pgo translate --cache <game dir>\shaders.rpf # train the shader translator
& $pgo run <game dir>\<the title's exe> --execute # and the game: play a few minutes
cargo xtask pgo build
# optimized: C:\vt\pgo\x86_64-pc-windows-msvc\release\pvi.exeBoth kinds of run train the profile. A game run writes its profile right before the process ends, even though the game ends it with TerminateProcess. An instrumented build runs noticeably slower, which doesn't matter for training. Train on the scenes you want fast: the profile follows what ran.
Project VI tests on an RTX 3060 (Ampere, Windows 11) and keeps track of which NVIDIA fixes work.
| Test suite on the RTX 3060 | Before (63bcca4) |
Project VI main |
|---|---|---|
| All other crates | β pass | β pass |
pvi-gpu |
229 passed, 2 failed: the heap-cap tests | β 232 passed |
pvi-shader |
298 passed, 3 failed; 1 crashes the test process | 300 passed, 2 failed, no crash |
Fixed: view heaps sized to the host's limit, and the root-constants crash.
Still failing on NVIDIA: a_heap_buffer_read_by_element_takes_the_views_stride and gathers_at_a_level_match_the_hardware.
Three failures seen only on Windows 10 pass on Windows 11.
| Read | For |
|---|---|
| CONTRIBUTING.md | Commit messages, branches, rewrites, pull requests |
| AGENTS.md | Rules for AI coding agents (and a good checklist for people): asset policy, build and test, rewrites, translation work |
| docs/asset-policy.md | Rule #1: nothing from the game ever enters the repository |
| docs/architecture.md | How the crates fit together |
In short:
- Run
cargo xtask install-hooksonce. - Write commits as
Area: what is true now. - Never commit anything from the game.
- Back performance claims with measurements.
GPL-3.0-or-later. See LICENSE.