perf(vk): add L1 PipeMemo and pipeline-masked sparse vertex binding (RX_VK_PIPE_VB_FAST) #2959

Open
siantm wants to merge 3 commits from siantm/Longshot:perf/vk-pipe-vb-memo into main
Contributor

Summary

Cuts graphics pipeline lookup and vertex-stream binding overhead on the single-threaded replay hot path (draw_ms / cmds_ms / pipelines_ms).

Before this change, every draw hashed/scanned pipeline inputs across pipe_fast + pipeline_key and unconditionally scanned and bound all 16 vertex buffer slots (even unused slots or draws whose bound streams did not change, such as mesh/task or subset-attribute draws). With RX_VK_PIPE_VB_FAST (default on, 1), gpu/vk/pipe_vb_memo.h adds:

  1. An L1-resident 256-slot direct-mapped PipeMemo keyed by compact sidecar generations (state_vinput_gen, Targets::rt_pipe_sig, non_eds3_sig, packed topo_and_meta, and vs_loads_mask_of / vinput_sig_of 64-slot TLS caches) in gpu/vk/vk_draw.cpp and gpu/vk/vk_replay.cpp. It sits in draw() in front of graphics_pipeline(), whose own per-thread cache is main's RX_VK_PIPE_FAST: a memo hit skips both, a miss goes through graphics_pipeline() unchanged.
  2. Pipeline-masked sparse vertex stream binding (PipeEntry::stream_mask, PipeEntry::zero_used, state_vb_dirty_take, and CmdBound::vb_bound_mask / vb_known_mask), resolving and calling vkCmdBindVertexBuffers2(...) only for streams actually read by the active pipeline whose state or bind stamp changed.

First read pipe_vb_memo.h, vk_draw.cpp, vk_replay.cpp, and vk_internal.h.

Testing

Tested: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4).

  • python -X utf8 -I tests/test_vk_pipe_vb_fast.py --headers ... passed (0 mismatches on randomized 2000-op A/B trace + source wiring checks + 7 broken variants caught).
  • python -X utf8 -I tests/test_hos_ab.py, tests/test_flat_map.py, tests/test_same_draw.py, tests/test_saveload_warm_cache.py, tests/test_notes_format.py passed.
  • Live Market (RX_VK_PIPE_VB_FAST=1, 25 s): 1447 frames, RUN_ERROR=None.
  • Live parity (RX_VK_PIPE_VB_FAST=check, 25 s): 11,200,000+ draws (81.7% PipeMemo hits), 10,989,178+ VB checks, 0 mismatches, RUN_ERROR=None.
  • Queued in-run HOS_AB (HOS_AB=RX_VK_PIPE_VB_FAST=0,3,0, 5×90 s, 145 paired periods in Market): 5/5 runs won, zero crashes/errors.
  • Rebased onto main @ a98cf28a. Main's RX_VK_PIPE_FAST moved graphics_pipeline()'s thread map into pipe_fast::StateT::mine, so this PR's TLS_OBJECT(pipe_mine, ...) is gone and graphics_pipeline() is main's as it is; Targets keeps main's rt_serial beside rt_pipe_sig; reset_keeping_index() and draw_begin_recording() keep both sides' lines. tests/test_vertex_bind_range.py failed on this PR before the rebase too (the fast path's vkCmdBindVertexBuffers2 was a second bind site); it now admits that one site and checks that bind_vertex_streams_fast binds only the runs that changed. The fixtures that copy draw_begin_recording() stub pipe_vb_fast_begin_recording(), and test_draw_side_effects runs the draw's readiness block with the switch on and a memo that never hits.
  • After the rebase (Windows, through dev.py queue):
    • the changed renderer units (vk_draw.cpp, vk_replay.cpp) pass clang++ -fsyntax-only with the build's flags.
    • tests/run_all.py --changed origin/main on main 1c91b18f: 325 passed, 1 failed, 14 skipped.
    • test_switch_table fails here, and the same way on main 1c91b18f and a98cf28a: LONGSHOT_SANDBOX_PROGRAMDATA (host/sandbox_win_plan.h:41) has no row in gpu/vk/switches.def.
    • after the last rebase onto a98cf28a, which changed none of this PR's files, test_intel_quick_compute (the one check main changed among those that read this PR's files) passes.

Tested by others:

  • AMD Lab, Linux, Core i7-9700K, Radeon RX 580 (RADV 26.2.6), Market, 1280x720 at 50 % render, RX_VK_PIPE_VB_FAST=0 against 1 on e5cac07, three alternating pairs of 40 s: within the run-to-run spread. Median average FPS 55.15 → 55.18 (+0.05 %), p99 frame time 46.17 → 45.60 ms, frames of 50 ms or more 9 / 19 / 6 against 0 / 17 / 8.
  • Beanstalk, e5cac07 against main 55773e3, Market and Kokiri Forest: failed on windows+nvidia and linux+nvidia. One PR start crashed or hung on each (RTX 3050 Ti laptop, Windows: the second PR start, 0.7 s into the run; RTX 5070, Linux: the first PR start, 0.3 s into the run); none of main's starts did. The 0.87 picture difference is that stuck start's black frame. The reports keep no log of the crashed start. The same PCs' RX_VK_PIPE_VB_FAST=check live-parity runs passed (the 3050 Ti: 1,400,104 draws, 1,237,642 VB checks, 0 mismatches). p99 frame time windows+nvidia 19.9 → 18.4 ms, linux+nvidia 11.5 → 11.9, windows+amd 39.5 → 39.3, linux+radv 10.6 → 10.9, intel 200.7 → 203.2, steamdeck 38.2 → 35.6; those four could not be judged (an expected log line was missing on both sides, and the Intel PC crashed on both sides).

Still to test:

  • The two NVIDIA crashes: a farm run of the rebased head on NVIDIA, with a crash log or dump if one recurs. Until then this is not ready to merge.
  • A base-against-head comparison at a player's settings: the A/Bs flip the switch within this build, and the measurements were taken before main had RX_VK_PIPE_FAST, which makes the graphics_pipeline() lookup the memo skips cheaper. They have not been taken again on current main.

Measurements

Verdict: faster: +1.62% fps, the mean frame time -0.211 ms (95% interval +0.88% to +2.37% faster vs RX_VK_PIPE_VB_FAST=0).

Setup: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4); Market, child (crowded), 50% res (768x432), output res 1280x720, frame generation Off, vsync Off, uncapped (HOS_FPS_MAX=1000), queued in-run HOS_AB=RX_VK_PIPE_VB_FAST=0,3,0 across 5×90 s runs (145 paired periods; 15,792 ON frames vs 15,551 OFF frames).

Baseline: both columns are one build, e5cac072f on perf/vk-pipe-vb-memo (main @ 55773e361): RX_VK_PIPE_VB_FAST=0 (Before) against RX_VK_PIPE_VB_FAST unset (After).

Before, RX_VK_PIPE_VB_FAST=0: this PR @ e5cac072 After, RX_VK_PIPE_VB_FAST unset: this PR @ e5cac072 Δ
fps 76.79 78.01 +1.62%
mean frame time 13.02 ms 12.82 ms -0.20 ms
median frame time 12.75 ms 12.54 ms -0.21 ms
1% low fps 60.42 60.68 +0.43%
0.1% low fps 46.36 47.73 +2.96%
cmds_ms 2.355 ms 2.157 ms -8.39% (-0.198 ms)
draw_ms 7.570 ms 7.327 ms -3.22% (-0.244 ms)
pipelines_ms 0.423 ms 0.414 ms -2.02% (-0.009 ms)

Risks

Set RX_VK_PIPE_VB_FAST=0 to revert to the un-memoized graphics_pipeline() lookup and full 16-slot vertex_bind_range() path, or RX_VK_PIPE_VB_FAST=check to cross-check live parity. NvnState and kNotesFormat are unchanged (generation counters live in StateExtra sidecar in vk_replay.cpp), so pipeline notes and saves are unaffected.

