perf(vk): add RX_VK_DRAW_OVERHEAD_LEAN per-draw, descriptor, and pass fast paths #3048

Merged
HumanBean merged 2 commits from siantm/Longshot:perf/vk-draw-overhead-lean into main 2026-12-04 15:56:36 +00:00
Contributor

Summary

Eliminates redundant per-draw, per-descriptor-push, and per-pass overhead on the hot Vulkan graphics replay path without adding persistent TLS cache bloat:

  • Inline per-draw guards (gpu/vk/draw_overhead_lean.h, gpu/vk/vk_draw.cpp): replaces heavy helper call overhead inside draw() with inline stats_tick_needed(), mesh_indirect_convert_needed(), scene_draw_ubo_ready(), temporal_note_scene_needed(), fsr3_note_scene_needed(), skin_check_needed(), hidden_depth_draw_needed(), and lock-free upscale_route::wanted_fast() (gpu/vk/upscale_route.h, gpu/vk/upscale_route.cpp). The sampled PROF_HOT phases (PROF_DRAW/DESC/PIPE/PROGRAM/CMDS) stay on whatever the switch: the periodic "a frame's replay time" log line, the slow-frame log, the frame trace and the performance summary read them.
  • Lean push-descriptor path (bind_descriptors_lean() in gpu/vk/vk_draw.cpp): tracks unbindable_image on DescWriter (an image bind_descriptors() refuses: no sampler, or no view on a device without null descriptors, as #3032 added), uses words_same_store_lean() for fast equality/store, keeps up to 64 changed writes on changed_stack[64] to avoid heap allocations, pre-reserves DescWriter scratch vectors, and reads g_bind_stamp_fast in lean_bind_stamp().
  • Inline render-pass skip & deferred query state: checks pass_targets_eq() before calling begin_pass(), and defers StatsQuery DrawArgs copy until begin().
  • Switch control (gpu/vk/switches.def): adds RX_VK_DRAW_OVERHEAD_LEAN (1 ON default, 0 OFF legacy, check shadow parity mode), sampled per recording via draw_begin_recording().

First files to read: gpu/vk/draw_overhead_lean.h, gpu/vk/vk_draw.cpp (lean_bind_stamp, bind_descriptors_lean, draw), gpu/vk/upscale_route.h, gpu/vk/upscale_route.cpp, tests/test_vk_draw_overhead_lean.py.

Testing

Tested:

  • Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4): 30 s live RX_VK_DRAW_OVERHEAD_LEAN=check parity run in market (Market_Child, pre-rebase commit 57df33bb4): 2319 frames at 77.3 fps, 189,400,000+ checks (82,895,653 fast skips), 0 mismatches, RUN_ERROR=None.

  • Rebased build & strict checks (a73c2ca56 on origin/main @ 455b08373): longshot-builder.exe dev compile --only renderer (270 units, 0 failed, longshot_vk.dll 17 MB) and python -I -X utf8 tests/run_all.py --strict tests/test_vk_draw_overhead_lean.py tests/test_draw_side_effects.py tests/test_hos_ab.py tests/test_tls_objects.py tests/test_vk_braces.py tests/test_vk_ubo_ssbo_fast.py tests/test_vk_desc_span_fast.py tests/test_vk_cmd_fast.py: 8 passed, 0 failed, 0 skipped.

  • Review fixes and rebase (64437cd7 on origin/main @ 0aeb6858, Windows, llvm-mingw clang++): vk_draw.cpp passes a clang++ -fsyntax-only compile with the renderer's flags; tests/run_all.py --exact tests/test_vk_draw_overhead_lean.py tests/test_draw_side_effects.py tests/test_switch_table.py tests/test_hos_ab.py and the 7 checks that cut draw(), draw_begin_recording() or build_descriptors() (test_draw_binds, test_dlss_pre_bloom, test_fallback_pipeline_state, test_draw_stream_visibility, test_recording_admission, test_fsr_uniform_ownership, test_dummy_views) pass. --changed origin/main (208 checks) was run on the first rebase; the failures it showed are fixed or were 60 s compile timeouts under the shared PC's load (see the review reply).

Still to test:

  • CI: Windows and Linux automated test suites and full build matrix (@Beanstalk).
  • This head against its base (main @ 0aeb6858) in the same scene and settings, several interleaved runs with frame times and lows, under normal profiling settings (the table below compares the switch on and off within one PR build).
  • A =check run and gameplay on this head (the RTX 4060 runs above were on 57df33bb4, before the unbindable_image change), and the Tier 1 systems it can change: Linux/RADV, Steam Deck, AMD and Intel, with the temporal upscaler, frame generation and mesh fallback paths.

Measurements

Verdict: Faster with RX_VK_DRAW_OVERHEAD_LEAN ON than OFF within the same pre-rebase PR build; not yet measured as this head against its base (Still to test): +2.61% fps (-0.330 ms mean frame time, 95% CI +2.11% to +3.28% across 5/5 runs; draw_ms -5.86%, cmds_ms -6.02%, non-regressing 1% and 0.1% lows). Switch ships at default 1 (ON).

Setup: Windows 11, NVIDIA GeForce RTX 4060; market (Market, child (crowded)), 804x581, Custom preset, 50% internal res (768x432), 1280x720 output, uncapped (HOS_FPS_MAX=1000), RX_VK_FRAME_TRACE=1, 5×90 s interleaved in-run A/B (HOS_AB=RX_VK_DRAW_OVERHEAD_LEAN=0,3,0) on 57df33bb4 (SIDE_0 unset = ON vs SIDE_1 =0 = OFF). Rebased cleanly onto origin/main @ 455b08373 (a73c2ca56), keeping update_ubo_descriptors() on gpu_bind_stamp() for standalone test extraction compatibility.

Metric Switch OFF: PR build 57df33bb4 (RX_VK_DRAW_OVERHEAD_LEAN=0) Switch ON: PR build 57df33bb4 (RX_VK_DRAW_OVERHEAD_LEAN=1) Δ (ON vs OFF)
Average fps (pooled 5×90 s) 79.10 81.20 +2.61% (CI +2.11%..+3.28%)
P50 fps 80.97 82.92 +1.95 fps
1% Low fps 60.31 61.88 +1.57 fps
0.1% Low fps 46.51 47.06 +0.55 fps
Mean frame time (ms) 12.6424 ms 12.3157 ms -0.3267 ms (-2.58%)
draw_ms 7.3238 ms 6.8945 ms -0.4294 ms (-5.86%)
cmds_ms 2.4429 ms 2.2958 ms -0.1471 ms (-6.02%)
desc_ms 2.5379 ms 2.5109 ms -0.0269 ms (-1.06%)
Frames ≥ 50 ms / min 0.00 0.00 0.00

Risks

  • Low risk: all fast paths are gated by RX_VK_DRAW_OVERHEAD_LEAN (=0 reverts immediately to legacy draw() / bind_descriptors() / begin_pass() paths, selectable cleanly at recording boundaries), and =check validates every fast skip against the legacy predicate in live runs (189.4M+ checks, 0 mismatches). No persistent file formats, shader caches, or API structs change.

Checklist

Ready for review

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

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested.
  • Approved in review, every comment answered.
  • CI passes on the head.
