Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
9c6cbbc
runtime: xapu.dll as a command queue with the console's layouts, audi…
nicoco23 Nov 24, 2026
370e52b
Merge branch 'main' of https://github.com/ubiquitarianism/leonida int…
nicoco23 Nov 24, 2026
19559fe
scripts: build xapu.cpp in the cl.exe fallback (review of #1144)
nicoco23 Nov 24, 2026
6ee7ef8
Merge branch 'main' of https://github.com/ubiquitarianism/leonida int…
nicoco23 Nov 25, 2026
9f1f5bf
d3d12: a pipeline cache for the offline cache's misses, written while…
kawaii-shakal Nov 25, 2026
e4c413a
heavy pipeline cache: a write covers what was noted before it started…
kawaii-shakal Nov 25, 2026
ec95c3c
runtime: pause list value wait timeouts while submitted or held work …
IlyassRS3 Nov 25, 2026
ca00cc0
xmem: a slot-31 copy leaves the title's own mappings at the paired CP…
kurrutako Nov 25, 2026
9520db5
runtime: cap all list-value wait pauses, scale demoted caps, and test…
IlyassRS3 Nov 25, 2026
28fc026
d3d12_xs, test: say which route slot 31 remaps through; cover the ret…
kurrutako Nov 25, 2026
a5dd540
xapu: decode Opus packets through runtime/opus_decoder (RT-XAPU-OPUS-…
BubsMcgee Nov 25, 2026
4cfbdfc
Merge remote-tracking branch 'origin/main' into rt-xapu-opus-on-1144
BubsMcgee Nov 25, 2026
b986d27
d3d12: a mesh PSO with conservative rasterization needs no topology t…
Snooozs Nov 25, 2026
6b09de4
dstorage: reads into physical pages wait for the title's Submit
QemmHD Nov 25, 2026
c3b8520
Merge upstream main into heavy-pipeline-cache
codex Nov 25, 2026
04290dd
d3d12: a window's GPU writes go back to the title's pages (RT-TITLE-W…
star41905453-coder Nov 25, 2026
aab7653
d3d12: retry a failed heavy cache write and never publish a VK_INCOMP…
claude Nov 25, 2026
c5359a4
d3d12: the window write-back waits for the submission that wrote (RT-…
star41905453-coder Nov 25, 2026
a42bffd
Merge origin/main into heavy-pipeline-cache
kawaii-shakal Nov 26, 2026
2769c5a
d3d12: never defer buffer V#s past console-fix budget (RT-CONSOLE-FIX…
abnalstlll-byte Nov 26, 2026
f0e7914
gameinput: a scripted press can be held longer (button@seconds:hold)
klikso Nov 25, 2026
1ce6055
gameinput: the SDL keyboard pad honours a scripted hold too
klikso Nov 26, 2026
eaf0b8d
d3d12: keep the replay serial stack a plain thread_local
brandostrong Nov 26, 2026
fc1593e
d3d12: the same write back covers a slot-133 shadow (RT-TITLE-WINDOW-…
star41905453-coder Nov 26, 2026
5fa864e
d3d12: bound the write-back queue and say when a batch goes back unfe…
star41905453-coder Nov 26, 2026
d088ea7
Sync title texture readability with map journal between refresh passes
zmasi Nov 26, 2026
7bd4cec
gameinput: boot.ps1 names the :hold form; rewrap the script header co…
klikso Nov 26, 2026
a02a5ef
rdna2spirv: no round-loop fallback for single-wave emulated programs
aslan2142 Nov 26, 2026
ee2cf59
d3d12: LEONIDA_UNKNOWN_TSHARP=1 lists the T#s that name no texture
aslan2142 Nov 26, 2026
cc0ae0b
d3d12: LEONIDA_UNBACKED_VSHARP=1 lists empty V#s; the T# log prints r…
aslan2142 Nov 26, 2026
7460590
d3d12: host-RAM mirror of a console heap's copy for the release sweep
aslan2142 Nov 26, 2026
b186d7c
d3d12_xs: LEONIDA_UPLOAD_LOG=1 logs upload chunks and AllocateUploadM…
aslan2142 Nov 26, 2026
2f18a46
d3d12_xs: LEONIDA_UPLOAD_ALIAS=1 enters upload chunks in the title VA…
aslan2142 Nov 26, 2026
acd9f98
gameinput: LEONIDA_INPUT_FILE presses buttons named in a file while t…
aslan2142 Nov 26, 2026
36771ec
d3d12: geometry copies in system memory, and retired when the title r…
aslan2142 Nov 26, 2026
dc9ef1a
d3d12: assert DeviceState exposes the memory types LEONIDA_GEOMETRY_H…
aslan2142 Nov 26, 2026
2a49166
dstorage history: fit packed tails against decoded BCPack siblings
aslan2142 Nov 26, 2026
1156672
rdna2spirv: --address-guard checks every heap_base access against the…
aslan2142 Nov 26, 2026
25621c6
d3d12: LEONIDA_ADDRESS_GUARD=1 keeps the guarded shaders' page table …
aslan2142 Nov 26, 2026
9a079fe
docs: the address guard's corpus counts
aslan2142 Nov 26, 2026
f2efa48
address guard: a refusal records its module's id, and the runtime log…
aslan2142 Nov 26, 2026
04b05c9
address guard: enter console descriptor heaps outside the arena as ba…
aslan2142 Nov 26, 2026
d0ab80c
make_game: a CPU Vulkan device does not decide the wave64 emulation
aslan2142 Nov 26, 2026
e6a82e7
docs/linux_proton.md: what got the world drawn on Linux with an AMD GPU
aslan2142 Nov 26, 2026
32a04b1
Merge #1914 from kawaii-shakal: a pipeline cache for the offline cach…
aslan2142 Nov 26, 2026
f5113e3
Merge #2195 from brandostrong: keep the ExecuteCommandLists serial st…
aslan2142 Nov 26, 2026
f5f67b4
Merge #2240 from zmasi: sync TitleTexture readability against title_m…
aslan2142 Nov 26, 2026
399ecdd
Merge #2044 from BubsMcgee: decode Opus packets through a Rust sideca…
aslan2142 Nov 26, 2026
0f7868f
Merge #1957 from IlyassRS3: work-aware timeout clock for console comm…
aslan2142 Nov 26, 2026
0626230
Merge #2097 from Snooozs: a mesh PSO with conservative rasterization …
aslan2142 Nov 26, 2026
6a405cd
Merge #2162 from abnalstlll-byte: never defer buffer V#s past the con…
aslan2142 Nov 26, 2026
dbe7cf3
Merge #2129 from star41905453-coder: a window's GPU writes go back to…
aslan2142 Nov 26, 2026
cb825bb
Merge #2124 from QemmHD: reads into physical pages wait for the title…
aslan2142 Nov 26, 2026
6d39048
Merge #2144 from klikso: a scripted press can be held longer, button@…
aslan2142 Nov 26, 2026
787d012
docs/linux_proton.md: name the pull requests the AMD world run was bu…
aslan2142 Nov 26, 2026
d7d6973
docs: name the diagnostic variables LEONIDA_UNKNOWN_TSHARP, UNBACKED_…
aslan2142 Nov 26, 2026
96d8ce0
docs/running.md: running the game per platform and GPU
aslan2142 Nov 26, 2026
071ec84
address guard: the two programs set errors='replace' on stdout
aslan2142 Nov 26, 2026
63c4978
Merge #1972 from kurrutako: a slot-31 copy leaves the title's own map…
aslan2142 Nov 26, 2026
484b212
docs/linux_proton.md: #1972 went into main with the others
aslan2142 Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ method, scope and caveats. No game data is included.
| [boot_leads.md](boot_leads.md) | Open leads that may move the retail boot further (TLS at module index 0, feature level at device creation, command-list replay, descriptor words, shader corpus count, frame pacing), each with where it lands, how to implement it and how to test it. Hypotheses, not measurements. |
| [rpf.md](rpf.md) | RPF9 archive layout, the carve tools and the unreadable encrypted TOC. |
| [linux.md](linux.md) | Linux in one page: what runs natively and what runs under Wine or Proton, the Ubuntu packages, `Build.sh`, the runtime cross-build, and why there is no native Linux `gta6rt`. |
| [running.md](running.md) | Running the game per platform and GPU (Linux/Wine with AMD, Linux/Proton and Windows with NVIDIA, Windows with AMD, Intel, macOS): build, shaders, pipeline pre-compile, driver settings, environment, what to expect; each value measured by us, reported by others (linked) or TBD. |
| [testing.md](testing.md) | Running the GPU tests on your own GPU: setup per OS, wave64 emulation, running without a GPU on Mesa llvmpipe, and known problems. |
| [gpu_test_results.md](gpu_test_results.md) | Published GPU test results by hardware, driver and commit, with pass, skip and failure counts. |
| [modding.md](modding.md) | The mod format: `mods/<folder>/mod.json`, checked and loaded in name order by `gta6rt`; a swap takes effect once the game's archetype lookup is hooked (needs the executable, RT-5). A mod names game models and holds no game data. |
Expand Down
20 changes: 20 additions & 0 deletions docs/audio_hal_exe_calls.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,26 @@ turns such an address back into a pointer. That is an inference from the shapes;
`XApuEnqueueCommand` and `XApuDequeueResult` share one handle global, which `XApuDisconnect` clears: a command queue
with a result queue, connected once and torn down once. How `chad.dll`'s handle relates to it is not read.

`runtime/shims/xapu_queue.cpp` serves the five `xapu.dll` imports and `runtime/shims/xapu_chad.cpp` the five
`chad.dll` ones.
The `xapu.dll` signatures, structure layouts, command kinds, option bits and error codes come from Marvisak/VIctory
(<https://github.com/Marvisak/VIctory>, GPL-3.0-or-later, `crates/victory-hle/src/modules/apu.rs` at commit `ffe310e`),
which runs the retail executable through these calls. Only the facts are used (see
[related_projects.md](related_projects.md)); the top of `xapu_queue.cpp` lists them. They agree with the shapes above:

| Shape measured here | What the layout says |
|---|---|
| `XApuConnect`: a 24-byte title global first, a 16-byte output second | the global is an input of six dwords (processing kind, streams, commands per stream, memory bytes, frames per output, options); the output is the zeroed memory and a result event |
| `XApuEnqueueCommand`: a stack-built command whose first dword is 1, 2 or 3 and second a stream slot, then 0 | a 24-byte command id (kind, stream, sequence, options, context): 1 activates, 2 deactivates, 3 processes an Opus packet; the third argument is an optional count of the commands accepted |
| `XApuDequeueResult`: a 0x50-byte result, read at +0, +4 and +0x34 | the command id at +0, the output byte count at +0x34; `0x8AC81001` while none is ready |
| `XApuDisconnect`: the handle, then `0x20` | the second argument is not read |

What the results carry is the shim's own: each accepted command gets one result in command order, with the error codes
of the layout. A process result carries the frame count and PCM when `runtime/opus_decoder` is built, and otherwise the
frame count of the Opus packet's table-of-contents byte (RFC 6716, section 3.1) with zeros in its output (silence).
`xapu_chad_test` covers the layouts and the silent path; `xapu_opus_test` covers the decoded path with a generated
packet.

## `xg_xs.dll` and `XCRDAPI.dll`

| Import | Sites | What the sites show |
Expand Down
221 changes: 220 additions & 1 deletion docs/d3d12_vulkan.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions docs/design.md

Large diffs are not rendered by default.

29 changes: 26 additions & 3 deletions docs/directstorage.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,19 @@ The first boot with the executable settles most of this: the dry-run report show
`DSTORAGE_QUEUE_OPTIONS::AutoSubmitDisabled`). An enqueue into a full queue waits for space, as the reference
says; with auto-submit disabled only a `Submit` from another thread frees it. One worker thread per queue runs
the submitted entries in order, so every notification follows all the entries before it.
- **Reads into physical pages wait for `Submit`**: an automatic submit stops at the first request whose
destination is a physical page list; that request and every entry behind it wait for the title's own `Submit`.
A title may fill the page-number table such a list points into only in its submit path, so an early read finds
page 0 (the entry fails) or the number the slot held before (the data lands in a page that now belongs to
something else, with no error). A full queue submits the held entries too, since the title cannot call `Submit`
while it waits in an enqueue, and so does `Close`. The idea is from VIctory (`Marvisak/VIctory` `eddde73`, also
in `fxceless/victory-fork` `79cfdd9`); the queue here keeps its order, so entries behind a held read wait with
it. `LEONIDA_DSTORAGE_HOLD_PAGES=0` restores the automatic submit of everything. A hold ends after
`LEONIDA_DSTORAGE_HOLD_MS` milliseconds without a `Submit` (2000 unless set): the held entries are submitted with
their page lists as they are, as a timed release, so a path that never calls `Submit` cannot stall for good. `0`
is no time limit (a hold of five seconds is then logged once). The `[rt] ds-hold` line counts automatic submits,
reads held, full-queue and timed releases, and destination lists that named page 0 when written (`event=`, at
each power of two of the counter that moved).
- **Requests**: copied at enqueue. A file request reads `SourceSize` bytes at `FileOffset` into `Destination`; a
memory request copies `Source` to `Destination` (`memmove`, so an overlapping pair is safe); a zlib request
inflates those `SourceSize` bytes into `Destination` (below). Checked in this order when the worker reaches the
Expand Down Expand Up @@ -190,7 +203,16 @@ The first boot with the executable settles most of this: the dry-run report show
256 blocks of a stream. It combines adjacent mips from the same layer with full-stream index anchor
and shared-p-bit constraints. A shared p-bit can relate low red endpoint bits even when its sibling
mip supplies only the leading bits. These local fits preserve the recorded precision and exact reference
bits. A profile can still lack endpoint values or exceed the reference consistency tolerance. Such a request reports a decompression error before publication.
bits. A packed tail whose larger mips are BCPack-coded too has no raw or zlib sibling, so a history field that
only such tails use stayed unknown: in the game runs of 2026-11-25 two BC7 tail streams of one pool failed
with `missing-endpoint` (alpha fields of two history entries). For the streams that still start a chain at a
missing field, the fitter now decodes the nearest BCPack sibling with the profile so far and fits against it,
repeating while a round adds fields. The sibling may sit in the same refused BC7 stream: every block whose
chains start elsewhere is still determined, and the undetermined ones are left out of the reference. Those
fields are fitted, never confirmed, and fill only what the other fits left empty. On the 1.0.2.1 package this
raised the BC7 endpoint fields from 4,228 to 4,406 of 6,144; the runtime decoder then refuses 8 of 5,167 BC7
streams instead of 60 (both failing requests decode), and the 268 BC6H streams are unchanged (10 refused; a
refused BC6H sibling is not used as a reference yet). A profile can still lack endpoint values or exceed the reference consistency tolerance. Such a request reports a decompression error before publication.
- The four swizzle modes interleave stripes from request-wide component planes into 16 KiB (mode 1) or
32 KiB (modes 2–4) groups. The enum names give the successive stripe widths. The shipped BC4 sample
separates its endpoint planes from indices across the inflated source. The title's compute shader does
Expand All @@ -213,8 +235,9 @@ The first boot with the executable settles most of this: the dry-run report show

`runtime/test/dstorage_test.cpp` (ctest `dstorage`) runs on synthetic files in `%TEMP%` through the registry entries
under all three module names: `GAME:` reads with an overlay copy winning, offsets, zero size, a range past the end,
cancellation, auto-submit, a full queue, status arrays, fences (a CPU fence object that checks the data is in place
when it is signalled), events, error records, file and queue close with requests in flight, a destination the
cancellation, auto-submit, reads into physical pages held for `Submit` (a page list changed or filled before it,
a full queue, the time limit, the switch), a full queue, status arrays, fences (a CPU fence object that checks the
data is in place when it is signalled), events, error records, file and queue close with requests in flight, a destination the
process cannot write, four threads enqueueing at once, the interface-id policy (unknown and system ids refused by
`QueryInterface`, learned by creating calls), a `GetHandle` handle with its own file position, an event closed (and
its handle value reused) before it is set, and cancelled requests that also had an enqueue error. zlib requests use
Expand Down
9 changes: 7 additions & 2 deletions docs/gameinput.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ scripted pad, driven by the script alone:
controller axis and controller button state. A reading is taken when the title asks for one and the script's state
has changed since the last, so no thread polls; the history keeps the last 64 readings.
- **The timeline:** the same as with SDL3 (`runtime/shims/gameinput_script.h` holds the parser, the timeline and the
log lines for both): seconds from the first `GameInputCreate`, each press held 300 ms, then released.
log lines for both): seconds from the first `GameInputCreate`, each press held 300 ms (or its own `:hold`, see
`LEONIDA_INPUT_SCRIPT` below), then released.
- **Not served:** reading callbacks, aggregate devices, rumble and every other device. Those slots answer `E_NOTIMPL`
and log the slot once. Controllers and the [keyboard pad](#keyboard-pad) still need SDL3.

Expand All @@ -74,6 +75,10 @@ A press is logged when the title reads it, so a press the title never reads is n
turns the `press` lines off. Without `LEONIDA_INPUT_SCRIPT`, the shim serves no devices and answers `E_NOTIMPL` for
every slot past `Release`, as before.

`LEONIDA_INPUT_FILE=<path>` drives a run whose display takes no keyboard input (a headless session): every line
appended to that file names one button of the script's table (`a`, `down`, ...) and becomes a press at once, held
like a scripted one. The file is read again at most every 250 ms. It is for local runs only.

`scripts/build_runtime.ps1` (what `make_game.py` runs) builds the shim only on its CMake path, when Visual Studio's
C++ CMake tools are installed. Its direct-`cl.exe` fallback compiles a fixed file list without the shim and warns
about it.
Expand Down Expand Up @@ -335,7 +340,7 @@ line is logged when it takes effect); tracking goes on underneath, so clearing i
| `LEONIDA_PROMPTS_SWITCH_MS` | `300` | shortest time between two changes of the active input family, 0..2000 ms |
| `LEONIDA_GAMEINPUT_THREAD` | `1` | `0` stops the background poll thread; only `rt::gameinput::poll()` then reads the pads (tests) |
| `LEONIDA_KEYBOARD_PAD` | `off` | `1` adds the [keyboard pad](#keyboard-pad), read while this process has focus; `always` reads keys whatever has focus |
| `LEONIDA_INPUT_SCRIPT` | unset | Comma-separated `button@seconds` entries, e.g. `a@2,a@4,start@6`. With SDL3 they drive the keyboard pad, which has to be enabled; without SDL3 they drive [one scripted pad](#scripted-input-without-sdl3), the only device. The first pad update (without SDL3, the first `GameInputCreate`) reads the script once at startup and starts the clock. `reload_config()` does not reread it. Each press lasts 300 ms. Buttons are `a b x y start back lb rb up down left right`. Spaces around entries are allowed. Empty entries, unknown buttons and invalid times (including negative or non-finite values) are counted and ignored. |
| `LEONIDA_INPUT_SCRIPT` | unset | Comma-separated `button@seconds` entries, e.g. `a@2,a@4,start@6`. With SDL3 they drive the keyboard pad, which has to be enabled; without SDL3 they drive [one scripted pad](#scripted-input-without-sdl3), the only device. The first pad update (without SDL3, the first `GameInputCreate`) reads the script once at startup and starts the clock. `reload_config()` does not reread it. Each press lasts 300 ms, or `hold` seconds when the entry is `button@seconds:hold` (more than 0, at most 600). With SDL3 a press then stays down until the title has read the pads six times since it began, but never past 5 s from its start (or its hold, if longer). A title reads its pad once a frame, so at a few seconds a frame a 300 ms press can fall between two reads and never arrive: on the retail title's "Couldn't autosave" prompt, three 300 ms `b` presses did nothing, while 120 presses 0.5 s apart got through; one `b@1100:3` replaces them. Buttons are `a b x y start back lb rb up down left right`. Spaces around entries are allowed. Empty entries, unknown buttons, invalid times (including negative or non-finite values) and invalid holds (0 or less, more than 600, not a number) are counted and ignored. |
| `LEONIDA_MOUSE_SENSITIVITY` | `1` | scales how far the mouse moves the keyboard pad's right stick, 0.1..10 |

SDL's own hints (`SDL_JOYSTICK_*`, see SDL's `SDL_hints.h`) also apply, for example `SDL_JOYSTICK_HIDAPI_PS5=0` to
Expand Down
61 changes: 61 additions & 0 deletions docs/linux_proton.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ Each item was a stop on at least one of the machines. Tests named in the pull re

## Where it stops

- **Writes into title memory.** A window is a read-side copy, so a UAV or raw write used to stop at the copy: the
missing return copy is the `WRITE_INVALID` device loss of #1537. The layer now copies the reached ranges back to
the title's pages at the next refresh, before the forward copy, and the title's own newer words win. Not yet
measured on a GPU with the world phase in front of it.
- **Streamed memory that reaches its destination late or not at all.** The title calls queue slot 31
(`CopyPageMappingsBatchX`) about 300 times per boot. With #968 this branch maps each batch's pool pages at the
destination and at the paired CPU view the layer reads (`docs/d3d12_vulkan.md`, section 4.9), so most streamed
Expand All @@ -166,6 +170,63 @@ Each item was a stop on at least one of the machines. Tests named in the pull re
- **Under Wine** a thread that takes an access violation while holding the process heap lock can still deadlock
with xmem's fault handler; the test for it is skipped there.

## AMD on Linux: what got the world drawn

On 2026-11-26 a Linux machine with an RX 7900 XTX (and a Ryzen 9 7950X3D's RDNA2 iGPU), Mesa 26.3.1 (RADV) and Wine
drew the first world frames: the opening night street and a sunset street with palms, cars and a character, over
eight minutes in the world without a GPU hang, at about one frame per six seconds. The runtime was `main` `a73a57e13`
with #1914, #1957, #1972, #2044, #2097, #2124, #2129, #2144, #2162, #2195 and #2240 merged; they went into `main`
together with this section. Each step below removed a stop that ended every earlier run; they are in the order
they were found.

1. **Raise amdgpu's GPU timeout.** `modinfo amdgpu -p` shows `lockup_timeout` with a default of 2000 ms: the kernel
resets any ring whose job runs over 2 s. World frames take seconds, so a run ended about 30 s into the world with
`ring gfx_0.0.0 timeout` in `journalctl -k`, no page fault, and a black last frame. Raise it as root and reboot:
`amdgpu.lockup_timeout=30000,60000,10000,10000` on the kernel command line (graphics, compute, SDMA, video, in
ms), or `options amdgpu lockup_timeout=30000,60000,10000,10000` in a file under `/etc/modprobe.d/` followed by an
initramfs rebuild. A real hang then freezes that ring, and a desktop on the same GPU, for up to that long, so don't
make it unlimited. Windows reporters raise `TdrDelay` for the same reason.
2. **Native wave64 shaders.** On a GPU that runs wave64 natively (AMD RDNA), translate with
`make_game.py --stages shaders --wave64-emulate off`. Before `max_subgroup_decider` (`make_game.py`), the auto
mode took the smallest `maxSubgroupSize` over every Vulkan device, so an installed llvmpipe (8) turned emulation on for all
23,841 wave64 shaders. Emulated single-wave compute programs were then translated in the round-loop form, which
hung the GPU on several library programs and drove RADV's compiler past 12 GiB (53 GB uncapped) on the largest; the
translator no longer does that for single-wave programs ([design.md](design.md), row "Wave64 emulation:
single-wave barrier fallback").
The auto mode now leaves CPU devices out when a GPU is listed and names the device that decided.
3. **Fill the pipeline journal with the runtime itself.** `gta6rt --precompile-pipelines --threads 16`, under Wine,
with the environment of the game run (`LEONIDA_SHADERS`, `LEONIDA_PIPELINE_CACHE_DIR`, `LEONIDA_DEVICE_FAULT`;
`--precompile-pipelines` in [d3d12_vulkan.md](d3d12_vulkan.md)). It built 3,693 compute pipelines; the next boot took
1,900 of them from the journal in 0.1 s of driver time, and the menus ran at 30 frames/s instead of under one.
The `pipeline_cache.bin` that `make_game.py`'s pipelines stage writes with `vk_pipeline_check` gave no hits: 0 of
5,526 journal pipeline keys were in its 29,861 objects (9 shader binaries were identical, so the machine code
matched and the keys did not). Each of three differences is enough for a miss on RADV:
- **The set of shaders:** the runtime's warm-up builds the library's compute programs (`library/index.json`,
2,683 modules); the stage builds the main index and `bvh/`, and only 25 library modules are byte-identical to a
main-index one.
- **Robustness:** on RADV the runtime enables `robustBufferAccess`, `robustBufferAccess2` and `nullDescriptor`;
`vk_pipeline_check` turns `robustBufferAccess` off and leaves robustness2 off. RADV puts the robustness state into
every shader stage key, so every pipeline, compute and graphics, misses.
- **Layout and subgroup request:** for compute with set-0 bindings (2,244 of the 2,683) the checker builds set 0
from default bindless features and requests the subgroup size without the runtime's full-subgroups flag; RADV
hashes the whole set layout and the stage flags. Graphics would miss anyway: the checker pairs each stage with a
stub and fixed state, and RADV hashes the full graphics state.
4. **Leave out the ray-tracing programs.** 724 library compute programs have 2 MiB of SPIR-V or more (676 of them
ray-tracing resolve) and take 89-167 s each in the driver. `LEONIDA_RT_AS=off` drops acceleration-structure builds
and copies, and `LEONIDA_SKIP_COMPUTE=<name>,<name>,...` with those programs' `lib_cs_NNNNN` names (picked by
module size from `library/index.json`) never builds or dispatches them. The picture then lacks whatever those
passes draw.
5. **Keep the title's hang watchdog kicked.** The title exits on purpose (a write to address 0) when its main loop has
not reported for 30 s, which a world load under the runtime exceeds. `LEONIDA_TITLE_WATCHDOG=0` defuses it only
together with `LEONIDA_TITLE_WATCHDOG_KICK=<trap RVA>,<kick RVA>` (hex; `runtime/src/main.cpp`); the two values are
measured locally and never committed. With `=0` alone the loader logs that the watchdog stays armed.

The rest of that run's environment came from a Linux/Proton report on an RTX 3090: `LEONIDA_ASYNC_PIPELINES=0`,
`LEONIDA_DEVICE_TYPE=6`, `LEONIDA_MAP_READBACK=1`, `LEONIDA_TITLE_WINDOWS_MB=4096`, `LEONIDA_FRAME_PACING=1` and
`LEONIDA_PRESENT_NO_TEAR=1`. Still wrong after it: frames alternate between white-out, a correct picture and black;
some geometry is drawn in the wrong place; VRAM reached 18.3 of 22.3 GB; the run ended on a breakpoint in the title
after 12 minutes.

## Reporting a result

Say the machine (OS, GPU and driver, RAM), the commit, the environment switches that differ from the defaults, and
Expand Down
Loading
Loading