perf(vk): add RX_VK_REPLAY_FAST fast replay dispatch, scan, and epoch resets #2981

Open
siantm wants to merge 3 commits from siantm/Longshot:perf/vk-replay-fast into main
Contributor

Summary

Three per-frame and per-command overheads on the Vulkan command replay path slowed down crowded CPU-bound scenes:

  1. Per-recording resets in gpu/vk/vk_draw.cpp (draw_begin_recording() and RecordingRes) destroyed and reallocated BankCache byte buffers, c1_at buckets, and Pass::sampled vectors on every recording.
  2. gpu/vk/mesh_conv.h::scan() did redundant per-op header loads, branchy indirect offset reads, repeated *at writes, and unconditionally dispatched empty mesh_conv_batch(cmd, nullptr, 0) barriers in gpu/vk/vk_replay.cpp::mesh_conv_at_barrier().
  3. The gpu/vk/vk_replay.cpp::replay() dispatch loop re-checked scattered cold diagnostic/readback flags on every op, called op_is_work() repeatedly, lacked b.n == 1 / unpadded-record fast paths for common single-binding commands, and did not prefetch upcoming ring ops.

This change adds gpu/vk/replay_fast.h (behind switch RX_VK_REPLAY_FAST, default 1, supporting 0 baseline and check parity mode) and wires:

  • EpochMap + epoch-based BankCache / Pass::reset() reuse so capacities stay hot across recordings without per-recording heap frees (gpu/vk/vk_draw.cpp).
  • Tightened mesh_conv::scan() with Ops::scan_act dispatch and empty-batch skip in mesh_conv_at_barrier() (gpu/vk/mesh_conv.h, gpu/vk/vk_replay.cpp).
  • Prefetched replay() loop (prefetch_op()), collapsed cold_flags guard, did_work tracking, branchless buf_unchanged() / handles_unchanged(), and b.n == 1 fast paths (gpu/vk/vk_replay.cpp).

Read first: gpu/vk/replay_fast.h, gpu/vk/mesh_conv.h, gpu/vk/vk_replay.cpp, and gpu/vk/vk_draw.cpp.

Testing

Tested: Windows 11 (x86_64), NVIDIA GeForce RTX 4060 (driver 621.40), Ocarina of Time (market, child crowded) on local build perf/vk-replay-fast @ 12822052e (off 495ed9fe2, 0 shader parts rebuilt, lift: unchanged):

  • Syntax checks: clang++ -fsyntax-only passed on gpu/vk/vk_replay.cpp, gpu/vk/vk_draw.cpp, and gpu/vk/vk_main.cpp.
  • Unit tests (with Vulkan headers):
    • python -I -B tests/test_vk_replay_fast.py --cxx clang++: passed (including 200 randomized streams and 6 MUST_FAIL broken variants).
    • python -I -B tests/test_mesh_conv.py --cxx clang++: passed (7 broken variants caught).
    • python -I -B tests/test_hos_ab.py --cc clang: passed (RX_VK_REPLAY_FAST wired).
    • python -I -B tests/test_recorder_parts.py, tests/test_recorder_sync.py, tests/test_saveload_warm_cache.py, tests/test_tls_objects.py: passed.
  • Live =1 smoke (RX_VK_REPLAY_FAST=1, 15 s): 1184 frames, 79.0 fps, RUN_ERROR=None.
  • Live =check parity (RX_VK_REPLAY_FAST=check, 30 s): 2263 frames, 75.4 fps, RUN_ERROR=None, [replay_fast] checks=72537615 mismatches=0 (close).
  • Rebased onto main @ 0aeb6858 (2026-12-03), with the checks that read the replay's source updated for this change's reshaping: tests/run_all.py --exact of 27 checks passed, among them test_vk_replay_fast, test_mesh_conv and the six updated (Windows 11, llvm-mingw clang++), and clang++ -fsyntax-only of gpu/vk/vk_replay.cpp, gpu/vk/vk_draw.cpp and gpu/vk/vk_main.cpp. No game run on the rebased head.
  • Test farm on d1a3709: passed on windows+nvidia, linux+radv and intel; failed on linux+nvidia (Kokiri picture 0.37; its Market pictures show the same texture white-out on main and the PR, more surfaces on the PR's; one PR start at 45.8 FPS against about 118), windows+amd (Kokiri picture 0.22) and steamdeck (Market 1% low 47.88 -> 56.00 ms on one Deck; Kokiri picture 0.32 on that Deck, the other Deck's Market pictures both correct and differing by capture timing).
  • HumanBean, Linux RTX 3090 (2 pairs, =0 vs =1): -2.28% median FPS, inconclusive. AMD Lab, Linux RX 580 (3 pairs): -1.00% median FPS, within the spread; p99 25.11 -> 38.51 ms, 1% low 39.83 -> 25.97 FPS.

Still to test:

  • AMD (RADV and Windows) and Steam Deck: RX_VK_REPLAY_FAST=0 against =1 again, to see whether the tail regression in the AMD Lab and Steam Deck results repeats; if it does, the switch goes off (by hand / @Beanstalk).
  • main against this head at player settings, in the Market and a heavy area (by hand).

Measurements

Verdict: faster: +0.73% FPS (79.71 vs 79.14 FPS, mean frame time -0.092 ms, median -0.08 ms, 95% CI +0.31% to +1.15%, strictly excludes 0; 5/5 runs won). 1% Low FPS improved +0.38% (63.45 vs 63.21) and 0.1% Low FPS improved +7.24% (53.19 vs 49.60).

Setup: Windows 11, Market (child (crowded)), 1280x720 output at 50% internal res (768x432), V-Sync off, frame generation off, HOS_FPS_MAX=1000; 5×90 s queued in-run HOS_AB runs toggling RX_VK_REPLAY_FAST between unset (=1, side 0) and 0 (side 1) every 3 s after warm-up (147 pooled periods; 16,141 ON frames vs 16,029 OFF frames). RX_VK_REPLAY_FAST ships ON (1).

Baseline: both columns are one build, perf/vk-replay-fast @ 12822052 (off main @ 495ed9fe2, not main directly): in-run HOS_AB toggles RX_VK_REPLAY_FAST=0 (baseline fast-path off) against RX_VK_REPLAY_FAST unset (1, fast-path on) on the same binary.

Before, RX_VK_REPLAY_FAST=0: this PR @ 12822052 After, RX_VK_REPLAY_FAST unset: this PR @ 12822052 Δ
Average FPS 79.14 fps (79.1 pooled) 79.71 fps (79.7 pooled) +0.73% (+0.31%..+1.15% 95% CI)
Mean frame time 12.64 ms 12.55 ms -0.092 ms
Median frame time 12.34 ms 12.26 ms -0.08 ms
P99 frame time 15.87 ms 15.79 ms -0.08 ms
1% Low FPS 63.21 fps 63.45 fps +0.38%
0.1% Low FPS 49.60 fps 53.19 fps +7.24%
draw_ms 7.3265 ms 7.2834 ms -0.0431 ms (-0.59%)
desc_ms 2.7349 ms 2.7060 ms -0.0289 ms (-1.06%)
cmds_ms 2.2903 ms 2.2770 ms -0.0134 ms (-0.58%)
wait_gpu_ms 1.8982 ms 1.7825 ms -0.1157 ms (-6.10%)
main_cpu_ms 4.2712 ms 4.1660 ms -0.1051 ms (-2.46%)

Per-run paired FPS: AB1: 79.5 vs 79.3 (-0.57%), AB2: 79.6 vs 79.1 (-0.61%), AB3: 81.3 vs 80.4 (-1.08%), AB4: 78.8 vs 78.4 (-0.50%), AB5: 79.6 vs 78.9 (-0.89%).

Risks

Runtime switch RX_VK_REPLAY_FAST=0 disables all replay/scan/epoch fast paths immediately and restores baseline behavior; RX_VK_REPLAY_FAST=check validates runtime parity (0 mismatches across 72.5M live checks). No save, cache, config, or Device::state ABI/layout changes.

Checklist

Ready for review

  • One topic, on current main (0aeb6858); the title is a Conventional Commit.
  • Tested on my own PC, in the game, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • 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: RX_VK_REPLAY_FAST ships on (1), added in gpu/vk/switches.def and wired in tests/test_hos_ab.py.
  • Checks under tests/ (test_hos_ab.py, test_vk_replay_fast.py) updated/added without weakening assertions.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Approved in review, every comment answered.
  • CI passes on the head.