## Summary Eliminates redundant per-draw, per-descriptor-push, and per-pass overhead on the hot Vulkan graphics replay path without adding persistent TLS cache bloat: - **Inline per-draw guards (`gpu/vk/draw_overhead_lean.h`, `gpu/vk/vk_draw.cpp`):** replaces heavy helper call overhead inside `draw()` with inline `stats_tick_needed()`, `mesh_indirect_convert_needed()`, `scene_draw_ubo_ready()`, `temporal_note_scene_needed()`, `fsr3_note_scene_needed()`, `skin_check_needed()`, `hidden_depth_draw_needed()`, and lock-free `upscale_route::wanted_fast()` (`gpu/vk/upscale_route.h`, `gpu/vk/upscale_route.cpp`). The sampled `PROF_HOT` phases (`PROF_DRAW/DESC/PIPE/PROGRAM/CMDS`) stay on whatever the switch: the periodic "a frame's replay time" log line, the slow-frame log, the frame trace and the performance summary read them. - **Lean push-descriptor path (`bind_descriptors_lean()` in `gpu/vk/vk_draw.cpp`):** tracks `unbindable_image` on `DescWriter` (an image `bind_descriptors()` refuses: no sampler, or no view on a device without null descriptors, as #3032 added), uses `words_same_store_lean()` for fast equality/store, keeps up to 64 changed writes on `changed_stack[64]` to avoid heap allocations, pre-reserves `DescWriter` scratch vectors, and reads `g_bind_stamp_fast` in `lean_bind_stamp()`. - **Inline render-pass skip & deferred query state:** checks `pass_targets_eq()` before calling `begin_pass()`, and defers `StatsQuery` `DrawArgs` copy until `begin()`. - **Switch control (`gpu/vk/switches.def`):** adds `RX_VK_DRAW_OVERHEAD_LEAN` (`1` ON default, `0` OFF legacy, `check` shadow parity mode), sampled per recording via `draw_begin_recording()`. First files to read: `gpu/vk/draw_overhead_lean.h`, `gpu/vk/vk_draw.cpp` (`lean_bind_stamp`, `bind_descriptors_lean`, `draw`), `gpu/vk/upscale_route.h`, `gpu/vk/upscale_route.cpp`, `tests/test_vk_draw_overhead_lean.py`. ## Testing **Tested:** - **Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4):** 30 s live `RX_VK_DRAW_OVERHEAD_LEAN=check` parity run in `market` (`Market_Child`, pre-rebase commit `57df33bb4`): `2319` frames at `77.3` fps, `189,400,000+` checks (`82,895,653` fast skips), `0` mismatches, `RUN_ERROR=None`. - **Rebased build & strict checks (`a73c2ca56` on `origin/main @ 455b08373`):** `longshot-builder.exe dev compile --only renderer` (`270` units, `0` failed, `longshot_vk.dll` `17 MB`) and `python -I -X utf8 tests/run_all.py --strict tests/test_vk_draw_overhead_lean.py tests/test_draw_side_effects.py tests/test_hos_ab.py tests/test_tls_objects.py tests/test_vk_braces.py tests/test_vk_ubo_ssbo_fast.py tests/test_vk_desc_span_fast.py tests/test_vk_cmd_fast.py`: `8 passed, 0 failed, 0 skipped`. - **Review fixes and rebase (`64437cd7` on `origin/main @ 0aeb6858`, Windows, llvm-mingw clang++):** `vk_draw.cpp` passes a `clang++ -fsyntax-only` compile with the renderer's flags; `tests/run_all.py --exact tests/test_vk_draw_overhead_lean.py tests/test_draw_side_effects.py tests/test_switch_table.py tests/test_hos_ab.py` and the 7 checks that cut `draw()`, `draw_begin_recording()` or `build_descriptors()` (`test_draw_binds`, `test_dlss_pre_bloom`, `test_fallback_pipeline_state`, `test_draw_stream_visibility`, `test_recording_admission`, `test_fsr_uniform_ownership`, `test_dummy_views`) pass. `--changed origin/main` (208 checks) was run on the first rebase; the failures it showed are fixed or were 60 s compile timeouts under the shared PC's load (see the review reply). **Still to test:** - CI: Windows and Linux automated test suites and full build matrix (`@Beanstalk`). - This head against its base (`main @ 0aeb6858`) in the same scene and settings, several interleaved runs with frame times and lows, under normal profiling settings (the table below compares the switch on and off within one PR build). - A `=check` run and gameplay on this head (the RTX 4060 runs above were on `57df33bb4`, before the `unbindable_image` change), and the Tier 1 systems it can change: Linux/RADV, Steam Deck, AMD and Intel, with the temporal upscaler, frame generation and mesh fallback paths. ## Measurements **Verdict:** Faster with `RX_VK_DRAW_OVERHEAD_LEAN` ON than OFF within the same pre-rebase PR build; not yet measured as this head against its base (Still to test): `+2.61%` fps (`-0.330 ms` mean frame time, 95% CI `+2.11%` to `+3.28%` across 5/5 runs; `draw_ms -5.86%`, `cmds_ms -6.02%`, non-regressing `1%` and `0.1%` lows). Switch ships at default `1` (ON). Setup: Windows 11, NVIDIA GeForce RTX 4060; `market` (`Market, child (crowded)`), 804x581, Custom preset, 50% internal res (768x432), 1280x720 output, uncapped (`HOS_FPS_MAX=1000`), `RX_VK_FRAME_TRACE=1`, 5×90 s interleaved in-run A/B (`HOS_AB=RX_VK_DRAW_OVERHEAD_LEAN=0,3,0`) on `57df33bb4` (`SIDE_0` unset = ON vs `SIDE_1` `=0` = OFF). Rebased cleanly onto `origin/main @ 455b08373` (`a73c2ca56`), keeping `update_ubo_descriptors()` on `gpu_bind_stamp()` for standalone test extraction compatibility. | Metric | Switch OFF: PR build 57df33bb4 (`RX_VK_DRAW_OVERHEAD_LEAN=0`) | Switch ON: PR build 57df33bb4 (`RX_VK_DRAW_OVERHEAD_LEAN=1`) | Δ (ON vs OFF) | |---|---|---|---| | Average fps (pooled 5×90 s) | `79.10` | `81.20` | `+2.61%` (CI `+2.11%`..`+3.28%`) | | P50 fps | `80.97` | `82.92` | `+1.95` fps | | 1% Low fps | `60.31` | `61.88` | `+1.57` fps | | 0.1% Low fps | `46.51` | `47.06` | `+0.55` fps | | Mean frame time (`ms`) | `12.6424 ms` | `12.3157 ms` | `-0.3267 ms` (`-2.58%`) | | `draw_ms` | `7.3238 ms` | `6.8945 ms` | `-0.4294 ms` (`-5.86%`) | | `cmds_ms` | `2.4429 ms` | `2.2958 ms` | `-0.1471 ms` (`-6.02%`) | | `desc_ms` | `2.5379 ms` | `2.5109 ms` | `-0.0269 ms` (`-1.06%`) | | Frames ≥ 50 ms / min | `0.00` | `0.00` | `0.00` | ## Risks - Low risk: all fast paths are gated by `RX_VK_DRAW_OVERHEAD_LEAN` (`=0` reverts immediately to legacy `draw()` / `bind_descriptors()` / `begin_pass()` paths, selectable cleanly at recording boundaries), and `=check` validates every fast skip against the legacy predicate in live runs (`189.4M+` checks, `0` mismatches). No persistent file formats, shader caches, or API structs change. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (the checks that read the changed files: see Testing). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head.
perf(vk): add RX_VK_DRAW_OVERHEAD_LEAN per-draw, descriptor, and pass fast paths
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
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
a73c2ca56f
Introduce gpu/vk/draw_overhead_lean.h and wire RX_VK_DRAW_OVERHEAD_LEAN (1=on, 0=legacy, 2=check) via draw_begin_recording():
- Guard ProfScopeHot (PROF_HOT_LEAN), stats_tick/gp_table_check_log, mesh_indirect_convert, temporal/fsr3/skin/hidden-depth/reactive/dlss_trace hooks, and upscale_route::wanted_fast() with inline zero-bloat checks
- Add bind_descriptors_lean() with tracked has_null_sampler, words_same_store_lean(), stack changed_stack[64], pre-reserved DescWriter scratch, and inline g_bind_stamp_fast
- Inline pass_targets_eq() guard before begin_pass() and defer StatsQuery DrawArgs copy until begin()
- Verify parity across modes with =check (100k summary logging) and add tests/test_vk_draw_overhead_lean.py

