Skip to content

Roadmap

github-actions[bot] edited this page Nov 24, 2026 · 59 revisions

Roadmap

Running the game

The executable is in hand; fivestar exe analyze reports its imports and GDK calls (exe-intake.md) and fivestar-loader --run boots it. In the order boot will need them:

Item State
Opening cutscene reached: after the story load the opening cutscene starts, with its art, credit cards and sound; frames take 0.7 to 0.9 s each there, mostly in the game's own code, with a cold shader cache. Next: the cutscene's world shots and the prologue
Story load done: the load finishes and the opening cutscene starts. Before that, it no longer stopped: with the memory waits fixed (list slot 74 is Wait64, lists are cut at waits and held waits are released at every present, after victory-gta6) and indirect arguments clamped, a boot ran the full 300 s on the story loading screen with no device removal and no watchdog exit. Earlier: the GPU frame took too long during the load, so the game's hang watchdog ended it at about 200 s; three compute programs (CS_Prop_BatchCull, CS_DensityShadowMapCheckerboard, CS_SkyRadianceCache) still run loops to the 65,536-iteration guard, and some culling passes read constant buffers past their descriptor's end, both likely wrong inputs. Fixed: the story-load memory corruption (first boot past 200 s without it). --trace-pool-stores named the writer, InstanceCulling~CS_Prop_BatchCull, whose instance-count atomics landed at the start of the transient pool: the translator read the argument array's base register as the high half of a lane mask written on another code path. Also fixed on the way: on 64-lane waves a constant such as 0xffff0000 written to the low half of EXEC enabled every lane. Fixed: the game's 30 s hang watchdog ("GPU Loc Sig") fired because its loading-screen workers waited inside the loader on pipelines and shader compiles; game threads now share a small first-use time budget and never queue for memory. The story-load memory blow-up was the NVIDIA shader compiler (1 to 8 GB per large mesh pipeline compile, six at once); driver compiles now start by their expected memory, and --memory-map, --min-free-memory and --max-commit keep a boot from filling the machine. Fixed: the memory corruption. --watch-transient caught GPU work writing 20-byte records like DRAW_INDEXED arguments past its buffer into the game's transient memory pool; the console's buffer range checks (out-of-range stores dropped, out-of-range loads read 0) are now applied by the translator, and since then no corruption, no GPU hang and no driver crash occurred. One boot had reached the story intro's title card ("Vice City, two years ago"). Fixed on the way: the address table keeps each range's buffer alive (a driver crash on a released buffer), compute lists no longer name graphics states in barriers (the refused Reset), and the console's bottom-of-pipe value writes reach game memory. Earlier: the GPU hang in the first frame after loading (device removed, DEVICE_HUNG) was compute shaders whose loops never end: with a breadcrumb per recording the stall is a plain dispatch of InstanceCulling~CS_Prop_BatchCull on compute queues 2 and 4, then CS_DensityShadowMapCheckerboard, which marches toward a bound taken from its inputs; the earlier ExecuteIndirect lead was wrong. Every translated loop now stops after 65,536 iterations, and with that the load runs on without a GPU stall. The loops' inputs are still wrong; those boots used translations from before the address map, so the next step is a full retranslation. The bounded boots then stop on the CPU: a linked list in the game's transient-memory allocator holds garbage (something overwrites game memory, or a block is reused while the GPU still holds it), and once a compute list's Reset was refused. It is not memory and not a fence wait. A pipeline-build surge during the load (about 29,000 uncached pipelines on 16 threads, up to 74 GB) is now bounded by free memory, and docs/first-run.input answers the first-run screens unattended. Fixed on the way: volume textures in the console's thick 3D tiling (a streamed read stopped inside a compressed chunk because a 3D texture's size was half the console's), and a failed pipeline creation now returns a stand-in instead of null, because the game never checks. The disk pipeline cache now stores mesh pipelines in a form the driver accepts (every mesh pipeline was refused before, about 9,500 debug messages a boot), and the loader holds at most 1 GB of shader bytecode and pauses pipeline builds when free memory runs low. Open: memory near 64 GB during the load, mostly large private blocks whose allocator is not identified yet
Menus and first-run screens done: the Rockstar logo, the intro art, the text-size, brightness and controls screens, the legal and photosensitivity screens and the privacy policy and terms (each scrolled to the end) all show and accept input; the input script is re-read while the game runs, so menus can be answered live (running.md). The UI text is now complete and the diagonal line across every screen is gone: Scaleform's vector shapes read their matrices from a constant buffer by index times the stride in the buffer descriptor, which was 0, so every shape collapsed onto one line. Buffer descriptors now carry stride, element count and format, and 24 programs the extraction had missed (the executable's own clear shaders, two meshlet-culling programs and others the archive scan skipped) are extracted and translated. Programs that read memory through a console GPU address (10,388 of 25,908: buffer descriptors built from root descriptors, and pointers loaded from memory) now reach the game's memory through an address map, and buffer descriptors are the console's real hardware words (BGRA and packed float formats decode). Open: the brightness symbol stays black (the clear it was blamed on draws opaque black by design); and, fixed now, the first-run screens came back every boot: the game's async completion routines call XAsyncGetStatus with wait on their own call, which our runtime answered only after the routine returned, so the routine deadlocked, the save slot stayed busy and the settings save was never read; a second boot now goes from the logos to the story load in about 39 s
First image done: the intro video (a correctly coloured title card) and the UI layer draw. Bink frames reach the GPU (textures the game maps are refreshed once a frame), and cached pipelines match vertex inputs by semantic, which fixed 61 pipelines including the video, skinned meshes and coronas. Before that the frames were black: each frame drew only two blits. The black is the game's own: the first blit fills a target with a colour from a constant buffer that is still zero, and the second composites it onto the frame, so this looks like a fade from black waiting on the game's state. What it waits for is still open: its start-up loading completes without failures (about 8,300 DirectStorage requests, 53,600 pipelines) and it adds the default user, then idles without polling input, opening a movie or touching saves; the main frame was frozen waiting for four pipeline-creation jobs, because the GPU driver takes minutes to compile a few of the largest translated compute programs; with stand-in pipelines that become real when the driver finishes, and a disk pipeline cache that makes later boots warm (the loader now translates and compiles each program the first time the game uses it, in-process through the DXC library, into a program cache, so no up-front translation is needed; pipelines are built on first use, a journal records which ones the game used and the next boot builds those first; the up-front translation and pipeline-warm are optional), the frame now advances, the game polls input every frame, starts its save system and streams more data. Render targets in formats desktop GPUs cannot render to (B4G4R4A4, B5G6R5, B5G5R5A1) now get a desktop substitute while the game keeps the console sizes; buffers in memory the game committed itself are shared with the GPU; a scripted button press pairs the pad with the user (the active player fills) and the game streams its next stage (about 18,700 DirectStorage entries). An assert on streaming reads is fixed (the game sizes its reads from texture allocation sizes, which now follow the console's tiling) and DirectStorage writes straight into the game's physical pages. DirectStorage now decodes BCPack texture pages itself (BC1 exactly, BC4/BC5 approximately, neutral placeholder blocks for BC3, BC6H and BC7 until those decoders exist). With the last XG texture method in place (texel offsets), three-minute boots run without a crash and present real images; the game is still loading pipelines and data at three minutes, so the next step is longer runs toward the menus; fences, frame pacing, queries and network connectivity are ruled out (reporting internet access, with all traffic sealed, changes nothing) (presents are steady at 33.3 ms once the driver has compiled the game's pipelines, and the game reads no query results in this state). --sample-threads, --profile-threads and --input-script help find out more. Done on the way: the console's rectangle lists are drawn in full through a generated geometry shader (fivestar shader rect-gs); resource states are now handled (every resource rests in a fixed state between command lists, and the game's barriers, which go through the enhanced Barrier call on list slot 146, are translated), so states are no longer reported as wrong
Frame loop stability done: two-minute runs have no crashes and exit cleanly, at the game's own 30 fps. The random crashes were heap corruption from the loader's TLS host (every new thread wrote 8 bytes past its TLS block); command lists the game resubmits while still running are now waited for; frame events pace the game as on the console
Descriptor binding descriptor heaps bind on command lists, the game's own GPU handles stay valid, and its root arguments reach the translated shaders as user data through a descriptor window. All 1,245,184 descriptors of the main heap are usable through a sparse page remap (the game touches few pages), and the per-draw tables the game builds by copying descriptor bytes itself reach the shaders. Open: pointers into game memory from shaders
Pipeline state pipeline creation is clean on the debug layer (about 71,000 errors fixed), and each program's wave32, superstep or native form is picked per GPU. Render-target and depth formats come from the cache itself (the console-only D16 depth-stencil format maps to a desktop one). Open: derive override kind 5, the mesh fallback on GPUs without mesh shaders, and 39 cached pipelines that enable depth without a depth format
Resources at game addresses first version done: textures and views at the game's GPU addresses get desktop textures filled from game memory through the console tiling, refreshed when the game creates a view and the bytes changed; console samplers translate. Open: CPU writes after a texture's last view, synchronising uploads with the game's queues, releasing replaced textures, buffer views at game addresses, and barriers (the barrier method is not identified yet) (gpu-resources.md)
GPU memory buffers at game-chosen addresses live in heaps opened over the game's own pages, as one buffer per pool, and a table maps game GPU addresses to desktop ones, including memory the game committed itself. Open: the main descriptor heap's 1,245,184 descriptors (the desktop limit is 1,000,000) (d3d12x-shim.md)
Command lists the game writes most commands itself into the list's own buffer and calls a method only when it is full; about 50 of the list's methods are mapped to desktop ones; barriers, texture copies and the console-only methods are open
Pipeline creation the game's five pipeline-creation methods (from its pipeline cache, from a state stream, compute, and derived variants) build desktop pipelines from the translated shaders; picking per-GPU program variants and slot 101 (ray-tracing state objects) are open (d3d12x-pipelines.md)
Pipeline state whole root signatures (the cache lists only the bindings each shader uses, with their user SGPRs) and the shader constants layout; blend, depth, raster state, render-target and depth formats and vertex formats already come from the driver's pipeline cache
Present done for one plane: the game's frames go to a flip-model swap chain on its own window (with HDR when the display supports it), and its frame pacing (30 fps at 60 Hz by default) runs on a timer; a second plane (likely a UI overlay) is not composited yet
Ray tracing behind --raytracing: the console's structure sizes, and the game's precomputed bottom-level structures from core_bvh4.rpf rebuilt into game memory in AMD's layout through XboxBvhBuilder.dll's own CPU path; runtime bottom-level builds and compacting copies run on the CPU from the game's own vertex and index buffers. Open: the top-level structure (the game builds it through the same batched call, but its instance-node layout is only partly known), and whether the game's DXR pipeline is ever dispatched (all 70 of its ray-tracing shaders traverse inline) (raytracing.md)
Audio intro and menu sound play: the loader now runs with 1 ms timer resolution, as the console does (with Windows' default 15.6 ms ticks the game's mixer, which sleeps about 4 ms per block, produced a third of real time, so after the first sound it fell silent; the game's load loop also runs faster); --audio-capture records what reaches the speakers. XMA voices in the game are not heard yet. The game mixes on the CPU and plays through WASAPI but leaves decoding to the console hardware: Opus (99.9% of sounds) now decodes through a CPU copy of the console's queue; XMA2 now decodes behind the console's SHAPE XMA contexts, whose layout and messages are traced, including voices chained across contexts (checked against our decoder on a real sound, not yet heard in a boot); the audio DSP's convolution reverb runs on the CPU behind --xdsp-convolution (off by default until its impulse-response format is confirmed), and its second effect returns silence (audio-runtime.md)
Archive file table names and exact entry boundaries stay encrypted; the game opens and reads its archives itself at run time

Research

Item State
BCPack done with the format's constant tables, which the user supplies (fivestar setup --bcpack-tables; they are not part of this repository): all 108,605 pages of every codec (BC1, BC3, BC4, BC5, BC6H, BC7) decode, so every texture exports exactly, and the loader's DirectStorage path decodes real blocks instead of placeholders. Without the tables BC1 decodes from our own fitted tables and BC4/BC5 approximately. Open: speed (the table path is about 3x slower than the old BC1 path, not vectorised yet) (details)
Type names PSO structures are identified by hashes; naming them needs lists of engine class names
Geometry drawables decode with tangents, four texture coordinate sets, skin influences and inverse binds; open: an export that carries skinning (glTF), the ped bone palette, head skin streams and the meshlet culling data (details)
BVH data ray tracing needs acceleration structures in AMD's layout (details)

Engineering

Item State
D3D12.X runtime every object the game creates is a wrapper over a desktop object, with a registration API for console-only methods; no command translation yet
Shader linking real VS/MS+PS pairs link and build pipelines; values filled for inputs a producer never writes are not yet checked against real shading
Wave size emulated or pinned; still open: 19 compute programs with several waves per group need 64-lane waves, 445 wave64 pixel and 1 vertex program read lanes a 32-lane GPU does not have, and 37 mesh programs that compile only through the mesh fallback need 64-lane waves (details)
DXIL backend behind --backend dxil: our own compiler writes DXIL without dxc for every stage; all compute, pixel, vertex and geometry programs and 8,719 of 8,765 mesh programs pass dxil.dll validation (the other 46 exceed the mesh output limit with dxc too), 5 to 20 times faster than dxc -O3, output identical to dxc's on the real programs compared on WARP. Open: the loader still compiles with dxc on demand by default, full WARP and 4090 sweeps, AMD hardware (details)
Structured shader control flow the default since a differential check on real programs (see Status)
Pipeline sweep sampled runs done; a full run, and the AMD driver crashes on some pixel shaders, are open
Call overhead benchmarks GDK calls measured (58 ns per call); command translation is not measured yet
First frame textured models draw with a real shader pair; depth and the game's material shaders are next
Proton test the Windows build on Linux and Steam Deck through Proton

Platform and performance strategy: Platforms and performance.

Clone this wiki locally