Assisted-by: Antigravity

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (the whole suite has not run on this branch; Testing lists the checks that ran).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary Cuts graphics pipeline lookup and vertex-stream binding overhead on the single-threaded replay hot path (`draw_ms` / `cmds_ms` / `pipelines_ms`). Before this change, every draw hashed/scanned pipeline inputs across `pipe_fast` + `pipeline_key` and unconditionally scanned and bound all 16 vertex buffer slots (even unused slots or draws whose bound streams did not change, such as mesh/task or subset-attribute draws). With `RX_VK_PIPE_VB_FAST` (default on, `1`), `gpu/vk/pipe_vb_memo.h` adds: 1. An L1-resident 256-slot direct-mapped `PipeMemo` keyed by compact sidecar generations (`state_vinput_gen`, `Targets::rt_pipe_sig`, `non_eds3_sig`, packed `topo_and_meta`, and `vs_loads_mask_of` / `vinput_sig_of` 64-slot TLS caches) in `gpu/vk/vk_draw.cpp` and `gpu/vk/vk_replay.cpp`. It sits in `draw()` in front of `graphics_pipeline()`, whose own per-thread cache is main's `RX_VK_PIPE_FAST`: a memo hit skips both, a miss goes through `graphics_pipeline()` unchanged. 2. Pipeline-masked sparse vertex stream binding (`PipeEntry::stream_mask`, `PipeEntry::zero_used`, `state_vb_dirty_take`, and `CmdBound::vb_bound_mask` / `vb_known_mask`), resolving and calling `vkCmdBindVertexBuffers2(...)` only for streams actually read by the active pipeline whose state or bind stamp changed. First read [pipe_vb_memo.h](gpu/vk/pipe_vb_memo.h), [vk_draw.cpp](gpu/vk/vk_draw.cpp), [vk_replay.cpp](gpu/vk/vk_replay.cpp), and [vk_internal.h](gpu/vk/vk_internal.h). ## Testing **Tested:** Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4). - `python -X utf8 -I tests/test_vk_pipe_vb_fast.py --headers ...` passed (`0` mismatches on randomized 2000-op A/B trace + source wiring checks + 7 broken variants caught). - `python -X utf8 -I tests/test_hos_ab.py`, `tests/test_flat_map.py`, `tests/test_same_draw.py`, `tests/test_saveload_warm_cache.py`, `tests/test_notes_format.py` passed. - Live Market (`RX_VK_PIPE_VB_FAST=1`, 25 s): 1447 frames, `RUN_ERROR=None`. - Live parity (`RX_VK_PIPE_VB_FAST=check`, 25 s): 11,200,000+ draws (81.7% `PipeMemo` hits), 10,989,178+ VB checks, `0` mismatches, `RUN_ERROR=None`. - Queued in-run `HOS_AB` (`HOS_AB=RX_VK_PIPE_VB_FAST=0,3,0`, 5×90 s, 145 paired periods in Market): 5/5 runs won, zero crashes/errors. - Rebased onto `main @ a98cf28a`. Main's `RX_VK_PIPE_FAST` moved `graphics_pipeline()`'s thread map into `pipe_fast::StateT::mine`, so this PR's `TLS_OBJECT(pipe_mine, ...)` is gone and `graphics_pipeline()` is main's as it is; `Targets` keeps main's `rt_serial` beside `rt_pipe_sig`; `reset_keeping_index()` and `draw_begin_recording()` keep both sides' lines. `tests/test_vertex_bind_range.py` failed on this PR before the rebase too (the fast path's `vkCmdBindVertexBuffers2` was a second bind site); it now admits that one site and checks that `bind_vertex_streams_fast` binds only the runs that changed. The fixtures that copy `draw_begin_recording()` stub `pipe_vb_fast_begin_recording()`, and `test_draw_side_effects` runs the draw's readiness block with the switch on and a memo that never hits. - After the rebase (Windows, through `dev.py queue`): - the changed renderer units (`vk_draw.cpp`, `vk_replay.cpp`) pass `clang++ -fsyntax-only` with the build's flags. - `tests/run_all.py --changed origin/main` on main `1c91b18f`: 325 passed, 1 failed, 14 skipped. - `test_switch_table` fails here, and the same way on main `1c91b18f` and `a98cf28a`: `LONGSHOT_SANDBOX_PROGRAMDATA` (`host/sandbox_win_plan.h:41`) has no row in `gpu/vk/switches.def`. - after the last rebase onto `a98cf28a`, which changed none of this PR's files, `test_intel_quick_compute` (the one check main changed among those that read this PR's files) passes. **Tested by others:** - AMD Lab, Linux, Core i7-9700K, Radeon RX 580 (RADV 26.2.6), Market, 1280x720 at 50 % render, `RX_VK_PIPE_VB_FAST=0` against `1` on `e5cac07`, three alternating pairs of 40 s: within the run-to-run spread. Median average FPS 55.15 → 55.18 (+0.05 %), p99 frame time 46.17 → 45.60 ms, frames of 50 ms or more 9 / 19 / 6 against 0 / 17 / 8. - Beanstalk, `e5cac07` against main `55773e3`, Market and Kokiri Forest: **failed on windows+nvidia and linux+nvidia.** One PR start crashed or hung on each (RTX 3050 Ti laptop, Windows: the second PR start, 0.7 s into the run; RTX 5070, Linux: the first PR start, 0.3 s into the run); none of main's starts did. The 0.87 picture difference is that stuck start's black frame. The reports keep no log of the crashed start. The same PCs' `RX_VK_PIPE_VB_FAST=check` live-parity runs passed (the 3050 Ti: 1,400,104 draws, 1,237,642 VB checks, 0 mismatches). p99 frame time windows+nvidia 19.9 → 18.4 ms, linux+nvidia 11.5 → 11.9, windows+amd 39.5 → 39.3, linux+radv 10.6 → 10.9, intel 200.7 → 203.2, steamdeck 38.2 → 35.6; those four could not be judged (an expected log line was missing on both sides, and the Intel PC crashed on both sides). **Still to test:** - The two NVIDIA crashes: a farm run of the rebased head on NVIDIA, with a crash log or dump if one recurs. Until then this is not ready to merge. - A base-against-head comparison at a player's settings: the A/Bs flip the switch within this build, and the measurements were taken before main had `RX_VK_PIPE_FAST`, which makes the `graphics_pipeline()` lookup the memo skips cheaper. They have not been taken again on current main. ## Measurements **Verdict:** faster: +1.62% fps, the mean frame time -0.211 ms (95% interval +0.88% to +2.37% faster vs `RX_VK_PIPE_VB_FAST=0`). Setup: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4); Market, child (crowded), 50% res (768x432), output res 1280x720, frame generation Off, vsync Off, uncapped (`HOS_FPS_MAX=1000`), queued in-run `HOS_AB=RX_VK_PIPE_VB_FAST=0,3,0` across 5×90 s runs (145 paired periods; 15,792 ON frames vs 15,551 OFF frames). Baseline: both columns are one build, `e5cac072f` on `perf/vk-pipe-vb-memo` (`main` @ `55773e361`): `RX_VK_PIPE_VB_FAST=0` (Before) against `RX_VK_PIPE_VB_FAST` unset (After). | | Before, RX_VK_PIPE_VB_FAST=0: this PR @ e5cac072 | After, RX_VK_PIPE_VB_FAST unset: this PR @ e5cac072 | Δ | |---|---|---|---| | fps | 76.79 | 78.01 | +1.62% | | mean frame time | 13.02 ms | 12.82 ms | -0.20 ms | | median frame time | 12.75 ms | 12.54 ms | -0.21 ms | | 1% low fps | 60.42 | 60.68 | +0.43% | | 0.1% low fps | 46.36 | 47.73 | +2.96% | | `cmds_ms` | 2.355 ms | 2.157 ms | -8.39% (-0.198 ms) | | `draw_ms` | 7.570 ms | 7.327 ms | -3.22% (-0.244 ms) | | `pipelines_ms` | 0.423 ms | 0.414 ms | -2.02% (-0.009 ms) | ## Risks Set `RX_VK_PIPE_VB_FAST=0` to revert to the un-memoized `graphics_pipeline()` lookup and full 16-slot `vertex_bind_range()` path, or `RX_VK_PIPE_VB_FAST=check` to cross-check live parity. `NvnState` and `kNotesFormat` are unchanged (generation counters live in `StateExtra` sidecar in `vk_replay.cpp`), so pipeline notes and saves are unaffected. Assisted-by: Antigravity ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (the whole suite has not run on this branch; Testing lists the checks that ran). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
perf(vk): add L1 PipeMemo and pipeline-masked sparse vertex binding (RX_VK_PIPE_VB_FAST)
Some checks reported errors
PR description / Title and description (pull_request_target) Successful in 6s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 1/1 fail
beanstalk/linux+nvidia 1/1 fail
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 2 error
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
e5cac072f4
Implement Wave 5C (RX_VK_PIPE_VB_FAST, default 1, supporting 0/1/check and HOS_AB):
- Add gpu/vk/pipe_vb_memo.h with a 256-slot direct-mapped PipeMemo, TLS sidecar vs_loads_mask cache keyed on const Program*, cached (vinput_gen, vs_loads_mask) -> vinput_sig, and full EDS3/non-EDS3/mesh/fallback signature parity.
- Keep NvnState, Program, and vk_shader.cpp unchanged by storing vinput_gen and vb_dirty in vk_replay.cpp's StateExtra sidecar and precomputing rt_pipe_sig inside targets().
- Promote pipe_mine to TLS_OBJECT and add PipeEntry::stream_mask / zero_used + CmdBound::vb_bound_mask / vb_known_mask / vb_stamp for sparse contiguous-run vertex binding.
- Wire RX_VK_PIPE_VB_FAST in switches.def, test_hos_ab.py, and add tests/test_vk_pipe_vb_fast.py.

Assisted-by: Antigravity
Author
Contributor

Tested in game: Windows 11 RTX 4060 Market CPU-bound 5x90s HOS_AB (+1.62% FPS, 95% CI +0.88%..+2.37%, cmds_ms -8.39%) and =check 0 mismatches on 11.2M draws