Assisted-by: Antigravity (Google DeepMind)
Author
Contributor

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4), market (Market_Child): 30 s RX_VK_DRAW_OVERHEAD_LEAN=check (2319 frames, 77.3 fps, 189.4M+ checks, 82.9M fast skips, 0 mismatches); 5x90 s in-run A/B (81.20 ON vs 79.10 OFF fps, +2.61%, 95% CI +2.11%..+3.28%, draw_ms -5.86%, cmds_ms -6.02%); rebased head a73c2ca56 compiled (0 failed) and passed 8/8 strict tests.

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4), market (Market_Child): 30 s RX_VK_DRAW_OVERHEAD_LEAN=check (2319 frames, 77.3 fps, 189.4M+ checks, 82.9M fast skips, 0 mismatches); 5x90 s in-run A/B (81.20 ON vs 79.10 OFF fps, +2.61%, 95% CI +2.11%..+3.28%, draw_ms -5.86%, cmds_ms -6.02%); rebased head a73c2ca56 compiled (0 failed) and passed 8/8 strict tests.
Member

Possibly related, for context:

  • PR #3046 perf(vk): add O(1) generation-guarded dynamic state and vertex-stream bind skips (RX_VK_DRAW_DYN_LEAN) — Adjacent per-draw Vulkan fast paths in vk_draw.cpp; potential overlap/conflicts.
  • PR #2948 perf(vk): use VK_EXT_descriptor_buffer for game shader descriptors — Open descriptor-buffer optimization also changes descriptor handling in vk_draw.cpp.
  • PR #2981 perf(vk): add RX_VK_REPLAY_FAST fast replay dispatch, scan, and epoch resets — Open replay/recording performance work touches draw recording and pass state.
  • PR #2949 perf(vk): add RX_VK_CMD_FAST descriptor templates, push-constant dedup, and draw/pass coalescing — Merged command fast paths include descriptor binding and draw/pass coalescing.
Possibly related, for context: - PR #3046 perf(vk): add O(1) generation-guarded dynamic state and vertex-stream bind skips (RX_VK_DRAW_DYN_LEAN) — Adjacent per-draw Vulkan fast paths in vk_draw.cpp; potential overlap/conflicts. - PR #2948 perf(vk): use VK_EXT_descriptor_buffer for game shader descriptors — Open descriptor-buffer optimization also changes descriptor handling in vk_draw.cpp. - PR #2981 perf(vk): add RX_VK_REPLAY_FAST fast replay dispatch, scan, and epoch resets — Open replay/recording performance work touches draw recording and pass state. - PR #2949 perf(vk): add RX_VK_CMD_FAST descriptor templates, push-constant dedup, and draw/pass coalescing — Merged command fast paths include descriptor binding and draw/pass coalescing.
Member
@review
BeanBot left a comment

Recommendation: Request changes. The default path disables draw profiling that the renderer's regular replay-time log still reports, making those diagnostic values wrong. The reported performance gain also needs a comparison against the actual base and validation on other affected systems.

The change skips work on Vulkan draws, descriptor pushes, and render-pass reuse. It adds a default-on developer switch and substantial fast-path and parity-check code; its benefit outside the reported NVIDIA test remains unmeasured.

Blocking (1): must change before merging.

  1. L1 gpu/vk/vk_draw.cpp:10826: The default fast path stops collecting the sampled draw phases even though the regular replay-time log continues to report them. (more on the line) Do: Preserve sampled profiling whenever the periodic replay-time report uses those counters, or change the reporting and its consumers so they do not present disabled counters as measured times.

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

  • L2 tests/test_vk_draw_overhead_lean.py:333: The changed-write test exercises a separate copy of the stack-selection loop rather than the implementation that sends descriptor writes. (more on the line) Do: Exercise the production changed-write selection with fake descriptor pushes, and include a mutation or regression case that fails when a changed write is omitted.

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

  • L3: The claimed gain has not been measured against the actual base commit. When: The reported A/B runs use the same pre-rebase PR build with its switch on and off; both sides retain changes outside the switch, and neither is the stated base build. Do: Measure the base and this head in the same scene and settings with several interleaved runs, including frame times and lows, under normal profiling settings.
  • L4: The default-on renderer change needs game coverage beyond the single NVIDIA Windows run. When: The changed descriptor, pass, mesh and temporal paths also run on Linux, AMD and Intel drivers, including the Steam Deck, where the supplied run does not exercise them. Do: Run representative gameplay and compare frame times and visible output on the project's affected Tier 1 systems, including Linux/Steam Deck and AMD and Intel hardware, with relevant upscaler and mesh paths.

@fix can do L1 and L2.

Checks: Still running: 11 checks.

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

Does it help: Unproven against the base. Five interleaved runs on the pre-rebase PR build reported 81.20 versus 79.10 fps (+2.61%), with improved lows, but compared the PR switch on and off rather than this head against its base. The runs used frame tracing, which also keeps draw profiling enabled.

Other systems: The draw and descriptor paths run on Windows and Linux across Vulkan drivers, including AMD, Intel, and Steam Deck; temporal upscalers, frame generation, mesh fallback, and diagnostic profiling also use the affected path. The supplied game run covers Windows on an RTX 4060 in one scene; it does not establish behavior or performance on the other systems.

Switches: RX_VK_DRAW_OVERHEAD_LEAN is added, default 1; 0 selects the legacy paths and check/2 enables parity checks. Its row is in switches.def. The default still needs validation against the base and on other affected hardware.

Reviewed: a73c2ca56f against 455b083738: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the commit and changed-file diffs, draw_overhead_lean.h, upscale_route.cpp and upscale_route.h, and selected surrounding renderer paths. Inspected the new test and the changes to the two existing tests. Skimmed the renderer architecture and standards documents and the large vk_draw.cpp file; did not read that file in full. docs/review-checklist.md is absent. No generated files or recorded runs were included in the diff.; nothing run (a code review).

Checked and fine:

  • The commit records an Assisted-by trailer.
  • The switch has a switches.def row and is sampled at recording boundaries.
  • The changed-file list contains no game-derived output, generated shader files, API changes, or third-party files.
  • The supplied check-mode run reported zero mismatches on the tested pre-rebase NVIDIA build.

Testing: Read-only review; no build, tests, scripts, or game runs were executed. The author reports an eight-test strict subset and a renderer build on the head; CI is still running.

Overlaps and merge order: Not checked; network access is unavailable.


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

**Recommendation: Request changes.** The default path disables draw profiling that the renderer's regular replay-time log still reports, making those diagnostic values wrong. The reported performance gain also needs a comparison against the actual base and validation on other affected systems. The change skips work on Vulkan draws, descriptor pushes, and render-pass reuse. It adds a default-on developer switch and substantial fast-path and parity-check code; its benefit outside the reported NVIDIA test remains unmeasured. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/vk_draw.cpp:10826`: The default fast path stops collecting the sampled draw phases even though the regular replay-time log continues to report them. (more on the line) **Do:** Preserve sampled profiling whenever the periodic replay-time report uses those counters, or change the reporting and its consumers so they do not present disabled counters as measured times. **Should fix (1)**: not blocking, but worth doing before merging. - **L2** `tests/test_vk_draw_overhead_lean.py:333`: The changed-write test exercises a separate copy of the stack-selection loop rather than the implementation that sends descriptor writes. (more on the line) **Do:** Exercise the production changed-write selection with fake descriptor pushes, and include a mutation or regression case that fails when a changed write is omitted. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The claimed gain has not been measured against the actual base commit. *When:* The reported A/B runs use the same pre-rebase PR build with its switch on and off; both sides retain changes outside the switch, and neither is the stated base build. **Do:** Measure the base and this head in the same scene and settings with several interleaved runs, including frame times and lows, under normal profiling settings. - **L4**: The default-on renderer change needs game coverage beyond the single NVIDIA Windows run. *When:* The changed descriptor, pass, mesh and temporal paths also run on Linux, AMD and Intel drivers, including the Steam Deck, where the supplied run does not exercise them. **Do:** Run representative gameplay and compare frame times and visible output on the project's affected Tier 1 systems, including Linux/Steam Deck and AMD and Intel hardware, with relevant upscaler and mesh paths. `@fix` can do L1 and L2. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against the base. Five interleaved runs on the pre-rebase PR build reported 81.20 versus 79.10 fps (+2.61%), with improved lows, but compared the PR switch on and off rather than this head against its base. The runs used frame tracing, which also keeps draw profiling enabled. **Other systems:** The draw and descriptor paths run on Windows and Linux across Vulkan drivers, including AMD, Intel, and Steam Deck; temporal upscalers, frame generation, mesh fallback, and diagnostic profiling also use the affected path. The supplied game run covers Windows on an RTX 4060 in one scene; it does not establish behavior or performance on the other systems. **Switches:** RX_VK_DRAW_OVERHEAD_LEAN is added, default 1; 0 selects the legacy paths and check/2 enables parity checks. Its row is in switches.def. The default still needs validation against the base and on other affected hardware. **Reviewed:** a73c2ca56fd7 against 455b083738f4: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the commit and changed-file diffs, draw_overhead_lean.h, upscale_route.cpp and upscale_route.h, and selected surrounding renderer paths. Inspected the new test and the changes to the two existing tests. Skimmed the renderer architecture and standards documents and the large vk_draw.cpp file; did not read that file in full. docs/review-checklist.md is absent. No generated files or recorded runs were included in the diff.; nothing run (a code review). **Checked and fine:** - The commit records an Assisted-by trailer. - The switch has a switches.def row and is sampled at recording boundaries. - The changed-file list contains no game-derived output, generated shader files, API changes, or third-party files. - The supplied check-mode run reported zero mismatches on the tested pre-rebase NVIDIA build. **Testing:** Read-only review; no build, tests, scripts, or game runs were executed. The author reports an eight-test strict subset and a renderer build on the head; CI is still running. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -10616,0 +10823,4 @@
perf_measure.load(std::memory_order_relaxed);
draw_lean_note_check("prof_hot_needed", prof_needed == leg_prof, !prof_needed, prof_needed, leg_prof);
}
const bool prof_on = lean_mode != 1 || prof_needed;
Member