## Summary Three per-frame and per-command overheads on the Vulkan command replay path slowed down crowded CPU-bound scenes: 1. Per-recording resets in `gpu/vk/vk_draw.cpp` (`draw_begin_recording()` and `RecordingRes`) destroyed and reallocated `BankCache` byte buffers, `c1_at` buckets, and `Pass::sampled` vectors on every recording. 2. `gpu/vk/mesh_conv.h::scan()` did redundant per-op header loads, branchy indirect offset reads, repeated `*at` writes, and unconditionally dispatched empty `mesh_conv_batch(cmd, nullptr, 0)` barriers in `gpu/vk/vk_replay.cpp::mesh_conv_at_barrier()`. 3. The `gpu/vk/vk_replay.cpp::replay()` dispatch loop re-checked scattered cold diagnostic/readback flags on every op, called `op_is_work()` repeatedly, lacked `b.n == 1` / unpadded-record fast paths for common single-binding commands, and did not prefetch upcoming ring ops. This change adds `gpu/vk/replay_fast.h` (behind switch `RX_VK_REPLAY_FAST`, default `1`, supporting `0` baseline and `check` parity mode) and wires: - `EpochMap` + epoch-based `BankCache` / `Pass::reset()` reuse so capacities stay hot across recordings without per-recording heap frees (`gpu/vk/vk_draw.cpp`). - Tightened `mesh_conv::scan()` with `Ops::scan_act` dispatch and empty-batch skip in `mesh_conv_at_barrier()` (`gpu/vk/mesh_conv.h`, `gpu/vk/vk_replay.cpp`). - Prefetched `replay()` loop (`prefetch_op()`), collapsed `cold_flags` guard, `did_work` tracking, branchless `buf_unchanged()` / `handles_unchanged()`, and `b.n == 1` fast paths (`gpu/vk/vk_replay.cpp`). Read first: `gpu/vk/replay_fast.h`, `gpu/vk/mesh_conv.h`, `gpu/vk/vk_replay.cpp`, and `gpu/vk/vk_draw.cpp`. ## Testing **Tested:** Windows 11 (x86_64), NVIDIA GeForce RTX 4060 (driver 621.40), Ocarina of Time (`market`, child crowded) on local build `perf/vk-replay-fast @ 12822052e` (off `495ed9fe2`, `0` shader parts rebuilt, `lift: unchanged`): - Syntax checks: `clang++ -fsyntax-only` passed on `gpu/vk/vk_replay.cpp`, `gpu/vk/vk_draw.cpp`, and `gpu/vk/vk_main.cpp`. - Unit tests (with Vulkan headers): - `python -I -B tests/test_vk_replay_fast.py --cxx clang++`: passed (including 200 randomized streams and 6 `MUST_FAIL` broken variants). - `python -I -B tests/test_mesh_conv.py --cxx clang++`: passed (7 broken variants caught). - `python -I -B tests/test_hos_ab.py --cc clang`: passed (`RX_VK_REPLAY_FAST` wired). - `python -I -B tests/test_recorder_parts.py`, `tests/test_recorder_sync.py`, `tests/test_saveload_warm_cache.py`, `tests/test_tls_objects.py`: passed. - Live `=1` smoke (`RX_VK_REPLAY_FAST=1`, 15 s): `1184 frames`, `79.0 fps`, `RUN_ERROR=None`. - Live `=check` parity (`RX_VK_REPLAY_FAST=check`, 30 s): `2263 frames`, `75.4 fps`, `RUN_ERROR=None`, `[replay_fast] checks=72537615 mismatches=0 (close)`. - Rebased onto `main` @ `0aeb6858` (2026-12-03), with the checks that read the replay's source updated for this change's reshaping: `tests/run_all.py --exact` of 27 checks passed, among them `test_vk_replay_fast`, `test_mesh_conv` and the six updated (Windows 11, llvm-mingw clang++), and `clang++ -fsyntax-only` of `gpu/vk/vk_replay.cpp`, `gpu/vk/vk_draw.cpp` and `gpu/vk/vk_main.cpp`. No game run on the rebased head. - Test farm on `d1a3709`: passed on `windows+nvidia`, `linux+radv` and `intel`; failed on `linux+nvidia` (Kokiri picture 0.37; its Market pictures show the same texture white-out on main and the PR, more surfaces on the PR's; one PR start at 45.8 FPS against about 118), `windows+amd` (Kokiri picture 0.22) and `steamdeck` (Market 1% low 47.88 -> 56.00 ms on one Deck; Kokiri picture 0.32 on that Deck, the other Deck's Market pictures both correct and differing by capture timing). - HumanBean, Linux RTX 3090 (2 pairs, `=0` vs `=1`): -2.28% median FPS, inconclusive. AMD Lab, Linux RX 580 (3 pairs): -1.00% median FPS, within the spread; p99 25.11 -> 38.51 ms, 1% low 39.83 -> 25.97 FPS. **Still to test:** - AMD (RADV and Windows) and Steam Deck: `RX_VK_REPLAY_FAST=0` against `=1` again, to see whether the tail regression in the AMD Lab and Steam Deck results repeats; if it does, the switch goes off (`by hand` / `@Beanstalk`). - `main` against this head at player settings, in the Market and a heavy area (`by hand`). ## Measurements **Verdict:** faster: **+0.73% FPS** (`79.71 vs 79.14 FPS`, mean frame time **-0.092 ms**, median **-0.08 ms**, 95% CI **+0.31% to +1.15%**, strictly excludes `0`; **5/5** runs won). `1% Low FPS` improved **+0.38%** (`63.45 vs 63.21`) and `0.1% Low FPS` improved **+7.24%** (`53.19 vs 49.60`). Setup: Windows 11, Market (`child (crowded)`), 1280x720 output at 50% internal res (`768x432`), V-Sync off, frame generation off, `HOS_FPS_MAX=1000`; 5×90 s queued in-run `HOS_AB` runs toggling `RX_VK_REPLAY_FAST` between unset (`=1`, side 0) and `0` (side 1) every 3 s after warm-up (`147` pooled periods; `16,141` ON frames vs `16,029` OFF frames). `RX_VK_REPLAY_FAST` ships ON (`1`). **Baseline:** both columns are one build, `perf/vk-replay-fast @ 12822052` (off `main @ 495ed9fe2`, not `main` directly): in-run `HOS_AB` toggles `RX_VK_REPLAY_FAST=0` (baseline fast-path off) against `RX_VK_REPLAY_FAST` unset (`1`, fast-path on) on the same binary. | | Before, RX_VK_REPLAY_FAST=0: this PR @ 12822052 | After, RX_VK_REPLAY_FAST unset: this PR @ 12822052 | Δ | |---|---|---|---| | Average FPS | 79.14 fps (79.1 pooled) | 79.71 fps (79.7 pooled) | **+0.73%** (+0.31%..+1.15% 95% CI) | | Mean frame time | 12.64 ms | 12.55 ms | **-0.092 ms** | | Median frame time | 12.34 ms | 12.26 ms | **-0.08 ms** | | P99 frame time | 15.87 ms | 15.79 ms | **-0.08 ms** | | 1% Low FPS | 63.21 fps | 63.45 fps | **+0.38%** | | 0.1% Low FPS | 49.60 fps | 53.19 fps | **+7.24%** | | `draw_ms` | 7.3265 ms | 7.2834 ms | **-0.0431 ms** (-0.59%) | | `desc_ms` | 2.7349 ms | 2.7060 ms | **-0.0289 ms** (-1.06%) | | `cmds_ms` | 2.2903 ms | 2.2770 ms | **-0.0134 ms** (-0.58%) | | `wait_gpu_ms` | 1.8982 ms | 1.7825 ms | **-0.1157 ms** (-6.10%) | | `main_cpu_ms` | 4.2712 ms | 4.1660 ms | **-0.1051 ms** (-2.46%) | Per-run paired FPS: `AB1: 79.5 vs 79.3 (-0.57%)`, `AB2: 79.6 vs 79.1 (-0.61%)`, `AB3: 81.3 vs 80.4 (-1.08%)`, `AB4: 78.8 vs 78.4 (-0.50%)`, `AB5: 79.6 vs 78.9 (-0.89%)`. ## Risks Runtime switch `RX_VK_REPLAY_FAST=0` disables all replay/scan/epoch fast paths immediately and restores baseline behavior; `RX_VK_REPLAY_FAST=check` validates runtime parity (`0` mismatches across `72.5M` live checks). No save, cache, config, or `Device::state` ABI/layout changes. ## Checklist ### Ready for review - [x] One topic, on current `main` (`0aeb6858`); the title is a Conventional Commit. - [x] Tested on my own PC, in the game, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [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: `RX_VK_REPLAY_FAST` ships on (`1`), added in `gpu/vk/switches.def` and wired in `tests/test_hos_ab.py`. - [x] Checks under `tests/` (`test_hos_ab.py`, `test_vk_replay_fast.py`) updated/added without weakening assertions. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head.
perf(vk): add RX_VK_REPLAY_FAST fast replay dispatch, scan, and epoch resets
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
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
12822052ee
Author
Contributor

Tested in game: Windows 11 x86_64, Ocarina of Time market child crowded (768x432 -> 1280x720, HOS_FPS_MAX=1000): =1 smoke (1184 frames, 79.0 fps), =check parity (72,537,615 checks, 0 mismatches), and 5x90s HOS_AB (79.71 vs 79.14 fps, +0.73%, 95% CI +0.31%..+1.15%, 1% Low 63.45 vs 63.21, 0.1% Low 53.19 vs 49.60).

Tested in game: Windows 11 x86_64, Ocarina of Time market child crowded (768x432 -> 1280x720, HOS_FPS_MAX=1000): =1 smoke (1184 frames, 79.0 fps), =check parity (72,537,615 checks, 0 mismatches), and 5x90s HOS_AB (79.71 vs 79.14 fps, +0.73%, 95% CI +0.31%..+1.15%, 1% Low 63.45 vs 63.21, 0.1% Low 53.19 vs 49.60).
Member

Possibly related, for context:

  • PR #1679 WIP: perf(vk): a big command buffer's first parallel segment 40% of an even one (RX_VK_PAR_FIRST) — Open Vulkan command-buffer replay performance work; adjacent replay path.
  • 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) — Tracks Deck CPU-side Vulkan submission/replay costs.
  • issue #2480 Game: Steam Deck (v3.2.0): RX_VK_LOAD=start and RX_VK_RECORDER=thread are clear wins that Auto leaves off — Reports remaining per-draw submit cost in busy scenes.
  • PR #2899 perf(vk): add UBO descriptor delta fast path, 8-slot ub_gap_cache, and lock-free invalidate exits — Merged recent Vulkan replay/cache performance changes; nearby draw/replay code.
Possibly related, for context: - PR #1679 WIP: perf(vk): a big command buffer's first parallel segment 40% of an even one (RX_VK_PAR_FIRST) — Open Vulkan command-buffer replay performance work; adjacent replay path. - 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) — Tracks Deck CPU-side Vulkan submission/replay costs. - issue #2480 Game: Steam Deck (v3.2.0): RX_VK_LOAD=start and RX_VK_RECORDER=thread are clear wins that Auto leaves off — Reports remaining per-draw submit cost in busy scenes. - PR #2899 perf(vk): add UBO descriptor delta fast path, 8-slot ub_gap_cache, and lock-free invalidate exits — Merged recent Vulkan replay/cache performance changes; nearby draw/replay code.
Member
@review
BeanBot left a comment

Recommendation: Approve. The reported 0.73% gain compares two modes of the changed binary, so it does not establish a gain over main. Tier 1 coverage and a complete code review are still needed. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change reuses recording allocations and adds faster Vulkan replay and mesh-scan paths. It adds substantial dispatch and parity-checking code for a reported gain smaller than 1%, whose benefit over the actual base remains unproven.

Should fix (1): not blocking, but worth doing before merging.

  • L3 tests/test_vk_replay_fast.py:264: The binding tests exercise a handwritten copy of the fast paths rather than the replay implementation. (more on the line) Do: Exercise the actual replay binding code through a game-free harness, or extract the implementation into helpers used by both replay and the tests, and add a broken variant for the state update.

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

  • L1: Measure the shipped change against the actual base before accepting the claimed performance gain. When: The 0.73% result compares fast and off modes at HEAD; both retain the replacement map and other changed code, so their difference omits costs shared by both modes. Do: Run several interleaved, same-scene measurements of base 495ed9fe2a and HEAD with the default, reporting frame times and lows as well as FPS.
  • L2: Check the default replay path on the remaining Tier 1 systems. When: The changed recording and dispatch paths run on NVIDIA and AMD on both operating systems and on Steam Deck, while the reported game run identifies only Windows. Do: Request representative game and performance runs on the untested Tier 1 GPU and OS combinations, including Steam Deck, with the default and the base.

