Skip to content

Work needed: game-run tests of important PRs, and rendering packages (kept up to date) #2464

Backlog

Description

@aslan2142

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 main and 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 in docs/running.md, with no deviations you cannot name.
  • Run it twice with the same recipe: once with cold caches, once warm.
  • Post one RUN block per run (format in docs/agent_collaboration.md, "Three blocks") as a comment on this issue. Fill in BASE (the short commit of main), MACHINE, RECIPE, END, CACHES and 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 RUN blocks 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

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 main and 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.h
  • runtime/src/title_*watch.h, title_mirror*.h, title_frames.h, title_va_alias.h, arena_*.h
  • runtime/src/console_heap_slot_records.h, console_heap_fix.*, console_heap_gpu.h
  • runtime/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, the v_dot4 rules and scalar_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 an index.json (pass number, format, size). Today only the presented frame can be dumped.
  • Where: a new runtime/src/target_dump.h, one hook each in emit_commands (runtime/src/vulkan_replay.h); share the writer of present_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.py summarises and diffs two traces.
  • Note: draw markers (LEONIDA_DEVICE_MARKERS) and GPU time per pipeline (LEONIDA_GPU_PROFILE) are now on main (landed via [integration] PageMirror, GPU detile, async queue & RDNA2->SPIR-V performance stack (INTEGRATION-PERF-CPU-GPU-R6) #2566 at 012b79a67), so the recorder can wire them directly. One recorder only: talk to the holder of RT-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.h in 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 PICTURE block (like the RUN block of docs/agent_collaboration.md) and tools/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 of docs/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)

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 main shows 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

RT-PICTURE-STRAY-GEOMETRY: misplaced geometry, stray geometry in the sky (medium)

RT-TILED-LIGHTING-INPUTS: the slow tiled-lighting pass and its compute partner (large)

  • What: both took 85–230 ms a call on main and 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 on main at 012b79a67; RX 7900 XTX, Linux RADV, rebuilt shader pack), play is now GPU-bound (101–121 ms/f Direct GPU busy: 57–76 ms/f Mesh, 34–39 ms/f Compute, 5.6–8.9 ms/f Graphics; 5.3–7.4 fps in play, 7.4–13.9 fps opening sequence), and VRAM reached 21.3 GiB (14 page-mirror units / 448 MiB spilling 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

RT-STATE-AUDIT-PIPELINE: blend, depth, stencil, raster, samplers (medium) — merged PRs: #2473, #2476, #2089; open PRs: #2474, #2475, #2477, #2023, #1695, #1774

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 PICTURE block per class; a page in docs/ with classes and counts. NVIDIA translation is quartz-heron-58's and HasiKe's: the matrix reports, it does not fix.

Showing results, findings, merging

Pictures

  • Post shots and dumps on Discord, with a PICTURE block 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 rewrite and 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 main and passes with it, and runs or skips with 77 on RADV under Wine. Translator rules get an .asm fixture and a row in docs/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

AI-assisted (Claude Code, Claude Opus 5.5, Claude Fable 5.2, and Antigravity Gemini 4 Neon)

Activity

  1. OreoFR commented on Nov 27, 2026

    @OreoFR
    Collaborator

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

  2. BadgersMC commented on Nov 27, 2026

    @BadgersMC
    Contributor

    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.ps1 where 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.

    RUN RTX3060TI-2G-COLD | 2026-11-27 UTC | BadgersMC | AI-assisted: Codex
    BASE:        17d3af0b, clean main | shaders: reused Nov 24 pack
    MACHINE:     RTX 3060 Ti 8 GB desktop | NVIDIA 610.88 | Win11 26100 | 16 GiB RAM
    RECIPE:      shared recipe above | arena 2048 MiB | no precompile
    OS/DRIVER:   unchanged | limits above
    TARGET:      earliest rendered milestone and reason for stop
    PREDICTED:   no numerical prediction recorded for this baseline
    MEASURED:    splash window, before first-run UI or first frame | 9.42 s | peak job 5.28 GiB | starting commit headroom 8,928 MiB
    END:         harness commit guard, 1,582 MiB headroom and 5,137 MiB available physical RAM
    CACHES:      clean Leonida cache | only driver calibration saved, no pipeline cache to warm
    INSTRUMENTS: trace, memory probe, GPU latency, device fault diagnostics
    VERDICT:     repeat with this arena has no warm pipeline cache to test
    
    RUN RTX3060TI-512-COLD | 2026-11-27 UTC | BadgersMC | AI-assisted: Codex
    BASE:        17d3af0b, clean main | shaders: same pack
    MACHINE:     RTX 3060 Ti 8 GB desktop | NVIDIA 610.88 | Win11 26100 | 16 GiB RAM
    RECIPE:      shared recipe above | arena 512 MiB | no precompile
    OS/DRIVER:   unchanged | limits above
    TARGET:      get a first image and usable pipeline cache with the smaller arena
    MEASURED:    loading art before first-run UI | first present 9.64 s | duration 31.45 s | peak job 5.10 GiB
    END:         harness commit guard, 2,047 MiB headroom and 3,678 MiB available physical RAM
    CACHES:      clean Leonida cache | produced 42 pipeline files and one calibration file
    INSTRUMENTS: same as above
    VERDICT:     saved cache and confirmed a rendered splash; starting commit headroom 7,468 MiB
    
    RUN RTX3060TI-512-WARM | 2026-11-27 UTC | BadgersMC | AI-assisted: Codex
    BASE:        17d3af0b, clean main | shaders: same pack
    MACHINE:     RTX 3060 Ti 8 GB desktop | NVIDIA 610.88 | Win11 26100 | 16 GiB RAM
    RECIPE:      identical to RTX3060TI-512-COLD
    OS/DRIVER:   unchanged | limits above
    TARGET:      load the saved cache and compare the furthest startup milestone
    MEASURED:    loading art before first-run UI | first present 7.14 s | duration 32.38 s | peak job 5.64 GiB
    END:         harness commit guard, 1,859 MiB headroom and 3,270 MiB available physical RAM
    CACHES:      seeded with 42 pipeline files and one calibration file from the cold run; one compute journal hit reported
    INSTRUMENTS: same as above
    VERDICT:     cache reused; same visible milestone on this pair; starting commit headroom 7,683 MiB
    

    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.

  3. BadgersMC commented on Nov 27, 2026

    @BadgersMC
    Contributor

    Follow-up to the RTX 3060 Ti baseline above. I applied only #2405 at f0b86e19380c8af09569161e1a0bc0243125a738 to pinned main at 17d3af0b652c50d1c787e6341739144251dbaa12, 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, or CopyPageMappingsBatchX before 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.

  4. ERROR890 commented on Nov 27, 2026

    @ERROR890
    Contributor

    claiming: RT-FRAME-TRACE

    Taking the pass-and-draw trace package from part B (the RT-FRAME-TRACE block 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.py to summarise and diff two traces.

    Where: a new runtime/src/frame_trace.h (recorder, off by default), one hook in emit_commands (runtime/src/vulkan_replay.h, keep it to a call or two), a new runtime/test/d3d12_frame_trace_test.cpp, the tool under tools/, and a short entry in docs/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 main and 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 of RT-FAULT-DRAW-RESOURCE-RANGES and to the RT-PASS-TARGET-DUMP holder 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 main at 855c9c65b, with ctest and 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).

  5. lixonik commented on Nov 27, 2026

    @lixonik
    Contributor

    @ERROR890 For RT-PASS-TARGET-DUMP coordination: the PR is already open at #2466 (claimed and marked done in #1608; mirroring your RT-FRAME-TRACE claim in #1608 is worth doing as well since the issue header asks for claims there).

    On the runtime/src/vulkan_replay.h seam so the two hooks stay conflict-free:

    • runtime: add LEONIDA_TARGET_DUMP per-pass target dumper (RT-PASS-TARGET-DUMP) #2466 adds a single TargetDump* target_dump = nullptr; pointer on ReplayFunctions and small if (vk.target_dump) calls in emit_commands (after vk.end_rendering, vk.dispatch / vk.dispatch_indirect, and UAV barriers/clears), with adapter helpers placed in detail:: right after detail::current.
    • Frame numbering uses 1-based submit_phases::totals().present_serial + 1, and pass numbers are 0-based in emit_commands order 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 with index.json.

    AI-assisted (Antigravity, Gemini 4 Neon).

  6. ERROR890 commented on Nov 27, 2026

    @ERROR890
    Contributor

    @lixonik Thanks for the seam layout and numbering details on #2466. Confirmed:

    • Mirrored the RT-FRAME-TRACE claim in #1608.
    • Keeping runtime/src/vulkan_replay.h conflict-free with #2466 regardless of merge order: placing my pointer in the middle of ReplayFunctions (away from target_dump at the end), keeping all recorder helpers in a separate runtime/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.
    • Aligning frame numbers to 1-based submit_phases::totals().present_serial + 1 and pass numbers to 0-based in emit_commands order across the frame so (frame, pass) IDs match #2466's index.json 1:1.

    AI-assisted (Claude Code, Claude Opus 5.5 — architecture & review; DeepSeek Harness subagent — local test/verification; Gemini, Antigravity — coordination & prompt review).

  7. enlight3d commented on Nov 27, 2026

    @enlight3d
    Contributor

    Baseline on main for #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).

    RUN baseline-cold | 2026-11-27 14:58 UTC | enlight3d | AI-assisted: Claude Code (Claude Opus 5.5)
    BASE:        ec91d695c + none | shaders: make_game.py --stages check,shaders,runtime (wave64 emulation: auto, on for NVIDIA)
    MACHINE:     RTX 3090 24 GB, desktop | NVIDIA 621.40 | Windows 11 Pro 26300 | 64 GB
    RECIPE:      documented ("Windows, NVIDIA", mostly TBD, so scripts/windows-boot/boot.ps1 defaults) + DEVIATIONS: LEONIDA_PIPELINE_JOURNAL_SEED_DIR=<the precompile's journal>, LEONIDA_DEVICE_FAULT unset, LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072, LEONIDA_RT_AS=off, LEONIDA_SKIP_COMPUTE=<the 716 library programs over 2,500,000 B of SPIR-V>, LEONIDA_TITLE_WATCHDOG=0 + LEONIDA_TITLE_WATCHDOG_KICK=<local values>, LEONIDA_KEYBOARD_PAD=1, LEONIDA_CAPTURE_LIMIT=300 | precompile: yes, gta6rt --precompile-pipelines --smallest-first --max-bytes 2500000 --threads 10: 3,991 entries, 0 failed
    OS/DRIVER:   Windows defaults (GPU timeout not changed)
    TARGET:      how far | PREDICTED (written before the run): none written
    MEASURED:    story load (loading screens in the last captures) | duration 308 s | menus 25.6 frames/s median, 31.4 max; no frame from 218 s; 3,213 presents; at draw: 252 graphics pipelines needed, 230 compiled (555 s of compile time), 22 from a cache
    END:         process crash: access violation inside the NVIDIA shader compiler (nvgpucomp64.dll) during a graphics pipeline compile at draw; no device loss
    CACHES:      cold for the runtime's own caches (session, heavy and local journal moved aside); the precompiled compute journal used; NVIDIA's driver cache not cleared | RUN 1 of 2, same recipe
    INSTRUMENTS: LEONIDA_TRACE_PIPELINE_COMPILE=1, LEONIDA_DEV_OVERLAY=1, boot.ps1's --trace and --trace-d3d12, a capture every 60 frames
    VERDICT:     no prediction written
    
    RUN baseline-warm | 2026-11-27 15:03 UTC | enlight3d | AI-assisted: Claude Code (Claude Opus 5.5)
    BASE:        ec91d695c + none | shaders: as RUN baseline-cold
    MACHINE:     RTX 3090 24 GB, desktop | NVIDIA 621.40 | Windows 11 Pro 26300 | 64 GB
    RECIPE:      as RUN baseline-cold
    OS/DRIVER:   Windows defaults (GPU timeout not changed)
    TARGET:      how far | PREDICTED (written before the run): none written
    MEASURED:    story load (loading screens in the last captures) | duration 1,200 s | menus 25.7 frames/s median, 32.6 max; no frame from 291 s, and no submission logged after 304 s; 2,829 presents; at draw: 472 graphics pipelines needed, 230 compiled (1,117 s of compile time), 242 from a cache
    END:         time limit: boot.ps1 stopped the process at 1,200 s while it was still compiling graphics pipelines at draw; no crash, no device loss
    CACHES:      warm: the session and heavy caches RUN baseline-cold wrote, the precompiled compute journal, NVIDIA's driver cache | RUN 2 of 2, same recipe
    INSTRUMENTS: as RUN baseline-cold
    VERDICT:     no prediction written
    
    • The cold run's crash is 1 of 1 cold runs on this build: PROVISIONAL (n=1), not attributed to any change. Six other runs today on 2d43417 and 2859d0c (269 to 600 s, close but not identical recipes) had no crash in the driver.
    • In both runs the black stretch after the menus is graphics pipelines compiled at draw. The warm run took 242 of them from the cache and compiled 230 new ones, and logged no submission in its last ~900 s.
    • Numbers recomputed from the raw logs by a second agent before posting.
  8. OreoFR commented on Nov 27, 2026

    @OreoFR
    Collaborator

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

  9. OreoFR commented on Nov 27, 2026

    @OreoFR
    Collaborator

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

  10. j-rally commented on Nov 27, 2026

    @j-rally

    Baseline on main for 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).

    RUN base-warm | 2026-11-27 16:15 UTC | j-rally | AI-assisted: Claude Code (Claude Opus 5.5)
    BASE:        55bd6f4f1 + none | shaders: make_game.py --stages check,shaders,runtime from an earlier main of the same day (wave64 emulation: auto), not rebuilt for this BASE
    MACHINE:     RTX 4070 Ti SUPER 16 GB, desktop, Resizable BAR on | NVIDIA 621.40 | Windows 11 Pro 26300 | 32 GB
    RECIPE:      documented ("Windows, NVIDIA") + DEVIATIONS: ASYNC_PIPELINES=1 ASYNC_MIN_BYTES=1048576 VALUE_WAIT_TIMEOUT_MS=30000 MAP_READBACK=1 PIPELINE_PREWARM_ORDER=1 COMPILE_HELPER=1 | precompile: yes, all 5,453 compute pipelines journaled (gta6rt --precompile-pipelines, verified with --verify on an earlier build)
    OS/DRIVER:   TdrDelay default
    TARGET:      how far | PREDICTED (written before the run): none written
    MEASURED:    world frames (dark outdoor scene in the captures) from ~120 s | duration ~370 s | boot and menus 16-18 frames/s, 0.2-0.6 frames/s from ~120 s on; submitting thread >100% busy at that point (shadow refresh 20-74 ms, console heaps 10-26 ms, title textures 20-46 ms per submission)
    END:         time limit (stopped by me), no crash, no device loss
    CACHES:      warm: compute journal, session/heavy caches and the driver's cache | RUN 1 of 1
    INSTRUMENTS: none
    VERDICT:     no prediction written
    

    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_VISIBLE memory, 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, prefers HOST_CACHED and skips the BAR fit) as the only variable, same build, same recipe plus the thread sampler in both arms (SAMPLE_MS=5):

    A: arena in VRAM (BAR) B: arena in cached system memory
    shadow refresh, ms per submission (from ~120 s) 20-74 4-9
    submitting thread, share of wall time 105-124% 24-55%
    top sample on the submitting thread memcpy/memcmp in ShadowPages::write_back (~30-36%) hash_bytes under refresh_title_textures (~37%)
    frames/s from ~120 s 0.2-0.6 0.2-0.5
    GPU work past the 250 ms title-staging wait 32+ times 64+ times
    end time limit title null read at ~243 s (one run; a null read at the same place was seen once before on a non-BAR build, so not attributed)

    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

  11. j-rally commented on Nov 27, 2026

    @j-rally

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

    AGENT-MSG | 2026-11-27 18:40 UTC | j-rally | AI-assisted: Claude Code (Claude Opus 5.5)
    BASE:     55bd6f4f1 + none + local: a GPU timestamp pair around each compute dispatch (LEONIDA_GPU_COST=1, rides on the LEONIDA_DEVICE_FAULT=1 checkpoint recorder)
    MACHINE:  RTX 4070 Ti SUPER 16 GB, desktop, Resizable BAR on | NVIDIA 621.40 | Windows 11 Pro 26300 | 32 GB
    RECIPE:   documented ("Windows, NVIDIA") + DEVIATIONS: as my base-warm run above, plus the diagnostics named per row
    ASK:      none
    RETURNED: table below
    RUNS:     5 (base-warm above, gpu-cost x2, skip one program, gpu-latency)
    EVIDENCE: MEASURED for every number; READ IN CODE for what a gate is
    
    Question Run Result (from ~120 s, in the world)
    Is it the compute shaders? GPU timestamps around every compute dispatch 50-190 ms of dispatch spans per second of wall time. One emulated-wave64 program takes 110-610 ms per dispatch, 60-100% of the compute time in each 10 s window
    Is that program the limit? the same, with it in LEONIDA_SKIP_COMPUTE compute time halves; frames/s median 0.20 (vs 0.35): no
    Is the GPU busy? LEONIDA_GPU_LATENCY=1 direct queue had work 35% of the time; compute 2-3%; copy 0%
    What holds the work? same direct queue: 29-76 batches and 48-146 Signals per 10 s were held, 265-918 ms on average, up to 2,041 ms
    Held on what? list values line in 300 s: 4,174 memory-value waits recorded, 2,443 met at submission, 552 relayed; 1,115 gates held, released after 103.5 s in all (93 ms each on average, longest 1,575 ms), 0 timed out. The total grows by ~9.5 s per 10 s

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

  12. MoonEyes commented on Nov 27, 2026

    @MoonEyes
    Collaborator

    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.

    RUN w70 | 2026-11-27 | MoonEyes | AI-assisted: Claude Code (Claude Opus 5.5)
    BASE:        main ec91d695c, no PR | shaders: main's own translation, retranslated locally
    MACHINE:     RTX 4060 8 GB, desktop, only GPU, display attached | NVIDIA 610.88 | Windows 11 Pro 26300 | Ryzen 5 3600 | 32 GB
    RECIPE:      docs/running.md Windows NVIDIA recipe + Proton NVIDIA list (title windows 4096 MB, arena 4095 MB, async pipelines 0, serial big compiles 0, RT_AS off, large compute programs skipped, device type 6, map readback 1, host image copy 0, frame pacing 1, present no tear 1, title watchdog off) | scripted button presses every 10 s from 150 s
    DEVIATIONS:  Windows GPU timeout left at the default (2 s, no TdrDelay change); ASYNC_MIN_BYTES and COMPILE_GATE left at main's defaults
    CACHES:      pipeline cache COLD (empty folder at start, filled by this run) | RUN 1 of 2
    INSTRUMENTS: device fault report 1, device markers 1, memory probe 5, overlay, stall checkpoints, capture every 300 s (documented in runtime/README.md; the capture setting in docs/d3d12_vulkan.md)
    MEASURED:    world entered at 200 s | last window >= 1 img/s: 282 s | 0 frames after world entry + 240 s | PresentX ok 3219, failed 0 | private RAM max 18.2 GB | free RAM min 659 MB
    END:         stopped by my local stall guard (no submit-phases line for 182 s; last such line at 308 s) | device loss: no (no fault report, no device-lost line)
    VERDICT:     display stops about 80 s after the world is entered; not a crash
    
    RUN w71 | 2026-11-27 | MoonEyes | AI-assisted: Claude Code (Claude Opus 5.5)
    BASE / MACHINE / RECIPE / DEVIATIONS / INSTRUMENTS: same as w70 (my recipe-diff tool: 0 differences in settings; only the cache content differs)
    CACHES:      pipeline cache WARM (the folder filled by w70) | RUN 2 of 2
    MEASURED:    world entered at 185 s | last window >= 1 img/s: 267 s | 0 frames after world entry + 240 s | PresentX ok 3112, failed 0 | private RAM max 17.6 GB | free RAM min 2800 MB
    END:         stopped by my local stall guard (no submit-phases line for 183 s; last such line at 267 s) | device loss: no
    VERDICT:     same stop pattern as the cold run; world entered 15 s earlier
    

    Reading (marked):

    • MEASURED: with the cache warm, the world is entered 15 s sooner (185 s against 200 s) and the display still stops: last window >= 1 img/s is 82 s after world entry in both runs.
    • MEASURED: the free-RAM minimum differs a lot between the two runs (659 MB cold, 2800 MB warm); the private maximum is about 0.6 GB higher cold.
    • NOT SHOWN: why it stops. These two runs do not isolate a cause, and the stall guard end time depends on its own threshold, so use the last-window figure to compare, not the end time.

    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)

  13. enlight3d commented on Nov 27, 2026

    @enlight3d
    Contributor

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

  14. djrolfes commented on Nov 27, 2026

    @djrolfes
    Contributor

    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_sha256 matched) and identical settings (0 env differences apart from the per-run capture folder), 100% hands-free via LEONIDA_INPUT_SCRIPT. All numbers independently recomputed from raw logs and resource samples by a second agent (codex / gpt-6-luna) before posting. n=1 per cache state (PROVISIONAL (n=1)).

    RUN C1 | 2026-11-27 | djrolfes | AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna verification)
    BASE:        main 43a9d562d + none | shaders: main ec91d695c local translation (wave64 emulated; no overlays)
    MACHINE:     RTX 3070 Ti 8 GB, desktop, display attached | NVIDIA 620.73.04 | Arch Linux 7.2.15 + Wine 11.22 | Ryzen 7 5800X | 31 GiB RAM
    RECIPE:      documented ("Linux, Proton, NVIDIA") + DEVIATIONS: --run mode (no LEONIDA_XMEM_BACKING_DIR), LEONIDA_ARENA_MB=1024, LEONIDA_GEOMETRY_MB=2048, LEONIDA_ASYNC_PIPELINES=1, LEONIDA_ASYNC_MIN_BYTES=2097152, LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0 (no LEONIDA_SKIP_COMPUTE skip list), LEONIDA_COMPUTE_WARMUP=0, LEONIDA_VALUE_WAIT_TIMEOUT_MS=30000, LEONIDA_DEVICE_TYPE=6, LEONIDA_MAP_READBACK=1, LEONIDA_DEVICE_FAULT=1, LEONIDA_STARTUP_CACHE_CHECKPOINTS=1, LEONIDA_TITLE_WATCHDOG=0 + local KICK, LEONIDA_TITLE_HUD=1, LEONIDA_KEYBOARD_PAD=1, hands-free LEONIDA_INPUT_SCRIPT, 600 s limit; RT_AS / HOST_IMAGE_COPY / TITLE_WINDOWS_MB / COMPILE_GATE left at main defaults | precompile: no
    OS/DRIVER:   default Linux NVIDIA driver settings; Wine 11.22 Wayland driver; isolated network namespace; window placed on silent workspace
    TARGET:      how far clean main gets on 8 GB NVIDIA + end class | PREDICTED (written before the run): first-run UI -> menu -> story load -> world load; unhandled exception near world entry (~280-360 s) or 600 s time limit, 0 device losses
    MEASURED:    first-run UI -> menu -> story load -> world load (did not reach play); PresentX ok 13,384, failed 0; 26,780 submissions; submit-phases frame rate 0.39-90.93 frames/s across 52 windows (final window 1.45 frames/s); 2 missing-shader compute refusals; 16 small-BAR (246 MiB heap 2) vkAllocateMemory fallbacks (0 fatal); min available RAM 6.455 GiB; max GPU memory 7,850 MiB; adaptive compile gate turned graphics gate off | duration 298.12 s
    END:         process crash (Wine unhandled exception, exit 126; device loss: no)
    CACHES:      cold (empty NVIDIA shader cache and Leonida pipeline cache) | RUN 1 of 2, same recipe
    INSTRUMENTS: device fault 1, resource sampling (2 s), frame capture every 600 frames (local only), startup cache checkpoints
    VERDICT:     prediction held (reached world load and hit the predicted unhandled exception near world entry at 298.12 s, 0 device losses)
    
    RUN C2 | 2026-11-27 | djrolfes | AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna verification)
    BASE:        main 43a9d562d + none | shaders: main ec91d695c local translation (wave64 emulated; no overlays)
    MACHINE:     RTX 3070 Ti 8 GB, desktop, display attached | NVIDIA 620.73.04 | Arch Linux 7.2.15 + Wine 11.22 | Ryzen 7 5800X | 31 GiB RAM
    RECIPE:      same as C1 (0 setting differences) | precompile: no
    OS/DRIVER:   same as C1
    TARGET:      how far clean main gets warm + speedup vs C1 | PREDICTED (written before the run): menu -> story load -> world load 50-100 s sooner than C1, same end class, 0 device losses
    MEASURED:    menu -> story load -> world load (skipped first-run UI via saved settings from C1; did not reach play); PresentX ok 4,515, failed 0; 9,042 submissions; submit-phases frame rate 0.39-85.15 frames/s across 30 windows (final window 1.07 frames/s); 2 missing-shader compute refusals; 16 small-BAR (246 MiB heap 2) vkAllocateMemory fallbacks (0 fatal); min available RAM 7.951 GiB; max GPU memory 7,173 MiB; adaptive compile gate turned compute gate off | duration 174.33 s
    END:         process crash (Wine unhandled exception, exit 126; device loss: no)
    CACHES:      warm (NVIDIA shader cache and Leonida pipeline cache filled by C1) | RUN 2 of 2, same recipe
    INSTRUMENTS: same as C1
    VERDICT:     same end class held; warm run reached world load 124 s sooner (outside predicted 50-100 s range), 0 device losses
    

    Reading:

    • MEASURED (n=1 per cache state, PROVISIONAL): Clean main (43a9d562d) with LEONIDA_ASYNC_PIPELINES=1, LEONIDA_ASYNC_MIN_BYTES=2097152, LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0 (and no LEONIDA_SKIP_COMPUTE skip list) reaches world load on an 8 GB RTX 3070 Ti under Linux + Wine 11.22 with 0 device losses (cold: 298.12 s, peak VRAM 7,850 MiB; warm: 174.33 s, peak VRAM 7,173 MiB). Both runs end cleanly at the same unhandled exception immediately after 2 untranslated compute shader refusals at world entry (before play).
    • MEASURED (n=2, separate --first-run-ui runs with LEONIDA_XMEM_BACKING_DIR): For completeness, running the exact same clean main (43a9d562d) binary with --first-run-ui (LEONIDA_XMEM_BACKING_DIR enabled) still hits the known Wine/NVIDIA 620.73.04 file-backed host-import rejection burst (vkAllocateMemory failed (-1) / E_OUTOFMEMORY at 28.45 s cold and 24.36 s warm 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). Leaving LEONIDA_XMEM_BACKING_DIR unset (--run, as in docs/running.md) avoids that startup failure completely.
    • NOT SHOWN: behavior past world entry into play with clean main's shader translation (requires those untranslated compute shaders to be translated first), or multi-run variance (n=1 per state; would be refuted if repeated runs hit device loss or stall earlier).

    AI-assisted: Antigravity (Gemini 4 Neon) + Codex (gpt-6-luna independent log verification); no game data.

  15. djrolfes commented on Nov 27, 2026

    @djrolfes
    Contributor

    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.

  16. 8 remaining items

  17. bobcatchris commented on Nov 29, 2026

    @bobcatchris
    Contributor

    Windows AMD RX 7900 XTX (Profile L) baseline on main (791899f65) — first native Windows AMD report for docs/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.

    RUN WIN-AMD-7900XTX-MAIN-1 | 2026-11-29 04:38 UTC | bobcatchris | AI-assisted: Antigravity (Gemini 4 Neon)
    BASE:        791899f65 + 1-line local MSVC 14.39 fix in runtime/src/crt_timed_wait.cpp:26 (_CRTIMP2_PURE _Thrd_result) | shaders: make_game.py --stages shaders --wave64-emulate off (29,280 translated, all spirv-val valid)
    MACHINE:     AMD Radeon RX 7900 XTX, 24 GB, desktop | AMD Windows driver 32.0.32029.2010 | Windows 11 Pro 10.0.26200 | 63.7 GB RAM (Ryzen 7 7800X3D)
    RECIPE:      documented ("Linux, Wine, AMD RX 7900 XTX (RADV)" adapted to native Windows) + DEVIATIONS: no LEONIDA_TITLE_WATCHDOG_KICK, no LEONIDA_SKIP_COMPUTE, LEONIDA_ASYNC_MIN_BYTES=2097152, LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0, LEONIDA_COMPILE_THREADS=12, LEONIDA_COMPILE_HEAVY_MAX=10 | precompile: yes, 3,757 compute pipelines (<2 MiB, --max-bytes 2097151, 0 failed)
    OS/DRIVER:   Windows default TdrDelay (2 s), Resizable BAR off
    TARGET:      boot stability, frame rate, submission CPU cost, VRAM | PREDICTED (written before the run): boots to first-run UI / menu at 20-30+ fps with 0 faults
    MEASURED:    first-run UI / menu (unattended) | 29.99 fps mean (26.39-30.05) | 59.99 subs/s (1,501 direct/10s) | heaps 4.47 ms/sub, shadows 0.61 ms/sub, geometry 0.13 ms/sub | GPU direct latency 0.76 ms avg (5.1 ms max), 6.4% busy | 4 gfx / 800 compute pipelines live (0.1 s / 0.2 s) | 4,981 MiB VRAM | 0 faults | duration 4334 s
    END:         time limit (stopped manually after 72 min soak)
    CACHES:      cold graphics / warm precompiled compute journal | RUN 1 of 2, same recipe
    INSTRUMENTS: LEONIDA_DEVICE_FAULT=1, LEONIDA_DEVICE_MARKERS=1, LEONIDA_GPU_LATENCY=1, LEONIDA_MEM_PROBE=30, LEONIDA_TITLE_HUD=1
    VERDICT:     prediction held (MEASURED, n=1)
    
    RUN WIN-AMD-7900XTX-MAIN-2 | 2026-11-29 05:51 UTC | bobcatchris | AI-assisted: Antigravity (Gemini 4 Neon)
    BASE:        791899f65 + 1-line local MSVC 14.39 fix in runtime/src/crt_timed_wait.cpp:26 (_CRTIMP2_PURE _Thrd_result) | shaders: make_game.py --stages shaders --wave64-emulate off (29,280 translated, all spirv-val valid)
    MACHINE:     AMD Radeon RX 7900 XTX, 24 GB, desktop | AMD Windows driver 32.0.32029.2010 | Windows 11 Pro 10.0.26200 | 63.7 GB RAM (Ryzen 7 7800X3D)
    RECIPE:      documented ("Linux, Wine, AMD RX 7900 XTX (RADV)" adapted to native Windows) + DEVIATIONS: no LEONIDA_TITLE_WATCHDOG_KICK, no LEONIDA_SKIP_COMPUTE, LEONIDA_ASYNC_MIN_BYTES=2097152, LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0, LEONIDA_COMPILE_THREADS=12, LEONIDA_COMPILE_HEAVY_MAX=10 | precompile: yes, 3,757 compute pipelines (<2 MiB, --max-bytes 2097151, 0 failed)
    OS/DRIVER:   Windows default TdrDelay (2 s), Resizable BAR off
    TARGET:      warm-cache parity and steady-state baseline | PREDICTED (written before the run): matches Run 1 at 30.0 fps with 0 faults
    MEASURED:    first-run UI / menu (unattended) | 30.05 fps mean (29.90-30.55) | 60.09 subs/s (1,504 direct/10s) | heaps 4.65 ms/sub, shadows 0.69 ms/sub, geometry 0.14 ms/sub | GPU direct latency 0.74 ms avg (5.8 ms max), 6.5% busy | 4 gfx / 800 compute pipelines live (0.1 s / 0.2 s) | 4,982 MiB VRAM | 0 faults | duration 90 s
    END:         time limit (90 s)
    CACHES:      warm (session + precompiled compute journal) | RUN 2 of 2, same recipe
    INSTRUMENTS: LEONIDA_DEVICE_FAULT=1, LEONIDA_DEVICE_MARKERS=1, LEONIDA_GPU_LATENCY=1, LEONIDA_MEM_PROBE=30, LEONIDA_TITLE_HUD=1
    VERDICT:     prediction held (MEASURED, n=2)
    

    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 RUN blocks posted on #2566.

  18. bobcatchris commented on Nov 29, 2026

    @bobcatchris
    Contributor

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

  19. bobcatchris commented on Nov 29, 2026

    @bobcatchris
    Contributor

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

  20. CnKabii commented on Nov 30, 2026

    @CnKabii

    Windows NVIDIA gameplay run — RTX 5070 Ti Laptop, Series S at 720p

    RUN RTX5070Ti-Laptop-S720-1 | 2026-11-30 04:41 UTC | CnKabii | AI-assisted: Codex (report preparation)
    BASE:        1d22590b9 (main), no runtime PR patches applied | shaders: built-in D3D12 shader precompile
    MACHINE:     GeForce RTX 5070 Ti Laptop GPU, 12 GB (profile M) | NVIDIA 621.40 | Windows 11 Home 25H2, 26200.9974 | Ryzen 9 8945HX, 31.22 GiB usable RAM
    RECIPE:      scripts/play-d3d12.ps1 -SeriesS -Resolution 720 -NoFrameGen -Log | fixed 720p rendering, 1920x1080 output, title upscaler
    DEVIATIONS:  LEONIDA_RENDER_SCALE=0.6667, LEONIDA_OUTPUT=1920x1080; launcher selected LEONIDA_OWN_UPSCALER=1 | precompile: yes, 392 additional pipelines made, 0 failed
    OS/DRIVER:   Power mode, hardware-accelerated GPU scheduling and TDR settings were not recorded for this run.
    TARGET:      How far the game runs and how frame pacing changes during a short open-world route | PREDICTED: none recorded
    MEASURED:    play (gas station to Jason's house) | log span ~267 s including startup | steadier gameplay segment: 15.7 FPS median, 11.5-16.9 FPS range across 15 log samples over ~74 s; median reported frame time 63.7 ms
    END:         The tester quit after reaching Jason's house. The supplied log contains no unhandled exception or device-loss message.
    CACHES:      Warm shader and pipeline caches, with 2,477 previously built pipelines present | RUN 1 of 1
    INSTRUMENTS: Launcher log, LEONIDA_LOG=warn,leonida_gpu::host=info | periodic FPS and mean frame-time samples
    VERDICT:     Reached play on this profile. One warm-cache run, with no pre-run prediction.
    

    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.

  21. pinned this issue on Nov 30, 2026
  22. lerapeurdu62280-debug commented on Nov 30, 2026

    @lerapeurdu62280-debug

    Baseline on main, Windows AMD (docs/running.md says no public Windows AMD game run is known yet), cold caches. A warm run follows.

    RUN rx6600-cold-1 | 2026-11-30 17:50-18:03 UTC | lerapeurdu62280-debug | AI-assisted: Claude Code (Claude Opus 5.5)
    BASE:        afb511541 + none | shaders: none built by make_game.py; scripts\play-d3d12.ps1 precompile (25,689 in cache, 200 do not translate, 138 s)
    MACHINE:     AMD Radeon RX 6600 8 GB, desktop | 32.0.21045.29003 | Windows 11 26300 | 32 GB, Ryzen 5 3600
    RECIPE:      documented (README "Playing it": scripts\play-d3d12.ps1 -Log, its defaults: Series X profile, 2560x1440 output, diag build with diagnostics,mimalloc, no DLSS) + DEVIATIONS: none | precompile: yes, shaders; pipelines: 0 known (first start; leonida warm stopped with os error 3, fixed by #2774)
    OS/DRIVER:   TdrLevel, TdrDelay, TdrDdiDelay at defaults; resizable BAR windows on (32 GB)
    TARGET:      how far a cold first start gets | PREDICTED (written before the run): none, first baseline on this machine
    MEASURED:    world load | duration ~820 s | tools/d3d12_run_fps.py: 142 frame lines, 17 in the world (1000+ draws), median 0.2 fps there (5,072 ms a frame; preparing 89.9 ms, GPU wait 0.0 ms); menus ran at the 60 fps cap
    END:         device lost (DXGI_ERROR_DEVICE_RESET 0x887A0007, "device-removed data: none"), read from the log, ~3.5 min after the story pack opened
    CACHES:      cold | RUN 1 of 2, same recipe
    INSTRUMENTS: none (-Log only)
    VERDICT:     prediction n/a
    

    What held the frame in the world: 81 compute pipelines were made in play, each logged the library did not load it with E_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

  23. lerapeurdu62280-debug commented on Nov 30, 2026

    @lerapeurdu62280-debug

    Second baseline run, warm (follows #2464 (comment)).

    RUN rx6600-warm-2 | 2026-11-30 18:16-18:19 UTC | lerapeurdu62280-debug | AI-assisted: Claude Code (Claude Opus 5.5)
    BASE:        afb511541 + none | shaders: as RUN rx6600-cold-1
    MACHINE:     AMD Radeon RX 6600 8 GB, desktop | 32.0.21045.29003 | Windows 11 26300 | 32 GB, Ryzen 5 3600
    RECIPE:      same as RUN rx6600-cold-1 + DEVIATIONS: none | precompile: yes; leonida warm --used: 83,555 known, 1,719 made in 239 s (median 11.4 ms, p90 2,471 ms, p99 15,495 ms, most 34,127 ms)
    OS/DRIVER:   as RUN rx6600-cold-1
    TARGET:      how far a warm start gets | PREDICTED: not written down before the run (expected: further than cold)
    MEASURED:    story load (1 frame line in the world, 3.2 fps there) | duration ~180 s in the title
    END:         device lost (0x887A0007, "device-removed data: none"), read from the log; the submitting thread was between submissions, nothing of ours on the card
    CACHES:      warm: shaders + pipelines from RUN 1 and the warm step | RUN 2 of 2, same recipe
    INSTRUMENTS: none (-Log only)
    VERDICT:     n/a (ended earlier than cold)
    

    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

  24. lerapeurdu62280-debug commented on Nov 30, 2026

    @lerapeurdu62280-debug

    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

  25. lerapeurdu62280-debug commented on Nov 30, 2026

    @lerapeurdu62280-debug

    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

  26. aznohonza commented on Dec 1, 2026

    @aznohonza
    Contributor

    A baseline from one more machine, Linux + Wine + NVIDIA, which running.md does not cover yet.

    RUN run21 | 2026-11-30 23:19 UTC | aznohonza | AI-assisted
    BASE:        d8ca18240 (the runtime binary was built from it; the later main 9dffbe721 was not rebuilt) + no pull requests + one local change: run_game_wine.sh honours LEONIDA_NO_TRACE_D3D12=1 and passes no --trace-d3d12 | shaders: make_game.py --stages check,shaders,runtime --wave64-emulate on: 26,503 main, 2,684 library, 2,713 FSPX, 52 BVH and 12 executable sets, spirv-val clean
    MACHINE:     NVIDIA GeForce RTX 3060 12 GB, desktop | NVIDIA 620.70.10 | Debian 13 (trixie), kernel 6.12.118 | 31 GB RAM, no swap, 12 threads
    RECIPE:      running.md has no Linux + Wine profile: this follows the "Linux, Proton, NVIDIA" variables + DEVIATIONS: Wine 11.22 staging instead of Proton, LEONIDA_DEVICE_TYPE=6 LEONIDA_COMPUTE_WARMUP=0 LEONIDA_MAP_READBACK=1 LEONIDA_SERIAL_BIG_COMPILES=0 LEONIDA_FRAME_PACING=1 LEONIDA_PRESENT_NO_TEAR=1 LEONIDA_STRAY_RO_HEAL=1 LEONIDA_ARENA_MB=1024 LEONIDA_GEOMETRY_MB=2048 LEONIDA_TITLE_WINDOWS_MB=4096 LEONIDA_SUBMIT_ASYNC=4 LEONIDA_KEYBOARD_PAD=always LEONIDA_SKIP_COMPUTE=<the 723-program ray-tracing list>; the title watchdog is off with its KICK values set | precompile: no, the runs filled the journal
    OS/DRIVER:   no GPU timeout change; the run was in a systemd cgroup with MemoryMax=24G
    HOW FAR:     first-run UI 30 frames/s, story load, opening sequence, world frames drawn
    MEASURED:    the story load ended at t=2019 s (33.7 min); world frames from there at 1-3 per 10-16 s, 0.06-0.30 frames/s | duration 3600 s | peak cgroup memory 19.5 GB of 24 GB
    END:         time limit (3600 s)
    CACHES:      warm: a 1.7 GB pipeline journal from three earlier runs | run 2 of 2 with this recipe
    INSTRUMENTS: none, the D3D12 trace was off
    
    RUN run23 | 2026-12-01 01:01 UTC | aznohonza | AI-assisted
    BASE:        as run21, same binary
    MACHINE:     as run21
    RECIPE:      as run21 + LEONIDA_MEM_PROBE=30 LEONIDA_GPU_LATENCY=1 | precompile: no
    OS/DRIVER:   as run21
    HOW FAR:     account picker, story load, opening sequence: one night scene drawn, then no further frame
    MEASURED:    the first opening-sequence frame appeared at t=1151 s (19.2 min); the last present was accounted in the window ending at t=1155 s, and nothing was submitted or presented after t=1166 s for the remaining 101 min. The run built 763 graphics and 619 compute pipelines on the way (2,296 shader modules, 732 MiB SPIR-V, 45 min of vkCreate*Pipeline CPU time), and the builds ended within two minutes of the last present. One console value wait stayed unmet from t=1166 s: of 209 gates held, 192 met, 0 were released unmet (0 at a present, 0 in a cycle, 0 with the title stalled), 50,494 writes recorded and 50,408 landed. The title's main thread then held 93 % of one core, and its six to seven other active threads sat in futex waits. Cgroup memory stayed at 19-20 GB of 24 GB; no device loss | duration 7200 s
    END:         stall: no presents and no queue calls from t=1166 s, the held wait stood 101 min, the run was left to its time limit
    CACHES:      warm: the same 1.7 GB journal plus the previous run's overlay and saves | run 1 of 1 with these instruments
    INSTRUMENTS: LEONIDA_MEM_PROBE=30, LEONIDA_GPU_LATENCY=1
    

    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.

  27. aznohonza commented on Dec 1, 2026

    @aznohonza
    Contributor

    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.

    RUN run24 | 2026-12-01 03:08 UTC | aznohonza | AI-assisted
    BASE:        as run21, same binary
    MACHINE:     as run21
    RECIPE:      as run23 + LEONIDA_LIST_VALUES=0 | precompile: no
    OS/DRIVER:   as run21
    HOW FAR:     the opening sequence's night scene, drawn further than run23 (the character turns between shots)
    MEASURED:    presents continued to t=1298 s (1 per 25 s), then at t=1306.5 s vkWaitSemaphores in the fence dispatcher returned VK_ERROR_DEVICE_LOST; the runtime then made fences read UINT64_MAX and device calls return DXGI_ERROR_DEVICE_REMOVED, and at t=1314 s the title's own device-removed handler raised 0x80000003 | duration 1314 s | peak cgroup memory 18.9 GB of 24 GB
    END:         device lost (the title's device-removed handler)
    CACHES:      warm: the same journal, run23's overlay and saves | run 1 of 1 in this pair
    INSTRUMENTS: LEONIDA_MEM_PROBE=30, LEONIDA_GPU_LATENCY=1, no fault report
    
    RUN run25 | 2026-12-01 03:32 UTC | aznohonza | AI-assisted
    BASE:        as run21, same binary
    MACHINE:     as run21
    RECIPE:      as run24 + LEONIDA_DEVICE_FAULT=1 | precompile: no
    OS/DRIVER:   as run21
    HOW FAR:     the same night scene
    MEASURED:    at t=1152 s vkQueueSubmit returned VK_ERROR_DEVICE_LOST, with the submit lock held for 27.5 s; vkWaitSemaphores then returned it too, and the title's handler raised 0x80000003 at t=1158 s. The fault report named five compute queues with work in flight (library and upscaler dispatch sets) and gave no address: the driver's vendor binary was 0 bytes and its description empty, as for the device loss this file already lists | duration 1158 s | peak cgroup memory 23.6 GB of 24 GB
    END:         device lost (the title's device-removed handler)
    CACHES:      warm: the same journal, run24's overlay and saves | run 1 of 1 in this pair
    INSTRUMENTS: LEONIDA_MEM_PROBE=30, LEONIDA_GPU_LATENCY=1, LEONIDA_DEVICE_FAULT=1
    

    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.

  28. lixonik commented on Dec 1, 2026

    @lixonik
    Contributor

    Step 1: Baselines on main (a596adfac) -- Windows 10 + NVIDIA RTX 5070 12 GB (driver 621.40)

    D3D12 runtime (d3d12/, diag build with diagnostics,dlss,mimalloc, DLSS v310.9.16, Streamline v2.14.16)

    RUN d3d12-main-cold | 2026-12-01 UTC | lixonik | AI-assisted: Antigravity
    BASE:        a596adfac (main) | shaders: cold precompile (25,687 translated, 202 untranslated, 133 s)
    MACHINE:     NVIDIA GeForce RTX 5070, 12 GB, desktop | 621.40 | Windows 10 Pro 22H2 (build 19045) | 64 GiB RAM | Ryzen 9 5950X
    RECIPE:      documented (scripts/play-d3d12.ps1 -SeriesS -NoFrameGen) + DEVIATIONS: none | precompile: yes (cold driver 621.40 DXCache: 3,209 pipelines in 371 s, 0 failed; median 669.0 ms, p90 6050.4 ms)
    OS/DRIVER:   TdrDelay=default (Windows 10 D3D12 Agility SDK)
    TARGET:      cold cache precompile and boot on fresh driver 621.40 | PREDICTED (written before the run): clean precompile and boot to menu
    MEASURED:    menu (45 frame lines, 0 world draws because no input sent): 60.0 fps (16.7 ms/frame), 0 errors, 0 device lost | duration 240 s run (+ 505.6 s cold precompile)
    END:         time limit (240 s)
    CACHES:      cold: freshly updated NVIDIA 621.40 DXCache | RUN 1 of 2
    INSTRUMENTS: standard diag log, d3d12_run_fps.py
    VERDICT:     prediction held
    
    RUN d3d12-main-warm | 2026-12-01 UTC | lixonik | AI-assisted: Antigravity
    BASE:        a596adfac (main) | shaders: warm cache (25,687 translated, 202 untranslated)
    MACHINE:     NVIDIA GeForce RTX 5070, 12 GB, desktop | 621.40 | Windows 10 Pro 22H2 (build 19045) | 64 GiB RAM | Ryzen 9 5950X
    RECIPE:      documented (scripts/play-d3d12.ps1 -SeriesS -NoFrameGen) + DEVIATIONS: LEONIDA_KEYS_FILE (menu enter only) | precompile: yes (warm, 3 s)
    OS/DRIVER:   TdrDelay=default (Windows 10 D3D12 Agility SDK)
    TARGET:      warm Series S play baseline on RTX 5070 | PREDICTED (written before the run): CPU-bound play ~25-35 fps, 0 errors
    MEASURED:    play (17 world samples, max 2,270 draws): median 33.4 fps (p10 27.4, p90 40.7), 29.9 ms/frame (preparing 22.0 ms, copies 8.5 ms / 29.1 MB, textures 0.4 ms / 1.2 MB, gpu_wait 0.0 ms, copy_back 6.1 ms / 0.6 MB, 1241 draws); buckets: 1000-2999 33.4 fps (17); DLSS 720p->1080p active; 0 errors, 0 device lost | duration 316.1 s (90 s in world)
    END:         time limit (90 s in world)
    CACHES:      warm: shader cache + host pipeline library (250.4 MB) + NVIDIA DXCache | RUN 2 of 2
    INSTRUMENTS: standard diag log, d3d12_run_fps.py
    VERDICT:     prediction held (Series S is CPU-bound on RTX 5070, gpu_wait 0.0 ms)
    

    Vulkan runtime (runtime/, post-#2566 check on Windows 10 + NVIDIA RTX 5070 12 GB)

    RUN vk-main-cold | 2026-12-01 UTC | lixonik | AI-assisted: Antigravity
    BASE:        a596adfac (main, includes #2566) | shaders: make_game.py --stages shaders --wave64-emulate auto (--wave64-emulate --no-ftz32, llvm-mc 21.1.8; 29,280 SPIR-V modules)
    MACHINE:     NVIDIA GeForce RTX 5070, 12 GB, desktop | 621.40 | Windows 10 Pro 22H2 (build 19045) | 64 GiB RAM | Ryzen 9 5950X
    RECIPE:      documented (docs/running.md "Windows, NVIDIA" + recommended vars) + DEVIATIONS: LEONIDA_SDL3=OFF, LEONIDA_ARENA_MB=4095, LEONIDA_SUBMIT_ASYNC=4, LEONIDA_ASYNC_PIPELINES=1, LEONIDA_ASYNC_MIN_BYTES=2097152, LEONIDA_ASYNC_MIN_BYTES_GRAPHICS=0, LEONIDA_RT_AS=off, LEONIDA_DEVICE_FAULT=2, LEONIDA_SKIP_INT3=1 | precompile: no (cold pso dir)
    OS/DRIVER:   TdrDelay=default, no Resizable BAR
    TARGET:      post-#2566 cold Vulkan boot on Windows NVIDIA 12 GB | PREDICTED (written before the run): non-sparse fallback on memoryTypeBits=0x2; may hit 30 s watchdog without KICK during cold 4 GiB init
    MEASURED:    pre-UI device init: adaptive compile gate calibrated in 0.5 s on 621.40; non-sparse fallback selected cleanly (memoryTypeBits=0x2, page mirror off, 0 device lost); title hang watchdog fired at t=31.7 s (0xc0000005 write to 0x0, no KICK set) during 29,280-shader + 4,095 MiB arena init | duration 110.4 s
    END:         watchdog exit (t=31.7 s)
    CACHES:      cold: empty pso dir | RUN 1 of 2
    INSTRUMENTS: runtime stderr log + startup trace
    VERDICT:     prediction held
    
    RUN vk-main-warm | 2026-12-01 UTC | lixonik | AI-assisted: Antigravity
    BASE:        a596adfac (main, includes #2566) | shaders: same (29,280 SPIR-V modules)
    MACHINE:     NVIDIA GeForce RTX 5070, 12 GB, desktop | 621.40 | Windows 10 Pro 22H2 (build 19045) | 64 GiB RAM | Ryzen 9 5950X
    RECIPE:      same as vk-main-cold + DEVIATIONS: LEONIDA_DEVICE_TYPE=6, LEONIDA_ARENA_MB=1024 | precompile: no (warm pso dir)
    OS/DRIVER:   TdrDelay=default, no Resizable BAR
    TARGET:      post-#2566 warm Vulkan boot on Windows NVIDIA 12 GB | PREDICTED (written before the run): completes init under 30 s and reaches first-run UI / menu with 0 faults
    MEASURED:    first-run UI / menu (120 s): 22.1 -> 123.1 -> 92.3 fps across 10 s submit windows, 62,392 list writes (62,385 landed, 0 failed), 9,324 waits met, arena peak 506.9 / 1,024.0 MiB (non-sparse fallback, memoryTypeBits=0x2, page mirror off), bindless 3,678 / 32,768 slots, 0 device lost | duration 123.3 s
    END:         time limit (120 s)
    CACHES:      warm: pso dir | RUN 2 of 2
    INSTRUMENTS: runtime stderr log
    VERDICT:     prediction held (clean post-#2566 fallback on Windows NVIDIA 12 GB, 0 faults)
    

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions