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

Open
opened 2026-11-27 13:09:02 +00:00 by github-bot · 1 comment
Owner

@⁠aslan2142 on GitHub · 2026-11-27 13:00 UTC · original

This issue lists work that is open for anyone to take. The maintainer keeps it up to date: items are added, changed and struck out here, and each change gets a dated line at the bottom.

  • Claims do not go here. Claim in the coordination issue, as always: gh issue list -R ubiquitarianism/leonida --state open --search "Coordinating who works on what in:title".
  • No game data on GitHub: no screenshots, shader text, program names, title log lines or addresses. Pictures and discussion go on Discord.
  • Two parts for a start: A. game-run tests of important pull requests, and B. rendering work packages.

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
#2407 Per-slot records for the console descriptor heaps A report of NVIDIA device losses on main since d1dff7949 suspects it: needs an A/B on NVIDIA
#1867 Aliased shadow pages guarded, copied only after a write Stale or missing geometry; stalls at the world load
#2404 Title write-back asks the write watch first Missing GPU-written data; differences between Windows and Wine
#2406 Bindless table limits raised to 65,536 Start-up failures or lost textures on drivers with small limits
#2418 A write-back that faults no longer re-takes its lock The freeze after the world load, on 8 GB cards above all
#2440 LEONIDA_ASYNC_MIN_BYTES Only with the variable set: stalls while pipelines compile
#2412 Adaptive compile gate, now the default Stalls or device losses while compiling, old NVIDIA drivers above all
#2439 Smaller typed-load decode in the translator Wrong colours or missing draws after a pack rebuild
#2397 Mesh primitive indices kept below the vertex count Stray or missing geometry, after a pack rebuild
#2230, #2408 Indirect dispatch bound, with counters Dispatches cut that should run
#2102 Mesh shader epilogue Missing geometry, after a pack rebuild

Open: waiting for a game run before they can be merged

PR What it does Needs
#2260 Prewarm graphics pipelines in recorded order Two runs: one records, one prewarms; compile pauses before and after
#2275 Warm-up creates no longer hold the compile gate Compile stalls at start-up, with and without
#2392 The build's pipelines stage fills the runtime's own journal A cold start after a build: pipelines loaded from the journal
#2402 Retirement records read under their own lock Long runs: no stall, no change in frame rate
#2405 Sparse buffer memory types checked before sharing the tile arena Start-up on NVIDIA and Intel
#2416 Quad reads in pixel shaders through quad operations A pack rebuild; the screen-space lattice of package RT-PICTURE-LATTICE below, with and without
#2367 Translator restarts a tool when a Windows job refuses it A full build on Windows under memory pressure

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 target main.
  • The maintainer's performance work is not on main yet. It arrives later as one pull request, so expect one rebase when it lands.
  • Some defects below were seen in the maintainer's own runs (Linux, RADV, RX 7900 XTX). Check first that current main shows the defect on your GPU.

Rules for a package

  • Claim first in the coordination issue on GitHub: claiming: <ID>, one package per person or named pair. Find the issue by title:
gh issue list -R ubiquitarianism/leonida --state open --search "Coordinating who works on what in:title"
  • No game data on GitHub: no screenshots, shader text, program names, title log lines or addresses. Pictures and discussion go on Discord, never here.
  • Stay in your package's files. The performance rewrite's files are off limits (next section).
  • Every PR has a test that fails on 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)

  • 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 #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: markers around draws and GPU time per pipeline exist in the maintainer's local work and are not on main yet. Build the recorder without them; those fields get added when they land. 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)

  • 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: quad reads with helper lanes (#2416, held by ninjahawk: test it, do not redo it), the rect-list corner rule (next block), 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)

  • 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. #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 DEPTH as 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.h decode() and its test; measure with tools/image_fuzz.py --oracle hw; Mesa ac_descriptors.c as reference. #2089 and #2223 touch the same header.
  • Needs: no game; an AMD GPU (RDNA2 for the oracle).
  • Done when: the oracle result is in the PR, a unit test fails on main, and a run's count of that refusal drops.
  • Do not touch: the texture binding and waiting code in d3d12_vulkan_device.cpp.

RT-PICTURE-CHARACTERS: faces black, bodies missing (medium)

  • What: faces drawn black with the eyes drawn; bodies missing in play. Seen in the maintainer's local work and reported by others; first check whether current 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)

  • 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.cpp and runtime/src/present_compose.* (plane alpha, BGRX, sRGB fallback, HDR10, SDR white level: build on #2001, #2014); the trace for which texture of the loading draw is unbound and why.
  • Needs: no game for composition tests; the game for the diagnosis. Region: WindowPresenter.
  • Do not touch: descriptor refill and texture refresh (report those as findings).

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

  • What: classify the stray draws with the trace (mesh or vertex path, indirect, skinned); A/B the mesh primitive clamp (#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 take 85–230 ms a call and depend on data; their loop counts may be inflated by wrong inputs. 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)

  • What: walk the format table and view rules against D3D12 and the console's extras; review or finish #1456, #2223, #1179, #2268, #1830, #2271; a count of the formats the title creates ranks the gaps.
  • Region: Format and the format checks in d3d12_vulkan_device.cpp; clears and copies in vulkan_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)

  • What: the same for pipeline state and samplers: native pipeline state, integer-target blend (#2023), depth bounds (#2234, #1695), sampler LOD and anisotropy (#2089), MoltenVK LOD bias (#1774).
  • Region: PipelineStream and PipelineState in d3d12_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 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

  • 2026-11-27: created, with part A (game-run tests) and part B (rendering packages).

AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)

**@⁠aslan2142** on GitHub · 2026-11-27 13:00 UTC · [original](https://github.com/ubiquitarianism/leonida/issues/2464) This issue lists work that is open for anyone to take. The maintainer keeps it up to date: items are added, changed and struck out here, and each change gets a dated line at the bottom. - **Claims do not go here.** Claim in the coordination issue, as always: `gh issue list -R ubiquitarianism/leonida --state open --search "Coordinating who works on what in:title"`. - **No game data on GitHub:** no screenshots, shader text, program names, title log lines or addresses. Pictures and discussion go on Discord. - Two parts for a start: **A. game-run tests of important pull requests**, and **B. rendering work packages**. # 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 | | --- | --- | --- | | #2407 | Per-slot records for the console descriptor heaps | A report of NVIDIA device losses on `main` since `d1dff7949` suspects it: needs an A/B on NVIDIA | | #1867 | Aliased shadow pages guarded, copied only after a write | Stale or missing geometry; stalls at the world load | | #2404 | Title write-back asks the write watch first | Missing GPU-written data; differences between Windows and Wine | | #2406 | Bindless table limits raised to 65,536 | Start-up failures or lost textures on drivers with small limits | | #2418 | A write-back that faults no longer re-takes its lock | The freeze after the world load, on 8 GB cards above all | | #2440 | `LEONIDA_ASYNC_MIN_BYTES` | Only with the variable set: stalls while pipelines compile | | #2412 | Adaptive compile gate, now the default | Stalls or device losses while compiling, old NVIDIA drivers above all | | #2439 | Smaller typed-load decode in the translator | Wrong colours or missing draws after a pack rebuild | | #2397 | Mesh primitive indices kept below the vertex count | Stray or missing geometry, after a pack rebuild | | #2230, #2408 | Indirect dispatch bound, with counters | Dispatches cut that should run | | #2102 | Mesh shader epilogue | Missing geometry, after a pack rebuild | **Open: waiting for a game run before they can be merged** | PR | What it does | Needs | | --- | --- | --- | | #2260 | Prewarm graphics pipelines in recorded order | Two runs: one records, one prewarms; compile pauses before and after | | #2275 | Warm-up creates no longer hold the compile gate | Compile stalls at start-up, with and without | | #2392 | The build's pipelines stage fills the runtime's own journal | A cold start after a build: pipelines loaded from the journal | | #2402 | Retirement records read under their own lock | Long runs: no stall, no change in frame rate | | #2405 | Sparse buffer memory types checked before sharing the tile arena | Start-up on NVIDIA and Intel | | #2416 | Quad reads in pixel shaders through quad operations | A pack rebuild; the screen-space lattice of package `RT-PICTURE-LATTICE` below, with and without | | #2367 | Translator restarts a tool when a Windows job refuses it | A full build on Windows under memory pressure | 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 target `main`. - The maintainer's performance work is not on `main` yet. It arrives later as one pull request, so expect one rebase when it lands. - Some defects below were seen in the maintainer's own runs (Linux, RADV, RX 7900 XTX). Check first that current `main` shows the defect on your GPU. ## Rules for a package - **Claim first** in the coordination issue on GitHub: `claiming: <ID>`, one package per person or named pair. Find the issue by title: ``` gh issue list -R ubiquitarianism/leonida --state open --search "Coordinating who works on what in:title" ``` - **No game data on GitHub:** no screenshots, shader text, program names, title log lines or addresses. Pictures and discussion go on Discord, never here. - **Stay in your package's files.** The performance rewrite's files are off limits (next section). - **Every PR has a test** that fails on `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) - 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 #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: markers around draws and GPU time per pipeline exist in the maintainer's local work and are not on `main` yet. Build the recorder without them; those fields get added when they land. 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) - 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: quad reads with helper lanes (#2416, held by `ninjahawk`: test it, do not redo it), the rect-list corner rule (next block), 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) - 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`. #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 `DEPTH` as 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.h` `decode()` and its test; measure with `tools/image_fuzz.py --oracle hw`; Mesa `ac_descriptors.c` as reference. #2089 and #2223 touch the same header. - Needs: no game; an AMD GPU (RDNA2 for the oracle). - Done when: the oracle result is in the PR, a unit test fails on `main`, and a run's count of that refusal drops. - Do not touch: the texture binding and waiting code in `d3d12_vulkan_device.cpp`. **`RT-PICTURE-CHARACTERS`: faces black, bodies missing** (medium) - What: faces drawn black with the eyes drawn; bodies missing in play. Seen in the maintainer's local work and reported by others; first check whether current `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) - 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.cpp` and `runtime/src/present_compose.*` (plane alpha, BGRX, sRGB fallback, HDR10, SDR white level: build on #2001, #2014); the trace for which texture of the loading draw is unbound and why. - Needs: no game for composition tests; the game for the diagnosis. Region: `WindowPresenter`. - Do not touch: descriptor refill and texture refresh (report those as findings). **`RT-PICTURE-STRAY-GEOMETRY`: misplaced geometry, stray geometry in the sky** (medium) - What: classify the stray draws with the trace (mesh or vertex path, indirect, skinned); A/B the mesh primitive clamp (#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 take 85–230 ms a call and depend on data; their loop counts may be inflated by wrong inputs. 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) - What: walk the format table and view rules against D3D12 and the console's extras; review or finish #1456, #2223, #1179, #2268, #1830, #2271; a count of the formats the title creates ranks the gaps. - Region: `Format` and the format checks in `d3d12_vulkan_device.cpp`; clears and copies in `vulkan_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) - What: the same for pipeline state and samplers: native pipeline state, integer-target blend (#2023), depth bounds (#2234, #1695), sampler LOD and anisotropy (#2089), MoltenVK LOD bias (#1774). - Region: `PipelineStream` and `PipelineState` in `d3d12_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 `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 - 2026-11-27: created, with part A (game-run tests) and part B (rendering packages). AI-assisted (Claude Code, Claude Opus 5.5 and Claude Fable 5.2)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 13:09:03 +00:00
Author
Owner

@⁠OreoFR on GitHub · 2026-11-27 13:10 UTC · original

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 d1dff7949, n=1 each, posted before the RUN format: #2418. AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠OreoFR** on GitHub · 2026-11-27 13:10 UTC · [original](https://github.com/ubiquitarianism/leonida/issues/2464#issuecomment-7219147457) 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 d1dff7949, n=1 each, posted before the RUN format: https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/2418. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida#2464
No description provided.