Read-only copy of github.com/klong4/kuma · Fork of ProjectLeonida/mandy (Leonida Continued): the title's ray tracing with DLSS frame generation at Series X settings, with measured numbers. No game files.
  • Python 49.2%
  • C++ 29%
  • Rust 18.3%
  • Assembly 1.8%
  • CMake 0.7%
  • Other 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-02 21:45:46 -06:00
.github Dependabot version updates off for this fork 2026-11-30 18:08:52 -06:00
assets README: kuma's frame-time graph, PC and game settings at the top 2026-11-30 17:58:34 -06:00
d3d12 fg: off with ray tracing unless LEONIDA_FG_WITH_RT=1 (14.7 vs 17.5 drawn fps at a test spot) 2026-12-02 21:45:28 -06:00
docs Ray tracing with frame generation at Series X settings; Steam Deck write-up 2026-11-30 17:15:21 -06:00
game Initial commit: Leonida, build-it-yourself PC port groundwork 2026-11-20 15:22:16 -05:00
gpu-test-results Merge pull request #986 from Snooozs/bary-raphael-old-amd 2026-11-28 14:08:57 +01:00
launcher launcher: no cards on Play; the rail holds the game; the setups move into the menu beside PLAY 2026-11-27 17:57:50 -05:00
mods Lua mods: an example mod, the docs, and the mod manager lists them 2026-11-27 00:11:50 -05:00
runtime Merge pull request #1181 from whoalin1/shader-468-f16-varying 2026-11-29 04:36:37 +01:00
scripts Ray tracing with frame generation at Series X settings; Steam Deck write-up 2026-11-30 17:15:21 -06:00
tests Merge pull request #2254 from kirigayakazima/fix/check-compute-journal-overlay-safety 2026-11-29 04:38:18 +01:00
third_party acphal: synchronize XMA context words and bound the output ring 2026-11-24 04:29:18 -03:00
tools Merge pull request #1622 from xel1uz/fix/tile-arg-guards 2026-11-29 04:37:46 +01:00
viewer Merge pull request #2250 from kirigayakazima/codex/studio-dds-cube-face 2026-11-29 03:16:26 +01:00
.gitattributes Find the user's copy automatically; Build.bat; prerequisite and disk preflight 2026-11-20 16:43:22 -05:00
.gitignore Linux: bundle VKD3D-Proton with the D3D12 runtime 2026-11-26 15:49:02 -05:00
.gitmodules Initial commit: Leonida, build-it-yourself PC port groundwork 2026-11-20 15:22:16 -05:00
AGENTS.md docs: fix inaccurate doc paths/flags/env vars and add recommended variables to running.md 2026-11-28 09:09:23 -05:00
Build.bat Build.bat/Mods.bat: quote per-user Python paths, sync lookup, and add no-pause guard 2026-11-26 22:12:12 +08:00
Build.sh Discover versioned Python in the POSIX launchers 2026-11-25 18:19:12 +02:00
CONTRIBUTING.md CONTRIBUTING: add a maintainer quick guide (DOC-CONTRIBUTING-MAINTAINER-GUIDE) 2026-11-25 13:33:19 -05:00
global.json CI: upgrade viewer-tests to Node 24 LTS and add pip/NuGet caching with global.json 2026-11-21 20:42:13 -03:00
Launcher.bat tools: Leonida Launcher, a Tkinter window to play, set options, manage mods and run tools 2026-11-26 23:59:48 -05:00
LICENSE Initial commit: Leonida, build-it-yourself PC port groundwork 2026-11-20 15:22:16 -05:00
make_game.py Merge pull request #2550 from kirigayakazima/fix/ci-repo-url-rename 2026-11-29 04:36:47 +01:00
Mods.bat Build.bat/Mods.bat: quote per-user Python paths, sync lookup, and add no-pause guard 2026-11-26 22:12:12 +08:00
Mods.sh Discover versioned Python in the POSIX launchers 2026-11-25 18:19:12 +02:00
navmeshes.navmesh-decode.json navmesh_decode: keys_octree also requires one slot per key 2026-11-22 22:45:35 +01:00
README.md README: frame generation off with ray tracing; the PortWatch report 2026-12-02 21:45:46 -06:00

kuma

A fork of ProjectLeonida/mandy (Leonida Continued) aimed at one setup: the title's own ray tracing at Series X settings, 2160 output, DLSS frame generation 2x. No game files, keys or executables are here, and nothing here goes online. You need your own copy.

The numbers in this part are this fork's, measured on one PC by its owner. They are self-reported and have not been checked by anyone else. Everything after the line further down is upstream's README, with upstream's own measurements.

Frame time of each rendered frame over 237 seconds standing in the world: median 66.0 ms (15.2 fps), 90th percentile 80.4 ms, 99th 111.5 ms; 55-65 ms for the first two minutes, 65-80 ms once the city has filled in, spikes past 100 ms every 20-30 s; the 30 fps goal line at 33.3 ms is not reached

Status: playable in the open world with ray tracing on, at about half the goal. The goal is 30 rendered frames a second (33 ms a frame) late in a session. It has not been reached.

PC Intel Core i9-13900KS, NVIDIA GeForce RTX 4090 24 GB (driver 616.92), 128 GB of RAM, Windows 11 Pro
Game the Xbox Series package, version 1.0.2.1 (your own copy)
Game settings Series X console profile; the title's ray tracing on (LEONIDA_BVH_BUILDER=1); 2160 lines of output, shown in a 2560x1440 window; DLSS frame generation 2x, on together with ray tracing; the Quality launch (-Quality: LEONIDA_RELAY=1, LEONIDA_CARD_STEPS=0)
How measured 270 s runs from a copy of one story save, standing still, no scripted movement, nothing else running on the PC; every rendered frame's interval written by the runtime (LEONIDA_FRAME_LOG=<file>, diagnostics build)
Rendered frame rate 15.2 fps median (66.0 ms) over 237 s in the world; 90th percentile 80.4 ms, 99th 111.5 ms. About 55-65 ms in the first two minutes, 65-80 ms once the city has filled in (3,600 to 7,700 draws a frame)
Shown with frame generation twice the rendered rate (about 30 a second). The game still reacts at the rendered rate. Frame generation's extra frames are made after the runtime hands a frame over, so the graph does not count them
What limits it the CPU, not the graphics card: the thread that prepares submissions works 53 to 75 ms a frame, and the card is busy 47 to 70 % of the frame. The title also spin-waits for the previous frame's card work to land
Not measured how far the story plays, how long a session lasts, any other PC or card