L1 (blocking): The default fast path stops collecting the sampled draw phases even though the regular replay-time log continues to report them.

When: With the default switch and no frame trace, fine profiling, benchmark, or performance summary, prof_on is false. The periodic "a frame's replay time" line still reads PROF_DRAW, PROF_DESC, PROF_PIPE, PROF_PROGRAM and PROF_CMDS, so those values omit the draw work and mislead diagnosis.

Do: Preserve sampled profiling whenever the periodic replay-time report uses those counters, or change the reporting and its consumers so they do not present disabled counters as measured times.

**L1** (blocking): The default fast path stops collecting the sampled draw phases even though the regular replay-time log continues to report them. *When:* With the default switch and no frame trace, fine profiling, benchmark, or performance summary, prof_on is false. The periodic "a frame's replay time" line still reads PROF_DRAW, PROF_DESC, PROF_PIPE, PROF_PROGRAM and PROF_CMDS, so those values omit the draw work and mislead diagnosis. **Do:** Preserve sampled profiling whenever the periodic replay-time report uses those counters, or change the reporting and its consumers so they do not present disabled counters as measured times.
@ -0,0 +330,4 @@
}
static void test_changed_stack_and_pass_eq() {
using namespace mkwvk;
Member

L2 (should fix): The changed-write test exercises a separate copy of the stack-selection loop rather than the implementation that sends descriptor writes.

When: If bind_descriptors_lean stops adding a changed write to its stack while retaining the checked source tokens, this harness still builds its own correct list and passes, even though the game can use a stale descriptor.

Do: Exercise the production changed-write selection with fake descriptor pushes, and include a mutation or regression case that fails when a changed write is omitted.

**L2** (should fix): The changed-write test exercises a separate copy of the stack-selection loop rather than the implementation that sends descriptor writes. *When:* If bind_descriptors_lean stops adding a changed write to its stack while retaining the checked source tokens, this harness still builds its own correct list and passes, even though the game can use a stale descriptor. **Do:** Exercise the production changed-write selection with fake descriptor pushes, and include a mutation or regression case that fails when a changed write is omitted.
siantm force-pushed perf/vk-draw-overhead-lean from a73c2ca56f
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
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 64437cd701
Some checks reported errors
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
PR description / Title and description (pull_request_target) Failing after 7s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/windows+nvidia 0/1 pass, 2 error
beanstalk/amd 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 1 error
2026-12-03 20:18:10 +00:00
Compare
Author
Contributor

Rebased onto current main (0aeb6858) and answered the review in 64437cd7 (the PR's own commit is now e555926c).

L1 (blocking): fixed, sampled profiling kept. draw() times PROF_DRAW, PROF_PROGRAM, PROF_PIPE, PROF_DESC and PROF_CMDS with the plain sampled PROF_HOT again, whatever the switch; PROF_HOT_LEAN, LeanScopeGuard and prof_hot_needed() are gone. I chose this over changing the report because:

  • the periodic "a frame's replay time" line (gpu/vk/vk_replay.cpp, log_frame_stats), the RX_VK_SLOW_LOG line, the frame trace columns and the performance summary (perf_report.cpp) all read these counters. Hiding them from the report would take that data away from every default run;
  • it costs none of the measured gain. The A/B in the description ran with RX_VK_FRAME_TRACE=1, so prof_on was true on both sides and the profiling skip was never part of the +2.61%;
  • PROF_HOT is sampled already (one draw in eight takes the clock reads; the rest only bump a thread-local counter).
    tests/test_vk_draw_overhead_lean.py now fails if draw() loses PROF_HOT(...) for any of the five phases, or if PROF_HOT_LEAN comes back.

L2 (should fix): fixed. The test no longer runs a copy of the loop. It cuts bind_descriptors_lean(), bind_descriptors_ubo_delta(), lean_words_same_store() and struct Pushed out of vk_draw.cpp (srccut) and runs them against a fake vkCmdPushDescriptorSetKHR that records every push's writes. It covers mode 1 and =check, with 1, 12, 64 and 72 writes (72 goes past changed_stack[64] to the heap list). Each push must carry exactly the changed writes in order, with the first and last slots changed. A repeat push sends nothing, a layout change sends the whole set, an unbindable image pushes nothing, and the ubo_delta path pushes only the dirty writes that changed. New MUST_FAIL variants of the cut source each leave a changed write out: the last stack write, the first heap write, or the last dirty ubo_delta write. Another publishes an unbindable set. All of them fail. The variants must now also compile, so a check catches each one, not the compiler. Seven of the old variants left a parameter unused and only failed under -Werror; they now (void) it.

Rebase (mergeable=False): done, with one semantic conflict resolved. #3032 (b6e38a13c) made bind_descriptors() refuse a combined image sampler with no view on devices without nullDescriptor. The lean path only checked has_null_sampler, so on such devices the default path would have pushed what main declines. Now DescWriter::unbindable_image uses bind_descriptors()'s exact predicate (draw_overhead_lean::image_unbindable) and is set at all three places build_descriptors() adds an image, the tex_desc_memo hit included. =check compares it against legacy_unbindable_image(). A source check pins the predicate to bind_descriptors()'s line. The textual conflicts were the new switches.def row and the thread-locals next to rec_grass_reach, which main removed.

Checks the PR had broken (from its first commit, not the rebase). test_draw_binds, test_dlss_pre_bloom, test_fallback_pipeline_state, test_draw_stream_visibility, test_recording_admission and test_fsr_uniform_ownership failed on the PR and pass on main. The description had listed test_fallback_pipeline_state as failing on main too, which was wrong. Their fixtures now know lean_bind_stamp() and draw_overhead_lean_begin_recording(), and draw() calls temporal_pre_bloom from one place, which test_dlss_pre_bloom pins. test_dummy_views (#3032's) now includes the lean header for the new flag.

Tested (Windows, llvm-mingw clang++, through the PC's job queue):

  • tests/run_all.py --changed origin/main (208 checks that read the changed files), before the fixture fixes: 196 passed, 11 failed, 11 skipped. The 11 failures were the 7 above, plus 4 compile-and-run checks that hit their 60 s timeout under load (test_jobs_wait_runs_queued, test_pipeline_cache_save, test_fallback_buffer_cleanup, test_mesh_args_cleanup).
  • After the fixes (on the first rebase, main @ b4d56f526): tests/run_all.py --exact of those 11 plus test_vk_draw_overhead_lean, test_draw_side_effects, test_switch_table and test_hos_ab: 15 passed, 0 failed. The same 11 on that origin/main: 11 passed.
  • After rebasing again onto 0aeb6858 (no textual conflicts; vk_draw.cpp is the same on both mains): the same 15 gave 11 passed and 4 failed. The 4 were test_jobs_wait_runs_queued, test_pipeline_cache_save, test_fallback_buffer_cleanup and test_mesh_args_cleanup, each a TimeoutExpired on its own 60 s compile, which runs at below-normal priority while the PC's build slots were full. A rerun passed test_jobs_wait_runs_queued; the other three timed out the same way. They read only vk_draw.cpp text this push did not change since the run where they passed, so I count them as this PC's load, not a result. CI should confirm.
  • vk_draw.cpp passes clang++ -fsyntax-only with the renderer's compile flags (llvm-mingw, from the builder's compile_commands), on this head.
  • Not run: a full renderer build or any game run (the GPU and disk are shared on this PC). A =check run on this head is still to do (L4).

L3 (testing): still open. I have not measured this head against its base. The numbers in the description compare the switch on and off inside the pre-rebase PR build 57df33bb4, with the frame trace on, so they are not a base-vs-head result. I've relabelled the table to say that. Still needed: interleaved runs of main 0aeb6858 vs this head in the same scene and settings, with frame times and lows, under normal profiling settings. L1 keeps PROF_HOT on in both builds, so the frame trace no longer changes what the switch does.

L4 (testing): still open. The only game coverage is the Windows RTX 4060 run: a 30 s =check run with 0 mismatches and the 5×90 s A/B, both on 57df33bb4, before this rebase and before the unbindable_image change. Linux/RADV, Steam Deck, AMD and Intel, and the upscaler/frame-generation and mesh-fallback paths still need the test farm (Beanstalk) or people with that hardware. I can't run them here.

Rebased onto current `main` (`0aeb6858`) and answered the review in `64437cd7` (the PR's own commit is now `e555926c`). **L1 (blocking): fixed, sampled profiling kept.** `draw()` times `PROF_DRAW`, `PROF_PROGRAM`, `PROF_PIPE`, `PROF_DESC` and `PROF_CMDS` with the plain sampled `PROF_HOT` again, whatever the switch; `PROF_HOT_LEAN`, `LeanScopeGuard` and `prof_hot_needed()` are gone. I chose this over changing the report because: - the periodic "a frame's replay time" line (`gpu/vk/vk_replay.cpp`, `log_frame_stats`), the `RX_VK_SLOW_LOG` line, the frame trace columns and the performance summary (`perf_report.cpp`) all read these counters. Hiding them from the report would take that data away from every default run; - it costs none of the measured gain. The A/B in the description ran with `RX_VK_FRAME_TRACE=1`, so `prof_on` was true on both sides and the profiling skip was never part of the +2.61%; - `PROF_HOT` is sampled already (one draw in eight takes the clock reads; the rest only bump a thread-local counter). `tests/test_vk_draw_overhead_lean.py` now fails if `draw()` loses `PROF_HOT(...)` for any of the five phases, or if `PROF_HOT_LEAN` comes back. **L2 (should fix): fixed.** The test no longer runs a copy of the loop. It cuts `bind_descriptors_lean()`, `bind_descriptors_ubo_delta()`, `lean_words_same_store()` and `struct Pushed` out of `vk_draw.cpp` (srccut) and runs them against a fake `vkCmdPushDescriptorSetKHR` that records every push's writes. It covers mode 1 and `=check`, with 1, 12, 64 and 72 writes (72 goes past `changed_stack[64]` to the heap list). Each push must carry exactly the changed writes in order, with the first and last slots changed. A repeat push sends nothing, a layout change sends the whole set, an unbindable image pushes nothing, and the `ubo_delta` path pushes only the dirty writes that changed. New MUST_FAIL variants of the cut source each leave a changed write out: the last stack write, the first heap write, or the last dirty `ubo_delta` write. Another publishes an unbindable set. All of them fail. The variants must now also compile, so a check catches each one, not the compiler. Seven of the old variants left a parameter unused and only failed under `-Werror`; they now `(void)` it. **Rebase (mergeable=False): done, with one semantic conflict resolved.** #3032 (b6e38a13c) made `bind_descriptors()` refuse a combined image sampler with no view on devices without `nullDescriptor`. The lean path only checked `has_null_sampler`, so on such devices the default path would have pushed what `main` declines. Now `DescWriter::unbindable_image` uses `bind_descriptors()`'s exact predicate (`draw_overhead_lean::image_unbindable`) and is set at all three places `build_descriptors()` adds an image, the `tex_desc_memo` hit included. `=check` compares it against `legacy_unbindable_image()`. A source check pins the predicate to `bind_descriptors()`'s line. The textual conflicts were the new `switches.def` row and the thread-locals next to `rec_grass_reach`, which `main` removed. **Checks the PR had broken (from its first commit, not the rebase).** `test_draw_binds`, `test_dlss_pre_bloom`, `test_fallback_pipeline_state`, `test_draw_stream_visibility`, `test_recording_admission` and `test_fsr_uniform_ownership` failed on the PR and pass on `main`. The description had listed `test_fallback_pipeline_state` as failing on `main` too, which was wrong. Their fixtures now know `lean_bind_stamp()` and `draw_overhead_lean_begin_recording()`, and `draw()` calls `temporal_pre_bloom` from one place, which `test_dlss_pre_bloom` pins. `test_dummy_views` (#3032's) now includes the lean header for the new flag. **Tested (Windows, llvm-mingw clang++, through the PC's job queue):** - `tests/run_all.py --changed origin/main` (208 checks that read the changed files), before the fixture fixes: 196 passed, 11 failed, 11 skipped. The 11 failures were the 7 above, plus 4 compile-and-run checks that hit their 60 s timeout under load (`test_jobs_wait_runs_queued`, `test_pipeline_cache_save`, `test_fallback_buffer_cleanup`, `test_mesh_args_cleanup`). - After the fixes (on the first rebase, `main @ b4d56f526`): `tests/run_all.py --exact` of those 11 plus `test_vk_draw_overhead_lean`, `test_draw_side_effects`, `test_switch_table` and `test_hos_ab`: 15 passed, 0 failed. The same 11 on that `origin/main`: 11 passed. - After rebasing again onto `0aeb6858` (no textual conflicts; `vk_draw.cpp` is the same on both `main`s): the same 15 gave 11 passed and 4 failed. The 4 were `test_jobs_wait_runs_queued`, `test_pipeline_cache_save`, `test_fallback_buffer_cleanup` and `test_mesh_args_cleanup`, each a `TimeoutExpired` on its own 60 s compile, which runs at below-normal priority while the PC's build slots were full. A rerun passed `test_jobs_wait_runs_queued`; the other three timed out the same way. They read only `vk_draw.cpp` text this push did not change since the run where they passed, so I count them as this PC's load, not a result. CI should confirm. - `vk_draw.cpp` passes `clang++ -fsyntax-only` with the renderer's compile flags (llvm-mingw, from the builder's compile_commands), on this head. - Not run: a full renderer build or any game run (the GPU and disk are shared on this PC). A `=check` run on this head is still to do (L4). **L3 (testing): still open.** I have not measured this head against its base. The numbers in the description compare the switch on and off inside the pre-rebase PR build `57df33bb4`, with the frame trace on, so they are not a base-vs-head result. I've relabelled the table to say that. Still needed: interleaved runs of `main` `0aeb6858` vs this head in the same scene and settings, with frame times and lows, under normal profiling settings. L1 keeps `PROF_HOT` on in both builds, so the frame trace no longer changes what the switch does. **L4 (testing): still open.** The only game coverage is the Windows RTX 4060 run: a 30 s `=check` run with 0 mismatches and the 5×90 s A/B, both on `57df33bb4`, before this rebase and before the `unbindable_image` change. Linux/RADV, Steam Deck, AMD and Intel, and the upscaler/frame-generation and mesh-fallback paths still need the test farm (Beanstalk) or people with that hardware. I can't run them here.
Owner

@review
@beanstalk

@review @beanstalk
Member

Beanstalk test farm · ⚠️ couldn't be judged on nvidia, windows+nvidia, amd and 3 more

Commit 64437cd · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm's noise-tolerant thresholds can detect substantial regressions but cannot establish the reported 2.6% gain or its confidence interval.
⚠️ Note: Check mode uses legacy operations for several checked paths; the default-mode pictures and timings test the shipping fast path separately.
⚠️ Note: Frame generation, vendor-SDK temporal upscalers and a forced mesh-fallback path are not exercised; the plan also does not run the standalone test suite.

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

The change could not be judged on any target: nvidia, windows+nvidia, amd, intel, linux+radv and steamdeck all reported errors. Every report stopped before gameplay because main's tools.lock lists incorrect SDL store URLs, so there are no performance or visual comparison results; this was a baseline setup problem across multiple PCs, not a failure isolated to one tester.

Done (started 06:39 UTC, last report 13:17 UTC). Comment @Beanstalk to run it again.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
nvidia ⚠️ couldn't be judged 2 1 2 — — none
windows+nvidia ⚠️ couldn't be judged 2 1 2 — — none
amd ⚠️ couldn't be judged 2 1 2 — — none
intel ⚠️ couldn't be judged 2 1 2 — — none
linux+radv ⚠️ couldn't be judged 2 1 2 — — none
steamdeck ⚠️ couldn't be judged 1 1 — — none

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.

  • nvidia, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • nvidia, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • windows+nvidia, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • windows+nvidia, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • amd, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • amd, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • intel, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • intel, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • and 3 more, in the reports
What was tested

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

The plan compares the default renderer with main in the Market and Kokiri Forest, using uncapped 720p gameplay to expose CPU draw-submission costs. Three alternating starts per side measure frame times and lows; separate check-mode starts exercise parity checks and FSR 3.1, with still-scene pictures compared against main. Crashes, parity mismatch logs, substantial frame-time regressions, or excessive picture differences fail the pull request. The Steam Deck target will wait for a matching tester to come online. No tester online now matches steamdeck: that target waits for one.

  • Where: nvidia (1-2 reports), windows+nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), linux+radv (1-2 reports), steamdeck (1-2 reports).
  • Matrix: 1 cell, each on main and the PR: RX_VK_DRAW_OVERHEAD_LEAN check (PR only).
  • default-performance: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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-perf for 20 s (after 5 s warm-up), teleport to Kokiri Forest, take the picture forest to compare with main, measure forest-perf for 20 s (after 5 s warm-up); 3 runs on each side.
  • parity-and-fsr: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market-check to compare with main, set dlss to 3, take the picture market-fsr to compare with main, teleport to Kokiri Forest, take the picture forest-fsr to compare with main; 2 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, the game's log.
  • The PR fails if: it crashes; or a picture differs from main by more than 25%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main.
  • Time: about 58 min of game runs per tester (10 game starts), plus the two builds.
Measurements on `nvidia`, for the PR description

Verdict: could not be judged on nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_DRAW_OVERHEAD_LEAN switch the PR adds (set on the PR side only) check not in main the PR's default parity-and-fsr, main without it → the PR with check: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested |
Measurements on `windows+nvidia`, for the PR description

Verdict: could not be judged on windows+nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss NVIDIA GeForce RTX 5090, 621.47.0 AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_DRAW_OVERHEAD_LEAN switch the PR adds (set on the PR side only) check not in main the PR's default parity-and-fsr, main without it → the PR with check: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on windows+nvidia (2 reports).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss `NVIDIA GeForce RTX 5090, 621.47.0` `AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested |
Measurements on `amd`, for the PR description

Verdict: could not be judged on amd (2 reports).

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.3.1 AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_DRAW_OVERHEAD_LEAN switch the PR adds (set on the PR side only) check not in main the PR's default parity-and-fsr, main without it → the PR with check: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on amd (2 reports).

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested |
Measurements on `intel`, for the PR description

Verdict: could not be judged on intel (2 reports).

Hardware: 1: 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; 2: 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
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_DRAW_OVERHEAD_LEAN switch the PR adds (set on the PR side only) check not in main the PR's default parity-and-fsr, main without it → the PR with check: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on intel (2 reports).

Hardware: 1: 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`; 2: 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`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested |
Measurements on `linux+radv`, for the PR description

Verdict: could not be judged on linux+radv (2 reports).

Hardware: 1: linux+amd+radv+igpu AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8 AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.3.1 AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_DRAW_OVERHEAD_LEAN switch the PR adds (set on the PR side only) check not in main the PR's default parity-and-fsr, main without it → the PR with check: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on linux+radv (2 reports).

Hardware: 1: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested |
Measurements on `steamdeck`, for the PR description

Verdict: could not be judged on steamdeck (1 report).

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (median frame time) Helps / doesn't help / untested
RX_VK_DRAW_OVERHEAD_LEAN switch the PR adds (set on the PR side only) check not in main the PR's default parity-and-fsr, main without it → the PR with check: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on steamdeck (1 report).

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested |
The testers' hardware
Target Report Ran on
nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM
nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window+dlss NVIDIA GeForce RTX 5090, 621.47.0 AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM
amd 1 linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.3.1 AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM
amd 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
intel 1 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
intel 2 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
linux+radv 1 linux+amd+radv+igpu AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8 AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM
linux+radv 2 linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.3.1 AMD Ryzen 5 7600X3D 6-Core Processor, 32 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
<!-- beanstalk:sticky --> ### Beanstalk test farm · ⚠️ couldn't be judged on nvidia, windows+nvidia, amd and 3 more Commit `64437cd` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/3048) ⚠️ **Note:** The farm's noise-tolerant thresholds can detect substantial regressions but cannot establish the reported 2.6% gain or its confidence interval. ⚠️ **Note:** Check mode uses legacy operations for several checked paths; the default-mode pictures and timings test the shipping fast path separately. ⚠️ **Note:** Frame generation, vendor-SDK temporal upscalers and a forced mesh-fallback path are not exercised; the plan also does not run the standalone test suite. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change could not be judged on any target: nvidia, windows+nvidia, amd, intel, linux+radv and steamdeck all reported errors. Every report stopped before gameplay because main's tools.lock lists incorrect SDL store URLs, so there are no performance or visual comparison results; this was a baseline setup problem across multiple PCs, not a failure isolated to one tester. Done (started 06:39 UTC, last report 13:17 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `nvidia` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_233917e47c4490b6) [2](https://beanstalk.magicbean.dev/reports/rp_3985ed323fc2574e) | — | — | none | | `windows+nvidia` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_857a2251c5670227) [2](https://beanstalk.magicbean.dev/reports/rp_dbf74fb32d8742e0) | — | — | none | | `amd` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_d6eea8de0d758c2c) [2](https://beanstalk.magicbean.dev/reports/rp_9b8ca1979bc760db) | — | — | none | | `intel` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_b865bc8625d5ffde) [2](https://beanstalk.magicbean.dev/reports/rp_e130847bbfd082ef) | — | — | none | | `linux+radv` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_b7a0930f35e2d97e) [2](https://beanstalk.magicbean.dev/reports/rp_13280043cf86f708) | — | — | none | | `steamdeck` | ⚠️ couldn't be judged | 1 [1](https://beanstalk.magicbean.dev/reports/rp_efda0ef1c4691670) | — | — | none | **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. - `nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_233917e47c4490b6): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_3985ed323fc2574e): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `windows+nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_857a2251c5670227): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `windows+nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_dbf74fb32d8742e0): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `amd`, [report 1](https://beanstalk.magicbean.dev/reports/rp_d6eea8de0d758c2c): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_9b8ca1979bc760db): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_b865bc8625d5ffde): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `intel`, [report 2](https://beanstalk.magicbean.dev/reports/rp_e130847bbfd082ef): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - and 3 more, in the reports <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The plan compares the default renderer with main in the Market and Kokiri Forest, using uncapped 720p gameplay to expose CPU draw-submission costs. Three alternating starts per side measure frame times and lows; separate check-mode starts exercise parity checks and FSR 3.1, with still-scene pictures compared against main. Crashes, parity mismatch logs, substantial frame-time regressions, or excessive picture differences fail the pull request. The Steam Deck target will wait for a matching tester to come online. No tester online now matches steamdeck: that target waits for one. - **Where:** nvidia (1-2 reports), windows+nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), linux+radv (1-2 reports), steamdeck (1-2 reports). - **Matrix:** 1 cell, each on main and the PR: RX_VK_DRAW_OVERHEAD_LEAN `check` (PR only). - **default-performance:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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-perf for 20 s (after 5 s warm-up), teleport to Kokiri Forest, take the picture forest to compare with main, measure forest-perf for 20 s (after 5 s warm-up); 3 runs on each side. - **parity-and-fsr:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market-check to compare with main, set dlss to 3, take the picture market-fsr to compare with main, teleport to Kokiri Forest, take the picture forest-fsr to compare with main; 2 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, the game's log. - **The PR fails if:** it crashes; or a picture differs from main by more than 25%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main. - **Time:** about 58 min of game runs per tester (10 game starts), plus the two builds. </details> <details><summary>Measurements on `nvidia`, for the PR description</summary> **Verdict:** could not be judged on nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** could not be judged on windows+nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss `NVIDIA GeForce RTX 5090, 621.47.0` `AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows+nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss `NVIDIA GeForce RTX 5090, 621.47.0` `AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `amd`, for the PR description</summary> **Verdict:** could not be judged on amd (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on amd (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** could not be judged on intel (2 reports). Hardware: 1: 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`; 2: 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` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on intel (2 reports). Hardware: 1: 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`; 2: 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` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** could not be judged on linux+radv (2 reports). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on linux+radv (2 reports). Hardware: 1: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** could not be judged on steamdeck (1 report). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on steamdeck (1 report). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); parity-and-fsr, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=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); default-performance: 3 game starts a side, market-perf 20 s after 5 s warm-up, forest-perf 20 s after 5 s warm-up; parity-and-fsr: 2 game starts a side; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DRAW_OVERHEAD_LEAN` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | parity-and-fsr, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_233917e47c4490b6) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM` | | `nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_3985ed323fc2574e) | windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_857a2251c5670227) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss `NVIDIA GeForce RTX 5090, 621.47.0` `AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_dbf74fb32d8742e0) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM` | | `amd` | [1](https://beanstalk.magicbean.dev/reports/rp_d6eea8de0d758c2c) | linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM` | | `amd` | [2](https://beanstalk.magicbean.dev/reports/rp_9b8ca1979bc760db) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_b865bc8625d5ffde) | 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` | | `intel` | [2](https://beanstalk.magicbean.dev/reports/rp_e130847bbfd082ef) | 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` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_b7a0930f35e2d97e) | linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_13280043cf86f708) | linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_efda0ef1c4691670) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | </details>
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The profiling and descriptor-test fixes address the earlier code findings. The claimed performance gain still needs a comparison against the actual base, and the default-on renderer path needs broader game coverage. Recommend approval; not approved on the forge.

The change reduces Vulkan draw, descriptor and render-pass overhead while retaining sampled profiling. It adds a fast path and a diagnostic switch, at the cost of more renderer code and unmeasured cross-system behavior.

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

  • L3: The claimed gain has not been measured against the actual base commit. When: The reported A/B runs use the same pre-rebase PR build with its switch on and off; both sides retain changes outside the switch, and neither is the stated base build. Do: Measure the base and this head in the same scene and settings with several interleaved runs, including frame times and lows, under normal profiling settings.
  • L4: The default-on renderer change needs game coverage beyond the single NVIDIA Windows run. When: The changed descriptor, pass, mesh and temporal paths also run on Linux, AMD and Intel drivers, including the Steam Deck, where the supplied run does not exercise them. Do: Run representative gameplay and compare frame times and visible output on the project's affected Tier 1 systems, including Linux/Steam Deck and AMD and Intel hardware, with relevant upscaler and mesh paths.

Since the last review (on a73c2ca56f)
Resolved: L1 (The default fast path stops collecting the sampled draw phases even though the regular rep…); L2 (The changed-write test exercises a separate copy of the stack-selection loop rather than t…)
Still open: L3 (The claimed gain has not been measured against the actual base commit.); L4 (The default-on renderer change needs game coverage beyond the single NVIDIA Windows run.)

Checks: Failing on this head, which is behind its base, where it passes: PR description / Title and description (pull_request_target). @rebase (or @fix) brings it up to date and runs it again; not held against it. Still running: 10 checks.

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

Does it help: Unproven against the base. Five interleaved runs on a pre-rebase PR build reported 81.20 versus 79.10 fps with the switch on versus off, a 2.61% gain; that is not a comparison of this head with main.

Other systems: The path affects graphics and compute descriptor binding, render passes, temporal upscaling and mesh fallback. Windows/NVIDIA has a pre-rebase parity run; Linux/RADV, Steam Deck, AMD, Intel and the affected upscaler and fallback paths still need coverage.

Switches: RX_VK_DRAW_OVERHEAD_LEAN is added, default 1; 0 selects legacy paths and check selects parity checks. The default's benefit and behavior remain unverified against the base and across affected systems.

Reviewed: 64437cd701 against 0aeb685893: Read the repository rules, contribution guide, PR template, standards, changed descriptor and profiling code, test harness, and fixture diffs; inspected the renderer diff and helper header. The large renderer file and test file were not read in full. Tooling's adjacent AGENTS.md was unavailable; the review checklist was absent.; nothing run (a code review).

Checked and fine:

  • The unbindable-image flag is set for memo hits and both image construction paths, and check mode compares it with the legacy scan.
  • The profiling fix keeps the other lean paths enabled.
  • The descriptor test checks actual selected writes and includes mutation cases for stack, heap and UBO-delta selection.

Testing: No code or tests were run. The author reports a Windows syntax check and targeted checks on this head; CI is still running. The maintainer's Test Farm request could not be submitted under the read-only, network-closed rules.

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


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

**Recommendation: Approve.** The code is ready: only testing is left. The profiling and descriptor-test fixes address the earlier code findings. The claimed performance gain still needs a comparison against the actual base, and the default-on renderer path needs broader game coverage. Recommend approval; not approved on the forge. The change reduces Vulkan draw, descriptor and render-pass overhead while retaining sampled profiling. It adds a fast path and a diagnostic switch, at the cost of more renderer code and unmeasured cross-system behavior. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The claimed gain has not been measured against the actual base commit. *When:* The reported A/B runs use the same pre-rebase PR build with its switch on and off; both sides retain changes outside the switch, and neither is the stated base build. **Do:** Measure the base and this head in the same scene and settings with several interleaved runs, including frame times and lows, under normal profiling settings. - **L4**: The default-on renderer change needs game coverage beyond the single NVIDIA Windows run. *When:* The changed descriptor, pass, mesh and temporal paths also run on Linux, AMD and Intel drivers, including the Steam Deck, where the supplied run does not exercise them. **Do:** Run representative gameplay and compare frame times and visible output on the project's affected Tier 1 systems, including Linux/Steam Deck and AMD and Intel hardware, with relevant upscaler and mesh paths. **Since the last review** (on a73c2ca56fd7) Resolved: L1 (The default fast path stops collecting the sampled draw phases even though the regular rep…); L2 (The changed-write test exercises a separate copy of the stack-selection loop rather than t…) Still open: L3 (The claimed gain has not been measured against the actual base commit.); L4 (The default-on renderer change needs game coverage beyond the single NVIDIA Windows run.) **Checks:** Failing on this head, which is behind its base, where it passes: `PR description / Title and description (pull_request_target)`. `@rebase` (or `@fix`) brings it up to date and runs it again; not held against it. Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against the base. Five interleaved runs on a pre-rebase PR build reported 81.20 versus 79.10 fps with the switch on versus off, a 2.61% gain; that is not a comparison of this head with main. **Other systems:** The path affects graphics and compute descriptor binding, render passes, temporal upscaling and mesh fallback. Windows/NVIDIA has a pre-rebase parity run; Linux/RADV, Steam Deck, AMD, Intel and the affected upscaler and fallback paths still need coverage. **Switches:** RX_VK_DRAW_OVERHEAD_LEAN is added, default 1; 0 selects legacy paths and check selects parity checks. The default's benefit and behavior remain unverified against the base and across affected systems. **Reviewed:** 64437cd70192 against 0aeb68589358: Read the repository rules, contribution guide, PR template, standards, changed descriptor and profiling code, test harness, and fixture diffs; inspected the renderer diff and helper header. The large renderer file and test file were not read in full. Tooling's adjacent AGENTS.md was unavailable; the review checklist was absent.; nothing run (a code review). **Checked and fine:** - The unbindable-image flag is set for memo hits and both image construction paths, and check mode compares it with the legacy scan. - The profiling fix keeps the other lean paths enabled. - The descriptor test checks actual selected writes and includes mutation cases for stack, heap and UBO-delta selection. **Testing:** No code or tests were run. The author reports a Windows syntax check and targeted checks on this head; CI is still running. The maintainer's Test Farm request could not be submitted under the read-only, network-closed rules. **Overlaps and merge order:** Not checked; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Owner

AMD Lab Market A/B: PR head 64437cd70192 merged onto main ee9e1ed76, using RX_VK_DRAW_OVERHEAD_LEAN=0 (A) and RX_VK_DRAW_OVERHEAD_LEAN=1 (B) on the same build.

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

Metric A (0) B (1)
Average FPS, each capture 61.18 / 61.41 / 60.65 62.37 / 61.62 / 60.66
Average FPS, median 61.18 61.62
1% low FPS (1000 ÷ p99), median 51.52 52.71
Median frame time 16.32 ms 16.10 ms
p99 frame time, median 19.41 ms 18.97 ms
Frames of 50 ms or more, each capture 0 / 0 / 0 0 / 0 / 0

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 at 33% render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 60 seconds per capture after warm-up, each a timing job of the queue.

Time a frame (each capture) A B
Renderer's CPU thread (replay, submit) 9.38 / 9.46 / 9.39 ms 9.11 / 9.01 / 9.16 ms
GPU time 12.10 / 12.15 / 12.20 ms 12.20 / 12.20 / 12.20 ms

The RX 580 lab can't be made cleanly CPU-bound, so fps there can hide a CPU saving: the CPU thread row is the one to read for this change. Compare its two columns.

AMD Lab Market A/B: PR head `64437cd70192` merged onto `main` `ee9e1ed76`, using `RX_VK_DRAW_OVERHEAD_LEAN=0` (A) and `RX_VK_DRAW_OVERHEAD_LEAN=1` (B) on the same build. **Within the run-to-run spread.** Median average FPS changed by **+0.72%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 61.18 / 61.41 / 60.65 | 62.37 / 61.62 / 60.66 | | Average FPS, median | 61.18 | 61.62 | | 1% low FPS (1000 ÷ p99), median | 51.52 | 52.71 | | Median frame time | 16.32 ms | 16.10 ms | | p99 frame time, median | 19.41 ms | 18.97 ms | | Frames of 50 ms or more, each capture | 0 / 0 / 0 | 0 / 0 / 0 | 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 at 33% render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 60 seconds per capture after warm-up, each a timing job of the queue. | Time a frame (each capture) | A | B | |---|---:|---:| | Renderer's CPU thread (replay, submit) | 9.38 / 9.46 / 9.39 ms | 9.11 / 9.01 / 9.16 ms | | GPU time | 12.10 / 12.15 / 12.20 ms | 12.20 / 12.20 / 12.20 ms | The RX 580 lab can't be made cleanly CPU-bound, so fps there can hide a CPU saving: the CPU thread row is the one to read for this change. Compare its two columns.
HumanBean deleted branch perf/vk-draw-overhead-lean 2026-12-04 15:56:36 +00:00
Author
Contributor

This was merged into main as 7cd35e4b (2026-12-04) before I got to the rebase, so there is nothing to rebase or push here and the PR description check no longer applies. Replying to what came in after my last comment:

AMD Lab A/B (HumanBean, comment 102456): thanks. Switch on vs off on the same build (64437cd70192 merged onto main @ ee9e1ed76), RX 580 / RADV, Market (child), 3 alternating pairs:

  • Average fps median 61.18 → 61.62 (+0.72%), within the run-to-run spread; p99 frame time 19.41 → 18.97 ms.
  • Renderer's CPU thread (replay, submit): 9.38 / 9.46 / 9.39 ms → 9.11 / 9.01 / 9.16 ms, about 3% less CPU time a frame. GPU time stays at about 12.2 ms, so that box is GPU-limited and the fps hides the saving.

BeanBot L3 (base vs head): still not measured. Both A/B runs so far (my RTX 4060 one and the AMD Lab one) compare the switch on and off inside one build. The open measurement is now main just before 7cd35e4b against 7cd35e4b, same scene and settings, several interleaved runs with frame times and lows.

BeanBot L4 (game coverage): also still open. Apart from the RX 580 run above, nothing has run on Linux/RADV gameplay with pictures compared, Steam Deck, Intel, or the temporal upscaler, frame generation and mesh fallback paths. That needs the farm or people with that hardware; I only have a Windows RTX 4060.

Beanstalk (comment 101963): no target could be judged. Every report stopped in baseline setup on main's tools.lock line 32 (SDL store URLs), so it says nothing about this change. A re-run needs a BigBeans member to start Beanstalk again once that is fixed.

If any of this shows a regression, RX_VK_DRAW_OVERHEAD_LEAN=0 brings back the old draw, descriptor and pass paths (gpu/vk/switches.def:360), and =check compares the fast path against the old one.

This was merged into `main` as `7cd35e4b` (2026-12-04) before I got to the rebase, so there is nothing to rebase or push here and the PR description check no longer applies. Replying to what came in after my last comment: **AMD Lab A/B (HumanBean, comment 102456):** thanks. Switch on vs off on the same build (`64437cd70192` merged onto `main @ ee9e1ed76`), RX 580 / RADV, Market (child), 3 alternating pairs: - Average fps median `61.18` → `61.62` (`+0.72%`), within the run-to-run spread; p99 frame time `19.41` → `18.97 ms`. - Renderer's CPU thread (replay, submit): `9.38 / 9.46 / 9.39 ms` → `9.11 / 9.01 / 9.16 ms`, about 3% less CPU time a frame. GPU time stays at about `12.2 ms`, so that box is GPU-limited and the fps hides the saving. **BeanBot L3 (base vs head):** still not measured. Both A/B runs so far (my RTX 4060 one and the AMD Lab one) compare the switch on and off inside one build. The open measurement is now `main` just before `7cd35e4b` against `7cd35e4b`, same scene and settings, several interleaved runs with frame times and lows. **BeanBot L4 (game coverage):** also still open. Apart from the RX 580 run above, nothing has run on Linux/RADV gameplay with pictures compared, Steam Deck, Intel, or the temporal upscaler, frame generation and mesh fallback paths. That needs the farm or people with that hardware; I only have a Windows RTX 4060. **Beanstalk (comment 101963):** no target could be judged. Every report stopped in baseline setup on `main`'s `tools.lock` line 32 (SDL store URLs), so it says nothing about this change. A re-run needs a BigBeans member to start Beanstalk again once that is fixed. If any of this shows a regression, `RX_VK_DRAW_OVERHEAD_LEAN=0` brings back the old draw, descriptor and pass paths (`gpu/vk/switches.def:360`), and `=check` compares the fast path against the old one.
Some checks reported errors
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
PR description / Title and description (pull_request_target) Failing after 7s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/windows+nvidia 0/1 pass, 2 error
beanstalk/amd 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 1 error
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!3048
No description provided.