Tested in game: Windows 11 RTX 4060 Market CPU-bound 5x90s HOS_AB (+1.62% FPS, 95% CI +0.88%..+2.37%, cmds_ms -8.39%) and =check 0 mismatches on 11.2M draws
Member

Possibly related, for context:

  • PR #2132 WIP: perf(vk): a draw's state compares in x86-64 assembly (dynamic state, vertex set, binding range, pipeline key) — Overlapping Vulkan draw/pipeline-key hot-path optimization
  • PR #801 WIP: feat(vk): vertex input as dynamic state, so one pipeline serves every vertex layout of a program (RX_VK_DYNAMIC_VERTEX_INPUT, opt-in) — Related pipeline vertex-input handling; distinct dynamic-state approach
  • issue #402 Deck: the frame is CPU-bound in the submission path, not GPU-bound (16 fps at 50% internal, GPU-bound wait 0.4 ms) — Reports CPU-side Vulkan submission costs on Steam Deck
Possibly related, for context: - PR #2132 WIP: perf(vk): a draw's state compares in x86-64 assembly (dynamic state, vertex set, binding range, pipeline key) — Overlapping Vulkan draw/pipeline-key hot-path optimization - PR #801 WIP: feat(vk): vertex input as dynamic state, so one pipeline serves every vertex layout of a program (RX_VK_DYNAMIC_VERTEX_INPUT, opt-in) — Related pipeline vertex-input handling; distinct dynamic-state approach - issue #402 Deck: the frame is CPU-bound in the submission path, not GPU-bound (16 fps at 50% internal, GPU-bound wait 0.4 ms) — Reports CPU-side Vulkan submission costs on Steam Deck
Owner

@review
@beanstalk

@review @beanstalk
Member
Beanstalk test farm · an earlier run: commit e5cac07 (the newer results are in a comment below)

Commit e5cac07 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm cannot run the requested macOS comparison; its live parity check covers the available targets instead.
⚠️ Note: The plan compares the shipping default with main, not the PR's switch-off path; its noise-tolerant limits cannot establish the claimed 1.62% gain or isolate draw, command and pipeline timings.

Summary, written by AI (gpt-6.1-terra) from the numbers below:

The change failed on Windows and Linux NVIDIA; Windows AMD, Linux RADV, Intel and Steam Deck could not be judged. The RTX 3050 Ti and RTX 5070 reports each recorded a candidate crash versus none on the baseline, and the 3050 Ti screenshot maximum difference rose from 0.1736 to 0.8658 against a 0.2 limit. Missing expected log lines left required comparisons unjudged; on the Windows Intel PC, both baseline and candidate crashed in all three performance starts, pointing to that PC rather than the change.

Done (started 2026-12-02 16:09 UTC, last report 11:23 UTC). Comment @Beanstalk to run it again.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ❌ fail (an outlier) 2 1 2 19.9 → 18.4 (−7%) — 1 PR run
linux+nvidia ❌ fail (an outlier) 2 1 2 11.5 → 11.9 (+3%) — 1 PR run
windows+amd ⚠️ couldn't be judged (an outlier) 2 1 2 39.5 → 39.3 (−1%) — none
linux+radv ⚠️ couldn't be judged (an outlier) 2 1 2 10.6 → 10.9 (+3%) — none
intel ⚠️ couldn't be judged (an outlier) 2 1 2 200.7 → 203.2 (+1%) — 4 PR runs
steamdeck ⚠️ couldn't be judged (an outlier) 2 1 2 38.2 → 35.6 (−7%) — none

Why it failed

  • windows+nvidia: performance-and-pictures crash: 1 PR run crashed
  • windows+nvidia: performance-and-pictures screenshot.max_diff: 0.2 → 0.9; limit 0.2
  • linux+nvidia: performance-and-pictures crash: 1 PR run crashed

Couldn't be judged: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own.

  • windows+nvidia, report 1: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • linux+nvidia, report 1: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • windows+amd, report 1: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • windows+amd, report 2: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • linux+radv, report 1: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • linux+radv, report 2: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • intel, report 1: Insufficient frame-time evidence for 8 required comparison(s). See rule results.
  • intel, report 2: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • and 2 more, in the reports
What was tested

What will be tested · AI plan (gpt-6.1-terra)

The farm will compare the PR with main on NVIDIA, AMD, Intel and Steam Deck hardware, including Windows NVIDIA and Linux RADV paths. Three uncapped starts per side measure warmed frame times in Market and Kokiri Forest at 1280x720, with stationary picture comparisons at both places. A separate check-mode start exercises live pipeline and vertex-binding parity in both scenes. Crashes, substantial frame-time regressions, excessive picture differences or logged parity mismatches fail the PR; missing check-mode summaries are reported as unjudged. No tester online now matches linux+nvidia: that target waits for one.

  • Where: windows+nvidia (1-2 reports), linux+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports).
  • performance-and-pictures: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Kokiri Forest, take the picture kokiri to compare with main, measure kokiri for 30 s (after 10 s warm-up); 3 runs on each side.
  • live-parity: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check), then teleport to Market, teleport to Kokiri Forest; 1 run on each side.
  • Measured: crashes, frame times, stutters and hitches, the game's log (an expected line that never appears: could not be judged).
  • The PR fails if: it crashes; or median frame time in kokiri is more than 15% above main; or frame time (p99) in kokiri is more than 20% above main; or median frame time in market is more than 15% above main; or frame time (p99) in market is more than 20% above main; or a picture differs from main by more than 20%; or forbidden log lines is above 0; or expected log lines missing is above 0.
  • Time: about 51 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `windows+nvidia`, for the PR description