What this fork changes

  • Frame generation and ray tracing together. Before, frame generation was switched off whenever the title's ray tracing structure builder ran, because the two together collapsed to a fraction of a frame a second. The cause was the by-address memory retrying, at every builder dispatch and under a lock every recording thread takes, to reserve an arena it could not get. It now retries once in 120 frames and says which step failed. Both run by default (LEONIDA_FG_WITH_RT=0 restores the old behaviour).
  • Collapsed ray-tracing geometry fixed. The title unpacks its shipped structures by reading every index and vertex buffer a table of geometries names. Only the first 64 KiB of each was made ready, so 37 to 65 % of static leaves collapsed to a point. Every page the table names is now made ready (LEONIDA_BVH_GEOMETRY). See d3d12/docs/fork-ray-tracing.md.
  • Cheaper preparation of submissions, each measured with an in-run A/B (LEONIDA_AB=<seconds>,<switch>, phases alternating in one run): the instance descriptions of an upload are read for their structure addresses only, not word by word (about 10 ms a frame, LEONIDA_UPLOAD_STRIDE); an address is landed once a frame, not at every submission (about 1 ms, LEONIDA_LAND_ONCE).
  • Faster descriptor heap sync, ported from Belobug/VIctory-Belobug-AMD as carried by trustno1-coder/VIctory-NVIDIA: the sync round starts as soon as the submission lock is held (LEONIDA_HEAP_SYNC_FIRST, -3.5 ms a frame), changed pages are compared in place in one pass (LEONIDA_SYNC_IN_PLACE, -2.0 ms), and a slot write with no placed view skips a lock (LEONIDA_SPANS_QUICK, -1.6 ms). On by default; =0 turns each off. One factorial A/B, so treat the numbers as rough. Their finer job split (LEONIDA_SYNC_FINE) measured +2.2 ms here and stays off.
  • Fewer waits for the card when preparing a submission (2026-12-01, each an in-run A/B late in a session, on by default, =0 turns each off): a small read of the title's constants goes on when no shader really wrote those bytes lately (LEONIDA_FILL_TITLE, about -19 ms a frame; texture readbacks still make it wait); the same for a small copy at its place (LEONIDA_PLACED_TITLE, about -4 ms); what shaders wrote is tracked by 8-byte cells instead of 4 KiB pages (LEONIDA_LANDED_EXACT), and a copy-back notes only the cells it changes (LEONIDA_LANDED_CHANGED), which took most of the 100 ms spikes away. Calm stretches now run 51-62 ms a frame at the test place, against 80-100 before; these are bench numbers, not yet a new graph. Repeated waits for every shader write are left out (LEONIDA_BARRIER_MERGE, about -2.5 ms); a whole test run's median is now 62.7 ms. A table entry already brought up to date in a list for the same shader and record is skipped (LEONIDA_TABLE_SAME, VIctory-NVIDIA's idea, about -2 ms). From the Whiplash NVIDIA team's ideas: a list cut at a wait makes its descriptor tables again (LEONIDA_CUT_TABLES) and the heaps' records are asked for at the title's submit (LEONIDA_PORT_JOURNAL), about -4.5 ms each in one A/B. The guards' lock is shared by the threads that refresh title memory (LEONIDA_PORT_GUARD, renderer port 6): on a 32-thread CPU they waited 40 ms a frame for it; faster in 10 of 10 A/B pairs, and a test run's median is now 55.8 ms (17.9 fps). The list of the heap passes ahead of a frame is recorded as two at once (LEONIDA_AHEAD_SPLIT, about -4 ms in calm stretches). Card steps 1 also does buffer copies on the card (LEONIDA_CARD_COPIES) and cuts a submission behind a copy at its place in a list (LEONIDA_PLACED_ORDER): a median 53.2 ms against 57.1 in an A/B. The ray-tracing builder's addresses are landed under one taking of their lock (LEONIDA_LAND_JOIN): 51.0 ms against 55.2. Submitting-thread work taken from srmooon/sixmoon (LEONIDA_ASK_FIRST, LEONIDA_FRONT_SIFT, LEONIDA_PASSES_HOT) and tshadofr/Leila (LEONIDA_PUT_WORDS, LEONIDA_WATCH_CLEAN_WORDS, LEONIDA_NOTHING_FIRST, LEONIDA_DIRTY_BATCH), both GPL-3.0, is on as a group: ahead in three A/Bs, 52.5 ms against 53.8 on an idle PC. Three translator fixes from Leila are on too: an HDR clamp passes NaN colours through (LEONIDA_HDR_CLAMP_NAN_KEEP), the paired wave64 form is tried last (LEONIDA_PAIRED_LAST), and skips around scalar loops are kept (LEONIDA_WAVE_LOOP_SKIPS). (Indirect batches of 2 measured faster too, but hide the sea for a frame; the script keeps 4.) With Resizable BAR on, windows of title memory go into card memory the CPU writes directly (up to 3 GB, -WindowsBarMB) on every PC, not only under 48 GB of RAM: 61.8 ms against 89.0. -Quality is now relay 2 with card steps 1 (was relay 1 without card steps): 62.6 ms a frame against 74.0, and half the stalls over 90 ms. Two more measured faster but were turned back off when missing textures and dark rooms with lights showed in play: LEONIDA_TEXTURE_NO_WAIT (about -8 ms) and LEONIDA_PASSES_AHEAD=0 (about -4 ms).
  • Frame generation is off with ray tracing unless LEONIDA_FG_WITH_RT=1 (2026-12-02): at the same spot, Series X, 2160, rays, it cost 3 drawn frames a second (14.7 against 17.5); it comes back once the rest is faster. PortWatch Lab report at its rules (67 % render scale, 4K output, rays, no frame generation): 15.6 fps average, 1 % low 5.4.
  • Precompile builds every pipeline earlier sessions saw, not only those drawn with (long once after a new driver or translator, seconds after; -PrecompileUsedOnly for the old behaviour).
  • A frame log (LEONIDA_FRAME_LOG=<file>, diagnostics build): every rendered and shown frame's interval as CSV, for graphs like the one above.
  • Hardware ray tracing, experimental and off (LEONIDA_DXR=1). The title's structure-builder calls are intercepted and rebuilt as DXR acceleration structures, and one family of the title's traversal loops runs as an inline RayQuery. It works in game, but once the geometry fix above was in, the software walks cost under 1 ms, so this was set aside. Design: d3d12/docs/dxr-design.md.
  • The game window opens against the left edge of the primary monitor's work area (LEONIDA_WINDOW_ALIGN=centre for the middle).
  • Menu actions for single-player testing (off unless LEONIDA_GAME_ACTIONS=1): HUD toggle, weather presets, wanted level, and read-only player-state and wardrobe diagnostics. Nothing goes online.

Tried and measured as no gain (kept off or rejected)

Leaner title settings (fewer draws, but the preparing thread is not cheaper); LEONIDA_RELAY=2 with card steps (faster on paper, but stretched and jumping bodies, and the frame did not improve); two frames submitted ahead; present smoothing; parallel write-watch queries (LEONIDA_ASK_WIDE: the kernel serialises them); a paired form for the structure builder's heaviest program. A memo of ranges already copied (LEONIDA_RANGE_MEMO, the idea from trustno1-coder/VIctory-NVIDIA 8ab3c0342) is in, off, and not yet measured properly. Replaying a captured late frame hung the card: don't.

Using it

As upstream (below), from this fork's clone. d3d12\scripts\play-nvidia.ps1 -Quality with LEONIDA_BVH_BUILDER=1 is the measured setup.

Turn on Resizable BAR in the motherboard's settings (usually "Above 4G Decoding" and "Re-Size BAR Support"). Without it the card has no memory the CPU can write directly, and title memory windows stay in the PC's memory, read by the card over the bus: 61.8 ms a frame with it against 89.0 without, and 8 against 20 of 40 five-second stretches over 90 ms (four runs, 2026-12-01; 6 GB of windows there was no better than 3, and 9 GB slower). Check with nvidia-smi -q -d MEMORY: "BAR1 Memory Usage, Total" should be the card's size or more (32768 MiB on an RTX 4090), not 256 MiB. The game's log says card memory the CPU maps supported=true when it is there.

Steam Deck

A Steam Deck write-up (measurements only, no code) is in docs/steam-deck.md.

Credits for this fork's work

Built with AI assistance (Claude). Ideas taken from other GPL projects are credited where they are used, in the code and above. The licence is upstream's, GPL-3.0.



Leonida Continued
Leonida Continued

Grand Theft Auto VI (Xbox Series) running on Windows, from your own copy.

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

Where it stands

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.

Playing it

What you need

  • 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).

Starting it

  1. Download this repository: git clone https://github.com/ProjectLeonida/mandy (or the ZIP).

  2. NVIDIA cards: double-click d3d12\Get-NVIDIA-DLSS.cmd once. It fetches the few NVIDIA files DLSS and frame generation need (about 70 MB, from NVIDIA's own GitHub) into d3d12\nvidia-sdk\. Without them the game runs all the same, without DLSS and frame generation.

  3. Windows 10 only: double-click d3d12\Get-D3D12.cmd once. 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.

  4. Double-click Launcher.bat and 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.

Known problems

  • 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; -MotionBlur brings 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.

The rest of the repository

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.

Shader translation and asset export (make_game.py, Build.bat)

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

The recompiled runtime (runtime/, gta6rt)

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).

How it fits together

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/

Want to help?

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.

Credits

  • 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 the aki-runtime commit 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 offline xgameruntime shim.
  • 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.

License

GPLv3 (or any later version). See LICENSE. Third-party code keeps its own license.