Repository navigation
Description
This issue lists work that is open for anyone to take. The maintainer keeps it up to date: items are added, changed and struck out here, and each change gets a dated line at the bottom.
- Claims do not go here. Claim in the coordination issue, as always:
gh issue list -R ubiquitarianism/leonida --state open --search "Coordinating who works on what in:title". - No game data on GitHub: no screenshots, shader text, program names, title log lines or addresses. Pictures and discussion go on Discord.
- Two parts for a start: A. game-run tests of important pull requests, and B. rendering work packages.
Before you open a pull request: a self-review pass
One maintainer reads all of this, and about 1,500 pull requests are open. Have your agent review and polish its own work before the pull request is created, not after a reviewer asks.
- Review the diff as a stranger would. A fresh pass over the whole diff, looking for bugs, missed cases, leftover debug code and anything the description does not explain. A second agent or a fresh session reads more honestly than the one that wrote it.
- Cut it down. One concern per pull request. Remove what the change does not need: drive-by edits, unused helpers, new settings that only keep an old path alive, comments that repeat the code.
- Prove it. A test that fails on
mainand passes with the change. Run it, and say what you ran and on which GPU and driver. Say plainly what you did not test. - Check the rules.
python -I scripts/check_no_game_data.py <files>is clean; no game data in the diff, the description or the test fixtures. - Read your own description once more. It says what changes and why, whether it removes a cause or works around one, what it depends on, and that it was AI-assisted, with the tool and model.
- Then open it. A pull request that went through this pass gets merged in a batch. One that did not waits for someone to do the pass for you.
A. Game-run tests of important pull requests
The test suites run without the game. What they cannot show is whether a change makes the game go further, look different or stop. That needs people who run it, on as many GPUs as possible.
Step 1: a baseline on main, before anything else
Without a baseline on your machine, no comparison means anything.
- Build current
main, nothing else applied. Use the documented recipe for your profile indocs/running.md, with no deviations you cannot name. - Run it twice with the same recipe: once with cold caches, once warm.
- Post one
RUNblock per run (format indocs/agent_collaboration.md, "Three blocks") as a comment on this issue. Fill inBASE(the short commit ofmain),MACHINE,RECIPE,END,CACHESand how far it got. - "How far" in fixed words, so runs compare:
first-run UI,menu,story load,opening sequence,world load,play. Add the frame rate where the window title or the log gives one. - Profiles wanted most: Windows NVIDIA (any generation, say the video memory), Windows AMD, Linux RADV, and any card with 8 GB or less.
Step 2: one pull request against that baseline
- Same machine, same recipe, same caches state. A = your baseline commit of
main. B = the same commit plus the one pull request (for a merged one: the commit before its merge and the merge itself). - One variable per comparison. If you change a setting too, that is a second comparison.
- Post both
RUNblocks as a comment on the pull request, and one line here:tested: #N on <GPU>, <same | better | worse>: <how far A> / <how far B>. - Worse counts as much as better: a device loss, a stall, a crash or a picture class that appears only in B is exactly what this is for. Describe a picture defect with words and numbers, never with a picture on GitHub.
Which pull requests
Merged recently: do they regress anything?
| PR | What it changed | Watch for |
|---|---|---|
| #2407 | Per-slot records for the console descriptor heaps | A report of NVIDIA device losses on main since d1dff7949 suspects it: needs an A/B on NVIDIA |
| #1867 | Aliased shadow pages guarded, copied only after a write | Stale or missing geometry; stalls at the world load |
| #2404 | Title write-back asks the write watch first | Missing GPU-written data; differences between Windows and Wine |
| #2406 | Bindless table limits raised to 65,536 | Start-up failures or lost textures on drivers with small limits |
| #2418 | A write-back that faults no longer re-takes its lock | The freeze after the world load, on 8 GB cards above all |
| #2440 | LEONIDA_ASYNC_MIN_BYTES |
Only with the variable set: stalls while pipelines compile |
| #2412 | Adaptive compile gate, now the default | Stalls or device losses while compiling, old NVIDIA drivers above all |
| #2439 | Smaller typed-load decode in the translator | Wrong colours or missing draws after a pack rebuild |
| #2397 | Mesh primitive indices kept below the vertex count | Stray or missing geometry, after a pack rebuild |
| #2230, #2408 | Indirect dispatch bound, with counters | Dispatches cut that should run |
| #2102 | Mesh shader epilogue | Missing geometry, after a pack rebuild |
| #2260 | Prewarm graphics pipelines in recorded order on the compile pool | Compile pauses at start-up with and without a recorded order |
| #2467 | LEONIDA_ASYNC_MIN_BYTES_GRAPHICS, separate async threshold for graphics |
Graphics draw skips vs compile stalls when set |
| #2468 | Write-back tile reopen after faulting copy | Missing GPU-written data or write-back hangs on 8 GB cards |
Open: waiting for a game run before they can be merged
| PR | What it does | Needs |
|---|---|---|
| #2566 | Integration performance & stability stack (PageMirror, GPU detile, async submit/compile, replay state cache, RDNA2->SPIR-V FTZ32/SMEM/absent-lane UB fixes, LEONIDA_GPU_PROFILE, LEONIDA_DEVICE_MARKERS; merged with main 0318164b8) |
Cross-vendor warm/cold game runs on Windows NVIDIA, Windows AMD, and Linux RADV (8 GB–24 GB): verify 0 GPUVM faults/stalls, opening sequence & play frame rate, VRAM / page-mirror spill, and rebuilt shader pack (29,268/29,268 translated & spirv-val-valid, 0 absent-lane UB sites). On RX 7900 XTX (Linux RADV): 7.4–13.9 fps opening sequence, 5.3–7.4 fps play, 0 faults/hangs across 20-minute runs, now GPU-bound (101–121 ms/f Direct GPU busy) |
| #2275 | Warm-up creates no longer hold the compile gate | Additional GPUs (initial RTX 5080 A/B reported below; compile stalls at start-up, with and without) |
| #2392 | The build's pipelines stage fills the runtime's own journal | A cold start after a build: pipelines loaded from the journal |
| #2402 | Retirement records read under their own lock | Additional GPUs / long play runs (initial RTX 3070 Ti and RTX 5080 runs reported below) |
| #2405 | Sparse buffer memory types checked before sharing the tile arena | Start-up on NVIDIA and Intel (initial RTX 3060 Ti / 3070 Ti / 5080 synthetic + boot reports below) |
| #2367 | Translator restarts a tool when a Windows job refuses it | Full Windows build under memory pressure (Part 1 host-side unit checks passed below) |
(Removed from open list: #2260 merged, #2416 closed.)
This list is a start. If a pull request you depend on is missing, say so in a comment and it is added.
B. Rendering work packages
The maintainer's own work is CPU performance for the coming rounds. Rendering is open to everyone else, in packages that do not collide with each other or with that work.
Base
- Branch from
main. Pull requests targetmain. - The maintainer's performance work is now open as [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 (merged through
main0318164b8), so expect one rebase once it lands. - Some defects below were seen in the maintainer's own runs (Linux, RADV, RX 7900 XTX). Check first that current
mainshows the defect on your GPU.
Rules for a package
- Claim first in the coordination issue on GitHub:
claiming: <ID>, one package per person or named pair. Find the issue by title:
gh issue list -R ubiquitarianism/leonida --state open --search "Coordinating who works on what in:title"
- No game data on GitHub: no screenshots, shader text, program names, title log lines or addresses. Pictures and discussion go on Discord, never here.
- Stay in your package's files. The performance rewrite's files are off limits (next section).
- Every PR has a test that fails on
mainand passes with it, runs (or skips with 77) on RADV under Wine, and is one concern. - Say it was AI-assisted and name the tool and model, and list
GPUs tested:.
Off limits: the performance rewrite
The maintainer is rewriting these for CPU time. Read them, do not change them. If your fix lands here, post a finding: instead (see "Something outside your package?").
runtime/shims/xmem.cpp,xmem.hruntime/src/title_*watch.h,title_mirror*.h,title_frames.h,title_va_alias.h,arena_*.hruntime/src/console_heap_slot_records.h,console_heap_fix.*,console_heap_gpu.hruntime/shims/d3d12_geometry_views.h,d3d12_title_buffer_windows.h,d3d12_title_image_upload.h,d3d12_xs_list_values.h- the title-texture refresh and upload, slot-133 shadows, title windows, console heaps and T#/V# fixing in
runtime/shims/d3d12_vulkan_device.cpp - the title upload and wait parts of
runtime/src/vulkan_backend.h - in
tools/rdna2spirv.py: the descriptor paths, thev_dot4rules andscalar_load
runtime/src/vulkan_replay.h is open, but keep hooks to a call or two: it gets restructured later.
d3d12_vulkan_device.cpp is not split yet (a refactor round comes later). Until then each package owns a region of it, named in its block, and new code goes into a new header with a short hook.
Tools first (they multiply everyone's work)
RT-PASS-TARGET-DUMP: dump a frame's render targets per pass (medium) — open PR: #2466
- What:
LEONIDA_TARGET_DUMP=<dir>,<frame>: after each rendering scope and each dispatch that writes a storage image, the targets of one frame as PNG or raw, plus anindex.json(pass number, format, size). Today only the presented frame can be dumped. - Where: a new
runtime/src/target_dump.h, one hook each inemit_commands(runtime/src/vulkan_replay.h); share the writer ofpresent_dump.h(see present: LEONIDA_PRESENT_DUMP_SLOW_MS also dumps every present that comes late (RT-PRESENT-DUMP-SLOW) #2146). - Needs: no game for the test, any Vulkan GPU; the game to use it.
- Done when: a new test with two scopes and one dispatch gets exact pixels back; off by default, free when off.
- Do not touch: console heaps, xmem, title watches, texture refresh. Dumps stay on your disk.
RT-FRAME-TRACE: a pass and draw trace that names pipelines (medium)
- What: one JSON line per command of one frame: pass, attachments, pipeline id (ours, never the title's names), topology, counts, indirect or not, viewport, blend/depth digest, unbound textures by reason.
tools/frame_trace.pysummarises and diffs two traces. - Note: draw markers (
LEONIDA_DEVICE_MARKERS) and GPU time per pipeline (LEONIDA_GPU_PROFILE) are now in [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 (not onmainyet). Build the recorder without them; those fields get added when [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 lands. One recorder only: talk to the holder ofRT-FAULT-DRAW-RESOURCE-RANGES. - Needs: no game for the test.
- Done when: a synthetic list with a rect-list, a quad, an indirect draw and a dispatch gives four right records.
RT-GPU-CAPTURE-LAYERS: RenderDoc and GFXReconstruct captures (medium)
- What: find out whether these capture tools work on our layer under Wine/Proton and on Windows, and what breaks them (sparse binding, buffer device addresses, mesh shaders, host image copies, memory size). A setting to trigger one frame, and a recipe page in
docs/. This would give per-pass targets and a replay without the game. - Needs: the game, any GPU.
- Done when: one menu frame and one world frame captured and replayed on RADV and on one Windows driver, reported in a RUN block.
- Do not touch: anything but a setting (off by default) and docs.
RT-FRAME-REPLAY: our own frame record and replay (large, later)
- Only if the capture tools fail on our memory model. Record one frame's prepared lists and the memory they touch; replay them through
vulkan_replay.hin a standalone tool. Waits for the maintainer's GPU mirror of title memory; design note first.
TOOLS-PICTURE-REPORT: describe a defect without a picture (small) — open PR: #2455
- What: a
PICTUREblock (like the RUN block ofdocs/agent_collaboration.md) andtools/picture_metrics.py(standard library): from a frame on your disk, numbers only: luma stats, dark share per region, a lattice detector (tile, period, phase), a block-grid detector, a per-8×8 diff of two frames, a defect class. - Classes:
LATTICE,BLACK-NEAR,BLOCKS,FLASH,CHAR-BLACK,CHAR-MISSING,2D-MISSING,STRAY-GEO,SMEAR,OK. - Needs: no game.
- Done when: tests on synthetic PNGs recover the drawn parameters.
Defects
RT-PICTURE-LATTICE: small dark triangles on a screen-space lattice (medium)
- What: in 8×8-pixel tiles at 720p, on one diagonal in sixteen, fixed phase, one orientation, since the first world frames. Ruled out: memory swizzle, skipped compute, ray tracing off, the shadow-mask ray tracers (by reading); the shape is not a set of wave lanes.
- Leads, in order: the rect-list corner rule (next block; rdna2spirv: quad_perm DPP in a pixel shader reads its quad through quad operations (SHADER-PS-DPP-QUAD-OPS) #2416 is now closed), whatever builds a tile list.
- Needs: the game, AMD first (seen on RADV); the target dump and picture metrics.
- Done when: the first pass that carries it is named, an A/B with one variable removes it, and the fix has a test.
RT-RECT-LIST-CORNER: the fourth corner of a rectangle (small) — open PRs: #2478, #1970
- What: ours takes the corner opposite the longest side, from x and y before the divide by w. Another implementation takes the vertex that shares x with one vertex and y with the other, and refuses when w differs. Add cases (w ≠ 1, near-square, right angle at each vertex, degenerate) and keep the rule that passes them.
- Where:
runtime/src/rect_list_geometry.h,d3d12_rect_list_test, the "Console rectangle and quad lists" part ofdocs/d3d12_vulkan.md. runtime: preamble-only flat scan, safe type lookups, and portable CPU test for rect_list_geometry #1970 touches the same header. - Needs: no game, any GPU with geometry shaders.
- Done when: the new cases fail on
main, or show the rules agree (that closes a lattice lead too).
SHADER-TSHARP-2D-DEPTH: the depth field of a plain 2D texture descriptor (small)
- What: the decoder reads WORD4
DEPTHas the last layer for every non-3D type; on RDNA2 that field may be the pitch of a linear 2D texture, so valid full-screen 2D textures may be refused. - Where:
runtime/src/gfx10_descriptors.hdecode()and its test; measure withtools/image_fuzz.py --oracle hw; Mesaac_descriptors.cas reference. gfx10_descriptors: clamp sampler maxLod >= minLod and guard DERIV_ADJUST_EN integer border (VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST) #2089 and d3d12: enforce Vulkan BC image-view compatibility classes #2223 touch the same header. - Needs: no game; an AMD GPU (RDNA2 for the oracle).
- Done when: the oracle result is in the PR, a unit test fails on
main, and a run's count of that refusal drops. - Do not touch: the texture binding and waiting code in
d3d12_vulkan_device.cpp.
RT-PICTURE-CHARACTERS: faces black, bodies missing (medium)
- What: faces drawn black with the eyes drawn; bodies missing in play. Seen in the maintainer's local work and reported by others; first check whether current
mainshows it on your GPU. Known: the title writes GPU addresses into its own buffers that point into GPU-only memory (the maintainer's rewrite); another implementation found a one-time decoration bake that stays black for the whole run if its textures are not uploaded before it. - Needs: the game, 8 GB of video memory or more; target dump and trace.
- Done when: the pass and the missing input are named; a test without the game reproduces the order problem. The upload fix itself goes to the maintainer as a
finding:. - Do not touch: texture refresh and uploads, xmem.
RT-PICTURE-EXPOSURE: exposure flashing white, black, good (medium)
- What: find the luminance reduction and its readers with the trace; log that small buffer's values per frame (numbers only); separate frame order, a history buffer reset, NaN or denormals in the translation, missing ray-traced light.
- Needs: the game, any GPU.
- Done when: an A/B with one variable names the cause.
- Do not touch: value-wait code.
RT-PICTURE-2D-LAYERS: loading-screen art, 2D layers, video artwork (medium) — open PR: #2508
- What: the UI and button prompts are drawn; the loading art is missing; the opening's video art (CPU-decoded video in 8-bit planes) is partly missing. One Windows user sees the loading art.
- Where: composition in
runtime/shims/xbox_present.cppandruntime/src/present_compose.*(plane alpha, BGRX, sRGB fallback, HDR10, SDR white level: build on Preserve sRGB midtones on the SDR UNORM swapchain fallback #2001, Treat BGRX overlays as opaque in PresentX composition #2014); the trace for which texture of the loading draw is unbound and why. - Needs: no game for composition tests; the game for the diagnosis. Region:
WindowPresenter. - Do not touch: descriptor refill and texture refresh (report those as findings).
RT-PICTURE-STRAY-GEOMETRY: misplaced geometry, stray geometry in the sky (medium)
- What: classify the stray draws with the trace (mesh or vertex path, indirect, skinned); A/B the mesh primitive clamp (rdna2spirv: keep mesh primitive indices below the vertex count (SHADER-MESH-PRIM-INDEX-CLAMP) #2397). A GPU-written vertex buffer overwritten by a stale CPU copy is the rewrite's: report it with a test.
- Needs: the game.
- Do not touch: geometry views, shadows.
RT-TILED-LIGHTING-INPUTS: the slow tiled-lighting pass and its compute partner (large)
- What: both took 85–230 ms a call on
mainand depend on data; their loop counts may be inflated by wrong inputs. With [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 (RX 7900 XTX, Linux RADV, rebuilt shader pack), play is now GPU-bound (101–121 ms/fDirect GPU busy:57–76 ms/fMesh,34–39 ms/fCompute,5.6–8.9 ms/fGraphics;5.3–7.4 fpsin play,7.4–13.9 fpsopening sequence), and VRAM reached21.3 GiB(14page-mirror units /448 MiBspilling to host RAM over PCIe). A translator debug option that counts loop trips per draw into a buffer; compare with the light and tile counts the inputs imply; name the wrong input. - Needs: the game, AMD.
- Do not touch: descriptor lookups,
v_dot4,scalar_load.
State audits and the vendor matrix
RT-STATE-AUDIT-FORMATS: formats, views, clears, copies, resolve (medium) — open PRs: #2479, #2480, #2482, #2483
- What: walk the format table and view rules against D3D12 and the console's extras; review or finish d3d12_vulkan: the title's R32_UINT textures take R9G9B9E5 views (D3D-RGB9E5-UINT-ALIAS-VIEW) #1456, d3d12: enforce Vulkan BC image-view compatibility classes #2223, vulkan_replay: sRGB render-target clears are encoded in the layer, as WARP encodes them (D3D-CLEAR-SRGB-ENCODE) #1179, Quantize RGB565 render-target clears at each channel width #2268, d3d12: ResolveSubresource averages a typeless resource in the format it names, and colour MIN/MAX resolves (OLD-10023, carries #292) #1830, Preserve fractional viewport coverage in attachmentless draws #2271; a count of the formats the title creates ranks the gaps.
- Region:
Formatand the format checks ind3d12_vulkan_device.cpp; clears and copies invulkan_replay.h. - Needs: no game, any GPU.
- Done when: each gap has a GPU test that fails on
main.
RT-STATE-AUDIT-PIPELINE: blend, depth, stencil, raster, samplers (medium) — open PRs: #2473–#2477, #2023, #2089
- What: the same for pipeline state and samplers: native pipeline state, integer-target blend (d3d12: an integer render target bypasses its blender (D3D-INTEGER-TARGET-BLEND-BYPASS) #2023), depth bounds (d3d12: the on-demand stream carries the depth-bounds flag too (DEPTH-BOUNDS-ON-DEMAND-STREAM) #2234, d3d12: realize console streams with their depth-bounds flag and back-face stencil masks (RT-DEPTHBOUNDS-STREAM-EXTRAS) #1695), sampler LOD and anisotropy (gfx10_descriptors: clamp sampler maxLod >= minLod and guard DERIV_ADJUST_EN integer border (VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST) #2089), MoltenVK LOD bias (rdna2spirv: --explicit-lod-bias applies the S# LOD bias where MoltenVK drops the sampler's; ps_ssharp passes on Macs (SHADER-EXPLICIT-LOD-BIAS-MVK) #1774).
- Region:
PipelineStreamandPipelineStateind3d12_vulkan_device.cpp,d3d12_xs_pso_stream.*,runtime/src/native_pso.h. - Needs: no game, any GPU.
- Done when: each gap has a GPU test that fails on
main.
RT-PICTURE-RAY-TRACING: the picture with ray tracing on (large, lowest priority)
- Shadow masks and reflections against ray tracing off; structure builds that resolve. Needs the game and 24 GB of video memory. Do not touch arena code.
RT-PICTURE-CROSS-VENDOR: which defect shows on which GPU (small per run)
- The same build and recipe on Linux RADV, Windows AMD, Windows NVIDIA (macOS later); one
PICTUREblock per class; a page indocs/with classes and counts. NVIDIA translation isquartz-heron-58's andHasiKe's: the matrix reports, it does not fix.
Showing results, findings, merging
Pictures
- Post shots and dumps on Discord, with a
PICTUREblock beside them. - On GitHub only the block: classes, numbers, pass number, our pipeline id. Never the picture, program names, log lines or addresses.
- Runs and test requests use the RUN and TEST-WANTED blocks of
docs/agent_collaboration.md.
Something outside your package?
finding: <one line>in the coordination issue: file and line, the package it belongs to, whether it needs the game or particular hardware.- Inside the performance rewrite: add
needs: perf rewriteand link a failing test. Keep the diagnosis, do not fix it. - If your package turns out to depend on the rewrite: post that as a new claim comment ("parked on rewrite") and keep the diagnosis half.
What makes a PR batchable
- One concern, small, on current
main, inside its package's files and region; the ID in the title. - A test that fails on
mainand passes with it, and runs or skips with 77 on RADV under Wine. Translator rules get an.asmfixture and a row indocs/design.md. - New settings off by default, unless a RUN block shows the fix right on two vendors. Diagnostics free when off.
- Say whether it removes the cause or works around it.
python -I scripts/check_no_game_data.py <files>is clean;GPUs tested:names vendor, model, driver, OS.
How merging works: the maintainer merges in batches by area, tools first. He merges main into each branch, runs the Wine suite on RADV and the translator suite, and runs the game once per batch. A PR that conflicts with its batch waits for the next one.
Updates
- 2026-11-27: created, with part A (game-run tests) and part B (rendering packages).
- 2026-11-27: added "Before you open a pull request: a self-review pass".
- 2026-11-28: moved merged runtime: prewarm graphics pipelines in recorded order on the compile pool (RT-PIPELINE-PREWARM-ORDER phase 2) #2260, d3d12: LEONIDA_ASYNC_MIN_BYTES_GRAPHICS, a separate async threshold for graphics (RT-ASYNC-MIN-BYTES-GRAPHICS) #2467, d3d12: a write-back's later runs in a tile its faulting copy reopened still go back (RT-WRITEBACK-TILE-REOPEN) #2468 and closed rdna2spirv: quad_perm DPP in a pixel shader reads its quad through quad operations (SHADER-PS-DPP-QUAD-OPS) #2416 out of the open list; added [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 (performance & stability integration stack, merged through
main0318164b8— RX 7900 XTX RADV now GPU-bound at5.3–7.4 fpsin play /7.4–13.9 fpsopening sequence,0faults across 20-minute runs,29,268/29,268spirv-val-valid shaders with0absent-lane UB sites) for cross-vendor game-run testing; linked open rendering-package PRs (tools: picture_metrics.py and the PICTURE block, numbers only from a frame on your disk (TOOLS-PICTURE-REPORT) #2455, runtime: add LEONIDA_TARGET_DUMP per-pass target dumper (RT-PASS-TARGET-DUMP) #2466, native_pso: a single-sided stencil PSO keeps its depth/stencil/raster state (RT-STATE-DEPTH-RASTER-BACKFACE-MASK) #2473–RT-STATE-AUDIT-FORMATS: honor D3D12_DSV_FLAG_READ_ONLY_DEPTH and READ_ONLY_STENCIL #2480, RT-STATE-AUDIT-FORMATS: accept R16_UNORM in D16_UNORM depth ResolveSubresourceRegion #2482–RT-STATE-AUDIT-FORMATS: reject mismatched RTV formats and support typeless 3D RTVs #2483, present_compose: fix premultiplied sRGB and additive alpha plane 1 decoding #2508).
AI-assisted (Claude Code, Claude Opus 5.5, Claude Fable 5.2, and Antigravity Gemini 4 Neon)
Activity
OreoFR commentedon Nov 27, 2026
tested: #2418 on RTX 4070 Laptop 8 GB (profile M, NVIDIA 621.40), better: stall at 290 s after the world load / play submitting to the 648 s time limit. A/B on main d1dff79, n=1 each, posted before the RUN format: #2418 (comment). AI-assisted (Claude Code, Claude Opus 5.5).
BadgersMC commentedon Nov 27, 2026
Profile M Windows baseline, RTX 3060 Ti 8 GB desktop, NVIDIA 610.88, Windows 11 build 26100, 16 GiB RAM. PROVISIONAL, one run per condition.
Shared recipe: clean main built with MSVC RelWithDebInfo and scripted input, SDL3 and optional decoders disabled. Reused the Nov 24 translated shader pack, no offline precompile. Windows NVIDIA startup with the Series S defaults from
scripts/windows-boot/boot.ps1where applicable (Vulkan, Series S, device fault diagnostics, startup cache checkpoints, 4 GiB cache limit). Used an isolated launcher with the original GPU timeout settings and no watchdog overrides. Deviations:LEONIDA_UNIMPLEMENTED=stop,LEONIDA_MEM_PROBE=5,LEONIDA_GPU_LATENCY=1,LEONIDA_HANG_EXIT_S=45, D3D12 trace, capture every 250 presents (max 8). Each run used a fresh save overlay.Fixed harness limits: 10 GiB job, stop below 1.5 GiB free physical RAM or 2 GiB system commit headroom, 480 s timeout. Driver cache was left as-is. The application's automatic compile gate selected adaptive on this driver.
In the 512 MiB pair the probe reported 276 MiB in use in the arena at the matched splash, with 757 MiB of tracked Vulkan allocations in total. No device loss was observed before the guard. These are early-load observations, with differing starting system headroom and no repeat count sufficient to claim a timing gain.
BadgersMC commentedon Nov 27, 2026
Follow-up to the RTX 3060 Ti baseline above. I applied only #2405 at
f0b86e19380c8af09569161e1a0bc0243125a738to pinnedmainat17d3af0b652c50d1c787e6341739144251dbaa12, rebuilt, and repeated the cold 512 MiB-arena run with the same options. Both cold runs reached the same loading image. First presentation was 9.64 s on main and 9.06 s with the PR. The host commit guard ended the runs at 31.45 s and 22.30 s respectively, with about 2 GiB of commit headroom left in both cases.Inconclusive for #2405: neither trace recorded
UpdateTileMappings,CopyTileMappings, orCopyPageMappingsBatchXbefore the guard ended the process. One run per build also leaves the startup timing difference unverified. No world scene was reached, so I did not run #2407.ERROR890 commentedon Nov 27, 2026
claiming: RT-FRAME-TRACE
Taking the pass-and-draw trace package from part B (the
RT-FRAME-TRACEblock in this issue).What I will do: a recorder that writes one JSON line per command of one frame -- pass number, attachments, our pipeline id, topology, vertex/index counts, indirect or not, viewport, blend and depth digest, and unbound textures by reason -- plus
tools/frame_trace.pyto summarise and diff two traces.Where: a new
runtime/src/frame_trace.h(recorder, off by default), one hook inemit_commands(runtime/src/vulkan_replay.h, keep it to a call or two), a newruntime/test/d3d12_frame_trace_test.cpp, the tool undertools/, and a short entry indocs/dev-tools.md.Done when: a synthetic list with a rect-list, a quad, an indirect draw and a dispatch gives four right records, the new test fails on
mainand passes with the recorder, and the trace costs nothing when the setting is off.Not touching: console heaps, xmem, title watches, texture refresh and uploads, native PSO creation, the pipeline journal and precompile path,
test-harness/. No second recorder: I will talk to the holder ofRT-FAULT-DRAW-RESOURCE-RANGESand to theRT-PASS-TARGET-DUMPholder before adding command-level capture, and I will not record title names, title log lines or addresses.Machine: Windows 11 26H2, Ryzen 9 5900X, 32 GB RAM, RTX 5070 12 GB (NVIDIA 621.40), local build of
mainat855c9c65b, withctestand the D3D12 shim test suite available to run the new test on.Note: this issue says claims go in the coordination issue, and I am posting here because this is where the item is listed -- please say if it should be mirrored there instead.
AI-assisted (Claude Code, Claude Opus 5.5 — architecture & review; DeepSeek Harness subagent — local test/verification; Gemini, Antigravity — coordination & prompt review).
lixonik commentedon Nov 27, 2026
@ERROR890 For
RT-PASS-TARGET-DUMPcoordination: the PR is already open at #2466 (claimed and marked done in #1608; mirroring yourRT-FRAME-TRACEclaim in #1608 is worth doing as well since the issue header asks for claims there).On the
runtime/src/vulkan_replay.hseam so the two hooks stay conflict-free:TargetDump* target_dump = nullptr;pointer onReplayFunctionsand smallif (vk.target_dump)calls inemit_commands(aftervk.end_rendering,vk.dispatch/vk.dispatch_indirect, and UAV barriers/clears), with adapter helpers placed indetail::right afterdetail::current.submit_phases::totals().present_serial + 1, and pass numbers are 0-based inemit_commandsorder within the selected frame.Feel free to ping on #2466 or #1608 if you want
RT-FRAME-TRACE's pass/frame numbering to line up withindex.json.AI-assisted (Antigravity, Gemini 4 Neon).
ERROR890 commentedon Nov 27, 2026
@lixonik Thanks for the seam layout and numbering details on
#2466. Confirmed:RT-FRAME-TRACEclaim in#1608.runtime/src/vulkan_replay.hconflict-free with#2466regardless of merge order: placing my pointer in the middle ofReplayFunctions(away fromtarget_dumpat the end), keeping all recorder helpers in a separateruntime/src/frame_trace.h, and placing my hooks before the pass-closing calls (end_rendering,dispatch/dispatch_indirect) so an unchanged line separates them from#2466's post-call hooks.submit_phases::totals().present_serial + 1and pass numbers to 0-based inemit_commandsorder across the frame so(frame, pass)IDs match#2466'sindex.json1:1.AI-assisted (Claude Code, Claude Opus 5.5 — architecture & review; DeepSeek Harness subagent — local test/verification; Gemini, Antigravity — coordination & prompt review).
enlight3d commentedon Nov 27, 2026
Baseline on
mainfor #2464 part A step 1: Windows, NVIDIA, 24 GB (profile L). Two runs with the same recipe, cold then warm. AI-assisted (Claude Code, Claude Opus 5.5).OreoFR commentedon Nov 27, 2026
tested: #2468 on RTX 4070 Laptop 8 GB (profile M, 621.40), same: play (world reached, 600 s, 0 device lost) / play (world reached, 600 s, 0 device lost). RUN blocks: #2468. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commentedon Nov 27, 2026
tested: #2467 on RTX 4070 Laptop 8 GB (profile M, 621.40), same: play (world reached, 600 s, 0 device lost) / play (world reached, 600 s, 0 device lost). RUN blocks: #2467. AI-assisted (Claude Code, Claude Opus 5.5).
j-rally commentedon Nov 27, 2026
Baseline on
mainfor part A step 1, plus one A/B of where the GPU address arena lives on a Resizable BAR machine. Windows, NVIDIA, 16 GB (profile L). AI-assisted (Claude Code, Claude Opus 5.5).A/B: the arena in cached system memory instead of VRAM through the BAR. With Resizable BAR the arena (2 GiB) gets
DEVICE_LOCAL | HOST_VISIBLEmemory, and the CPU reads it every submission: the write-back's compare against the title's pages, and the title-texture hashes. Through the BAR those reads are uncached. A local switch (LEONIDA_ARENA_MEMORY=cached, prefersHOST_CACHEDand skips the BAR fit) as the only variable, same build, same recipe plus the thread sampler in both arms (SAMPLE_MS=5):ShadowPages::write_back(~30-36%)hash_bytesunderrefresh_title_textures(~37%)So on this machine the CPU side of the slow phase is mostly uncached reads of a BAR arena, but fixing that does not change the frame rate: the GPU is the limit there in both arms. n=1 each. I can open the switch as a pull request if it is wanted; the default stays as it is.
tested: base-warm on RTX 4070 Ti SUPER 16 GB, world frames at 0.2-0.6 frames/s from ~120 s
j-rally commentedon Nov 27, 2026
Follow-up to my baseline above: what limits the world load to 0.2-0.8 frames/s on this machine. Same build (
55bd6f4f1+ two local diagnostics described below), same recipe, warm caches, n=1 per run. AI-assisted (Claude Code, Claude Opus 5.5).LEONIDA_SKIP_COMPUTELEONIDA_GPU_LATENCY=1list valueslineSo in the world load on this machine, the queue spends most of the wall time behind gates: a list waits for a memory value that earlier GPU work writes, and the waiting work is released only after that write has completed and been seen on the CPU. The CPU is not saturated (submitting thread 24-55% busy with the arena in cached memory) and the GPU is idle about two thirds of the time.
I am going to look at why these waits are held rather than relayed onto the write in flight, and will claim it in the coordination issue before opening anything.
MoonEyes commentedon Nov 27, 2026
Baseline of current main on one machine, cold then warm pipeline cache, same recipe. No PR in the build. n=1 per cache state, indicative only. Not tied to any claim about the cause of the display stop.
Reading (marked):
Limits: one machine, one run per cache state; the cache was not snapshotted between the two runs.
AI-assisted (Claude Code, Claude Opus 5.5)
enlight3d commentedon Nov 27, 2026
tested: #2407 on RTX 3090 24 GB (NVIDIA 621.40, Windows 11), same for device losses: none in 2 runs before the merge and none in 2 runs with it; how far not comparable (the input script missed the profile page in one run per side): menu, story load / story load, menu. PROVISIONAL (n=2 per side), RUN blocks: #2407 (comment). AI-assisted (Claude Code).
djrolfes commentedon Nov 27, 2026
Step 1 baseline of clean
main(43a9d562d, no PRs applied) on an 8 GB NVIDIA card under Linux + Wine 11.22 (Profile M): cold caches then warm caches, identical binary (runtime_sha256matched) and identical settings (0env differences apart from the per-run capture folder), 100% hands-free viaLEONIDA_INPUT_SCRIPT. All numbers independently recomputed from raw logs and resource samples by a second agent (codex/gpt-6-luna) before posting.n=1per cache state (PROVISIONAL (n=1)).Reading:
n=1per cache state, PROVISIONAL): Cleanmain(43a9d562d) withLEONIDA_ASYNC_PIPELINES=1,LEONIDA_ASYNC_MIN_BYTES=2097152,LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0(and noLEONIDA_SKIP_COMPUTEskip list) reachesworld loadon an 8 GB RTX 3070 Ti under Linux + Wine 11.22 with 0 device losses (cold:298.12 s, peak VRAM7,850 MiB; warm:174.33 s, peak VRAM7,173 MiB). Both runs end cleanly at the same unhandled exception immediately after 2 untranslated compute shader refusals at world entry (beforeplay).n=2, separate--first-run-uiruns withLEONIDA_XMEM_BACKING_DIR): For completeness, running the exact same cleanmain(43a9d562d) binary with--first-run-ui(LEONIDA_XMEM_BACKING_DIRenabled) still hits the known Wine/NVIDIA620.73.04file-backed host-import rejection burst (vkAllocateMemory failed (-1)/E_OUTOFMEMORYat28.45 scold and24.36 swarm with ~16.8 GiB RAM and ~6 GiB VRAM free; tracked in d3d12: decline file-backed/multi-VMA host imports under Wine and deduplicate import memory types (RT-WINE-HOST-IMPORT-POLICY) #2126). LeavingLEONIDA_XMEM_BACKING_DIRunset (--run, as indocs/running.md) avoids that startup failure completely.playwith cleanmain's shader translation (requires those untranslated compute shaders to be translated first), or multi-run variance (n=1per state; would be refuted if repeated runs hit device loss or stall earlier).AI-assisted: Antigravity (Gemini 4 Neon) + Codex (
gpt-6-lunaindependent log verification); no game data.djrolfes commentedon Nov 27, 2026
tested: #2405 on RTX 3070 Ti 8 GB (NVIDIA 620.73.04, Arch Linux + Wine 11.22), same (0 tile-mapping errors, 0 device losses): menu -> story load -> world load (174.33 s) / menu -> story load -> world load (162.18 s). PROVISIONAL (n=1 per side, byte-identical warm cache snapshot), RUN blocks: #2405 (comment). AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna verification); no game data.
djrolfes commentedon Nov 27, 2026
tested: #2402 on RTX 3070 Ti 8 GB (NVIDIA 620.73.04, Arch Linux + Wine 11.22), same through world load (0 deadlocks, 0 releaser stalls, 0 device losses; peak 86.57 vs 85.15 frames/s; multi-minute play not covered on clean-main shaders): menu -> story load -> world load (174.33 s) / menu -> story load -> world load (160.18 s). PROVISIONAL (n=1 per side, byte-identical warm cache snapshot), RUN blocks: #2402 (comment). AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna verification); no game data.
djrolfes commentedon Nov 27, 2026
tested: #2126 on RTX 3070 Ti 8 GB (NVIDIA 620.73.04, Arch Linux + Wine 11.22, --first-run-ui / LEONIDA_XMEM_BACKING_DIR), better (eliminates 24-28 s vkAllocateMemory -1 / E_OUTOFMEMORY crash and saves ~6.6 GiB host RAM vs --run): first-run UI (28.45 s, 301 presents) / first-run UI -> menu -> story load -> world load (283.75 s, 5,471 presents). PROVISIONAL (n=1 cold per side + warm A repro), RUN blocks: #2126 (comment). AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna verification); no game data.
d3d12: LEONIDA_RELEASE_WORKER=1 releases a queue's held work on its o…
d3d12: LEONIDA_RELEASE_WORKER=1 releases a queue's held work on its o…
LGlong1 commentedon Nov 28, 2026
Game-run report: the first-run UI reaches its landing prompt on Windows 10 + RX 6750 GRE (RDNA2).
Setup. Windows 10 22H2 (10.0.19045), AMD Radeon RX 6750 GRE 12 GB (RDNA2), driver 32.0.21045.16010, Vulkan from the driver; VS2022 with Windows SDK 10.0.26100, Python 3.12,
LLVM_MC=wsl -d Ubuntu -e /usr/lib/llvm-21/bin/llvm-mc(Ubuntu LLVM 21.1.8).Build. commit
d442851(main has moved since),make_game.py --stages shaders,runtime --jobs 8, then--stages assets --jobs 8. The shaders stage needed one local workaround first: a truncated disassembly listing, reported in #2539; after re-disassembling that one shader the index held 26,503/26,503 and the rest of the build ran. Runtime built from source with MSVC; the assets stage finished 138/138 in 2 h 38 min (about 429 GB of work files).Run.
gta6rt.exe --first-run-ui <game exe> --game-dir <package> --trace <file> --trace-d3d12withLEONIDA_D3D12=vulkan. Two runs: one with the profile's focused keyboard pad (LEONIDA_KEYBOARD_PAD=1), one withLEONIDA_KEYBOARD_PAD=always.Result.
ACCOUNT PICKER/SCREEN NARRATION (OFF)/PLAYER) with legible prompts, which is the milestonedocs/first_run_ui.mddescribes.XboxPresentation::PresentXok, 0 failed; 4 modules mapped; 0 unimplemented imports; 2 TLS callbacks, 3/3 DllMain ok; no exceptions in the startup trace.boot_trace.pyreads 162 startup events with 0 bad lines.One thing that may be worth a look: neither the focused nor the always-on keyboard pad moved past the landing prompt (Enter = A, right/down arrows tried, window focused). If that prompt is supposed to open the first-run pages, this may be a Windows 10 input-path detail; if the profile deliberately ends there, it behaves as designed.
No game files or traces are attached; they stay on this machine.
timbot103 commentedon Nov 28, 2026
Native Windows 11 Part A report covering RTX 5080 (16 GB, desktop, Profile M) and AMD Radeon
gfx1036(integrated, Profile S). Runtime arms were built with MSVC 19.44.35230.0, Ninja RelWithDebInfo,-DLEONIDA_SDL3_FETCH=ON -DLEONIDA_REQUIRE_VULKAN=ON(29,279shaders loaded on G0, one agent's localMEASURED; shader packs translated with native Windows AMD LLVM 23llvm-mc). OS/Driver deviation on every run: Windows Registry was not modified, so every run used default Windows TDR (TdrDelay/TdrDdiDelayunset, 2 s OS default). Plan deviations are noted in each section. No game files, logs, traces, captures, shader/program names, RVAs, or local paths are included.Summary Matrix (Native Windows 11, 2026-11-28)
MEASURED)main02f71ccfeG0 baselinesn=1each)146 s(2,218PresentX,15.19/s,44.13peak fps,0ECL fail,0VK_ERROR_DEVICE_LOST); warm157 s(2,423PresentX,15.43/s,47.26peak fps,951journal.bin,0VK_ERROR_DEVICE_LOST)02f71ccfeG0--pc-tail-ubocheckgfx1036--pc-tail-ubo(cold+warm; clean pair exploratory)maxPushConstantsSize: 256 bytes(one agent's localMEASURED). With--pc-tail-ubo:1,664(cold) /1,688(warm)ExecuteCommandListsfailures (slots 512). Without--pc-tail-ubo:0/0ECL fail,0slots 512,38.19peak fps,243 scold time limit /178 swarm,1,164journal.bin,0VK_ERROR_DEVICE_LOST02f71ccfe)724-prog skip + 4095/4096/6144 MiB (n=1)1,741PresentX (14.27/s),29/29non-black frames,455,466V# halves beforeEND: device lost(109fault lines,2VK_ERROR_DEVICE_LOST, address fault types6and1,0null-write /2other access violations)f896a16f4, open)make_game.py --stages pipelines+ 3+3 cold unseeded vs seededrc=0(461 sinternal /462.3 swrapper,3,755.bin,0failed,1,480/1,480skipped via--skip-listed). In-game.bincompiles:1,721 / 1,721 / 1,725→1 / 1 / 1(-99.94%); journal hits1,800+;0disabled; mean PresentX/s+32.3%(12.44–13.09→15.31–18.28);0VK_ERROR_DEVICE_LOSTe1bf0b8ae, open)02f71ccfe, 3+3 cold A vs B#2412inmain, B won 3/3: waits955–997(8.1–18.0 s, max9,616 ms) →2–7(95–287 ms, max285 ms), compute gate off 3/3, mean ECLX/s+22.9%(26.88–29.65→32.40–36.41),0VK_ERROR_DEVICE_LOSTa3bafd05dvsf75b2b425, merged)classicvsadaptive(exploratory)classicatf75b2b425,READ IN CODE): no measurable difference at n=3 (0VK_ERROR_DEVICE_LOST). Adaptive vs classic (exploratory, 3+3): worst hold8,040–9,438 ms→1,405–2,499 ms(3.2×–5.7×), mean total wait-78.0%, mean ECLX/s+62.8%,0VK_ERROR_DEVICE_LOSTfac8b4bb9vs20c46b646, merged)gfx1036--pc-tail-ubo), 3+3 A vs B0ECL fail,0VK_ERROR_DEVICE_LOST; B scales bindless arrays 2D-array16,384 → 65,536(4×), 3D4,096 → 65,536(16×), 1D4,096 → 65,536(16×). Part (2): not reached (0full in both)011d446c3vse5a7c8942, merged)gfx1036611 / 611 / 19,239 KiB→0 / 0 / 0 KiB(0 KiBwarmup),0ECL fail,0VK_ERROR_DEVICE_LOST,0non-null-write access violations in all 6 runs20c46b646vs627163c8e, merged)WARMUP_LIVE_MAX_BYTES=1310720VK_ERROR_DEVICE_LOSTacross all 12 runs (6 A + 6 B). Round 2 B slot-records median0.157–0.241 ms/ max7.534–21.869 ms(392,817–412,636V# halves). Round 2 B mean ECLX/s-7.6%vs A (25.71–26.48vs27.75–28.86, lower 3/3) and single-maxheaps309–340 msvs18–92 ms35eb7b4a4, open)02f71ccfe, 2+2 warm A vs B-3.2%mean:27.31–28.40vs28.74–28.79/s),0VK_ERROR_DEVICE_LOST; all 4 ended on armed watchdog31–42 safter last submit phase; sustained play outside observed window-3.2%ECLX/s in short boots; sustained gate not reachedcf30c0a1f, open)d3d12_buffer_tiles_test(VALIDATION=1)0UpdateTileMappingscalls observed on main (A-arm gate failed). Syntheticd3d12_buffer_tiles_testpassed on BOTH GPUs (0VUIDs) (masks2&15; reserved-image separation skipped on both; 12/12 Vulkan tiles + 3/3 D3D12 readbacks)1860dc591, open)test_rdna2spirv_spawn_quota.py5/5 OK (14.65 s) +WorkerParity3/3 OK (6.35 s); A (02f71ccfe) failed with 1 failure + 1 error (WinError 1816)1. Clean-
main(02f71ccfe) Baselines, Windows AMD--pc-tail-uboCheck, and Watchdog-Kicked ProbePre-registered predictions existed before the four initial baselines (
t4-5080-base-{cold,warm},t4-radeon-base-{cold,warm}); the clean Radeon pair (t4-radeon-clean-{cold,warm}, without--pc-tail-ubo) andt4-5080-kick-probewere exploratory follow-ups. All runs usedboot.ps1(--run,--trace,--trace-d3d12,--overlay),Seconds=240(300for kick probe),LEONIDA_DEVICE_FAULT=1,LEONIDA_DEVICE_TYPE=6,LEONIDA_PIPELINE_CACHE_BYTES=4294967296,LEONIDA_STARTUP_CACHE_CHECKPOINTS=1,LEONIDA_PIPELINE_JOURNAL_SEED_DIR=(off), default 2 s Windows TDR, per-GPU cache/overlay folders.rate)rate).bin(last log hits/wr)VK_ERROR_DEVICE_LOSTt4-5080-base-cold--wave64-emulate on)t4-5080-base-warm--wave64-emulate on)t4-radeon-base-cold--wave64-emulate off --pc-tail-ubo)t4-radeon-base-warm--wave64-emulate off --pc-tail-ubo)t4-radeon-clean-cold--wave64-emulate off, no tail-ubo)t4-radeon-clean-warm--wave64-emulate off, no tail-ubo)t4-5080-kick-probe--wave64-emulate on, kick+724 skip)--pc-tail-ubodiagnosis (MEASURED+READ IN CODE): On Windows AMDgfx1036(maxPushConstantsSize: 256 bytes, one agent's localMEASURED), forcing--pc-tail-uboproduced1,664(cold) and1,688(warm) failedExecuteCommandListscalls (about one failure per present) and loggedslots 512(GraphicsPipeline::rectangle_stage) pipeline-variant failures.READ IN CODE:--pc-tail-uboputs the push-constant tail in set 1 binding 0 (tools/rdna2spirv.py:113,16677-16694), while the graphics pipeline layout at02f71ccfedeclares set 0 only (runtime/shims/d3d12_vulkan_device.cpp:12890-12907), and a draw with an unbuilt variant fails replay atruntime/src/vulkan_replay.h:3116(VUID-VkGraphicsPipelineCreateInfo-layout-07988layout mismatch inferredREAD IN CODE/ASSUMED, not captured under validation layer). Rebuilding G0 without--pc-tail-ubodroppedExecuteCommandListsfailures to0/0andslots 512to0.2. Open PR
#2392—make_game.py --stages pipelinesJournal Seeding (RTX 5080, 3+3)make_game.py --stages pipelines --no-tui --jobs 16,LEONIDA_VK_DEVICE=5080,LEONIDA_DEVICE_FAULT=1,LEONIDA_SKIP_COMPUTE=<1,480 programs >= 2 MiB>): plan deviation — used all1,480>= 2 MiBcompute shaders (724library +756main corpus, split is one agent's localMEASURED) rather than only the724library shaders inTRACK4-AB-PLAN.mdso the stage completed under wave64 emulation without multi-hour compiles. Resumed cleanly after an earlier partial run (rc=0,461 sinternal /462.3 swrapper elapsed):202built (202compiled,0from cache),3,755journaled already,16being built by another process (3,973entries total;3,755.binfiles on disk — duplicate SPIR-V hashes across entriesASSUMED),0failed,1,480/1,480left out via--skip-listed. Overlap witht4-5080-base-warmjournal files:950/951.02f71ccfe + #2392 head f896a16f4, fresh cold runtime cache per run,Seconds=180):A = LEONIDA_PIPELINE_JOURNAL_SEED_DIR=(unseeded) vsB = LEONIDA_PIPELINE_JOURNAL_SEED_DIR=<per-GPU #2392 seed folder>(seeded).LEONIDA_SKIP_COMPUTEunset during boot in all 6 runs.rate)rate).bincompiled in-gameVK_ERROR_DEVICE_LOSTt4-2392-A-1t4-2392-B-1t4-2392-A-2t4-2392-B-2t4-2392-A-3t4-2392-B-3MEASURED, n=3 per arm): PREDICTION HELD. Seeding cut in-game.bincompiles from1,721 / 1,721 / 1,725to1 / 1 / 1(-99.94%; identity of the 1 remaining shaderASSUMEDto be the skipped>= 2 MiBentry), logged1,800+journal hits with0disabled warnings and0VK_ERROR_DEVICE_LOST, and lifted PresentX/s by+32.3%(arithmetic mean of unrounded per-run PresentX/s:12.44–13.09→15.31–18.28/s; median+33.7%, pooled+31.8%). Direction matched the pre-registered prediction; actual compile/hit volume (1,721–1,725/1,800+) was ~2.4× higher than the pre-registered~700estimate. Note (READ IN CODE, tested#2392merged3d12_vulkan_device.cpp:11706-11711): journal log lines print on the 1st event of each kind and every 100th, so exact.bincounts are reported alongside the log lower bounds.3. Open PR
#2275— Compile-Gate / Submit-Mutex Handoff (RTX 5080, 3+3 Cold)Seconds=300):A = 02f71ccfevsB = 02f71ccfe + #2275 (head e1bf0b8ae)(merged cleanly onto02f71ccfedespite overlapping#2412).rate)rate)count / total ms / longest ms)VK_ERROR_DEVICE_LOSTt4-2275-A-102f71ccfe)t4-2275-B-1+#2275)t4-2275-A-202f71ccfe)t4-2275-B-2+#2275)t4-2275-A-302f71ccfe)t4-2275-B-3+#2275)MEASURED, n=3 per arm): PREDICTION HELD. Even with#2412already inmain, B beat A in 3/3 cold runs: compute gate turned off in 3/3 B runs (0in A), compile-gate waits dropped from955 / 997 / 973(8,128–17,961 ms, longest up to9,616 ms) to2 / 4 / 7(95–287 ms, longest52–285 ms), ECLX/s rose+22.9%(arithmetic mean of unrounded per-run ECLX/s:26.88–29.65→32.40–36.41/s; pooled+23.0%, median+25.2%), andVK_ERROR_DEVICE_LOSTstayed0.4. Merged PR
#2412— Adaptive Compile Gate (RTX 5080, G3 Pack, 3+3 Default + 3+3 Exploratory Adaptive)READ IN CODE,f75b2b425runtime/src/vulkan_device_fault.h:536-545): At#2412's merge commit, unsetLEONIDA_COMPILE_GATEstill defaulted toclassic(adaptivewas opt-in viaLEONIDA_COMPILE_GATE=adaptive; a later PR addedauto, which selectsadaptiveorclassicby calibration). We ran both the pre-registered commit A/B (default env,4a) and an exploratory post-hoc single-variable mode A/B onf75b2b425(4b), all cold with fresh caches on the G3 (a3bafd05d) pack.4a. Pre-registered commit A/B (
a3bafd05dvsf75b2b425, default env =classic, cold)rate)rate)count / total ms / longest ms)VK_ERROR_DEVICE_LOSTt4-2412-A-1a3bafd05d)t4-2412-B-1f75b2b425)t4-2412-A-2a3bafd05d)t4-2412-B-2f75b2b425)t4-2412-A-3a3bafd05d)t4-2412-B-3f75b2b425)4b. Exploratory mode A/B (
f75b2b425, single variable:LEONIDA_COMPILE_GATE=classicvsadaptive, cold)rate)rate)count / total ms / longest ms)VK_ERROR_DEVICE_LOSTt4-2412ad-A-1classic)t4-2412ad-B-1adaptive)t4-2412ad-A-2classic)t4-2412ad-B-2adaptive)t4-2412ad-A-3classic)t4-2412ad-B-3adaptive)MEASURED, n=3 per arm):0VK_ERROR_DEVICE_LOSTin both arms; mean max hold8,648 msA vs8,495 msB, B shorter in 2/3 pairs). Pre-registered shorter-hold prediction was unmet / not refuted, explained byf75b2b425defaulting toclassic(READ IN CODE).TRACK4-AB-PLAN.md): WithLEONIDA_COMPILE_GATE=adaptive, B beatclassic3/3: paired max-hold ratio3.2×–5.7×(8,040–9,438 ms→1,405–2,499 ms), mean total wait-78.0%(32,454–34,167 ms→6,862–7,563 ms), compute gate off 3/3, mean ECLX/s+62.8%(14.14–15.38→22.28–26.08/s), and0VK_ERROR_DEVICE_LOSTacross all 12 runs.5. Merged PR
#2406— Device-Limit Bindless Arrays (Windows AMD Radeongfx1036, G1 Pack, 3+3)fac8b4bb9--wave64-emulate off, cold fresh cache,Seconds=240):A = fac8b4bb9vsB = 20c46b646. Plan deviation: built without--pc-tail-ubo(see Section 1).2D / samp / 2D-arr / 3D / 1D / stor2D)VK_ERROR_DEVICE_LOSTt4-2406-A-1fac8b4bb9)t4-2406-B-120c46b646)t4-2406-A-2fac8b4bb9)t4-2406-B-220c46b646)t4-2406-A-3fac8b4bb9)t4-2406-B-320c46b646)MEASURED, n=3 per arm): Part (1) HELD; Part (2) not reached. All 6 runs created the device and bindless set cleanly (0ECL fail,0VK_ERROR_DEVICE_LOST); B scaled2D-array16,384 → 65,536(4×) and3D/1D4,096 → 65,536(16×).MEASURED: compile-gate waits consumed36.9–213.4 sof each run (0array-full events in either arm; causal link to predating#2407/#2412taggedASSUMED).6. Merged PR
#2404— Write-Watch Shadow Write-Back (Windows AMD Radeongfx1036, G1 Pack, 3+3)READ IN CODE): Built without--pc-tail-ubo(see Section 1) and reused the G1 native-wave64 pack (fac8b4bb9) instead of translating a separate G2 (011d446c3) pack.git diff fac8b4bb9..011d446c3outsideruntime/,docs/, andtests/touches onlytools/wave64_emulate_opt.py:plan_structured_emulation, which at bothfac8b4bb9and011d446c3is guarded byif g.emulate:(tools/rdna2spirv.py:18865-18871) and never called under--wave64-emulate off(exact byte identity was not hash-checked). All 6 runs started from fresh copies of the same warmed cache snapshot (1,092.bin, warmup write-back0 KiB),Seconds=240.went back to title pages, lower bound)null_write / other)VK_ERROR_DEVICE_LOSTt4-2404-A-1011d446c3)t4-2404-B-1e5a7c8942)t4-2404-A-2011d446c3)t4-2404-B-2e5a7c8942)t4-2404-A-3011d446c3)t4-2404-B-3e5a7c8942)MEASURED, n=3 per arm): Write-back reduction HELD; load CPU-fault trigger not hit. On native Windows (which exercises the write-watch path), B reduced logged write-back from611 / 611 / 19,239 KiB(3 / 3 / 5lines) in A to0 / 0 / 0 KiB(0lines; plus0 KiBin warmup), with0ECL fail and0VK_ERROR_DEVICE_LOST(device_stall_lines=1occurred equally inA-1,B-1,A-2, andB-2). All 6 runs had0non-null-write access violations; inA-1andB-1, an armed-watchdog null-write occurred afterlast_submit_phase_t(72 s/63 s), entered the runtime's unhandled-exception session-cache write handler (unhandled_cache_write_lines=1), and the process remained alive untilboot.ps1stopped it at241 s.7. Merged PR
#2407— Incremental Descriptor Heap Slot Refresh (RTX 5080, G1 Pack, 3+3 Default + 3+3 Warmup-Capped)Seconds=240): All 6 runs (A-1..320c46b646andB-1..3627163c8e) reached the241 stime limit (205–209PresentX A vs203–205B;411–420ECLX A vs406–411B) with0VK_ERROR_DEVICE_LOST(vk_device_lost_lines=0in all 6). Each run logged1device-stall(15–23device-fault: submitted dispatchlines per run in both arms) alongside compile-gate waits totaling216.5–218.6 s(longest19.3–19.6 s; blocking behind pre-#2412compute warmupASSUMED). B logged8,926–9,185V# halves recorded (logged by B only).LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072in BOTH arms perdocs/running.md,Seconds=240):rate)rate)submit phasesheaps (avg median / single max ms)n / med / max)device-stall(dispatch lines)VK_ERROR_DEVICE_LOSTt4-2407s-A-120c46b646)t4-2407s-B-1627163c8e)t4-2407s-A-220c46b646)t4-2407s-B-2627163c8e)t4-2407s-A-320c46b646)t4-2407s-B-3627163c8e)MEASURED, n=3 per arm, 6+6 across Rounds 1+2): Device-loss part HELD; slot-cost part PROVISIONAL; submission-rate part MISSED.HELD):0VK_ERROR_DEVICE_LOSTacross all 12 runs (6A +6B). In Round 2t4-2407s-A-3, the64device-fault: submitted dispatchlines came from1device-stalldiagnostic (vk_device_lost_lines=0), and its watchdog exit is inferred fromaccess_violation_counts={null_write: 1, other: 0}andunhandled_cache_write_lines=1(pr2407_story_ab_sanitized.jsonupdated to match).PROVISIONAL): Median0.157–0.241 ms/ max7.534–21.869 msacross12windows per run (392,817–412,636V# halves recorded in B), well below1,000 ms; markedPROVISIONALbecause the pre-registered gate required arm A to reach story load, which the records do not establish without peek states (story loadASSUMED).MISSED): The pre-registered prediction that B maintains submission rate>= Amissed in both rounds — Round 2 B ECLX/s was25.71–26.48/svs A27.75–28.86/s(-7.6%mean from unrounded per-run rates, lower in 3/3; PresentX/s-7.7%mean), and Round 1 B ECLX was406–411vs A411–420. In Round 2, noCPU release filterline was logged in A (cpu_release_filter: null), whilesubmit phasesheapstime was higher in B (avg median3.98–4.62 msandsingle max 309–340 msin B vs3.40–3.53 msand18–92 msin A).8. Open PRs
#2402,#2405, and#23678a.
#2402(02f71ccfevs02f71ccfe + #2402 head 35eb7b4a4, RTX 5080 G0 warm, 2+2,PROVISIONAL)rate)rate)submit phasestVK_ERROR_DEVICE_LOSTt4-2402-A-102f71ccfe)t4-2402-B-1+#2402)t4-2402-A-202f71ccfe)t4-2402-B-2+#2402)PROVISIONAL, n=2 per arm): Both B runs had lower ECLX/s (-3.2%mean from unrounded per-run rates:27.31–28.40vs28.74–28.79/s), with0VK_ERROR_DEVICE_LOSTin both arms. All 4 runs ended on armed watchdog exit31–42 safter the last submit-phase line (matching the#2275cold runs); with the watchdog armed, a stall cannot be distinguished from the title's own stop, and sustained play was outside the observed window.8b.
#2405(02f71ccfe + #2405 head cf30c0a1f, tree matches GitHub test merge931dac94f)MEASURED): In every RTX 5080 run onmain(includingt4-5080-kick-probe), the pre-registered A-arm gate (> 0UpdateTileMappingscalls) failed (0UpdateTileMappingscalls in all JSONtile_mappingsfields;0CreateReservedResourcecalls is one agent's localMEASURED), so no game-run A/B was run.MEASURED,d3d12_buffer_tiles_testbuilt from02f71ccfe + #2405,LEONIDA_VK_VALIDATION=1):616.64, tiled resources tier 4):rc=0,0VUIDs; exercised the excluding device mask (dedicated type 1, arena type 4, device mask 2, mixed mask 18); reserved-image separation case skipped (reasondevice cannot create reserved textureis one agent's localMEASURED);12/12full tiles matched in Vulkan replay;3/3Native D3D12 GPU readbacks matched.gfx1036(32.0.21030.2001, tiled resources tier 3):rc=0,0VUIDs; exercised the including device mask (dedicated type 0, arena type 2, device mask 15, mixed mask 5); reserved-image separation case skipped;12/12full tiles matched in Vulkan replay;3/3Native D3D12 GPU readbacks matched.8c.
#2367(Host-side Part 1 —02f71ccfevs02f71ccfe + #2367 head 1860dc591, CPU/Python, no game files)02f71ccfe + #2367):test_rdna2spirv_spawn_quota.py5/5 OK (14.65 s);test_translate_pipeline_compute.py WorkerParity3/3 OK (6.35 s).02f71ccfecontrol, running B's new test file againstmain's tools): 3/5 passed, 1 failure + 1 error (WinError 1816reproduced).MEASURED): Part 1 HELD. (Part 2 full-translation memory-pressure stress run not performed in this batch.)No game files, logs, traces, captures, shader/program names, RVAs, or local paths are included. Numeric tables, run counts, citations, and rate deltas were independently recomputed from the count-only JSONs by second agents Claude Opus 5.5 and Codex GPT-6.2-Sol (raw logs not re-read by second agents); mechanically leak-scanned (
0hits).Mike7581 commentedon Nov 28, 2026
Cold: "first-run UI", crash on unmapped memory. Warm: "story load", null read elsewhere. The crash moves between runs, so it does not look like one fixed defect. Logs are kept on this machine.
Written with AI assistance (Claude Opus 5.5); figures taken from my own two run logs.
HasiKe commentedon Nov 28, 2026
Baseline of the D3D12 runtime (
d3d12/) on an 8 GB NVIDIA desktop card. Four runs on one machine, all ending inplay(the user walked in the open world). The frame rate is what the F3 panel showed, as the user read it out.LEONIDA_MEMORY_CARD_MB=1536 LEONIDA_CARD_BUFFERS_MB=768 LEONIDA_TEXTURE_BUDGET_MB=1536LEONIDA_TITLE_GRAPHICS=performanceWhat it shows (MEASURED on this machine, n=1 each):
LEONIDA_TITLE_GRAPHICS=performancewas not A/B'd on its own: runs 2 and 3 were not read out the same way.Next on this machine: one run with
LEONIDA_GPU_TIMING=1(slow lists logged) to see which lists take the card's time.