Other languages | Status | Playing it | Known problems | The rest of the repository | Want to help? | Credits | License | Discord | Telegram
Leonida runs the Xbox Series version of Grand Theft Auto VI on a Windows PC. The console's CPU is x86-64 like a PC's, so the game's own code is loaded and run natively; the console's system software is reimplemented, and its graphics programs are translated for the PC's graphics card. You load a save and play in the open world.
The game is played on the Direct3D 12 runtime in d3d12/ (leonida.exe), which grew
from VIctory and its forks. It builds itself on your PC and translates the
game's shaders itself: you need neither the large shader and asset build nor the second runtime described under
The rest of the repository.
Important
This repository does not contain the game, keys or an executable, and it does not explain how to get them. You need your own copy, with its files already readable on disk. Nothing here decrypts or works around any protection, and nothing goes online. Everything it creates (translated shaders, caches, extracted assets and your saves) comes from your game and stays on your PC. Never share those files.
Note
This is a continuation of NotRexed's Leonida project. The original author has left the project, and development continues here with its full commit history. Credit for the work up to that point belongs to NotRexed and the contributors listed in the history.
Discord: https://discord.gg/ETf4qj5acN · Telegram: https://t.me/mandyport
Playable in the open world, at about half the frame rate of the console. Measured by the maintainer on 2026-11-28 (this project's own numbers, not quoted from another project):
| PC | Ryzen 5 7600X (6 cores), GeForce RTX 4060 Ti 16 GB (driver 616.64), 32 GB of RAM, Windows 11 |
| Settings | the defaults: Series X profile, 2560x1440 rendered, the game's own upscaler |
| Rendered frame rate | 12 to 14 frames a second standing at the test save's spot (median frame 72 to 81 ms in four starts, 9,500 to 11,600 draws a frame). The graphics card is the limit, at about 60 ms of work a frame. Rendering 1920x1080 (-Resolution 1080) is about 15% faster |
| With frame generation | on by default on RTX 40 and 50 cards: twice the frames are shown, held to 28 a second by NVIDIA Reflex and paced evenly. It looks smoother; the game still reacts at the rendered rate |
| Goal | a steady 30 rendered frames a second at Series X settings. Not reached yet: the frame rate is what most of the work goes into |
| What works | loading a save into the open world; walking, driving, the phone, the HUD, the map, the weapon wheel and the pause menu; sound; Xbox and PlayStation pads (with matching button prompts) and keyboard and mouse; saving |
| Not measured | how far the story plays, and how long a session lasts |
On 2026-11-27 the same spot measured 12 to 13 frames a second, and main of that morning about 10.
- Your own copy of the Xbox Series package, version 1.0.2.1, with its files readable on disk (the folder that
holds
game_scarlett_master.exe). - Windows 10 or 11, x64, with a CPU that has AVX2.
- A Direct3D 12 graphics card with shader model 6.6 and mesh shaders, NVIDIA or AMD. DLSS and frame generation need an NVIDIA RTX card (frame generation an RTX 40 or 50).
- Rust (rustup installs the pinned toolchain, 1.98.1, by itself) and Visual Studio 2022 Build Tools with Desktop development with C++: the runtime is built on your PC the first time.
- Python 3.12+ for the launcher window (optional).
-
Download this repository:
git clone https://github.com/ProjectLeonida/mandy(or the ZIP). -
NVIDIA cards: double-click
d3d12\Get-NVIDIA-DLSS.cmdonce. It fetches the few NVIDIA files DLSS and frame generation need (about 70 MB, from NVIDIA's own GitHub) intod3d12\nvidia-sdk\. Without them the game runs all the same, without DLSS and frame generation. -
Windows 10 only: double-click
d3d12\Get-D3D12.cmdonce. Windows 10's own Direct3D 12 stops at shader model 6.5; this fetches Microsoft's newer runtime (the D3D12 Agility SDK) for the game to use. -
Double-click
Launcher.batand press PLAY (settings, mods, saves and tools are on its other pages: docs/launcher.md). Or from PowerShell:powershell -ExecutionPolicy Bypass -File scripts\play-d3d12.ps1 -Game "D:\path\to\your\package"
The first start builds the runtime (a few minutes) and translates every shader of the game into a cache before the
game starts (longer the first time, seconds after). The caches and your saves are kept under
%LOCALAPPDATA%\Leonida\d3d12 (-Data picks another folder).
Useful switches of scripts\play-d3d12.ps1 (the launcher's Settings page has the same):
| Switch | Does |
|---|---|
-Resolution 1080 |
render 1920x1080 instead of 2560x1440: faster, softer |
-NoFrameGen |
no frame generation: only the frames the game renders |
-MotionBlur |
the game's own motion blur (off by default: at this frame rate it smears in blocks on camera turns) |
-FrameGen 2…6 with -Dlss quality|balanced|performance|ultra |
DLSS makes the output and frame generation shows 2 to 6 times the frames |
-SeriesS |
the lighter Series S profile (720p rendered, DLSS to 1080p) |
-RayTracing |
the game's real ray tracing: slower, shaders build for minutes the first time, not with frame generation |
-NoPrecompile |
start at once, without translating the shaders first |
-Capture |
F9 in the game saves that frame |
-Log |
the runtime's log goes to %LOCALAPPDATA%\Leonida\logs |
-DryRun |
print the settings a start would use, and stop |
In the game: F1 settings (frame generation, frame-rate cap, DLSS and more; lines marked LIVE change at once),
F3 the numbers panel, F4 the trainer menu. The game's own 30 frames a second cap is lifted to 60 by the
loader (after VI-Patch). Keyboard and mouse are laid out as in Grand Theft Auto V on PC: click in
the window to give it the mouse, Esc pauses and frees it; the full key table is in
d3d12/README.md. Lua mods go in mods\ (docs/lua-modding.md).
On Linux the same runtime runs under Wine/Proton with VKD3D-Proton: scripts/play-linux.sh (docs/linux.md).
It has not been measured by the maintainer.
- The frame rate: 12 to 14 rendered frames a second at the default settings on an RTX 4060 Ti (above).
- The picture, reported and being worked on: one-frame flashes, and plants that flicker in and out (since
2026-11-28 the runtime follows the game's sample mask, with which it fades between an object's levels of detail;
before, both levels drew every pixel over each other. Whether that was the flicker is not confirmed yet). Fixed on
2026-11-28: eyes that glowed white and wooden floors with an oily white sheen (reflections are held to half the
room's light,
LEONIDA_REFLECT_MOST); white specks all over rooms (the light of particles and dust is held to the light around,LEONIDA_AMBIENT_ALPHA); and the ghosting and blocky smears on camera turns, which were the game's own motion blur: it blurs by one frame's movement, so at this frame rate its smears were twice as long as at 30 and broke into blocks. It is off by default;-MotionBlurbrings it back. - Ray-traced light is stood in for (with ray tracing off, every ray of the game misses): its stand-in estimates the light that bounces from what is on screen. Rooms lit mostly by bounced light (Jason's house, most interiors) were nearly black from 2026-11-27 because that stand-in had stopped running; it runs again since 2026-11-28 (details).
- Water is darker than on the console: the transmission-volumetrics programs are left out.
- Ray tracing and frame generation together do not work (a white picture at about 0.1 frames a second); the launcher leaves frame generation off with ray tracing.
- A short stutter the first time a place is seen, while its pipelines are made (the precompile at start makes this rarer).
- NVIDIA Smooth Motion (
-SmoothMotion) is not the default: the one start made with it ended 2.4 s in.
Besides the playable runtime, the repository holds the original Leonida work: a build that carves and translates the game's shaders and exports its assets, and a second, recompiled runtime. None of it is needed to play.
Build.bat (Linux and macOS: ./Build.sh) finds your copy, checks it against the version manifest in game/, and
builds into Documents\Leonida; python -I make_game.py --help lists every option. A full build needs about 400 GB
of work space (the asset export alone about 370 GB), Python 3.12+, the .NET 8 SDK, the Vulkan SDK, LLVM 21+ with the
AMDGPU target for llvm-mc (scripts\build_llvm_mc.ps1 builds one on Windows) and, for the runtime stage, Visual
Studio 2022 with the Windows SDK 10.0.26100 or newer; --stages check,shaders,runtime needs about 30 GB. Clone with
--recursive for the third_party/rpf9-explorer submodule. docs/design.md has the formats and the
translator's contract, docs/linux.md the Linux steps.
| Piece | Where it stands |
|---|---|
| Shaders: carve, unpack the native RDNA2 code, disassemble | all 26,503 |
| Shaders: RDNA2 → SPIR-V | 26,503 / 26,503 translated (2,236 vertex, 12,101 pixel, 2,689 compute, 9,282 mesh, 195 geometry) and 26,503 / 26,503 passing spirv-val. 23,841 are wave64: exact on 64-wide subgroups (AMD); on 32-wide subgroups (NVIDIA, Intel) compute and mesh shaders are exact with wave64 emulation, cross-half wave operations in vertex, pixel and geometry shaders still approximate. The hand-written GPU tests ran on more than 30 GPU and driver combinations (#166) |
| Models | exported as OBJ with names, UVs and material references: 382,781 recovered in a ten-archive scan, 343,327 of them from levels.rpf (notes) |
| Textures | texture dictionaries and world texture pools exported as DDS; BCPack decoded for BC1-BC7 where the history it needs is known (notes) |
| Audio | AWC banks exported whole: Opus losslessly as Ogg Opus, PCM as WAV, XMA2 through ffmpeg; 1,589 music and radio records measured (notes, config) |
| Map viewer | viewer/ shows the exported world in a browser, served locally |
A PE loader that maps the game's executable, resolves its imports to shims (GDK, XMem, d3d12_xs) and runs its
graphics through a Direct3D 12 → Vulkan layer on the translated SPIR-V. It boots the game on native Windows and on
Linux through Proton: the launch movie, the first-run pages and the landing prompt work with a pad or the keyboard,
and the story load runs to its end into the world phase. It has not shown a world frame yet, so it is not the way to
play; the d3d12/ runtime is. First-run UI on Windows has its build and launch steps,
the Linux/Proton report where it stops, docs/d3d12_vulkan.md the
Vulkan layer's plan, and docs/bvh.md its ray-tracing structures.
python -I tools/progress_dashboard.py --out <folder outside the repo> builds an offline page of what passes in your
own checkout (notes).
| Piece | What it does | Where |
|---|---|---|
| Direct3D 12 runtime | loads the game's executable, reimplements the console's system software, translates its shaders for Direct3D 12 and runs it: the way to play | d3d12/ (leonida.exe), scripts/play-d3d12.ps1 |
| Launcher | a window with PLAY, settings, mods, saves and tools | Launcher.bat, tools/leonida_launcher.py |
| Version check | every package file's name, size and SHA-256 for the supported version | game/, make_game.py |
| Shader pipeline | carves the shader containers from shaders.rpf, unpacks the native RDNA2 code, disassembles it with LLVM and translates it to SPIR-V |
tools/shader_carve.py, fssm_unpack.py, shader_disasm.py, rdna2spirv.py |
| Asset export | finds validated resources inside RPF9 archives and the .ttpf texture pools |
tools/rpf9dump (on rpf9-explorer) |
| Recompiled runtime | PE loader, import shims, D3D12 → Vulkan layer | runtime/ |
The biggest open pieces:
- The frame rate of the
d3d12/runtime: 12 to 14 rendered frames a second at Series X 1440p on an RTX 4060 Ti, where the goal is a steady 30. The graphics card is the limit. - The picture faults listed under Known problems.
- A first world frame on the recompiled runtime (where it stops), and the wave64 cross-half code of vertex, pixel and geometry shaders on 32-wide subgroups.
Read CONTRIBUTING.md first: work is claimed before a pull request is opened. Never attach game files, extracted assets, generated shaders or logs that quote them to issues or pull requests.
- Leonida by NotRexed and contributors: the original project, which this repository continues.
- The Direct3D 12 runtime is a tree of other people's work: VIctory by Marvisak and its contributors (the loader, the runtime services, the Direct3D 12 back end and the shader recompiler), trustno1-coder/VIctory-NVIDIA, avatarmanz/VIctory-7900XTX, fxceless/victory-fork, DexNom/VIctory, Belobug/VIctory-Belobug-AMD, the cool_fox renderer, and more; d3d12/README.md lists them, and every commit taken from elsewhere names the commit and its author.
- Aki-Developer:
aki-gta6/aki-runtime(GPL-3.0), a sister port shared with the project; what was taken from it is listed in d3d12/README.md and each commit names theaki-runtimecommit it is from. - rpf9-explorer by breadbbbb: the RPF9 model, texture-pool and AWC
decoders used by
tools/rpf9dump(git submodule). - Mesa (MIT): the GFX10 resource-descriptor layout
(
tools/gfx10_formats.json) and the ACO/RADV rules used as reference for 16-bit results and shader system registers. - libHttpClient (MIT) by Microsoft: the XTaskQueue/XAsync implementation
in
third_party/xtaskqueue, used by the offlinexgameruntimeshim. - LLVM: the AMDGPU disassembler. SPIRV-Tools: assembly and validation.
- NVIDIA's DLSS and Streamline files are fetched from NVIDIA's own repositories by
d3d12\Get-NVIDIA-DLSS.cmd, under NVIDIA's licences; this repository does not carry them. - Logo: "Grand Theft Auto VI" icon by SlyDevil on SteamGridDB.
Grand Theft Auto and all related names are trademarks of their owners. This project is not affiliated with or endorsed by them.
GPLv3 (or any later version). See LICENSE. Third-party code keeps its own license.