Verdict: fail on windows+nvidia (2 reports): performance-and-pictures crash; performance-and-pictures screenshot.max_diff failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 3070, 621.35.0 AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0 AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ e5cac07
performance-and-pictures · kokiri · median frame time (ms) 16.4 14.3 (−13%)
performance-and-pictures · market · median frame time (ms) 24.6 24.3 (−1%)
performance-and-pictures · kokiri · frame time (p99) (ms) 19.9 18.4 (−7%)
performance-and-pictures · market · frame time (p99) (ms) 33.2 32.6 (−2%)
performance-and-pictures · forbidden log lines 0.0 0.0
performance-and-pictures · expected log lines missing 1.0 1.0 (+0%)
live-parity · forbidden log lines 0.0 0.0
live-parity · expected log lines missing 1.0 0.0 (−100%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+nvidia (2 reports): `performance-and-pictures crash`; `performance-and-pictures screenshot.max_diff` failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM`  
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ e5cac07 |
|---|---|---|
| performance-and-pictures · kokiri · median frame time (ms) | 16.4 | 14.3 (−13%) |
| performance-and-pictures · market · median frame time (ms) | 24.6 | 24.3 (−1%) |
| performance-and-pictures · kokiri · frame time (p99) (ms) | 19.9 | 18.4 (−7%) |
| performance-and-pictures · market · frame time (p99) (ms) | 33.2 | 32.6 (−2%) |
| performance-and-pictures · forbidden log lines | 0.0 | 0.0 |
| performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) |
| live-parity · forbidden log lines | 0.0 | 0.0 |
| live-parity · expected log lines missing | 1.0 | 0.0 (−100%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `linux+nvidia`, for the PR description

Verdict: fail on linux+nvidia (2 reports): performance-and-pictures crash failed.

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1660 Ti, 620.73.4 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM; 2: linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ e5cac07
performance-and-pictures · kokiri · median frame time (ms) 8.9 9.1 (+2%)
performance-and-pictures · market · median frame time (ms) 12.6 12.5 (−1%)
performance-and-pictures · kokiri · frame time (p99) (ms) 11.5 11.9 (+3%)
performance-and-pictures · market · frame time (p99) (ms) 16.6 16.3 (−2%)
performance-and-pictures · forbidden log lines 0.0 0.0
performance-and-pictures · expected log lines missing 1.0 1.0 (+0%)
live-parity · forbidden log lines 0.0 0.0
live-parity · expected log lines missing 1.0 0.0 (−100%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+nvidia (2 reports): `performance-and-pictures crash` failed.

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`  
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ e5cac07 |
|---|---|---|
| performance-and-pictures · kokiri · median frame time (ms) | 8.9 | 9.1 (+2%) |
| performance-and-pictures · market · median frame time (ms) | 12.6 | 12.5 (−1%) |
| performance-and-pictures · kokiri · frame time (p99) (ms) | 11.5 | 11.9 (+3%) |
| performance-and-pictures · market · frame time (p99) (ms) | 16.6 | 16.3 (−2%) |
| performance-and-pictures · forbidden log lines | 0.0 | 0.0 |
| performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) |
| live-parity · forbidden log lines | 0.0 | 0.0 |
| live-parity · expected log lines missing | 1.0 | 0.0 (−100%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `windows+amd`, for the PR description

Verdict: could not be judged on windows+amd (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM; 2: windows+amd+amd-proprietary+igpu+window+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ e5cac07
performance-and-pictures · kokiri · median frame time (ms) 36.8 36.7 (−0%)
performance-and-pictures · market · median frame time (ms) 39.8 39.7 (−0%)
performance-and-pictures · kokiri · frame time (p99) (ms) 39.5 39.3 (−1%)
performance-and-pictures · market · frame time (p99) (ms) 44.9 44.1 (−2%)
performance-and-pictures · forbidden log lines 0.0 0.0
performance-and-pictures · expected log lines missing 1.0 1.0 (+0%)
live-parity · forbidden log lines 0.0 0.0
live-parity · expected log lines missing 1.0 0.0 (−100%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on windows+amd (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM`  
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ e5cac07 |
|---|---|---|
| performance-and-pictures · kokiri · median frame time (ms) | 36.8 | 36.7 (−0%) |
| performance-and-pictures · market · median frame time (ms) | 39.8 | 39.7 (−0%) |
| performance-and-pictures · kokiri · frame time (p99) (ms) | 39.5 | 39.3 (−1%) |
| performance-and-pictures · market · frame time (p99) (ms) | 44.9 | 44.1 (−2%) |
| performance-and-pictures · forbidden log lines | 0.0 | 0.0 |
| performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) |
| live-parity · forbidden log lines | 0.0 | 0.0 |
| live-parity · expected log lines missing | 1.0 | 0.0 (−100%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `linux+radv`, for the PR description

Verdict: could not be judged on linux+radv (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ e5cac07
performance-and-pictures · kokiri · median frame time (ms) 7.3 7.4 (+0%)
performance-and-pictures · market · median frame time (ms) 10.1 9.9 (−1%)
performance-and-pictures · kokiri · frame time (p99) (ms) 10.6 10.9 (+3%)
performance-and-pictures · market · frame time (p99) (ms) 15.1 14.0 (−7%)
performance-and-pictures · forbidden log lines 0.0 0.0
performance-and-pictures · expected log lines missing 1.0 1.0 (+0%)
live-parity · forbidden log lines 0.0 0.0
live-parity · expected log lines missing 1.0 0.0 (−100%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on linux+radv (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`  
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ e5cac07 |
|---|---|---|
| performance-and-pictures · kokiri · median frame time (ms) | 7.3 | 7.4 (+0%) |
| performance-and-pictures · market · median frame time (ms) | 10.1 | 9.9 (−1%) |
| performance-and-pictures · kokiri · frame time (p99) (ms) | 10.6 | 10.9 (+3%) |
| performance-and-pictures · market · frame time (p99) (ms) | 15.1 | 14.0 (−7%) |
| performance-and-pictures · forbidden log lines | 0.0 | 0.0 |
| performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) |
| live-parity · forbidden log lines | 0.0 | 0.0 |
| live-parity · expected log lines missing | 1.0 | 0.0 (−100%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `intel`, for the PR description

Verdict: could not be judged on intel (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+intel+intel-proprietary+igpu+window Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM; 2: linux+intel+anv+igpu Intel(R) Graphics (RKL GT1), 26.2.4 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ e5cac07
performance-and-pictures · kokiri · median frame time (ms) 191.5 190.5 (−1%)
performance-and-pictures · market · median frame time (ms) 215.6 215.1 (−0%)
performance-and-pictures · kokiri · frame time (p99) (ms) 200.7 203.2 (+1%)
performance-and-pictures · market · frame time (p99) (ms) 234.4 237.7 (+1%)
performance-and-pictures · forbidden log lines 0.0 0.0
performance-and-pictures · expected log lines missing 1.0 1.0 (+0%)
live-parity · forbidden log lines 0.0 0.0
live-parity · expected log lines missing 1.0 0.5 (−50%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on intel (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM`  
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ e5cac07 |
|---|---|---|
| performance-and-pictures · kokiri · median frame time (ms) | 191.5 | 190.5 (−1%) |
| performance-and-pictures · market · median frame time (ms) | 215.6 | 215.1 (−0%) |
| performance-and-pictures · kokiri · frame time (p99) (ms) | 200.7 | 203.2 (+1%) |
| performance-and-pictures · market · frame time (p99) (ms) | 234.4 | 237.7 (+1%) |
| performance-and-pictures · forbidden log lines | 0.0 | 0.0 |
| performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) |
| live-parity · forbidden log lines | 0.0 | 0.0 |
| live-parity · expected log lines missing | 1.0 | 0.5 (−50%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
Measurements on `steamdeck`, for the PR description

Verdict: could not be judged on steamdeck (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM; 2: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ e5cac07
performance-and-pictures · kokiri · median frame time (ms) 28.3 28.3 (+0%)
performance-and-pictures · market · median frame time (ms) 36.4 35.6 (−2%)
performance-and-pictures · kokiri · frame time (p99) (ms) 38.2 35.6 (−7%)
performance-and-pictures · market · frame time (p99) (ms) 49.8 47.9 (−4%)
performance-and-pictures · forbidden log lines 0.0 0.0
performance-and-pictures · expected log lines missing 1.0 1.0 (+0%)
live-parity · forbidden log lines 0.0 0.0
live-parity · expected log lines missing 1.0 0.0 (−100%)

Flags and settings

None: the plan varied no setting, switch or build option.

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on steamdeck (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`  
Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ e5cac07 |
|---|---|---|
| performance-and-pictures · kokiri · median frame time (ms) | 28.3 | 28.3 (+0%) |
| performance-and-pictures · market · median frame time (ms) | 36.4 | 35.6 (−2%) |
| performance-and-pictures · kokiri · frame time (p99) (ms) | 38.2 | 35.6 (−7%) |
| performance-and-pictures · market · frame time (p99) (ms) | 49.8 | 47.9 (−4%) |
| performance-and-pictures · forbidden log lines | 0.0 | 0.0 |
| performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) |
| live-parity · forbidden log lines | 0.0 | 0.0 |
| live-parity · expected log lines missing | 1.0 | 0.0 (−100%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
The testers' hardware
Target Report Ran on
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 3070, 621.35.0 AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0 AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM
linux+nvidia 1 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1660 Ti, 620.73.4 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM
linux+nvidia 2 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
windows+amd 1 windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
windows+amd 2 windows+amd+amd-proprietary+igpu+window+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
linux+radv 1 linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM
linux+radv 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
intel 1 windows+intel+intel-proprietary+igpu+window Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
intel 2 linux+intel+anv+igpu Intel(R) Graphics (RKL GT1), 26.2.4 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
steamdeck 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>e5cac07</code> (the newer results are in a comment below)</summary> Commit `e5cac07` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2959) ⚠️ **Note:** The farm cannot run the requested macOS comparison; its live parity check covers the available targets instead. ⚠️ **Note:** The plan compares the shipping default with main, not the PR's switch-off path; its noise-tolerant limits cannot establish the claimed 1.62% gain or isolate draw, command and pipeline timings. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change failed on Windows and Linux NVIDIA; Windows AMD, Linux RADV, Intel and Steam Deck could not be judged. The RTX 3050 Ti and RTX 5070 reports each recorded a candidate crash versus none on the baseline, and the 3050 Ti screenshot maximum difference rose from 0.1736 to 0.8658 against a 0.2 limit. Missing expected log lines left required comparisons unjudged; on the Windows Intel PC, both baseline and candidate crashed in all three performance starts, pointing to that PC rather than the change. Done (started 2026-12-02 16:09 UTC, last report 11:23 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_146e07e3749a0e75) [2](https://beanstalk.magicbean.dev/reports/rp_6aeb02572ebc2657) | 19.9 → 18.4 (−7%) | — | 1 PR run | | `linux+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_d3779ab869f12dde) [2](https://beanstalk.magicbean.dev/reports/rp_f7fedf8e383df278) | 11.5 → 11.9 (+3%) | — | 1 PR run | | `windows+amd` | ⚠️ couldn't be judged (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_87913c6110df4edc) [2](https://beanstalk.magicbean.dev/reports/rp_3ebf07da95a21703) | 39.5 → 39.3 (−1%) | — | none | | `linux+radv` | ⚠️ couldn't be judged (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_b579dbd01dfab9fa) [2](https://beanstalk.magicbean.dev/reports/rp_714bc67ade4359da) | 10.6 → 10.9 (+3%) | — | none | | `intel` | ⚠️ couldn't be judged (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_0e334072bcbe557c) [2](https://beanstalk.magicbean.dev/reports/rp_b4b0a051fd306cc3) | 200.7 → 203.2 (+1%) | — | 4 PR runs | | `steamdeck` | ⚠️ couldn't be judged (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_3e2adb62aee8fa17) [2](https://beanstalk.magicbean.dev/reports/rp_52b31b0dd7f5b6fb) | 38.2 → 35.6 (−7%) | — | none | **Why it failed** - `windows+nvidia`: `performance-and-pictures` `crash`: `1 PR run crashed` - `windows+nvidia`: `performance-and-pictures` `screenshot.max_diff`: `0.2 → 0.9; limit 0.2` - `linux+nvidia`: `performance-and-pictures` `crash`: `1 PR run crashed` **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `windows+nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_146e07e3749a0e75): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `linux+nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_d3779ab869f12dde): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `windows+amd`, [report 1](https://beanstalk.magicbean.dev/reports/rp_87913c6110df4edc): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `windows+amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_3ebf07da95a21703): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `linux+radv`, [report 1](https://beanstalk.magicbean.dev/reports/rp_b579dbd01dfab9fa): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `linux+radv`, [report 2](https://beanstalk.magicbean.dev/reports/rp_714bc67ade4359da): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_0e334072bcbe557c): `Insufficient frame-time evidence for 8 required comparison(s). See rule results.` - `intel`, [report 2](https://beanstalk.magicbean.dev/reports/rp_b4b0a051fd306cc3): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - and 2 more, in the reports <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The farm will compare the PR with main on NVIDIA, AMD, Intel and Steam Deck hardware, including Windows NVIDIA and Linux RADV paths. Three uncapped starts per side measure warmed frame times in Market and Kokiri Forest at 1280x720, with stationary picture comparisons at both places. A separate check-mode start exercises live pipeline and vertex-binding parity in both scenes. Crashes, substantial frame-time regressions, excessive picture differences or logged parity mismatches fail the PR; missing check-mode summaries are reported as unjudged. No tester online now matches linux+nvidia: that target waits for one. - **Where:** windows+nvidia (1-2 reports), linux+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports). - **performance-and-pictures:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Kokiri Forest, take the picture kokiri to compare with main, measure kokiri for 30 s (after 10 s warm-up); 3 runs on each side. - **live-parity:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`, `RX_VK_PIPE_VB_FAST=check`), then teleport to Market, teleport to Kokiri Forest; 1 run on each side. - **Measured:** crashes, frame times, stutters and hitches, the game's log (an expected line that never appears: could not be judged). - **The PR fails if:** it crashes; or median frame time in kokiri is more than 15% above main; or frame time (p99) in kokiri is more than 20% above main; or median frame time in market is more than 15% above main; or frame time (p99) in market is more than 20% above main; or a picture differs from main by more than 20%; or forbidden log lines is above 0; or expected log lines missing is above 0. - **Time:** about 51 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** fail on windows+nvidia (2 reports): `performance-and-pictures crash`; `performance-and-pictures screenshot.max_diff` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 16.4 | 14.3 (−13%) | | performance-and-pictures · market · median frame time (ms) | 24.6 | 24.3 (−1%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 19.9 | 18.4 (−7%) | | performance-and-pictures · market · frame time (p99) (ms) | 33.2 | 32.6 (−2%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+nvidia (2 reports): `performance-and-pictures crash`; `performance-and-pictures screenshot.max_diff` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 16.4 | 14.3 (−13%) | | performance-and-pictures · market · median frame time (ms) | 24.6 | 24.3 (−1%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 19.9 | 18.4 (−7%) | | performance-and-pictures · market · frame time (p99) (ms) | 33.2 | 32.6 (−2%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+nvidia`, for the PR description</summary> **Verdict:** fail on linux+nvidia (2 reports): `performance-and-pictures crash` failed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 8.9 | 9.1 (+2%) | | performance-and-pictures · market · median frame time (ms) | 12.6 | 12.5 (−1%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 11.5 | 11.9 (+3%) | | performance-and-pictures · market · frame time (p99) (ms) | 16.6 | 16.3 (−2%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+nvidia (2 reports): `performance-and-pictures crash` failed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 8.9 | 9.1 (+2%) | | performance-and-pictures · market · median frame time (ms) | 12.6 | 12.5 (−1%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 11.5 | 11.9 (+3%) | | performance-and-pictures · market · frame time (p99) (ms) | 16.6 | 16.3 (−2%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** could not be judged on windows+amd (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 36.8 | 36.7 (−0%) | | performance-and-pictures · market · median frame time (ms) | 39.8 | 39.7 (−0%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 39.5 | 39.3 (−1%) | | performance-and-pictures · market · frame time (p99) (ms) | 44.9 | 44.1 (−2%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows+amd (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 36.8 | 36.7 (−0%) | | performance-and-pictures · market · median frame time (ms) | 39.8 | 39.7 (−0%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 39.5 | 39.3 (−1%) | | performance-and-pictures · market · frame time (p99) (ms) | 44.9 | 44.1 (−2%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** could not be judged on linux+radv (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 7.3 | 7.4 (+0%) | | performance-and-pictures · market · median frame time (ms) | 10.1 | 9.9 (−1%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 10.6 | 10.9 (+3%) | | performance-and-pictures · market · frame time (p99) (ms) | 15.1 | 14.0 (−7%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on linux+radv (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 7.3 | 7.4 (+0%) | | performance-and-pictures · market · median frame time (ms) | 10.1 | 9.9 (−1%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 10.6 | 10.9 (+3%) | | performance-and-pictures · market · frame time (p99) (ms) | 15.1 | 14.0 (−7%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** could not be judged on intel (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 191.5 | 190.5 (−1%) | | performance-and-pictures · market · median frame time (ms) | 215.6 | 215.1 (−0%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 200.7 | 203.2 (+1%) | | performance-and-pictures · market · frame time (p99) (ms) | 234.4 | 237.7 (+1%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.5 (−50%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on intel (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 191.5 | 190.5 (−1%) | | performance-and-pictures · market · median frame time (ms) | 215.6 | 215.1 (−0%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 200.7 | 203.2 (+1%) | | performance-and-pictures · market · frame time (p99) (ms) | 234.4 | 237.7 (+1%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.5 (−50%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** could not be judged on steamdeck (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 28.3 | 28.3 (+0%) | | performance-and-pictures · market · median frame time (ms) | 36.4 | 35.6 (−2%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 38.2 | 35.6 (−7%) | | performance-and-pictures · market · frame time (p99) (ms) | 49.8 | 47.9 (−4%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on steamdeck (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: performance-and-pictures, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_PIPE_VB_FAST=check); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance-and-pictures: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ e5cac07 | |---|---|---| | performance-and-pictures · kokiri · median frame time (ms) | 28.3 | 28.3 (+0%) | | performance-and-pictures · market · median frame time (ms) | 36.4 | 35.6 (−2%) | | performance-and-pictures · kokiri · frame time (p99) (ms) | 38.2 | 35.6 (−7%) | | performance-and-pictures · market · frame time (p99) (ms) | 49.8 | 47.9 (−4%) | | performance-and-pictures · forbidden log lines | 0.0 | 0.0 | | performance-and-pictures · expected log lines missing | 1.0 | 1.0 (+0%) | | live-parity · forbidden log lines | 0.0 | 0.0 | | live-parity · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_146e07e3749a0e75) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_6aeb02572ebc2657) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` | | `linux+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_d3779ab869f12dde) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM` | | `linux+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_f7fedf8e383df278) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_87913c6110df4edc) | windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` | | `windows+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_3ebf07da95a21703) | windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_b579dbd01dfab9fa) | linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_714bc67ade4359da) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_0e334072bcbe557c) | windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` | | `intel` | [2](https://beanstalk.magicbean.dev/reports/rp_b4b0a051fd306cc3) | linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_3e2adb62aee8fa17) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | | `steamdeck` | [2](https://beanstalk.magicbean.dev/reports/rp_52b31b0dd7f5b6fb) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | </details> </details>
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported 1.62% gain compares two modes of the PR build, so the gain over main remains unproven. The default-on renderer path also needs the Tier 1 hardware runs that the PR lists as outstanding. Recommend approval; not approved on the forge.

The change memoizes graphics-pipeline lookups and binds only vertex streams used by the active pipeline. It adds cache and invalidation logic to the replay hot path; the reported in-build comparison shows a small gain on one NVIDIA Windows system, but does not include the change’s overhead relative to main.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1: Measure the complete change against the merge base before deciding that it improves performance. When: The reported A/B compares switch modes in e5cac072; both include the added replay state tracking and target-signature work, so the comparison cannot show the net gain over 55773e3613. Do: Run interleaved, warmed-up base and PR builds in the same scene and settings, reporting FPS, 1% lows, median and p99 frame times and the targeted timings.
  • L2: Exercise the default-on replay path on the remaining affected Tier 1 systems. When: Only Windows NVIDIA results are reported; AMD Windows and Linux, NVIDIA Linux and Steam Deck can take different Vulkan feature and mesh paths. Do: Request Test Farm parity and performance runs on those systems, including a representative fallback path where available, and record the results.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • The maintainer requested @​beanstalk. No Test Farm tool or adjacent Tooling checkout was available, and the network was closed, so a farm request could not be submitted.

Checks: Still running: 10 checks.

More: does it help, other systems, switches, what was read

Does it help: Unproven against main. The PR reports +1.62% FPS and -0.20 ms mean frame time over five Windows RTX 4060 runs, but both sides used commit e5cac072 with the new switch on or off.

Other systems: The changed replay path runs across Vulkan vendors and operating systems, including mesh and fallback draws. Windows NVIDIA Market play and check mode were reported; Linux, AMD, Intel and Steam Deck results were not provided. Pipeline notes and saves retain their existing formats.

Switches: RX_VK_PIPE_VB_FAST is added as a developer kill switch, default 1; 0 selects the legacy lookup and binding paths, and check runs parity checks. The switch table is updated. The default’s performance and correctness across supported hardware remain unverified.

Reviewed: e5cac072f4 against 55773e3613: Read the repository’s AGENTS.md, CONTRIBUTING.md, pull request template, relevant standards and architecture excerpts, the commit, the changed renderer diff, pipe_vb_memo.h, and relevant pipeline, vertex binding and replay callers. Read the changed test diffs and portions of the new test and runner. The full large renderer files and new test were not read in full; recorded runs are represented by the PR description and comment. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).

Checked and fine:

  • The commit has an Assisted-by trailer.
  • The added switch has a switches.def row.
  • The reported Windows check-mode run observed zero mismatches over more than 11 million draws.
  • The per-thread memo and pipeline map use the existing TLS ownership mechanism.

Testing: No code, tests or project scripts were run, as requested. CI checks were still running in the supplied status.

Overlaps and merge order: Not checked; the network was closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The reported 1.62% gain compares two modes of the PR build, so the gain over main remains unproven. The default-on renderer path also needs the Tier 1 hardware runs that the PR lists as outstanding. Recommend approval; not approved on the forge. The change memoizes graphics-pipeline lookups and binds only vertex streams used by the active pipeline. It adds cache and invalidation logic to the replay hot path; the reported in-build comparison shows a small gain on one NVIDIA Windows system, but does not include the change’s overhead relative to main. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: Measure the complete change against the merge base before deciding that it improves performance. *When:* The reported A/B compares switch modes in e5cac072; both include the added replay state tracking and target-signature work, so the comparison cannot show the net gain over 55773e36136a. **Do:** Run interleaved, warmed-up base and PR builds in the same scene and settings, reporting FPS, 1% lows, median and p99 frame times and the targeted timings. - **L2**: Exercise the default-on replay path on the remaining affected Tier 1 systems. *When:* Only Windows NVIDIA results are reported; AMD Windows and Linux, NVIDIA Linux and Steam Deck can take different Vulkan feature and mesh paths. **Do:** Request Test Farm parity and performance runs on those systems, including a representative fallback path where available, and record the results. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - The maintainer requested @​beanstalk. No Test Farm tool or adjacent Tooling checkout was available, and the network was closed, so a farm request could not be submitted. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against main. The PR reports +1.62% FPS and -0.20 ms mean frame time over five Windows RTX 4060 runs, but both sides used commit e5cac072 with the new switch on or off. **Other systems:** The changed replay path runs across Vulkan vendors and operating systems, including mesh and fallback draws. Windows NVIDIA Market play and check mode were reported; Linux, AMD, Intel and Steam Deck results were not provided. Pipeline notes and saves retain their existing formats. **Switches:** RX_VK_PIPE_VB_FAST is added as a developer kill switch, default 1; 0 selects the legacy lookup and binding paths, and check runs parity checks. The switch table is updated. The default’s performance and correctness across supported hardware remain unverified. **Reviewed:** e5cac072f4f8 against 55773e36136a: Read the repository’s AGENTS.md, CONTRIBUTING.md, pull request template, relevant standards and architecture excerpts, the commit, the changed renderer diff, pipe_vb_memo.h, and relevant pipeline, vertex binding and replay callers. Read the changed test diffs and portions of the new test and runner. The full large renderer files and new test were not read in full; recorded runs are represented by the PR description and comment. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review). **Checked and fine:** - The commit has an Assisted-by trailer. - The added switch has a switches.def row. - The reported Windows check-mode run observed zero mismatches over more than 11 million draws. - The per-thread memo and pipeline map use the existing TLS ownership mechanism. **Testing:** No code, tests or project scripts were run, as requested. CI checks were still running in the supplied status. **Overlaps and merge order:** Not checked; the network was closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Owner

AMD Lab Market A/B on PR head e5cac072f4f8, using RX_VK_PIPE_VB_FAST=0 and RX_VK_PIPE_VB_FAST=1 on the same build.

Within the run-to-run spread. Median average FPS changed by +0.05%.

Metric A (0) B (1)
Average FPS, each capture 55.15 / 54.74 / 57.19 55.57 / 55.18 / 54.73
Average FPS, median 55.15 55.18
1% low FPS (1000 ÷ p99), median 21.66 21.93
Median frame time 17.37 ms 17.69 ms
p99 frame time, median 46.17 ms 45.60 ms
Frames of 50 ms or more, each capture 9 / 19 / 6 0 / 17 / 8

Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 40 seconds per capture after warm-up.

After warm-up, the harness still flagged pipeline or shader activity in 48 / 67 / 17 frames on side A and 7 / 50 / 42 on side B across the three captures. The FPS and tail numbers include those frames.

AMD Lab Market A/B on PR head `e5cac072f4f8`, using `RX_VK_PIPE_VB_FAST=0` and `RX_VK_PIPE_VB_FAST=1` on the same build. **Within the run-to-run spread.** Median average FPS changed by **+0.05%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 55.15 / 54.74 / 57.19 | 55.57 / 55.18 / 54.73 | | Average FPS, median | 55.15 | 55.18 | | 1% low FPS (1000 ÷ p99), median | 21.66 | 21.93 | | Median frame time | 17.37 ms | 17.69 ms | | p99 frame time, median | 46.17 ms | 45.60 ms | | Frames of 50 ms or more, each capture | 9 / 19 / 6 | 0 / 17 / 8 | Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 40 seconds per capture after warm-up. After warm-up, the harness still flagged pipeline or shader activity in 48 / 67 / 17 frames on side A and 7 / 50 / 42 on side B across the three captures. The FPS and tail numbers include those frames.
siantm force-pushed perf/vk-pipe-vb-memo from e5cac072f4
Some checks reported errors
PR description / Title and description (pull_request_target) Successful in 6s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 1/1 fail
beanstalk/linux+nvidia 1/1 fail
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 2 error
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to b18af0e251
Some checks failed
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 7s
2026-12-03 19:34:17 +00:00
Compare
Member

Beanstalk test farm

Commit b18af0e · approved by nobody yet · dashboard

A member of BigBeans can review this commit and comment @Beanstalk to test it.

<!-- beanstalk:sticky --> ### Beanstalk test farm Commit `b18af0e` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/2959) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
Author
Contributor

Rebased onto main @ a98cf28a (the branch was mergeable=False) and pushed b18af0e2.

The rebase

  • Main now has its own pipeline cache, RX_VK_PIPE_FAST, which moved graphics_pipeline()'s per-thread map into pipe_fast::StateT::mine. This PR's PipeMemo now sits in draw() in front of graphics_pipeline(): a memo hit skips both, a miss runs main's graphics_pipeline() unchanged. This PR's own pipe_mine change is gone in favour of main's.
  • Targets keeps main's rt_serial beside rt_pipe_sig. reset_keeping_index() and draw_begin_recording() keep both sides' lines.

Checks that read the changed code

  • tests/test_vertex_bind_range.py already failed on this PR before the rebase, because the fast path's vkCmdBindVertexBuffers2 is a second bind site. It now allows that one site and checks that bind_vertex_streams_fast binds only the streams that changed.
  • The fixtures of test_draw_stream_visibility, test_fsr_uniform_ownership and test_recording_admission copy draw_begin_recording(). They now stub pipe_vb_fast_begin_recording().
  • test_draw_side_effects copies the draw's pipeline-readiness block, which now holds the memo lookup. Its fixture runs it with the switch on and a memo that never hits, so every case still goes through graphics_pipeline() and is checked as before.

Results on Windows, through dev.py queue:

  • The changed renderer units (vk_draw.cpp, vk_replay.cpp) pass clang++ -fsyntax-only with the build's flags.
  • tests/run_all.py --changed origin/main on main 1c91b18f: 325 passed, 1 failed, 14 skipped.
  • test_switch_table fails here, and the same way on main 1c91b18f and a98cf28a: LONGSHOT_SANDBOX_PROGRAMDATA (host/sandbox_win_plan.h:41) has no row in gpu/vk/switches.def.
  • After the last rebase onto a98cf28a, which changed none of this PR's files, test_intel_quick_compute (the one check main changed among those that read this PR's files) passes.

Beanstalk: the NVIDIA crashes are unexplained. One PR start crashed on each NVIDIA PC, and none of main's starts did:

  • RTX 3050 Ti laptop, Windows: the second PR start, 0.7 s into the run.
  • RTX 5070, Linux: the first PR start, 0.3 s into the run.

The 0.87 picture difference on windows+nvidia is that crashed start's black frame. The reports keep no log of the crashed start, so I can't tell where it stopped. Here is what I checked, none of which explains it:

  • The same 3050 Ti's RX_VK_PIPE_VB_FAST=check run compared the memo and the sparse binding against the old path: 1,400,104 draws, 1,237,642 vertex-binding checks, 0 mismatches.
  • I read the memo and the binding for stale pointers and thread races and found neither. The memo is per thread, and the PipeEntry objects it points to are never erased from pipelines.

Could a maintainer run the farm again on NVIDIA (windows+nvidia and linux+nvidia) on this head? If a start crashes again, its log or dump would show where. This shouldn't merge until that run comes back clean.

Other results

  • AMD Lab (RX 580, RADV), =0 against =1: +0.05 % median FPS, within the run-to-run spread. Thanks.
  • The other four farm targets couldn't be judged. Their p99 moved by −7 % to +3 %, with no crash on the PR side except the Intel PC, which crashed on both sides.

Still open (I can't run these here: one Windows RTX 4060, shared GPU queue)

  • BeanBot L1: the whole change against its base. The +1.62 % in the description flips the switch inside one build, and it was measured before main had RX_VK_PIPE_FAST. Main's cache makes the graphics_pipeline() lookup that the memo skips cheaper, so the gain may be smaller now.
  • BeanBot L2: the other Tier 1 systems. AMD Lab covered Linux RADV; the farm re-run above would cover NVIDIA.
Rebased onto main @ `a98cf28a` (the branch was `mergeable=False`) and pushed `b18af0e2`. **The rebase** - Main now has its own pipeline cache, `RX_VK_PIPE_FAST`, which moved `graphics_pipeline()`'s per-thread map into `pipe_fast::StateT::mine`. This PR's `PipeMemo` now sits in `draw()` in front of `graphics_pipeline()`: a memo hit skips both, a miss runs main's `graphics_pipeline()` unchanged. This PR's own `pipe_mine` change is gone in favour of main's. - `Targets` keeps main's `rt_serial` beside `rt_pipe_sig`. `reset_keeping_index()` and `draw_begin_recording()` keep both sides' lines. **Checks that read the changed code** - `tests/test_vertex_bind_range.py` already failed on this PR before the rebase, because the fast path's `vkCmdBindVertexBuffers2` is a second bind site. It now allows that one site and checks that `bind_vertex_streams_fast` binds only the streams that changed. - The fixtures of `test_draw_stream_visibility`, `test_fsr_uniform_ownership` and `test_recording_admission` copy `draw_begin_recording()`. They now stub `pipe_vb_fast_begin_recording()`. - `test_draw_side_effects` copies the draw's pipeline-readiness block, which now holds the memo lookup. Its fixture runs it with the switch on and a memo that never hits, so every case still goes through `graphics_pipeline()` and is checked as before. Results on Windows, through `dev.py queue`: - The changed renderer units (`vk_draw.cpp`, `vk_replay.cpp`) pass `clang++ -fsyntax-only` with the build's flags. - `tests/run_all.py --changed origin/main` on main `1c91b18f`: 325 passed, 1 failed, 14 skipped. - `test_switch_table` fails here, and the same way on main `1c91b18f` and `a98cf28a`: `LONGSHOT_SANDBOX_PROGRAMDATA` (`host/sandbox_win_plan.h:41`) has no row in `gpu/vk/switches.def`. - After the last rebase onto `a98cf28a`, which changed none of this PR's files, `test_intel_quick_compute` (the one check main changed among those that read this PR's files) passes. **Beanstalk: the NVIDIA crashes are unexplained.** One PR start crashed on each NVIDIA PC, and none of main's starts did: - RTX 3050 Ti laptop, Windows: the second PR start, 0.7 s into the run. - RTX 5070, Linux: the first PR start, 0.3 s into the run. The 0.87 picture difference on windows+nvidia is that crashed start's black frame. The reports keep no log of the crashed start, so I can't tell where it stopped. Here is what I checked, none of which explains it: - The same 3050 Ti's `RX_VK_PIPE_VB_FAST=check` run compared the memo and the sparse binding against the old path: 1,400,104 draws, 1,237,642 vertex-binding checks, 0 mismatches. - I read the memo and the binding for stale pointers and thread races and found neither. The memo is per thread, and the `PipeEntry` objects it points to are never erased from `pipelines`. Could a maintainer run the farm again on NVIDIA (`windows+nvidia` and `linux+nvidia`) on this head? If a start crashes again, its log or dump would show where. **This shouldn't merge until that run comes back clean.** **Other results** - AMD Lab (RX 580, RADV), `=0` against `=1`: +0.05 % median FPS, within the run-to-run spread. Thanks. - The other four farm targets couldn't be judged. Their p99 moved by −7 % to +3 %, with no crash on the PR side except the Intel PC, which crashed on both sides. **Still open** (I can't run these here: one Windows RTX 4060, shared GPU queue) - BeanBot L1: the whole change against its base. The +1.62 % in the description flips the switch inside one build, and it was measured before main had `RX_VK_PIPE_FAST`. Main's cache makes the `graphics_pipeline()` lookup that the memo skips cheaper, so the gain may be smaller now. - BeanBot L2: the other Tier 1 systems. AMD Lab covered Linux RADV; the farm re-run above would cover NVIDIA.
dyst left a comment

Recommendation: Request changes. With the switch at its default (on), two NVIDIA farm PCs crashed or hung at start on this PR's side only (Windows RTX 3050 Ti, Linux RTX 5070; main's starts did not), and nothing explains it yet. The branch also conflicts with main, and the speed gain has not been measured on current main, where RX_VK_PIPE_FAST already made the lookup this skips cheaper. A crash on a common GPU outweighs a +1.6 % gain on one PC.

For a player: a slightly cheaper replay thread in CPU-bound scenes (+1.62 % fps in Market on an RTX 4060 in the author's in-run A/B). It does this by memoizing the pipeline lookup per draw and binding only the vertex streams the pipeline reads that have changed. The code is careful and well commented, and =check gives a live parity check. It does add a second vertex-bind path and a second pipeline cache in front of main's own, so it needs to pay for itself.

Does it help: Unproven on current main. The +1.62 % (95 % interval +0.88 to +2.37 %, cmds_ms -8.4 %) is one build with the switch flipped (HOS_AB, 5×90 s, RTX 4060), taken at e5cac072f before main had RX_VK_PIPE_FAST. AMD Lab (RX 580, Linux) measured +0.05 %, which is noise. The farm's p99 moved both ways (windows+nvidia -7 %, linux+nvidia +3 %, linux+radv +3 %, steamdeck -7 %), and four of its six targets couldn't be judged.
Other systems: every draw on every GPU goes through it (default on). The parity check passed on NVIDIA only (RTX 4060 and 3050 Ti). The path where non_eds3_sig is nonzero, on devices missing some EDS3 features, has no parity run. Neither do AMD Windows, RADV, Intel or the Deck.
Switches: RX_VK_PIPE_VB_FAST (kill, enum, default on, =0 off, =check parity). Its row is in switches.def and it flips under HOS_AB per recording. Default on isn't right until the NVIDIA crashes are understood and a main-vs-head measurement supports it.
Reviewed: b18af0e25 against a98cf28a: gpu/vk/pipe_vb_memo.h in full; the diffs of vk_draw.cpp, vk_replay.cpp, vk_internal.h, switches.def and tests/test_vertex_bind_range.py. Also main's code they rely on: CmdBound, the legacy vertex bind block, and graphics_pipeline()'s key inputs. Not read: tests/test_vk_pipe_vb_fast.py (1,026 lines), test_draw_side_effects.py, test_hos_ab.py, the three fixture .cpp edits. Nothing run.
Fixed in this review: nothing.
Checked and fine: PipeEntry objects are never erased (pipelines has no erase/clear), so memoized pointers stay valid. memo_store runs only after vb_mask_set, so a memo hit always has its stream mask. use_queue_state resets vinput_gen and sets every stream dirty on a queue switch, and new queue states copy the extras. reset_keeping_index() and the pre-recorded-commands drop clear the new masks. The only other NvnState rewrite (*s = NvnState{}, pipeline notes) is a scratch state, not the replay's. Stream 15 stays the zero buffer, as in the legacy path. A failed resolve binds the zero buffer and retries next draw, as before.

Blocking

  1. The farm crashes (e5cac07, windows+nvidia and linux+nvidia, one PR start each, 0.3-0.7 s in, no log kept). The PR's own Still to test says it is not ready to merge until this is explained. What's needed: a farm run of the rebased head on NVIDIA, with a crash log or dump if it recurs. If the crash is in the new path, it needs fixing, not retrying until a clean run. The =check runs passing on the same PCs doesn't clear this, because check mode never takes the fast bind or memo-hit paths.
  2. Not mergeable: gpu/vk/vk_draw.cpp, tests/draw_stream_visibility_test.cpp, tests/fsr_uniform_ownership_test.cpp and tests/recording_admission_test.cpp conflict with main. Rebase, then measure head against main (base runtime vs this PR's), not just the switch flip. Do it on at least one more vendor, and with RX_VK_PIPE_FAST on, as main ships it.

Questions

  • pipe_vb_memo.h pack_topo_meta/memo_lookup: main's own L1 in graphics_pipeline() compares &p and p.variant (pipe_same(&p, p.variant, ...)), and its comment says variants share p.key. The memo keys on &p plus a 16-bit fold of p.key only. If the same Program object can ever carry another variant, a memo hit returns the other variant's pipeline, the bug that comment describes. Fold p.variant into the key, or say why &p implies it.
  • gpu/vk/vk_replay.cpp:1572 state_vb_dirty_take: the dirty mask belongs to a guest state, and taking it is destructive. The bound mask belongs to one recording thread's CmdBound. That is correct only while exactly one thread draws from a given NvnState. If a second consumer ever takes the bits, the first command buffer keeps a stale stream bound. Please state that invariant in a comment. A safer shape is a per-stream or per-state generation that each CmdBound remembers and compares, as vinput_gen already is, which needs no single-consumer assumption.

Suggestions

  • gpu/vk/vk_draw.cpp:11612: the goto vb_after_bind over the legacy block could be an else around it, or the legacy block moved into a function. That keeps the three modes readable.
  • gpu/vk/vk_draw.cpp:11062: if (d.mesh) pipe_vb_fast_maybe_log_summary(); logs only on mesh draws at that point. A comment saying why (mesh draws don't reach the vertex block) would help.

Testing: present: the author's game-free A/B trace test (2000 random ops, 7 broken variants caught), the targeted checks, run_all --changed (325 passed, 1 failure shared with main), live =check parity on an RTX 4060 (11.2M draws, 0 mismatches), the in-run HOS_AB, and AMD Lab and farm runs at e5cac07. Missing, and it holds the merge: a farm run of the rebased head (the NVIDIA crashes), a main-vs-head measurement on current main, parity or runs on AMD Windows, RADV, Intel and the Deck, and the whole suite (mise run test is unticked).
Overlaps and merge order: #3116, #3080, #2958, #2954, #2948 and #2946 touch the same draw/pipeline hot path. Whichever lands first means a rebase and a fresh measurement for the rest. #2132 (assembly draw compares) and #801 (dynamic vertex input) are related. #801 would make PipeEntry::stream_mask wrong, since one pipeline would then serve several vertex layouts, so whichever lands second must recompute the mask per draw or per vertex layout.

**Recommendation: Request changes.** With the switch at its default (on), two NVIDIA farm PCs crashed or hung at start on this PR's side only (Windows RTX 3050 Ti, Linux RTX 5070; main's starts did not), and nothing explains it yet. The branch also conflicts with main, and the speed gain has not been measured on current main, where `RX_VK_PIPE_FAST` already made the lookup this skips cheaper. A crash on a common GPU outweighs a +1.6 % gain on one PC. For a player: a slightly cheaper replay thread in CPU-bound scenes (+1.62 % fps in Market on an RTX 4060 in the author's in-run A/B). It does this by memoizing the pipeline lookup per draw and binding only the vertex streams the pipeline reads that have changed. The code is careful and well commented, and `=check` gives a live parity check. It does add a second vertex-bind path and a second pipeline cache in front of main's own, so it needs to pay for itself. **Does it help:** Unproven on current main. The +1.62 % (95 % interval +0.88 to +2.37 %, `cmds_ms` -8.4 %) is one build with the switch flipped (`HOS_AB`, 5×90 s, RTX 4060), taken at `e5cac072f` before main had `RX_VK_PIPE_FAST`. AMD Lab (RX 580, Linux) measured +0.05 %, which is noise. The farm's p99 moved both ways (windows+nvidia -7 %, linux+nvidia +3 %, linux+radv +3 %, steamdeck -7 %), and four of its six targets couldn't be judged. **Other systems:** every draw on every GPU goes through it (default on). The parity check passed on NVIDIA only (RTX 4060 and 3050 Ti). The path where `non_eds3_sig` is nonzero, on devices missing some EDS3 features, has no parity run. Neither do AMD Windows, RADV, Intel or the Deck. **Switches:** `RX_VK_PIPE_VB_FAST` (kill, enum, default on, `=0` off, `=check` parity). Its row is in `switches.def` and it flips under `HOS_AB` per recording. Default on isn't right until the NVIDIA crashes are understood and a main-vs-head measurement supports it. **Reviewed:** b18af0e25 against a98cf28a: `gpu/vk/pipe_vb_memo.h` in full; the diffs of `vk_draw.cpp`, `vk_replay.cpp`, `vk_internal.h`, `switches.def` and `tests/test_vertex_bind_range.py`. Also main's code they rely on: `CmdBound`, the legacy vertex bind block, and `graphics_pipeline()`'s key inputs. Not read: `tests/test_vk_pipe_vb_fast.py` (1,026 lines), `test_draw_side_effects.py`, `test_hos_ab.py`, the three fixture `.cpp` edits. Nothing run. **Fixed in this review:** nothing. **Checked and fine:** `PipeEntry` objects are never erased (`pipelines` has no erase/clear), so memoized pointers stay valid. `memo_store` runs only after `vb_mask_set`, so a memo hit always has its stream mask. `use_queue_state` resets `vinput_gen` and sets every stream dirty on a queue switch, and new queue states copy the extras. `reset_keeping_index()` and the pre-recorded-commands drop clear the new masks. The only other `NvnState` rewrite (`*s = NvnState{}`, pipeline notes) is a scratch state, not the replay's. Stream 15 stays the zero buffer, as in the legacy path. A failed resolve binds the zero buffer and retries next draw, as before. **Blocking** 1. The farm crashes (`e5cac07`, windows+nvidia and linux+nvidia, one PR start each, 0.3-0.7 s in, no log kept). The PR's own Still to test says it is not ready to merge until this is explained. What's needed: a farm run of the rebased head on NVIDIA, with a crash log or dump if it recurs. If the crash is in the new path, it needs fixing, not retrying until a clean run. The `=check` runs passing on the same PCs doesn't clear this, because check mode never takes the fast bind or memo-hit paths. 2. Not mergeable: `gpu/vk/vk_draw.cpp`, `tests/draw_stream_visibility_test.cpp`, `tests/fsr_uniform_ownership_test.cpp` and `tests/recording_admission_test.cpp` conflict with main. Rebase, then measure head against main (base runtime vs this PR's), not just the switch flip. Do it on at least one more vendor, and with `RX_VK_PIPE_FAST` on, as main ships it. **Questions** - `pipe_vb_memo.h` `pack_topo_meta`/`memo_lookup`: main's own L1 in `graphics_pipeline()` compares `&p` **and** `p.variant` (`pipe_same(&p, p.variant, ...)`), and its comment says variants share `p.key`. The memo keys on `&p` plus a 16-bit fold of `p.key` only. If the same `Program` object can ever carry another variant, a memo hit returns the other variant's pipeline, the bug that comment describes. Fold `p.variant` into the key, or say why `&p` implies it. - `gpu/vk/vk_replay.cpp:1572` `state_vb_dirty_take`: the dirty mask belongs to a guest state, and taking it is destructive. The bound mask belongs to one recording thread's `CmdBound`. That is correct only while exactly one thread draws from a given `NvnState`. If a second consumer ever takes the bits, the first command buffer keeps a stale stream bound. Please state that invariant in a comment. A safer shape is a per-stream or per-state generation that each `CmdBound` remembers and compares, as `vinput_gen` already is, which needs no single-consumer assumption. **Suggestions** - `gpu/vk/vk_draw.cpp:11612`: the `goto vb_after_bind` over the legacy block could be an `else` around it, or the legacy block moved into a function. That keeps the three modes readable. - `gpu/vk/vk_draw.cpp:11062`: `if (d.mesh) pipe_vb_fast_maybe_log_summary();` logs only on mesh draws at that point. A comment saying why (mesh draws don't reach the vertex block) would help. **Testing:** present: the author's game-free A/B trace test (2000 random ops, 7 broken variants caught), the targeted checks, `run_all --changed` (325 passed, 1 failure shared with main), live `=check` parity on an RTX 4060 (11.2M draws, 0 mismatches), the in-run HOS_AB, and AMD Lab and farm runs at `e5cac07`. Missing, and it holds the merge: a farm run of the rebased head (the NVIDIA crashes), a main-vs-head measurement on current main, parity or runs on AMD Windows, RADV, Intel and the Deck, and the whole suite (`mise run test` is unticked). **Overlaps and merge order:** #3116, #3080, #2958, #2954, #2948 and #2946 touch the same draw/pipeline hot path. Whichever lands first means a rebase and a fresh measurement for the rest. #2132 (assembly draw compares) and #801 (dynamic vertex input) are related. #801 would make `PipeEntry::stream_mask` wrong, since one pipeline would then serve several vertex layouts, so whichever lands second must recompute the mask per draw or per vertex layout.
Some checks failed
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 7s
This pull request has changes conflicting with the target branch.
  • gpu/vk/vk_draw.cpp
  • tests/draw_stream_visibility_test.cpp
  • tests/fsr_uniform_ownership_test.cpp
  • tests/recording_admission_test.cpp
Some workflows are waiting to be reviewed.
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/vk-pipe-vb-memo:siantm-perf/vk-pipe-vb-memo'
git switch 'siantm-perf/vk-pipe-vb-memo'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 participants
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
MagicBeanDev/Longshot!2959
No description provided.