@fix can do L3.

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

  • Which GPU and driver were used for the reported Windows run?

Checks: Still running: 10 checks.

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

Does it help: Unproven. The PR reports 79.71 versus 79.14 FPS across five Windows runs, with 1% lows of 63.45 versus 63.21 FPS, but both sides use the PR binary and the off side retains changes such as the new map. No direct measurement against base 495ed9fe2a is supplied.

Other systems: Replay and recording run across Vulkan vendors, Windows and Linux, including Steam Deck and the mesh-shader fallback. The supplied live run covers one Windows PC; its GPU and driver are not identified, and the other Tier 1 systems have not been reported tested.

Switches: RX_VK_REPLAY_FAST is added, default on; 0 selects baseline paths and check enables parity telemetry. Its table row is present, but the default's benefit across supported systems is not yet established.

Reviewed: 12822052ee against 495ed9fe2a: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards sections, the full diff, replay_fast.h, mesh_conv.h, and test_vk_replay_fast.py. Read changed regions and selected surrounding callers in vk_draw.cpp, vk_replay.cpp, vk_draw.h, vk_main.cpp and test_hos_ab.py; those large files were not read in full. The requested review checklist and adjacent Tooling AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The mesh batch is cleared at the start of each recording before the new live-batch flag is used.
  • The new switch has a switches.def row and is latched for a whole recording.
  • The diff contains no game-derived files or generated output.

Testing: No commands from the project, builds, or tests were run during this read-only review. CI is still running.

Overlaps and merge order: Not checked; network unavailable.


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

