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 ProjectLeonida/mandy --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 / tested so far |
|---|---|---|
| #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 at 012b79a67) |
Tested on RX 7900 XTX Linux RADV (7.4–13.9 fps opening, 5.3–7.4 fps play, 0 faults across 20 min) and Windows 11 RX 7900 XTX (better: 60.1 → 30.1 subs/s, ~9.3 → ~3.8 ms/f heaps in menu, 0 faults). Watch for: GPUVM faults/stalls, VRAM / page-mirror spill, and rebuilt-pack regressions across Windows NVIDIA, Windows AMD (into play), and 8–16 GB cards |
| #2714, #2715 | D3D12 runtime: faster BCPack BC7 LUTs and SWAR BC1/BC3/BC4/BC5 post-processing | Corrupted BCn textures or streaming regressions in D3D12-runtime play runs |
| #2692, #2693 | D3D12 runtime: landing-pool limit checked once per batch; texture/staging pools grow with lock released | Frame-pacing changes, stalls, or races during heavy streaming in D3D12-runtime play runs |
| #2662 | D3D12 shader: Wave64 loop convergence, lane provenance, and wide/sub-dword paired LDS | Shading/geometry differences or compile regressions in D3D12-runtime play runs |
| #2649 | Programmable sample positions only for multisampled targets (RT-SAMPLE-LOCATIONS-MSAA-ONLY) |
1x depth/shadow artifacts or Vulkan validation errors across vendors |
| #2615 | D3D12 runtime: FSR 3 frame generation for cards without DLSS FG | Frame pacing, HUD artifacts, or crashes on AMD and older NVIDIA cards in D3D12-runtime runs |
| #2599 | Windows boot defaults to LEONIDA_DEVICE_FAULT=2 so NVIDIA boots read the precompiled compute journal |
Journal hits on Windows NVIDIA boots and fault diagnostics still firing on device loss |
| #2508 | present_compose: premultiplied sRGB and additive alpha plane 1 decoding |
2D / loading-screen / UI alpha and brightness regressions across SDR and HDR presenters |
| #2407 | Per-slot records for the console descriptor heaps | Tested on RTX 3090 24 GB (0 device losses, 2+2, PROVISIONAL) and RTX 5080 16 GB (0 device losses across 12 runs, -7.6% ECLX/s and 309–340 ms max heaps in warm Round 2). Still watch for NVIDIA device losses or heaps spikes in play |
| #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 | Tested on Windows AMD Radeon gfx1036 (3+3 warm: write-back 611–19,239 KiB → 0 KiB, 0 faults). Watch for missing GPU-written data and Windows vs Wine differences |
| #2406 | Bindless table limits raised to 65,536 | Tested on Windows AMD Radeon gfx1036 (3+3 cold: 0 ECL fail, 0 device lost). Watch for start-up failures or lost textures on drivers with small limits |
| #2418 | A write-back that faults no longer re-takes its lock | Tested on RTX 4070 Laptop 8 GB (better: stall at 290 s → play through 648 s, n=1). Watch for the freeze after world load on other 8 GB cards |
| #2440 | LEONIDA_ASYNC_MIN_BYTES |
Only with the variable set: stalls while pipelines compile |
| #2412 | Adaptive compile gate, now the default | Tested on RTX 5080 16 GB (3+3 exploratory classic vs adaptive cold: worst hold 8,040–9,438 ms → 1,405–2,499 ms, ECLX/s +62.8%, 0 device lost). Watch on old NVIDIA drivers |
| #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 |
Tested on RTX 4070 Laptop 8 GB (same: play 600 s, 0 device lost). Watch for graphics draw skips vs compile stalls on other GPUs when set |
| #2468 | Write-back tile reopen after faulting copy | Tested on RTX 4070 Laptop 8 GB (same: play 600 s, 0 device lost). Watch for missing GPU-written data or write-back hangs on other 8 GB cards |
Open: waiting for a game run before they can be merged
| PR | What it does | Needs / tested so far |
|---|---|---|
| #2275 | Vulkan runtime: warm-up creates no longer hold the compile gate | Tested on Windows 11 RTX 5080 16 GB (3+3 cold: waits 955–997 → 2–7, ECLX/s +22.9%, 0 device lost) + Wine synthetic checks on RTX 4070 SUPER & Radeon 610M. Needs additional GPUs / game runs (after small test-comment merge with main) |
| #2392 | make_game.py --stages pipelines fills the runtime's own journal (main merged in) |
Tested on Windows 11 RTX 5080 16 GB (3+3 cold A/B: in-game compiles 1,721–1,725 → 1, PresentX/s +32.3%, 0 device lost) + real-library precompile on RTX 3080 10 GB & RTX 5070 12 GB. Needs cold-start game runs on AMD and Linux RADV |
| #2402 | Vulkan runtime: retirement records read under their own lock | Tested on RTX 3070 Ti 8 GB (Linux+Wine, same through world load), RTX 5080 16 GB (Win11, 2+2 warm, -3.2% ECLX/s in short boots, PROVISIONAL), and Windows 11 RX 7900 XTX 24 GB (same: 30.0 vs 29.6 fps menu, 0 faults). Needs sustained play runs across GPUs |
| #2645 | Vulkan runtime: sparse buffer memory types checked before sharing tile heaps (supersedes #2405) | Synthetic/unit tests passed on Intel Arc Pro B60, RTX 4090, RTX 3090, RTX 4070 SUPER, RADV (plus prior #2405 boot runs on RTX 3060 Ti / 3070 Ti / 5080 / RX 7900 XTX). Needs a game run that exercises UpdateTileMappings on NVIDIA, AMD, and Intel |
| #2367 | Translator restarts a tool when a Windows job refuses it (ERROR_NOT_ENOUGH_QUOTA) |
Part 1 unit / worker-parity / Win32 Job Object checks passed on 4 Windows 11 machines. Needs a full Windows shader-pack translation under memory pressure |
| #2126 (draft) | Vulkan runtime: decline file-backed / multi-VMA host imports under Wine (RT-WINE-HOST-IMPORT-POLICY) |
Tested on RTX 3070 Ti 8 GB Linux+Wine (better: fixes 24–28 s vkAllocateMemory -1 / E_OUTOFMEMORY crash with LEONIDA_XMEM_BACKING_DIR, saves ~6.6 GiB RAM). Needs additional Linux/Wine NVIDIA & AMD runs |
| #2572 | Vulkan runtime: write watching on by default under Wine too (RT-WRITE-WATCH-WINE-DEFAULT) |
Unit-checked on Windows. Needs Linux/Wine game-run A/B on RADV and NVIDIA to verify MEM_WRITE_WATCH behaviour and performance under Wine |
| #2651 | Vulkan runtime: compile pool defaults to 2 large builds and sizes from the affinity mask | Synthetic checks on RTX 4090 & Wine. Needs cold-start game runs on 8–16 GB RAM and high-core-count CPUs to verify lower peak RAM without compile stalls |
| #2670 | D3D12 runtime: keep RDNA2's 2 GB aperture segment from filling (D3D12-RDNA2-APERTURE-SEGMENT) |
Fixes device lost at the first heavy scene with LEONIDA_RELAY=2 on RDNA2. Needs Windows AMD RDNA2 (RX 6000) and RDNA3 play A/B runs |
| #2694 | D3D12 runtime: serialize driver PSO creation on AMD (D3D12-PIPELINE-CREATE-LOCK-AMD) |
Fixes deterministic amdxc64.dll crash / internal error during multi-thread early compile on RDNA3; synthetic/Wine cache round-trips checked on RTX 4090 & AMD Wine. Needs native Windows AMD cold/warm game runs |
| #2622 | D3D12 runtime: prioritize pipelines a frame is waiting for ahead of background queue (D3D12-PIPELINE-WAIT-QUEUE) |
Initial provisional A/B runs on RTX 4070 Laptop 8 GB and RTX 4080 Laptop. Needs additional cold/warm play A/B runs across NVIDIA & AMD |
| #2643 | D3D12 runtime: separate upload VA from BVH arenas so DLSS FG runs with ray tracing (D3D12-RT-FG-ARENA-VA-STORM) |
Unit-tested on RTX 3090. Needs RTX 40/50 series game runs with DLSS Frame Generation + RT enabled |
| #2580, #2581 | D3D12 runtime: compute fallback for mesh shaders and geometry-stage fallback for barycentrics | Unit/GPU tests verified on Windows/macOS. Needs game runs on pre-Turing NVIDIA (Pascal/Maxwell) or mesh-shader-tier-0 GPUs |
| #2589 | D3D12 runtime: render-target reserve expires once targets settle (LEONIDA_CARD_ROOM_FOR_TARGETS_SETTLE_MS, off by default) |
Needs 8 GB GPU play A/B runs (with the env var enabled) to measure VRAM headroom and frame pacing |
| #2688 | D3D12 shader: double-buffer wave64 exchange banks to halve loop barriers | Synthetic DXIL/GPU check on RTX 4090. Needs play A/B runs (with rebuilt shader cache) for GPU frame-time impact and visual parity |
| #2699 | D3D12 runtime: AVX2 fast paths for shadow merge, back_piece, and changed_runs |
Microbenchmarked on Windows & Wine. Needs play A/B runs with LEONIDA_RELAY=1 and LEONIDA_LAND=1 to confirm CPU frame-time gain and visual parity |
| #2577 | Linux: build leonida.exe and run it under Proton or Wine |
Needs Linux Proton/Wine game runs on RADV and NVIDIA (including VKD3D-Proton v3.1+) to verify end-to-end build and launch |
(Removed from open list: #2566 merged at 012b79a67, #2260 merged, #2405 closed as superseded by #2645, #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 stack ([integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566) landed on
mainat012b79a67(currentmainhead:b17b22d33). Rebase open branches onto currentmainbefore final verification. - 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 ProjectLeonida/mandy --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 onmain(landed via [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 at012b79a67), so the recorder can wire them directly. 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 (merged) and d3d12: enforce Vulkan BC image-view compatibility classes #2223 (open) 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) — merged PR: #2508; open PRs: #2001, #2014
- 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: present_compose: fix premultiplied sRGB and additive alpha plane 1 decoding #2508 merged; Preserve sRGB midtones on the SDR UNORM swapchain fallback #2001 and Treat BGRX overlays as opaque in PresentX composition #2014 open); 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 (now onmainat012b79a67; 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) — merged PR: #1179; open PRs: #2479, #2480, #2482, #2483
- What: walk the format table and view rules against D3D12 and the console's extras; vulkan_replay: sRGB render-target clears are encoded in the layer, as WARP encodes them (D3D-CLEAR-SRGB-ENCODE) #1179 merged; 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, 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) — merged PRs: #2473, #2476, #2089; open PRs: #2474, #2475, #2477, #2023, #1695, #1774
- What: the same for pipeline state and samplers: native pipeline state (native_pso: a single-sided stencil PSO keeps its depth/stencil/raster state (RT-STATE-DEPTH-RASTER-BACKFACE-MASK) #2473, d3d12_xs: derived PSO overlays reach DEPTH_STENCIL2 and RASTERIZER1/2 (RT-STATE-PSO-OVERLAY-DS2-RS12) #2476 merged), 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, d3d12: a depth-bounds test without a DSV is dropped, not refused (RT-STATE-DEPTH-BOUNDS-NO-DSV) #2474, d3d12: depth bounds and back-face stencil masks in a stream's pipeline keys (RT-STATE-PIPELINE-KEY-DS2) #2477), 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 merged; gfx10: anisotropy only for aniso filters, held to maxSamplerAnisotropy (RT-STATE-SAMPLER-ANISO) #2475 open), 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). - 2026-11-30: moved merged [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 (landed on
mainat012b79a67; currentmainb17b22d33) into the recently-merged regression table alongside newly merged high-impact PRs (present_compose: fix premultiplied sRGB and additive alpha plane 1 decoding #2508, Windows boot: LEONIDA_DEVICE_FAULT=2 by default, so a boot on NVIDIA reads the precompiled compute journal (BOOT-DEVICE-FAULT-2) #2599, d3d12: FSR 3 frame generation for cards without DLSS frame generation (D3D12-FSR3-FRAMEGEN) #2615, runtime: programmable sample positions only for multisampled targets, so 1x depth images stay plain (RT-SAMPLE-LOCATIONS-MSAA-ONLY) #2649, d3d12-shader: Wave64 loop convergence, lane provenance, and wide/sub-dword paired LDS (D3D12-SHADER-PAIRED-WAVE64-EXACTNESS) #2662, d3d12: a landing pool asks its limit once a batch, and parks no thread without LEONIDA_AB (D3D12-LAND-POOL-LIMIT-ONCE) #2692, d3d12: blocks of textures and staging buffers are made with their pool's lock released (D3D12-POOL-GROW-UNLOCKED) #2693, D3D12-FORMATS-BC7-POST-LUTS: 2.4x faster BCPack BC7 block loop (index tables, one put per field) #2714, D3D12-FORMATS-BCN-POST-SWAR: eight-byte-wide BC1/BC3/BC4/BC5 block loop after the BCPack lanes (1.1-1.3x) #2715); replaced closed d3d12: check sparse buffer memory_types before sharing the tile arena #2405 with its successor d3d12: respect sparse buffer memory types when sharing tile heaps (D3D12-SPARSE-BUFFER-HEAP) #2645; recordedtested:/RUNhardware reports from comments on d3d12: console heap slots record what their V#s resolved to; a release re-fixes only the slots naming it (RT-VSHARP-SLOT-RECORDS) #2407, d3d12: the title write-back asks the write watch first and copies back only the bytes a copy changed (RT-TITLE-WRITEBACK-STALE-BYTES) #2404, bindless: size every sampled dimension alike and name a full array as its own refusal (RT-BINDLESS-DIMENSION-LIMITS) #2406, d3d12: a write-back that faults does not take its tracker's lock again (RT-WRITEBACK-FAULT-RELOCK) #2418, compile gate: adaptive per kind of create, re-armed by a held submission (RT-COMPILE-GATE-ADAPTIVE) #2412, 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, d3d12: warm-up creates no longer hold the compile gate (RT-COMPILE-GATE-WARMUP-FREE) #2275, make_game: the pipelines stage fills the runtime's own journal with gta6rt --precompile-pipelines (MAKE-GAME-PIPELINES-VIA-RUNTIME) #2392, vulkan: read the retirement records under their own lock (RT-RETIRE-TICKET-LOCK) #2402, rdna2spirv: start a tool again when a Windows job refuses it with ERROR_NOT_ENOUGH_QUOTA (COMPUTE-WORKER-SPAWN-QUOTA) #2367, [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566; added newly opened high-impact Vulkan & D3D12 runtime PRs needing game runs (d3d12: decline file-backed/multi-VMA host imports under Wine and deduplicate import memory types (RT-WINE-HOST-IMPORT-POLICY) #2126, runtime: write watching on by default under Wine too (RT-WRITE-WATCH-WINE-DEFAULT) #2572, Linux: build leonida.exe and run it under Proton or Wine #2577, d3d12: mesh pipelines draw through compute on a GPU without mesh shaders (D3D12-MESH-COMPUTE-FALLBACK) #2580, d3d12: pixel shaders read barycentrics through a geometry stage on a GPU without them (D3D12-BARYCENTRICS-FALLBACK) #2581, Render-target reserve expires once the targets settle (LEONIDA_CARD_ROOM_FOR_TARGETS_SETTLE_MS, off by default) #2589, d3d12: a pipeline a frame waits for goes before those asked for earlier (D3D12-PIPELINE-WAIT-QUEUE) #2622, d3d12: separate upload VA from BVH arenas so DLSS FG runs with ray tracing (D3D12-RT-FG-ARENA-VA-STORM) #2643, d3d12: compile pool defaults to 2 large builds and sizes from the affinity mask #2651, d3d12: keep RDNA2's 2 GB aperture segment from filling (device lost at the first heavy scene with relay 2) #2670, D3D12-SHADER-DOUBLE-BUFFERED-EXCHANGE: double-buffer wave64 exchange banks to halve loop barriers #2688, D3D12-PIPELINE-CREATE-LOCK-AMD: serialize driver PSO creation on AMD #2694, D3D12-GPU-SHADOW-AVX2-MERGE-AND-RUNS: AVX2 fast paths for shadow merge, back_piece, and changed_runs #2699); updated Part B base/status refs for merged rendering-package PRs (vulkan_replay: sRGB render-target clears are encoded in the layer, as WARP encodes them (D3D-CLEAR-SRGB-ENCODE) #1179, gfx10_descriptors: clamp sampler maxLod >= minLod and guard DERIV_ADJUST_EN integer border (VK-SAMPLER-LOD-ORDER-AND-DERIV-ADJUST) #2089, native_pso: a single-sided stencil PSO keeps its depth/stencil/raster state (RT-STATE-DEPTH-RASTER-BACKFACE-MASK) #2473, d3d12_xs: derived PSO overlays reach DEPTH_STENCIL2 and RASTERIZER1/2 (RT-STATE-PSO-OVERLAY-DS2-RS12) #2476, present_compose: fix premultiplied sRGB and additive alpha plane 1 decoding #2508) and repo URL (ProjectLeonida/mandy).
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.
8 remaining items
bobcatchris commentedon Nov 29, 2026
Windows AMD RX 7900 XTX (Profile L) baseline on
main(791899f65) — first native Windows AMD report fordocs/running.md("Windows, AMD" is currently TBD). Both runs were unattended (first-run UI/menu, no user input); 0 faults, 0 device losses, 0 crashes.tested: #2566 on AMD Radeon RX 7900 XTX 24 GB (Windows 11, driver 32.0.32029.2010), better: first-run UI / menu (30.0 fps, 60.1 subs/s, ~9.3 ms/f heaps) / first-run UI / menu (30.0 fps, 30.1 subs/s, ~3.8 ms/f heaps, 0 faults) — full A/B
RUNblocks posted on #2566.bobcatchris commentedon Nov 29, 2026
tested: #2402 on AMD Radeon RX 7900 XTX 24 GB (Windows 11, driver 32.0.32029.2010), same: first-run UI / menu (30.0 fps, 0 faults) / first-run UI / menu (29.6 fps, 0 faults; retire_ticket_lock_test PASS, GPU direct latency 0.64 ms vs 0.74 ms) — RUN blocks on #2402. AI-assisted: Antigravity (Gemini 4 Neon).
bobcatchris commentedon Nov 29, 2026
tested: #2405 on AMD Radeon RX 7900 XTX 24 GB (Windows 11, driver 32.0.32029.2010), same: first-run UI / menu (30.0 fps, 0 faults) / first-run UI / menu (30.0 fps, 0 faults; d3d12_buffer_tiles_test PASS) — RUN blocks on #2405. AI-assisted: Antigravity (Gemini 4 Neon).
CnKabii commentedon Nov 30, 2026
Windows NVIDIA gameplay run — RTX 5070 Ti Laptop, Series S at 720p
The tester observed stutters during play while waiting for the scene to render. The frame rate held steadier when the camera stayed still. The log also shows short sections around 19 FPS and several severe drops, including 0.9 and 0.8 FPS samples near the end. Camera actions were not timestamped, so individual drops could not be matched to specific inputs. The ~60 FPS startup/menu samples were excluded from the gameplay summary.
Windows reported memory pressure during the transition into play and the runtime reduced texture prefetch. Peak reported dedicated VRAM use was 8,567 MB against a 10,632 MB budget at that time. These observations do not identify the cause of the stalls.
The 15.7 FPS figure is the median of periodic snapshots from the steadier segment. This run did not capture per-frame timings or a full-route average.
lerapeurdu62280-debug commentedon Nov 30, 2026
Baseline on
main, Windows AMD (docs/running.mdsays no public Windows AMD game run is known yet), cold caches. A warm run follows.What held the frame in the world: 81 compute pipelines were made in play, each logged
the library did not load itwithE_INVALIDARG(0x80070057) from the pipeline library on this AMD driver; 45 of them took over 1 s, most 5-9 s, the longest 171 s. When the device went, several of those makes were in flight and the submitting thread was preparing one list (nothing of ours on the card). Details in #2585.Contribution : EI S.O.S INFO LUDO
lerapeurdu62280-debug commentedon Nov 30, 2026
Second baseline run, warm (follows #2464 (comment)).
69 pipelines were still made in play, each with the pipeline library refusing to load its entry (
E_INVALIDARG). Next: the same machine and recipe with #2670 (RDNA2 aperture segment; its description is this failure:0x887A0007, empty DRED, nothing of ours on the card).Contribution : EI S.O.S INFO LUDO
lerapeurdu62280-debug commentedon Nov 30, 2026
tested: #2670 on RX 6600 8 GB (Windows, AMD 32.0.21045.29003), better (n=1, caches not equal, see the PR): story load + device lost at ~180 s / play ~290 s, closed by hand, no device lost. RUN blocks: #2670 (comment)
Contribution : EI S.O.S INFO LUDO
lerapeurdu62280-debug commentedon Nov 30, 2026
tested: #2670 on RX 6600 8 GB (Windows, AMD 32.0.21045.29003), better, same emptied caches for A and B: world load + device lost at ~267 s / play through ~625 s, closed by hand, no device lost. #2670
Contribution : EI S.O.S INFO LUDO
aznohonza commentedon Dec 1, 2026
A baseline from one more machine, Linux + Wine + NVIDIA, which running.md does not cover yet.
Two more warm runs from the same overlay and journal are context, not blocks: one drew the city night street with its credits at t~1800 s, then the cgroup OOM-killed it at 22.2 GB peak; the run before it (default arenas) was OOM-killed at 22.3 GB, 21 min in. The 1024/2048 arenas are what keeps a run at 19-20 GB. The screenshots and the logs stay local.
The stall is the interesting one: it starts right after the pipeline-compile burst for that scene, with every gate met except the one held, and the title waiting on it from the CPU. If this is a known case of the list-value gates (the stalled rule needs the title quiet, and here the title was quiet but a write group or a queue hold may have counted as progress), a hint on which counter to watch would let us test the next run against it.
AI-assisted.
aznohonza commentedon Dec 1, 2026
Two more runs on the same profile, the other side of run23's stall: with the list values off, the same scene draws
further and the device is lost instead of the title waiting. One variable against run23 in both.
So on this card the same scene has two ends: run23 waits in one held console value for 101 minutes (gates on), and
runs 24/25 lose the device 8-40 s after the same kind of frame (gates off). Both runs 24 and 25 were also close to
their host-memory limits when it happened (23.6 GB of 24 GB in run25), and the earlier runs spilled VRAM to host
memory once the 12 GB card was full, so host-memory pressure and the device loss may be connected; the fault report
gives no address to say so on its own. Cache files, overlay, saves and screenshots stay local.
AI-assisted.
lixonik commentedon Dec 1, 2026
Step 1: Baselines on
main(a596adfac) -- Windows 10 + NVIDIA RTX 5070 12 GB (driver 621.40)D3D12 runtime (
d3d12/,diagbuild withdiagnostics,dlss,mimalloc, DLSS v310.9.16, Streamline v2.14.16)Vulkan runtime (
runtime/, post-#2566check on Windows 10 + NVIDIA RTX 5070 12 GB)Step 2: Pull request A/B test summaries (all on RTX 5070 12 GB, driver 621.40, base
a596adfac)tested: #2643 on RTX 5070 12 GB, better: play 0.2 fps (5391 ms, stuck at 13 arenas) / play 9.8 & 9.6 fps (101.8 & 104.0 ms, 20 arenas, RT + DLSS FG 2x, +5700% in 3000-4999 draws)(full RUN blocks)tested: #2699 on RTX 5070 12 GB, better (provisional n=2 pairs, LEONIDA_RELAY=1 + LEONIDA_LAND=1): play 29.1 & 21.6 fps (34.4 & 46.1 ms) / play 39.5 & 22.9 fps (25.4 & 43.5 ms, faster in 3/3 compared draw buckets, 0 errors)(full RUN blocks)tested: #2688 on RTX 5070 12 GB, same (provisional n=2 BAAB pairs, Series X rebuilt shader cache, CPU-bound gpu_wait 0.1-0.2 ms): play 20.4 & 18.8 fps (49.1 & 53.5 ms) / play 18.5 & 20.2 fps (54.4 & 49.6 ms); better cold driver PSO compile (371 s -> 328 s, median 669 -> 515 ms, 0 translation regressions)(full RUN blocks)tested: #2645 on RTX 5070 12 GB, same (boot + VVL/sync GPU tile tests on 621.40): first-run UI / menu 120 s (0 faults) / first-run UI / menu 120 s (0 faults; UpdateTileMappings not invoked during menu boot; buffer & texture tile tests 2/2 passed with VVL+sync) ([full RUN blocks](https://github.com/ProjectLeonida/mandy/pull/2645#issuecomment-7300505026))AI-assisted: Antigravity.
docs/boot.md: tell a compile stall, a held value and host memory apart
docs/port_status.md: the measured list-values pair past the world load
docs/running.md: a Linux + Wine + NVIDIA profile that draws world fra…