**Recommendation: Approve.** The reported 0.73% gain compares two modes of the changed binary, so it does not establish a gain over main. Tier 1 coverage and a complete code review are still needed. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change reuses recording allocations and adds faster Vulkan replay and mesh-scan paths. It adds substantial dispatch and parity-checking code for a reported gain smaller than 1%, whose benefit over the actual base remains unproven. **Should fix (1)**: not blocking, but worth doing before merging. - **L3** `tests/test_vk_replay_fast.py:264`: The binding tests exercise a handwritten copy of the fast paths rather than the replay implementation. (more on the line) **Do:** Exercise the actual replay binding code through a game-free harness, or extract the implementation into helpers used by both replay and the tests, and add a broken variant for the state update. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: Measure the shipped change against the actual base before accepting the claimed performance gain. *When:* The 0.73% result compares fast and off modes at HEAD; both retain the replacement map and other changed code, so their difference omits costs shared by both modes. **Do:** Run several interleaved, same-scene measurements of base 495ed9fe2aaa and HEAD with the default, reporting frame times and lows as well as FPS. - **L2**: Check the default replay path on the remaining Tier 1 systems. *When:* The changed recording and dispatch paths run on NVIDIA and AMD on both operating systems and on Steam Deck, while the reported game run identifies only Windows. **Do:** Request representative game and performance runs on the untested Tier 1 GPU and OS combinations, including Steam Deck, with the default and the base. `@fix` can do L3. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - Which GPU and driver were used for the reported Windows run? **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. The PR reports 79.71 versus 79.14 FPS across five Windows runs, with 1% lows of 63.45 versus 63.21 FPS, but both sides use the PR binary and the off side retains changes such as the new map. No direct measurement against base 495ed9fe2aaa is supplied. **Other systems:** Replay and recording run across Vulkan vendors, Windows and Linux, including Steam Deck and the mesh-shader fallback. The supplied live run covers one Windows PC; its GPU and driver are not identified, and the other Tier 1 systems have not been reported tested. **Switches:** RX_VK_REPLAY_FAST is added, default on; 0 selects baseline paths and check enables parity telemetry. Its table row is present, but the default's benefit across supported systems is not yet established. **Reviewed:** 12822052eef0 against 495ed9fe2aaa: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards sections, the full diff, replay_fast.h, mesh_conv.h, and test_vk_replay_fast.py. Read changed regions and selected surrounding callers in vk_draw.cpp, vk_replay.cpp, vk_draw.h, vk_main.cpp and test_hos_ab.py; those large files were not read in full. The requested review checklist and adjacent Tooling AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The mesh batch is cleared at the start of each recording before the new live-batch flag is used. - The new switch has a switches.def row and is latched for a whole recording. - The diff contains no game-derived files or generated output. **Testing:** No commands from the project, builds, or tests were run during this read-only review. CI is still running. **Overlaps and merge order:** Not checked; network unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -0,0 +261,4 @@
{
nvn_p_bind_bufs b{};
std::memcpy(&b, rec.data(), std::min(sizeof b, rec.size()));
for (int i = 0; i < b.n && i < 16; i++) {
Member

L3 (should fix): The binding tests exercise a handwritten copy of the fast paths rather than the replay implementation.

When: For example, removing the fast NOP_BIND_VSTREAM state copy from vk_replay.cpp leaves this harness and its source checks passing, although vertex stream state would no longer update.

Do: Exercise the actual replay binding code through a game-free harness, or extract the implementation into helpers used by both replay and the tests, and add a broken variant for the state update.

**L3** (should fix): The binding tests exercise a handwritten copy of the fast paths rather than the replay implementation. *When:* For example, removing the fast NOP_BIND_VSTREAM state copy from vk_replay.cpp leaves this harness and its source checks passing, although vertex stream state would no longer update. **Do:** Exercise the actual replay binding code through a game-free harness, or extract the implementation into helpers used by both replay and the tests, and add a broken variant for the state update.
siantm force-pushed perf/vk-replay-fast from 12822052ee
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
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 d1a37097cc
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+nvidia 1/1 fail
beanstalk/windows+amd 1/1 fail
beanstalk/linux+radv 2/1 pass
beanstalk/intel 1/1 pass
beanstalk/steamdeck 2/1 fail
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
2026-12-02 10:33:12 +00:00
Compare
Author
Contributor

Addressed review #3043 feedback in d1a37097c:

  • L3 (tests/test_vk_replay_fast.py, binding fast paths): Extracted the replay binding fast-path state updates (apply_viewports_fast, apply_bind_vattr_fast, apply_bind_vstream_fast, apply_bind_vbuf_fast, apply_bind_bufs_fast, and apply_bind_handles_fast) into gpu/vk/replay_fast.h so both gpu/vk/vk_replay.cpp and tests/test_vk_replay_fast.py exercise the exact same production helpers. Removed the handwritten duplicate fast-path copies in tests/test_vk_replay_fast.py, added source wiring checks for all six helpers in replay(), added 4 MUST_FAIL state-update broken variants (vstream_skip_copy, vbuf_skip_copy, bind_bufs_skip_update, bind_handles_skip_copy), and added compiler fallback discovery (--cxx / CXX -> clang++ / g++ / c++) and Windows DLL PATH handling.
  • L1 & L2 (base vs HEAD interleaved runs and remaining Tier 1 systems): Left for coordinator live/test-farm runs.

Verified after the final edit:

  • clang++ and g++ -std=c++20 -Wall -Wextra -Werror -fsyntax-only on gpu/vk/replay_fast.h
  • python -I -B tests/test_vk_replay_fast.py with --cxx clang++, --cxx g++, and default discovery (10/10 broken variants caught)
  • python -I -B tests/test_hos_ab.py --cc clang, python -I -B tests/test_tls_objects.py, and python -I -B tests/test_vk_braces.py
Addressed review #3043 feedback in `d1a37097c`: - **L3 (`tests/test_vk_replay_fast.py`, binding fast paths):** Extracted the replay binding fast-path state updates (`apply_viewports_fast`, `apply_bind_vattr_fast`, `apply_bind_vstream_fast`, `apply_bind_vbuf_fast`, `apply_bind_bufs_fast`, and `apply_bind_handles_fast`) into `gpu/vk/replay_fast.h` so both `gpu/vk/vk_replay.cpp` and `tests/test_vk_replay_fast.py` exercise the exact same production helpers. Removed the handwritten duplicate fast-path copies in `tests/test_vk_replay_fast.py`, added source wiring checks for all six helpers in `replay()`, added 4 `MUST_FAIL` state-update broken variants (`vstream_skip_copy`, `vbuf_skip_copy`, `bind_bufs_skip_update`, `bind_handles_skip_copy`), and added compiler fallback discovery (`--cxx` / `CXX` -> `clang++` / `g++` / `c++`) and Windows DLL `PATH` handling. - **L1 & L2 (base vs HEAD interleaved runs and remaining Tier 1 systems):** Left for coordinator live/test-farm runs. Verified after the final edit: - `clang++` and `g++` `-std=c++20 -Wall -Wextra -Werror -fsyntax-only` on `gpu/vk/replay_fast.h` - `python -I -B tests/test_vk_replay_fast.py` with `--cxx clang++`, `--cxx g++`, and default discovery (10/10 broken variants caught) - `python -I -B tests/test_hos_ab.py --cc clang`, `python -I -B tests/test_tls_objects.py`, and `python -I -B tests/test_vk_braces.py`
Owner

@beanstalk

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

Commit d1a3709 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm's separate-start comparisons cannot reproduce the author's in-run switch-toggle confidence interval or reliably resolve the claimed 0.73% gain.
⚠️ Note: The default path is compared directly with main; switch-off and parity-check modes are omitted to keep the run within the time limit.

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

The change failed on Linux NVIDIA, Windows AMD and Steam Deck; Windows NVIDIA, Linux RADV and Intel passed overall. The failed screenshot-rule values rose from 0.2525 to 0.3722 on Linux NVIDIA and 0.1201 to 0.2174 on Windows AMD, and to 0.3245 and 0.2984 on the two Steam Deck reports, all above the 0.2 limit. On one Steam Deck, Market 1% low frame time worsened from 47.88 to 56.00 ms (+17%, above the 15% limit). One Intel PC was inconclusive because both baseline and candidate crashed on all three starts, suggesting a PC-specific issue rather than a change-specific crash.

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

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ✅ pass (an outlier) 2 1 2 7.8 → 7.9 (+1%) — none
linux+nvidia ❌ fail (an outlier) 2 1 2 13.8 → 13.8 (+0%) — none
windows+amd ❌ fail (an outlier) 2 1 2 40.5 → 39.0 (−4%) — none
linux+radv ✅ pass (an outlier) 2 1 2 9.6 → 9.4 (−1%) — none
intel ✅ pass 2 1 2 197.5 → 198.6 (+1%) — 3 PR runs
steamdeck ❌ fail (an outlier) 2 1 2 36.8 → 35.6 (−3%) — none

Why it failed

  • linux+nvidia: replay-scenes screenshot.max_diff: 0.3 → 0.4; limit 0.2
  • windows+amd: replay-scenes screenshot.max_diff: 0.1 → 0.2; limit 0.2
  • steamdeck: replay-scenes screenshot.max_diff: 0.2 → 0.3; limit 0.2
  • steamdeck: replay-scenes market.frametime_1pct_low_ms.max_delta_pct: 47.9 → 56.0 (+17.0%); limit 15.0
  • steamdeck: replay-scenes screenshot.max_diff: 0.3 → 0.3; limit 0.2

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.

  • intel, report 1: Insufficient frame-time evidence for 7 required comparison(s). See rule results.
What was tested

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

Compare the shipped replay path against main on Windows and Linux GPUs and Steam Deck, using three alternating starts per side. Each start measures 30 seconds in the crowded child Market and 30 seconds in Kokiri Forest at a fixed, uncapped 720p output, with still-scene screenshots. A crash, a screenshot difference above 0.2, or a frame-time regression above 15% fails the run. Results show performance by target, but the reported sub-1% gain may be smaller than run-to-run noise. 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).
  • replay-scenes: 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.
  • Measured: crashes, frame times, stutters and hitches, draws and frame rate.
  • The PR fails if: it crashes; or a picture differs from main by more than 20%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main.
  • Time: about 39 min of game runs per tester (6 game starts), plus the two builds.
Measurements on `windows+nvidia`, for the PR description

Verdict: pass on windows+nvidia (2 reports): no rule failed and no PR run crashed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
Scene: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f After: this PR @ d1a3709
replay-scenes · kokiri · median frame time (ms) 6.2 6.1 (−0%)
replay-scenes · market · median frame time (ms) 9.7 9.8 (+1%)
replay-scenes · kokiri · frame time (p99) (ms) 7.8 7.9 (+1%)
replay-scenes · market · frame time (p99) (ms) 12.7 13.5 (+7%)
replay-scenes · kokiri · frame time (worst 1%) (ms) 8.7 8.5 (−2%)
replay-scenes · market · frame time (worst 1%) (ms) 14.5 16.0 (+11%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** pass on windows+nvidia (2 reports): no rule failed and no PR run crashed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`  
Scene: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 |
|---|---|---|
| replay-scenes · kokiri · median frame time (ms) | 6.2 | 6.1 (−0%) |
| replay-scenes · market · median frame time (ms) | 9.7 | 9.8 (+1%) |
| replay-scenes · kokiri · frame time (p99) (ms) | 7.8 | 7.9 (+1%) |
| replay-scenes · market · frame time (p99) (ms) | 12.7 | 13.5 (+7%) |
| replay-scenes · kokiri · frame time (worst 1%) (ms) | 8.7 | 8.5 (−2%) |
| replay-scenes · market · frame time (worst 1%) (ms) | 14.5 | 16.0 (+11%) |

**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): replay-scenes screenshot.max_diff 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f After: this PR @ d1a3709
replay-scenes · kokiri · median frame time (ms) 9.8 9.9 (+1%)
replay-scenes · market · median frame time (ms) 14.7 13.3 (−10%)
replay-scenes · kokiri · frame time (p99) (ms) 13.8 13.8 (+0%)
replay-scenes · market · frame time (p99) (ms) 22.1 19.0 (−14%)
replay-scenes · kokiri · frame time (worst 1%) (ms) 15.7 15.4 (−2%)
replay-scenes · market · frame time (worst 1%) (ms) 24.3 22.7 (−6%)

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): `replay-scenes screenshot.max_diff` 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 |
|---|---|---|
| replay-scenes · kokiri · median frame time (ms) | 9.8 | 9.9 (+1%) |
| replay-scenes · market · median frame time (ms) | 14.7 | 13.3 (−10%) |
| replay-scenes · kokiri · frame time (p99) (ms) | 13.8 | 13.8 (+0%) |
| replay-scenes · market · frame time (p99) (ms) | 22.1 | 19.0 (−14%) |
| replay-scenes · kokiri · frame time (worst 1%) (ms) | 15.7 | 15.4 (−2%) |
| replay-scenes · market · frame time (worst 1%) (ms) | 24.3 | 22.7 (−6%) |

**Flags and settings**

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

Verdict: fail on windows+amd (2 reports): replay-scenes screenshot.max_diff failed.

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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f After: this PR @ d1a3709
replay-scenes · kokiri · median frame time (ms) 36.9 36.8 (−0%)
replay-scenes · market · median frame time (ms) 39.9 39.8 (−0%)
replay-scenes · kokiri · frame time (p99) (ms) 40.5 39.0 (−4%)
replay-scenes · market · frame time (p99) (ms) 44.2 43.9 (−1%)
replay-scenes · kokiri · frame time (worst 1%) (ms) 42.9 40.8 (−5%)
replay-scenes · market · frame time (worst 1%) (ms) 50.2 49.3 (−2%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+amd (2 reports): `replay-scenes screenshot.max_diff` failed.

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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 |
|---|---|---|
| replay-scenes · kokiri · median frame time (ms) | 36.9 | 36.8 (−0%) |
| replay-scenes · market · median frame time (ms) | 39.9 | 39.8 (−0%) |
| replay-scenes · kokiri · frame time (p99) (ms) | 40.5 | 39.0 (−4%) |
| replay-scenes · market · frame time (p99) (ms) | 44.2 | 43.9 (−1%) |
| replay-scenes · kokiri · frame time (worst 1%) (ms) | 42.9 | 40.8 (−5%) |
| replay-scenes · market · frame time (worst 1%) (ms) | 50.2 | 49.3 (−2%) |

**Flags and settings**

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

Verdict: pass on linux+radv (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM; 2: 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
Scene: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f After: this PR @ d1a3709
replay-scenes · kokiri · median frame time (ms) 7.8 7.8 (+0%)
replay-scenes · market · median frame time (ms) 10.8 10.7 (−1%)
replay-scenes · kokiri · frame time (p99) (ms) 9.6 9.4 (−1%)
replay-scenes · market · frame time (p99) (ms) 37.4 37.2 (−1%)
replay-scenes · kokiri · frame time (worst 1%) (ms) 16.1 16.4 (+2%)
replay-scenes · market · frame time (worst 1%) (ms) 42.5 38.4 (−10%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed.

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: 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`  
Scene: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 |
|---|---|---|
| replay-scenes · kokiri · median frame time (ms) | 7.8 | 7.8 (+0%) |
| replay-scenes · market · median frame time (ms) | 10.8 | 10.7 (−1%) |
| replay-scenes · kokiri · frame time (p99) (ms) | 9.6 | 9.4 (−1%) |
| replay-scenes · market · frame time (p99) (ms) | 37.4 | 37.2 (−1%) |
| replay-scenes · kokiri · frame time (worst 1%) (ms) | 16.1 | 16.4 (+2%) |
| replay-scenes · market · frame time (worst 1%) (ms) | 42.5 | 38.4 (−10%) |

**Flags and settings**

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

Verdict: pass on intel (2 reports): no rule failed and no PR run crashed.

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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f After: this PR @ d1a3709
replay-scenes · kokiri · median frame time (ms) 190.4 190.2 (−0%)
replay-scenes · market · median frame time (ms) 214.1 213.8 (−0%)
replay-scenes · kokiri · frame time (p99) (ms) 197.5 198.6 (+1%)
replay-scenes · market · frame time (p99) (ms) 228.3 227.9 (−0%)
replay-scenes · kokiri · frame time (worst 1%) (ms) 198.0 199.3 (+1%)
replay-scenes · market · frame time (worst 1%) (ms) 233.3 233.4 (+0%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed.

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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 |
|---|---|---|
| replay-scenes · kokiri · median frame time (ms) | 190.4 | 190.2 (−0%) |
| replay-scenes · market · median frame time (ms) | 214.1 | 213.8 (−0%) |
| replay-scenes · kokiri · frame time (p99) (ms) | 197.5 | 198.6 (+1%) |
| replay-scenes · market · frame time (p99) (ms) | 228.3 | 227.9 (−0%) |
| replay-scenes · kokiri · frame time (worst 1%) (ms) | 198.0 | 199.3 (+1%) |
| replay-scenes · market · frame time (worst 1%) (ms) | 233.3 | 233.4 (+0%) |

**Flags and settings**

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

Verdict: fail on steamdeck (2 reports): replay-scenes screenshot.max_diff; replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+17.0%) failed.

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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f After: this PR @ d1a3709
replay-scenes · kokiri · median frame time (ms) 28.4 28.4 (+0%)
replay-scenes · market · median frame time (ms) 35.7 36.1 (+1%)
replay-scenes · kokiri · frame time (p99) (ms) 36.8 35.6 (−3%)
replay-scenes · market · frame time (p99) (ms) 47.5 50.9 (+7%)
replay-scenes · kokiri · frame time (worst 1%) (ms) 42.8 43.3 (+1%)
replay-scenes · market · frame time (worst 1%) (ms) 51.8 57.9 (+12%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on steamdeck (2 reports): `replay-scenes screenshot.max_diff`; `replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+17.0%)` failed.

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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 |
|---|---|---|
| replay-scenes · kokiri · median frame time (ms) | 28.4 | 28.4 (+0%) |
| replay-scenes · market · median frame time (ms) | 35.7 | 36.1 (+1%) |
| replay-scenes · kokiri · frame time (p99) (ms) | 36.8 | 35.6 (−3%) |
| replay-scenes · market · frame time (p99) (ms) | 47.5 | 50.9 (+7%) |
| replay-scenes · kokiri · frame time (worst 1%) (ms) | 42.8 | 43.3 (+1%) |
| replay-scenes · market · frame time (worst 1%) (ms) | 51.8 | 57.9 (+12%) |

**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 NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 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+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
linux+radv 2 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
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>d1a3709</code> (the newer results are in a comment below)</summary> Commit `d1a3709` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2981) ⚠️ **Note:** The farm's separate-start comparisons cannot reproduce the author's in-run switch-toggle confidence interval or reliably resolve the claimed 0.73% gain. ⚠️ **Note:** The default path is compared directly with main; switch-off and parity-check modes are omitted to keep the run within the time limit. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change failed on Linux NVIDIA, Windows AMD and Steam Deck; Windows NVIDIA, Linux RADV and Intel passed overall. The failed screenshot-rule values rose from 0.2525 to 0.3722 on Linux NVIDIA and 0.1201 to 0.2174 on Windows AMD, and to 0.3245 and 0.2984 on the two Steam Deck reports, all above the 0.2 limit. On one Steam Deck, Market 1% low frame time worsened from 47.88 to 56.00 ms (+17%, above the 15% limit). One Intel PC was inconclusive because both baseline and candidate crashed on all three starts, suggesting a PC-specific issue rather than a change-specific crash. Done (started 2026-12-02 15:34 UTC, last report 11:02 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+nvidia` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_810e9d1948ab41c0) [2](https://beanstalk.magicbean.dev/reports/rp_5c2cecb7b4456eef) | 7.8 → 7.9 (+1%) | — | none | | `linux+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_13fbaa7072b4d07f) [2](https://beanstalk.magicbean.dev/reports/rp_e7f1e36e8775bf82) | 13.8 → 13.8 (+0%) | — | none | | `windows+amd` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_d1a87084b59daa1f) [2](https://beanstalk.magicbean.dev/reports/rp_2295f38b8749b567) | 40.5 → 39.0 (−4%) | — | none | | `linux+radv` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_22dbf459704fe522) [2](https://beanstalk.magicbean.dev/reports/rp_77a7f3591b1392ac) | 9.6 → 9.4 (−1%) | — | none | | `intel` | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_e18add1507c85810) [2](https://beanstalk.magicbean.dev/reports/rp_463e6f625b0e656d) | 197.5 → 198.6 (+1%) | — | 3 PR runs | | `steamdeck` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_97f72b34ae327790) [2](https://beanstalk.magicbean.dev/reports/rp_ef115adea2f0ecd1) | 36.8 → 35.6 (−3%) | — | none | **Why it failed** - `linux+nvidia`: `replay-scenes` `screenshot.max_diff`: `0.3 → 0.4; limit 0.2` - `windows+amd`: `replay-scenes` `screenshot.max_diff`: `0.1 → 0.2; limit 0.2` - `steamdeck`: `replay-scenes` `screenshot.max_diff`: `0.2 → 0.3; limit 0.2` - `steamdeck`: `replay-scenes` `market.frametime_1pct_low_ms.max_delta_pct`: `47.9 → 56.0 (+17.0%); limit 15.0` - `steamdeck`: `replay-scenes` `screenshot.max_diff`: `0.3 → 0.3; limit 0.2` **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. - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_e18add1507c85810): `Insufficient frame-time evidence for 7 required comparison(s). See rule results.` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) Compare the shipped replay path against main on Windows and Linux GPUs and Steam Deck, using three alternating starts per side. Each start measures 30 seconds in the crowded child Market and 30 seconds in Kokiri Forest at a fixed, uncapped 720p output, with still-scene screenshots. A crash, a screenshot difference above 0.2, or a frame-time regression above 15% fails the run. Results show performance by target, but the reported sub-1% gain may be smaller than run-to-run noise. 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). - **replay-scenes:** 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. - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate. - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main. - **Time:** about 39 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** pass on windows+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` Scene: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 6.2 | 6.1 (−0%) | | replay-scenes · market · median frame time (ms) | 9.7 | 9.8 (+1%) | | replay-scenes · kokiri · frame time (p99) (ms) | 7.8 | 7.9 (+1%) | | replay-scenes · market · frame time (p99) (ms) | 12.7 | 13.5 (+7%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 8.7 | 8.5 (−2%) | | replay-scenes · market · frame time (worst 1%) (ms) | 14.5 | 16.0 (+11%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` Scene: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 6.2 | 6.1 (−0%) | | replay-scenes · market · median frame time (ms) | 9.7 | 9.8 (+1%) | | replay-scenes · kokiri · frame time (p99) (ms) | 7.8 | 7.9 (+1%) | | replay-scenes · market · frame time (p99) (ms) | 12.7 | 13.5 (+7%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 8.7 | 8.5 (−2%) | | replay-scenes · market · frame time (worst 1%) (ms) | 14.5 | 16.0 (+11%) | **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): `replay-scenes screenshot.max_diff` 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 9.8 | 9.9 (+1%) | | replay-scenes · market · median frame time (ms) | 14.7 | 13.3 (−10%) | | replay-scenes · kokiri · frame time (p99) (ms) | 13.8 | 13.8 (+0%) | | replay-scenes · market · frame time (p99) (ms) | 22.1 | 19.0 (−14%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 15.7 | 15.4 (−2%) | | replay-scenes · market · frame time (worst 1%) (ms) | 24.3 | 22.7 (−6%) | **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): `replay-scenes screenshot.max_diff` 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 9.8 | 9.9 (+1%) | | replay-scenes · market · median frame time (ms) | 14.7 | 13.3 (−10%) | | replay-scenes · kokiri · frame time (p99) (ms) | 13.8 | 13.8 (+0%) | | replay-scenes · market · frame time (p99) (ms) | 22.1 | 19.0 (−14%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 15.7 | 15.4 (−2%) | | replay-scenes · market · frame time (worst 1%) (ms) | 24.3 | 22.7 (−6%) | **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:** fail on windows+amd (2 reports): `replay-scenes screenshot.max_diff` failed. 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 36.9 | 36.8 (−0%) | | replay-scenes · market · median frame time (ms) | 39.9 | 39.8 (−0%) | | replay-scenes · kokiri · frame time (p99) (ms) | 40.5 | 39.0 (−4%) | | replay-scenes · market · frame time (p99) (ms) | 44.2 | 43.9 (−1%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 42.9 | 40.8 (−5%) | | replay-scenes · market · frame time (worst 1%) (ms) | 50.2 | 49.3 (−2%) | **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+amd (2 reports): `replay-scenes screenshot.max_diff` failed. 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 36.9 | 36.8 (−0%) | | replay-scenes · market · median frame time (ms) | 39.9 | 39.8 (−0%) | | replay-scenes · kokiri · frame time (p99) (ms) | 40.5 | 39.0 (−4%) | | replay-scenes · market · frame time (p99) (ms) | 44.2 | 43.9 (−1%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 42.9 | 40.8 (−5%) | | replay-scenes · market · frame time (worst 1%) (ms) | 50.2 | 49.3 (−2%) | **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:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: 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` Scene: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 7.8 | 7.8 (+0%) | | replay-scenes · market · median frame time (ms) | 10.8 | 10.7 (−1%) | | replay-scenes · kokiri · frame time (p99) (ms) | 9.6 | 9.4 (−1%) | | replay-scenes · market · frame time (p99) (ms) | 37.4 | 37.2 (−1%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 16.1 | 16.4 (+2%) | | replay-scenes · market · frame time (worst 1%) (ms) | 42.5 | 38.4 (−10%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: 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` Scene: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 7.8 | 7.8 (+0%) | | replay-scenes · market · median frame time (ms) | 10.8 | 10.7 (−1%) | | replay-scenes · kokiri · frame time (p99) (ms) | 9.6 | 9.4 (−1%) | | replay-scenes · market · frame time (p99) (ms) | 37.4 | 37.2 (−1%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 16.1 | 16.4 (+2%) | | replay-scenes · market · frame time (worst 1%) (ms) | 42.5 | 38.4 (−10%) | **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:** pass on intel (2 reports): no rule failed and no PR run crashed. 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 190.4 | 190.2 (−0%) | | replay-scenes · market · median frame time (ms) | 214.1 | 213.8 (−0%) | | replay-scenes · kokiri · frame time (p99) (ms) | 197.5 | 198.6 (+1%) | | replay-scenes · market · frame time (p99) (ms) | 228.3 | 227.9 (−0%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 198.0 | 199.3 (+1%) | | replay-scenes · market · frame time (worst 1%) (ms) | 233.3 | 233.4 (+0%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed. 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 190.4 | 190.2 (−0%) | | replay-scenes · market · median frame time (ms) | 214.1 | 213.8 (−0%) | | replay-scenes · kokiri · frame time (p99) (ms) | 197.5 | 198.6 (+1%) | | replay-scenes · market · frame time (p99) (ms) | 228.3 | 227.9 (−0%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 198.0 | 199.3 (+1%) | | replay-scenes · market · frame time (worst 1%) (ms) | 233.3 | 233.4 (+0%) | **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:** fail on steamdeck (2 reports): `replay-scenes screenshot.max_diff`; `replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+17.0%)` failed. 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 28.4 | 28.4 (+0%) | | replay-scenes · market · median frame time (ms) | 35.7 | 36.1 (+1%) | | replay-scenes · kokiri · frame time (p99) (ms) | 36.8 | 35.6 (−3%) | | replay-scenes · market · frame time (p99) (ms) | 47.5 | 50.9 (+7%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 42.8 | 43.3 (+1%) | | replay-scenes · market · frame time (worst 1%) (ms) | 51.8 | 57.9 (+12%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on steamdeck (2 reports): `replay-scenes screenshot.max_diff`; `replay-scenes market.frametime_1pct_low_ms.max_delta_pct (+17.0%)` failed. 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: replay-scenes, 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); 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); replay-scenes: 3 game starts a side, market 30 s after 10 s warm-up, kokiri 30 s after 10 s warm-up; 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 @ 495ed9f | After: this PR @ d1a3709 | |---|---|---| | replay-scenes · kokiri · median frame time (ms) | 28.4 | 28.4 (+0%) | | replay-scenes · market · median frame time (ms) | 35.7 | 36.1 (+1%) | | replay-scenes · kokiri · frame time (p99) (ms) | 36.8 | 35.6 (−3%) | | replay-scenes · market · frame time (p99) (ms) | 47.5 | 50.9 (+7%) | | replay-scenes · kokiri · frame time (worst 1%) (ms) | 42.8 | 43.3 (+1%) | | replay-scenes · market · frame time (worst 1%) (ms) | 51.8 | 57.9 (+12%) | **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_810e9d1948ab41c0) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_5c2cecb7b4456eef) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `linux+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_13fbaa7072b4d07f) | 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_e7f1e36e8775bf82) | 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_d1a87084b59daa1f) | 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_2295f38b8749b567) | 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_22dbf459704fe522) | linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_77a7f3591b1392ac) | 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` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_e18add1507c85810) | 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_463e6f625b0e656d) | 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_97f72b34ae327790) | 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_ef115adea2f0ecd1) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | </details> </details>
Owner

Independent Linux Market A/B on PR head d1a37097ccfb. RX_VK_REPLAY_FAST defaults to on in this revision.

Inconclusive in this short capture. Median average FPS changed by -2.28%.

Metric Off (0) On (1)
Average FPS, each run 114.51 / 118.15 107.48 / 119.87
Average FPS, median 116.33 113.68
1% low FPS (1000 ÷ p99) 73.76 73.13
Median frame time 8.22 ms 8.16 ms
p99 frame time 13.66 ms 13.71 ms
Frames of 50 ms or more, each run 2 / 3 10 / 2

Market (child), Linux 7.3.3-1-cachyos, RTX 3090, NVIDIA 620.70.06, 1280x720, 50% (640x360), uncapped with V-Sync and frame generation off. Two interleaved 30-second captures per side on the same PR binary, each after pipeline warm-up. Frame-time and 1% low rows report the median across the two captures.

The repeats on at least one side differ by more than 10%, so the average FPS delta is sensitive to the run chosen.

Independent Linux Market A/B on PR head `d1a37097ccfb`. `RX_VK_REPLAY_FAST` defaults to on in this revision. **Inconclusive in this short capture.** Median average FPS changed by **-2.28%**. | Metric | Off (`0`) | On (`1`) | |---|---:|---:| | Average FPS, each run | 114.51 / 118.15 | 107.48 / 119.87 | | Average FPS, median | 116.33 | 113.68 | | 1% low FPS (1000 ÷ p99) | 73.76 | 73.13 | | Median frame time | 8.22 ms | 8.16 ms | | p99 frame time | 13.66 ms | 13.71 ms | | Frames of 50 ms or more, each run | 2 / 3 | 10 / 2 | Market (child), Linux 7.3.3-1-cachyos, RTX 3090, NVIDIA 620.70.06, 1280x720, 50% (640x360), uncapped with V-Sync and frame generation off. Two interleaved 30-second captures per side on the same PR binary, each after pipeline warm-up. Frame-time and 1% low rows report the median across the two captures. The repeats on at least one side differ by more than 10%, so the average FPS delta is sensitive to the run chosen.
Owner

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

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

Metric A (0) B (1)
Average FPS, each capture 56.17 / 53.51 / 56.89 54.36 / 56.14 / 55.61
Average FPS, median 56.17 55.61
1% low FPS (1000 ÷ p99), median 39.83 25.97
Median frame time 17.48 ms 17.52 ms
p99 frame time, median 25.11 ms 38.51 ms
Frames of 50 ms or more, each capture 5 / 24 / 8 22 / 8 / 13

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 18 / 62 / 20 frames on side A and 58 / 20 / 33 on side B across the three captures. The FPS and tail numbers include those frames.

AMD Lab Market A/B on PR head `d1a37097ccfb`, using `RX_VK_REPLAY_FAST=0` and `RX_VK_REPLAY_FAST=1` on the same build. **Within the run-to-run spread.** Median average FPS changed by **-1.00%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 56.17 / 53.51 / 56.89 | 54.36 / 56.14 / 55.61 | | Average FPS, median | 56.17 | 55.61 | | 1% low FPS (1000 ÷ p99), median | 39.83 | 25.97 | | Median frame time | 17.48 ms | 17.52 ms | | p99 frame time, median | 25.11 ms | 38.51 ms | | Frames of 50 ms or more, each capture | 5 / 24 / 8 | 22 / 8 / 13 | 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 18 / 62 / 20 frames on side A and 58 / 20 / 33 on side B across the three captures. The FPS and tail numbers include those frames.
siantm force-pushed perf/vk-replay-fast from d1a37097cc
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+nvidia 1/1 fail
beanstalk/windows+amd 1/1 fail
beanstalk/linux+radv 2/1 pass
beanstalk/intel 1/1 pass
beanstalk/steamdeck 2/1 fail
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 e696e89bc7
Some checks are pending
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) Successful in 6s
2026-12-03 19:43:36 +00:00
Compare
Member

Beanstalk test farm

Commit e696e89 · 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 `e696e89` · approved by nobody yet · [dashboard](https://beanstalk.magicbean.dev/prs/2981) A member of `BigBeans` can review this commit and comment `@Beanstalk` to test it.
Author
Contributor

Rebased onto main @ 0aeb6858 (head e696e89b). The default stays on. The description's Testing is updated.

Rebase conflicts, resolved keeping both sides:

  • gpu/vk/vk_replay.cpp: main's readback_early_gap setting is kept, and Pass keeps both main's rt_serial and this PR's reset().
  • gpu/vk/switches.def: the old RX_VK_RETIRE_* rows are dropped, since main moved them to settings.

Checks this PR broke, fixed in e696e89b. On the rebased head, six checks that read the replay's source failed, because of this PR's reshaping rather than the rebase:

  • test_draw_stream_visibility, test_fsr_uniform_ownership and test_recording_admission compile draw_begin_recording and begin_recording cut from the source. Their fixtures now include replay_fast.h and stub its epoch bank cache (bank_cache_epoch, bank_cache_check, BankCache::epoch), Pass::reset and mesh_batch_maybe_live.
  • test_split_before_draw: with the switch on, the part's end that maybe_split asks for is made inside the three plain draws' cases (if (rf_mode != 0 && part_end_wanted && …) split_part(cmd);) instead of before the switch on the op. The check now requires that line first in NOP_DRAW, NOP_DRAW_IDX and NOP_DRAW_INDIRECT, and nowhere else in the switch, so a part still never begins with a mesh draw or a dispatch.
  • test_early_split_before_draw runs its streams of draws, mesh draws and dispatches both ways (RX_VK_REPLAY_FAST=0 and 1), with the in-case end and the reshaped early-end condition cut from the source.
  • test_replay_copies checks that the c1 map is the replay_fast::EpochMap (open addressing, no map node per upload) instead of FlatMap.

Farm results (d1a3709):

  • linux+nvidia (RTX 5070), Market pictures (diff 0.35, main against itself 0.13): main's and the PR's both show the same white-out of textures at the Market gate. The PR's picture whites out more surfaces (the gate walls as well). One of the three PR starts there also ran at 45.8 FPS against about 118 for the others (p99 40.5 ms). One start out of three isn't enough to call it a PR fault, but it needs another run. The failing rule itself was the Kokiri picture (0.37 against 0.25), and the report has no Kokiri pictures to download.
  • steamdeck, second Deck: main's and the PR's Market pictures both render correctly. The 0.30 difference comes from the place-name title and the speech bubble being at different points of their fade, i.e. capture timing.
  • steamdeck 1% low: one Deck's median rose 47.88 → 56.00 ms (+17%; PR starts 77.55 / 56.00 / 51.99 against main's 55.70 / 47.88 / 47.69). The other Deck moved 55.65 → 59.82 ms and passed.
  • windows+amd (5600G) and the first Deck failed on the Kokiri picture (0.22 against main's own 0.12; 0.32 against 0.21). Those reports have only main's Kokiri picture, so I couldn't compare them.

Measurements by people:

  • HumanBean, Linux RTX 3090: -2.28% median FPS, inconclusive (repeats more than 10% apart).
  • AMD Lab, RX 580: -1.00% median FPS, within the run-to-run spread. The tails were worse in those captures, though: p99 25.11 → 38.51 ms, 1% low 39.83 → 25.97 FPS.

None of these shows it faster, and the AMD Lab and Steam Deck tails lean slower. The measurers called the averages inconclusive or within the spread, so I've left the default on. A repeat of the AMD Lab pairs, or the farm on this head, should settle whether the tail regression is real; if it repeats, the switch goes off.

L1 / L2 (base against head at player settings, other Tier 1 systems): still open. I can't run the game here (one Windows RTX 4060 PC, a shared queue).

Question (GPU of the Windows run): NVIDIA GeForce RTX 4060, driver 621.40, Windows 11. It's now in the description.

Tested on the rebased head (Windows 11, llvm-mingw clang++):

  • tests/run_all.py --exact of 27 checks: 27 passed, 0 failed. They are the six fixed above, test_vk_replay_fast, test_mesh_conv, test_mesh_fallback, test_hos_ab, test_switch_table, test_dlssg_hudless, test_draw_binds, test_dummy_views, test_flat_map, test_fsr3fi_hud_mask, test_mem_trim, test_push_state, test_same_bind, test_sampler_admission, test_target_layouts, test_tex_desc_memo, test_vk_cmd_fast, test_vk_desc_span_fast, test_vk_pipe_fast, test_vk_ubo_ssbo_fast, test_vram_held_idle.
  • clang++ -fsyntax-only of gpu/vk/vk_draw.cpp, gpu/vk/vk_replay.cpp and gpu/vk/vk_main.cpp, with the build plan's own compile commands: no errors.
  • test_readback_early and test_recorder_own_idle timed out only while 8 checks ran at once. Run one at a time, they passed on this PR and on main (checked before the last rebase, on main @ 1c91b18f).
    No game run on the rebased head.
Rebased onto `main` @ `0aeb6858` (head `e696e89b`). The default stays on. The description's Testing is updated. **Rebase conflicts, resolved keeping both sides:** - `gpu/vk/vk_replay.cpp`: `main`'s `readback_early_gap` setting is kept, and `Pass` keeps both `main`'s `rt_serial` and this PR's `reset()`. - `gpu/vk/switches.def`: the old `RX_VK_RETIRE_*` rows are dropped, since `main` moved them to settings. **Checks this PR broke, fixed in `e696e89b`.** On the rebased head, six checks that read the replay's source failed, because of this PR's reshaping rather than the rebase: - `test_draw_stream_visibility`, `test_fsr_uniform_ownership` and `test_recording_admission` compile `draw_begin_recording` and `begin_recording` cut from the source. Their fixtures now include `replay_fast.h` and stub its epoch bank cache (`bank_cache_epoch`, `bank_cache_check`, `BankCache::epoch`), `Pass::reset` and `mesh_batch_maybe_live`. - `test_split_before_draw`: with the switch on, the part's end that `maybe_split` asks for is made inside the three plain draws' cases (`if (rf_mode != 0 && part_end_wanted && …) split_part(cmd);`) instead of before the switch on the op. The check now requires that line first in `NOP_DRAW`, `NOP_DRAW_IDX` and `NOP_DRAW_INDIRECT`, and nowhere else in the switch, so a part still never begins with a mesh draw or a dispatch. - `test_early_split_before_draw` runs its streams of draws, mesh draws and dispatches both ways (`RX_VK_REPLAY_FAST=0` and `1`), with the in-case end and the reshaped early-end condition cut from the source. - `test_replay_copies` checks that the c1 map is the `replay_fast::EpochMap` (open addressing, no map node per upload) instead of `FlatMap`. **Farm results (`d1a3709`):** - `linux+nvidia` (RTX 5070), Market pictures (diff 0.35, main against itself 0.13): main's and the PR's both show the same white-out of textures at the Market gate. The PR's picture whites out more surfaces (the gate walls as well). One of the three PR starts there also ran at 45.8 FPS against about 118 for the others (p99 40.5 ms). One start out of three isn't enough to call it a PR fault, but it needs another run. The failing rule itself was the Kokiri picture (0.37 against 0.25), and the report has no Kokiri pictures to download. - `steamdeck`, second Deck: main's and the PR's Market pictures both render correctly. The 0.30 difference comes from the place-name title and the speech bubble being at different points of their fade, i.e. capture timing. - `steamdeck` 1% low: one Deck's median rose 47.88 → 56.00 ms (+17%; PR starts 77.55 / 56.00 / 51.99 against main's 55.70 / 47.88 / 47.69). The other Deck moved 55.65 → 59.82 ms and passed. - `windows+amd` (5600G) and the first Deck failed on the Kokiri picture (0.22 against main's own 0.12; 0.32 against 0.21). Those reports have only main's Kokiri picture, so I couldn't compare them. **Measurements by people:** - HumanBean, Linux RTX 3090: -2.28% median FPS, inconclusive (repeats more than 10% apart). - AMD Lab, RX 580: -1.00% median FPS, within the run-to-run spread. The tails were worse in those captures, though: p99 25.11 → 38.51 ms, 1% low 39.83 → 25.97 FPS. None of these shows it faster, and the AMD Lab and Steam Deck tails lean slower. The measurers called the averages inconclusive or within the spread, so I've left the default on. A repeat of the AMD Lab pairs, or the farm on this head, should settle whether the tail regression is real; if it repeats, the switch goes off. **L1 / L2 (base against head at player settings, other Tier 1 systems):** still open. I can't run the game here (one Windows RTX 4060 PC, a shared queue). **Question (GPU of the Windows run):** NVIDIA GeForce RTX 4060, driver 621.40, Windows 11. It's now in the description. **Tested on the rebased head** (Windows 11, llvm-mingw clang++): - `tests/run_all.py --exact` of 27 checks: 27 passed, 0 failed. They are the six fixed above, `test_vk_replay_fast`, `test_mesh_conv`, `test_mesh_fallback`, `test_hos_ab`, `test_switch_table`, `test_dlssg_hudless`, `test_draw_binds`, `test_dummy_views`, `test_flat_map`, `test_fsr3fi_hud_mask`, `test_mem_trim`, `test_push_state`, `test_same_bind`, `test_sampler_admission`, `test_target_layouts`, `test_tex_desc_memo`, `test_vk_cmd_fast`, `test_vk_desc_span_fast`, `test_vk_pipe_fast`, `test_vk_ubo_ssbo_fast`, `test_vram_held_idle`. - `clang++ -fsyntax-only` of `gpu/vk/vk_draw.cpp`, `gpu/vk/vk_replay.cpp` and `gpu/vk/vk_main.cpp`, with the build plan's own compile commands: no errors. - `test_readback_early` and `test_recorder_own_idle` timed out only while 8 checks ran at once. Run one at a time, they passed on this PR and on `main` (checked before the last rebase, on `main` @ `1c91b18f`). No game run on the rebased head.
dyst left a comment

Recommendation: Request changes. A perf change that ships on by default with no measured gain over main, and with worse frame-time tails in every run against main or from another tester since (Steam Deck, AMD, and Windows NVIDIA on the farm). It also conflicts with main. The code itself looks correct where I checked it.

For a player, this would make the Vulkan replay of each frame's commands a little cheaper on the CPU in crowded scenes (Market). It does that with a second copy of the replay's bind cases behind RX_VK_REPLAY_FAST, plus a capacity-keeping reset for the per-recording caches and a quicker mesh-draw scan. That is +1,548 lines (a 332-line header, a 737-line test) for a 0.73% gain measured inside one binary.

Does it help: No, as measured so far. The only gain is =1 against =0 in one binary, on one PC (RTX 4060): +0.73% FPS. Against main, the farm at d1a3709 gave Windows NVIDIA Market median 9.7 -> 9.8 ms, p99 12.7 -> 13.5 ms (+7%), worst 1% 14.5 -> 16.0 ms (+11%), and Steam Deck Market 1% low 47.9 -> 56.0 ms (+17%, a fail). Other testers on the same binary: HumanBean, Linux RTX 3090, -2.28% (inconclusive); AMD Lab, RX 580, -1.00% with p99 25.1 -> 38.5 ms and 1% low 39.8 -> 26.0 FPS. A perf change with no measured gain doesn't merge, and an average gain with worse 1% lows is not a gain (standards, Measurements).
Other systems: this is the replay loop, so every vendor, OS and the Deck run it. The farm failed it on linux+nvidia, windows+amd and steamdeck (picture rule, plus the Deck's 1% low), and nothing since shows those failures were noise.
Switches: RX_VK_REPLAY_FAST (kill, default on). The default isn't backed by a measurement against main on any platform, and the tails lean worse on AMD and the Deck. On is the wrong default until that changes.
Reviewed: e696e89bc against its merge base 0aeb68589. I read the whole diff of gpu/vk/replay_fast.h, mesh_conv.h, vk_replay.cpp, vk_draw.cpp, vk_draw.h, vk_main.cpp and switches.def, plus the code it relies on: the record structs in gpu/render/rx_nvn.h, mesh_conv_batch, the baseline bind cases, op_is_work, and both replay() call sites. I only skimmed tests/test_vk_replay_fast.py and the six updated checks: those weren't read in full. Nothing was run.
Fixed in this review: nothing.
Checked and fine:

  • The fast bind paths decode the records as rx_nvn.h lays them out: {first, n} for viewports, vattr, vstream and vbuf (vattr and vstream ignore first, as the baseline does); handles at +24 after {stage, first, n, pad_, src}; ranges at +24 in nvn_p_bind_bufs. tex_gen is bumped for tex, samp and img, as before.
  • Skipping the write in NOP_BIND_PROGRAM and NOP_BIND_UBO/SSBO when nothing changed loses no state: the comparison covers the whole record (nvn_p_bind_buf is exactly stage, index, addr, size).
  • mesh_conv_batch(cmd, nullptr, 0) only clears the thread's mesh_batch, so the empty-batch skip guarded by mesh_batch_maybe_live is safe, and the flag is reset at each recording.
  • The mode is latched per recording on the thread that also runs replay(): both call sites follow begin_recording on the same thread, so a HOS_AB flip switches whole recordings.
  • Bank cache epochs: mode 0 resets entries to epoch 0 and mode 1 bumps the thread's epoch, so a mode flip never reuses a stale entry. EpochMap probes always end (load at most 3/4), and an empty map never indexes with a shift of 64.
  • The vbuf fast path no longer writes vbuf[first + i] for a negative first; the baseline would write out of bounds there.

Blocking

  1. gpu/vk/switches.def:613: the switch ships on without a gain over main, and with worse tails (numbers above). BeanBot's L1/L2 still stand, and the data that came in since leans the wrong way. Fix: measure main against this head, interleaved, at least 4 runs a side, on a CPU-bound PC and on AMD or the Deck. Ship it on only where it is faster with tails no worse; otherwise default it off, or drop the parts that don't pay.
  2. gpu/vk/vk_draw.cpp:780: =0 isn't main. c1_at is an EpochMap in both modes (FlatMap is gone), mesh_conv::Ops gains a 256-byte scan_act table, and replay() carries the per-op rf_mode branches in both modes. So the in-run A/B doesn't measure the change, and the kill switch doesn't bring the old code back. Fix: the measurement against main from point 1.
  3. The farm's picture failures are unexplained: Kokiri 0.25 -> 0.37 on linux+nvidia, 0.12 -> 0.22 on windows+amd, 0.21 -> 0.32 on a Deck. Your own note says the PR's Market picture on the RTX 5070 whites out more surfaces than main's. Nothing has run on the farm at e696e89. Fix: a farm run on the rebased head, with the picture difference either resolved or shown to happen with main against itself.
  4. It doesn't merge: it conflicts with main (be4942212), and the description still says "on current main (0aeb6858)". Your description also says there was no game run on the rebased head, and Ready for review's "Measured against main" is ticked when no measurement against main exists. Fix: rebase, run the head in the game, and untick that box until the measurement exists.

Suggestions

  • gpu/vk/vk_replay.cpp:2251 and :2364: check mode compares the fast helper for NOP_BIND_BUFS and NOP_BIND_TEX/SAMP/IMG with a second hand-written copy inside the check branch, not with the baseline code path. Viewports, vattr, vstream, vbuf and NOP_BIND_PROGRAM aren't checked at all. So "72.5M checks, 0 mismatches" covers the scan, the bank cache and the c1 map well, and the binds much less. If check mode stays, run the real baseline case into a shadow NvnState and compare.
  • gpu/vk/replay_fast.h:69: buf_unchanged duplicates vk_replay.cpp:1862's. An == chain on four fields is already branch-free at -O2, so keep one.
  • Consider splitting off what needs no switch and is plainly safe: hoisting the RX_VK_LOG_DEFERRED/RX_VK_LOG_MESH_BINDS statics out of the per-op paths, the empty mesh-batch skip, and keeping Pass::sampled's and BankCache::bytes' capacity. That would land as a small PR. The per-op dual paths through replay() are where the maintenance cost is: every later change to a bind case has to be made twice and kept in step.

Testing: By the author: 27 checks (run_all.py --exact) and clang++ -fsyntax-only on the rebased head; a game smoke, a check-mode run and the in-run A/B at 12822052 (Windows 11, RTX 4060). The farm ran at d1a3709 (failed on 3 targets) and two human A/Bs at d1a3709 showed no gain. Missing, and each holds the merge: main against this head, a game run of the rebased head, and the farm on the head.
Overlaps and merge order: listed as overlapping, not read in this review: #3080, #2692, #2515, #3116, #2989 and #2948. This PR reshapes the replay loop's bind and draw cases, so whichever of those lands first, this one will need another rebase over it.

**Recommendation: Request changes.** A perf change that ships on by default with no measured gain over `main`, and with worse frame-time tails in every run against `main` or from another tester since (Steam Deck, AMD, and Windows NVIDIA on the farm). It also conflicts with `main`. The code itself looks correct where I checked it. For a player, this would make the Vulkan replay of each frame's commands a little cheaper on the CPU in crowded scenes (Market). It does that with a second copy of the replay's bind cases behind `RX_VK_REPLAY_FAST`, plus a capacity-keeping reset for the per-recording caches and a quicker mesh-draw scan. That is +1,548 lines (a 332-line header, a 737-line test) for a 0.73% gain measured inside one binary. **Does it help:** No, as measured so far. The only gain is `=1` against `=0` in one binary, on one PC (RTX 4060): +0.73% FPS. Against `main`, the farm at `d1a3709` gave Windows NVIDIA Market median 9.7 -> 9.8 ms, p99 12.7 -> 13.5 ms (+7%), worst 1% 14.5 -> 16.0 ms (+11%), and Steam Deck Market 1% low 47.9 -> 56.0 ms (+17%, a fail). Other testers on the same binary: HumanBean, Linux RTX 3090, -2.28% (inconclusive); AMD Lab, RX 580, -1.00% with p99 25.1 -> 38.5 ms and 1% low 39.8 -> 26.0 FPS. A perf change with no measured gain doesn't merge, and an average gain with worse 1% lows is not a gain (standards, *Measurements*). **Other systems:** this is the replay loop, so every vendor, OS and the Deck run it. The farm failed it on `linux+nvidia`, `windows+amd` and `steamdeck` (picture rule, plus the Deck's 1% low), and nothing since shows those failures were noise. **Switches:** `RX_VK_REPLAY_FAST` (kill, default on). The default isn't backed by a measurement against `main` on any platform, and the tails lean worse on AMD and the Deck. On is the wrong default until that changes. **Reviewed:** `e696e89bc` against its merge base `0aeb68589`. I read the whole diff of `gpu/vk/replay_fast.h`, `mesh_conv.h`, `vk_replay.cpp`, `vk_draw.cpp`, `vk_draw.h`, `vk_main.cpp` and `switches.def`, plus the code it relies on: the record structs in `gpu/render/rx_nvn.h`, `mesh_conv_batch`, the baseline bind cases, `op_is_work`, and both `replay()` call sites. I only skimmed `tests/test_vk_replay_fast.py` and the six updated checks: those weren't read in full. Nothing was run. **Fixed in this review:** nothing. **Checked and fine:** - The fast bind paths decode the records as `rx_nvn.h` lays them out: `{first, n}` for viewports, vattr, vstream and vbuf (vattr and vstream ignore `first`, as the baseline does); handles at +24 after `{stage, first, n, pad_, src}`; ranges at +24 in `nvn_p_bind_bufs`. `tex_gen` is bumped for tex, samp and img, as before. - Skipping the write in `NOP_BIND_PROGRAM` and `NOP_BIND_UBO`/`SSBO` when nothing changed loses no state: the comparison covers the whole record (`nvn_p_bind_buf` is exactly stage, index, addr, size). - `mesh_conv_batch(cmd, nullptr, 0)` only clears the thread's `mesh_batch`, so the empty-batch skip guarded by `mesh_batch_maybe_live` is safe, and the flag is reset at each recording. - The mode is latched per recording on the thread that also runs `replay()`: both call sites follow `begin_recording` on the same thread, so a `HOS_AB` flip switches whole recordings. - Bank cache epochs: mode 0 resets entries to epoch 0 and mode 1 bumps the thread's epoch, so a mode flip never reuses a stale entry. `EpochMap` probes always end (load at most 3/4), and an empty map never indexes with a shift of 64. - The vbuf fast path no longer writes `vbuf[first + i]` for a negative `first`; the baseline would write out of bounds there. **Blocking** 1. `gpu/vk/switches.def:613`: the switch ships on without a gain over `main`, and with worse tails (numbers above). BeanBot's L1/L2 still stand, and the data that came in since leans the wrong way. Fix: measure `main` against this head, interleaved, at least 4 runs a side, on a CPU-bound PC and on AMD or the Deck. Ship it on only where it is faster with tails no worse; otherwise default it off, or drop the parts that don't pay. 2. `gpu/vk/vk_draw.cpp:780`: `=0` isn't `main`. `c1_at` is an `EpochMap` in both modes (`FlatMap` is gone), `mesh_conv::Ops` gains a 256-byte `scan_act` table, and `replay()` carries the per-op `rf_mode` branches in both modes. So the in-run A/B doesn't measure the change, and the kill switch doesn't bring the old code back. Fix: the measurement against `main` from point 1. 3. The farm's picture failures are unexplained: Kokiri 0.25 -> 0.37 on `linux+nvidia`, 0.12 -> 0.22 on `windows+amd`, 0.21 -> 0.32 on a Deck. Your own note says the PR's Market picture on the RTX 5070 whites out more surfaces than `main`'s. Nothing has run on the farm at `e696e89`. Fix: a farm run on the rebased head, with the picture difference either resolved or shown to happen with `main` against itself. 4. It doesn't merge: it conflicts with `main` (`be4942212`), and the description still says "on current `main` (`0aeb6858`)". Your description also says there was no game run on the rebased head, and *Ready for review*'s "Measured against `main`" is ticked when no measurement against `main` exists. Fix: rebase, run the head in the game, and untick that box until the measurement exists. **Suggestions** - `gpu/vk/vk_replay.cpp:2251` and `:2364`: check mode compares the fast helper for `NOP_BIND_BUFS` and `NOP_BIND_TEX`/`SAMP`/`IMG` with a second hand-written copy inside the check branch, not with the baseline code path. Viewports, vattr, vstream, vbuf and `NOP_BIND_PROGRAM` aren't checked at all. So "72.5M checks, 0 mismatches" covers the scan, the bank cache and the c1 map well, and the binds much less. If check mode stays, run the real baseline case into a shadow `NvnState` and compare. - `gpu/vk/replay_fast.h:69`: `buf_unchanged` duplicates `vk_replay.cpp:1862`'s. An `==` chain on four fields is already branch-free at -O2, so keep one. - Consider splitting off what needs no switch and is plainly safe: hoisting the `RX_VK_LOG_DEFERRED`/`RX_VK_LOG_MESH_BINDS` statics out of the per-op paths, the empty mesh-batch skip, and keeping `Pass::sampled`'s and `BankCache::bytes`' capacity. That would land as a small PR. The per-op dual paths through `replay()` are where the maintenance cost is: every later change to a bind case has to be made twice and kept in step. **Testing:** By the author: 27 checks (`run_all.py --exact`) and `clang++ -fsyntax-only` on the rebased head; a game smoke, a check-mode run and the in-run A/B at `12822052` (Windows 11, RTX 4060). The farm ran at `d1a3709` (failed on 3 targets) and two human A/Bs at `d1a3709` showed no gain. Missing, and each holds the merge: `main` against this head, a game run of the rebased head, and the farm on the head. **Overlaps and merge order:** listed as overlapping, not read in this review: https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3080, https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2692, https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2515, https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3116, https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2989 and https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2948. This PR reshapes the replay loop's bind and draw cases, so whichever of those lands first, this one will need another rebase over it.
@ -610,6 +610,7 @@ SW(RX_VK_REFLEX, player, enum, "the menu's NVIDIA Reflex row", "Sets NVIDIA Refl
SW(RX_VK_REFLEX_LOG, diag, bool, "off", "Logs Reflex's latency timings every 300 frames.")
SW(RX_VK_REJECT_KEYS, diag, string, "empty: no program rejected", "Comma list of program key prefixes taken as untranslatable, for bisecting a bad translation.")
SW(RX_VK_REJECT_STAGES, diag, string, "empty: no stage rejected", "Comma list of NVN stage numbers whose programs are taken as untranslatable, for bisecting a bad translation.")
SW(RX_VK_REPLAY_FAST, kill, enum, "on (1): fast replay dispatch, tighter mesh_conv::scan / empty-batch skip, and capacity-preserving per-recording resets", "=0 (or off, false, no): baseline paths; =check: parity verification and telemetry; any other value: on (HOS_AB may flip).")
Member

Ships on with no gain measured against main, and with worse tails since (Deck 1% low +17%, AMD Lab p99 25 -> 38 ms, farm Windows NVIDIA Market p99 +7%). On only where it measures faster against main with tails no worse.

Ships on with no gain measured against main, and with worse tails since (Deck 1% low +17%, AMD Lab p99 25 -> 38 ms, farm Windows NVIDIA Market p99 +7%). On only where it measures faster against main with tails no worse.
@ -777,3 +778,3 @@
uint32_t idle = 0; // (recordings of the slot that stayed in the first stream)
// (flat (flat_map.h): an unordered_map put a malloc into every c1 upload kept, and a free into the next recording's clear)
FlatMap<uintptr_t, std::pair<VkBuffer, uint64_t>> c1_at; // (c1 of a stage, by the stage's address: uploaded once a recording)
replay_fast::EpochMap<uintptr_t, std::pair<VkBuffer, uint64_t>> c1_at; // (c1 of a stage, by the stage's address: uploaded once a recording)
Member

c1_at is an EpochMap in both modes, so RX_VK_REPLAY_FAST=0 isn't main: the in-run A/B leaves this change (and the scan table, and the per-op rf_mode branches) out of the comparison.

c1_at is an EpochMap in both modes, so RX_VK_REPLAY_FAST=0 isn't main: the in-run A/B leaves this change (and the scan table, and the per-op rf_mode branches) out of the comparison.
Some checks are pending
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) Successful in 6s
This pull request has changes conflicting with the target branch.
  • gpu/vk/vk_draw.cpp
  • gpu/vk/vk_replay.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-replay-fast:siantm-perf/vk-replay-fast'
git switch 'siantm-perf/vk-replay-fast'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
6 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!2981
No description provided.