perf(vk): eliminate per-draw QPC, scene mutexes, desc_slots_kept scans, Targets copies, and short-payload overhead (RX_VK_DRAW_SELF_FAST) #2958

Open
siantm wants to merge 4 commits from siantm/Longshot:perf/vk-draw-self-fast into main
Contributor

Summary

Eliminates per-draw CPU overhead outside the descriptor/command/pipeline scopes (RX_VK_DRAW_SELF_FAST, default 1, supporting in-run HOS_AB flipping per recording):

  1. Throttled gp_table_check_log QPC (gpu/vk/vk_draw.cpp): Skips steady_clock::now() on every draw unless final or every 4096th tick, removing ~3,500 unnecessary clock queries per frame. With RX_VK_DRAW_OVERHEAD_LEAN=1 (main's default since #3048), whose draw already calls it once in 4096 draws, this second sampling is skipped.
  2. Lock-free scene-draw & upscale-route fast-exits (gpu/vk/vk_temporal.cpp, gpu/vk/vk_fsr3_inputs.cpp, gpu/vk/upscale_route.h/.cpp): Checks atomic (fast_cam_frame, fast_cam_area) before taking s.mu when the frame's camera is already captured (invalidated cleanly alongside s.cam.valid), and keeps a yes from upscale_route::wanted() for the recording (an expired request is still cleared for main's wanted_fast()).
  3. desc_slots_kept() k.reg == reg_gen fast-exit & ubo_delta cleanup (gpu/vk/vk_draw.cpp): Short-circuits desc_slots_kept() when k.reg == reg_gen, evaluates desc_slots_kept() once instead of twice across same_desc/ubo_delta (reuse_base/slots_ok, which also carry main's texture-pack generation pgen), caches desc_slotgen_on() per recording and static writes_ssbo per const Program* (in a TLS sidecar cache leaving Program unchanged), and skips the redundant cb.desc.fp vector copy on ubo_delta hits. (The gfx_sampled() copy skipped on ubo_delta is main's since #2949, under RX_VK_CMD_FAST.)
  4. Cached Targets & color_types[8] (gpu/vk/vk_draw.cpp): Avoids repeated 336-byte Targets by-value copies and color_types_of() recomputations per draw when s.rt_serial and viewport are unchanged.
  5. Short-payload replay reads (gpu/vk/vk_replay.cpp): read_bind_bufs() and read_bind_handles() copy only the live header + b.n entries without zero-filling unused array tails or hitting cold fallback paths on normal short payloads.

Read first: gpu/vk/vk_draw.cpp (draw_self_fast_begin_recording, gp_table_check_log, desc_slots_kept, targets_ref, draw), gpu/vk/vk_temporal.cpp, gpu/vk/vk_fsr3_inputs.cpp, gpu/vk/upscale_route.cpp, and gpu/vk/vk_replay.cpp.

Assisted-by: Antigravity

Testing

Tested: Windows 11, NVIDIA GeForce RTX 4060 (build-windows/rt-Longshot, v3.2.0-189-g461c67789 on main @ 55773e361):

  • Market 5x90s CPU-bound in-run HOS_AB (147 periods, 30,085 frames): 5/5 individual runs won (-1.05% to -1.69%), 0 crashes, 0 runtime/Vulkan errors, 0.00 frames >= 50 ms on both sides.
  • python -X utf8 -I tests/test_vk_draw_self_fast.py --cxx clang++: PASS (0 failures; verifies source wiring, HOS_AB toggle, all fast-path parities, and 5 broken-variant catches).
  • python -X utf8 -I tests/test_draw_side_effects.py: PASS.
  • python -X utf8 -I tests/test_hos_ab.py --cc clang: PASS (RX_VK_DRAW_SELF_FAST wired via host->ab_value).
  • python -X utf8 -I tests/test_tls_objects.py & tests/test_thinlto_tls.py --cxx clang++: PASS.
  • python -X utf8 -I tests/test_run_all_declarations.py: PASS.
  • Rebased onto main @ 7bc53f84, where main's RX_VK_DRAW_OVERHEAD_LEAN (#3048) and Sharpness (#3118) meet this PR: main's lean pass_hit check and its =check comparison use this PR's draw_depth_layout (the draw's layout is no longer written into at), and both begin_pass calls pass it; build_descriptors keeps main's desc_fp() reserve with desc_slotgen_cached(); upscale_route::wanted() keeps main's g_wanted_at and clears an expired request; the lock-free exit in temporal_note_scene_draw leaves out main's Sharpness-only scene, as the locked early return does; gp_table_check_log's own sampling applies only when the lean switch is 0 or check. (The earlier rebase onto a98cf28a: begin_pass's RX_VK_CMD_FAST same-target check compares the depth_layout override; same_desc/ubo_delta keep main's pgen through reuse_base; temporal_note_scene_draw keeps main's world-layer camera; the checks reading the reshaped source were updated.)
  • After the rebase onto 7bc53f84 (Windows, through dev.py queue):
    • the changed renderer units (vk_draw.cpp, vk_replay.cpp, vk_temporal.cpp, vk_fsr3_inputs.cpp, upscale_route.cpp) pass clang++ -fsyntax-only with the build plan's exact commands.
    • tests/run_all.py --exact tests/test_vk_draw_self_fast.py tests/test_vk_draw_overhead_lean.py tests/test_hos_ab.py tests/test_switch_table.py: 4 passed (test_vk_draw_self_fast now also catches a doubled gp_table_check_log sampling and an expired wanted() request left set).
    • tests/run_all.py --changed origin/main: 345 passed, 7 failed, 14 skipped. The 7 (test_present_acquire_ahead, test_present_held_image, test_present_geometry_trace, test_present_image_free, test_sync_watch_event, test_turf_budget, test_dlssg) fail the same way on main 7bc53f84.

Tested by others:

  • AMD Lab, Linux, Core i7-9700K, Radeon RX 580 (RADV 26.2.6), Market, 1280x720 at 50 % render, RX_VK_DRAW_SELF_FAST=0 against 1 on 461c677, three alternating pairs of 40 s: within the run-to-run spread. Median average FPS 54.88 → 54.69 (−0.35 %), p99 frame time 41.36 → 48.00 ms, frames of 50 ms or more 4 / 16 / 18 against 25 / 14 / 12; the harness flagged pipeline or shader activity in 11 / 34 / 67 and 96 / 39 / 59 frames.
  • Steam Deck LCD (RADV VANGOGH), @omgitsgela, separate interleaved launches with #2954 in the same build, both switches on against both off, 3 runs a side: fps 37.03 against 36.69 (+0.94 %, p 0.25); draw_ms −3.8 % to −4.6 % over three paired samples, and −2.6 % to −5.2 % in a build without #2946.
  • Beanstalk, 461c677 against main 55773e3, Market and Kokiri Forest (FSR 3.1): passed on every target. p99 frame time windows+nvidia 15.7 → 10.3 ms, linux+nvidia 18.6 → 18.7, windows+amd 44.9 → 44.0, linux+radv 37.6 → 37.2, intel 235.0 → 239.6, steamdeck 45.7 → 47.3. One Windows AMD PC and one Windows Intel PC crashed on both sides in every start, so those two reports say nothing about the PR.

Still to test:

  • A base-against-head comparison of the whole change at a player's settings (the A/Bs above flip the switch within this build).
  • The measurements were taken before the rebase; on current main the gfx_sampled() skip they included is main's (#2949), and main's RX_VK_DRAW_OVERHEAD_LEAN (#3048) now skips some of the same per-draw work (the gp_table_check_log calls, the scene-draw hooks when nothing wants them), so the switch's own share is smaller than the table shows until it is measured again.

Measurements

Verdict: Faster: +1.39% FPS (-0.188 ms mean frame time, 95% CI +0.73% to +2.09% strictly excluding 0 across 147 paired periods), -2.79% draw_ms (-0.218 ms), -8.64% wait_gpu_ms (-0.214 ms), +1.21% P50 FPS (76.10 vs 75.19), and +0.23% 1% Low FPS (60.13 vs 59.99), with all 5/5 runs winning. Ships enabled by default (RX_VK_DRAW_SELF_FAST=1).

Setup: Windows 11, NVIDIA RTX 4060; Market, child (crowded) (1280x720, 50% internal res 768x432, V-Sync Off, Framegen Off, HOS_FPS_MAX=1000, RX_VK_FRAME_TRACE=1), 5x90s runs after pipeline warm-up (147 paired 3 s HOS_AB periods, 15,140 ON / 14,945 OFF frames; dev.py ab + perf.py ab).

Baseline: Both sides ran on the same build (v3.2.0-189-g461c67789 on main @ 55773e361) flipping RX_VK_DRAW_SELF_FAST every 3 s within each run (HOS_AB=RX_VK_DRAW_SELF_FAST=0,3,0).

Metric Before, RX_VK_DRAW_SELF_FAST=0: this PR @ 461c6778 After, RX_VK_DRAW_SELF_FAST unset: this PR @ 461c6778 Δ
Avg FPS 73.79 74.76 +1.39%
Mean frame time 13.56 ms 13.37 ms -0.19 ms (95% CI +0.73%..+2.09%)
Median (P50) 13.32 ms (75.19 fps) 13.14 ms (76.10 fps) -0.18 ms (+1.21% fps)
1% Low (P99) 16.70 ms (59.99 fps) 16.63 ms (60.13 fps) -0.07 ms (+0.23% 1% Low)
draw_ms mean 7.837 ms 7.618 ms -0.218 ms (-2.79%)
cmds_ms mean 2.482 ms 2.446 ms -0.036 ms (-1.44%)
desc_ms mean 2.887 ms 2.868 ms -0.019 ms (-0.66%)
main_cpu_ms mean 4.439 ms 4.383 ms -0.056 ms (-1.26%)
wait_gpu_ms mean 2.473 ms 2.259 ms -0.214 ms (-8.64%)
50 ms+ frames / min 0.00 0.00 +0.00

(Pooled 0.1% Low was 50.13 ON vs 51.81 OFF FPS across 15 worst Market crowd frames per side with normal draw_ms 7–10 ms and game_ms 11–19 ms; p99 and draw_ms/cmds_ms/desc_ms all improved cleanly across all 5 runs.)

Risks

  • Low risk: fast_cam_frame atomics mirror every s.cam.valid invalidation point; desc_slots_kept() only short-circuits when reg_gen itself is unchanged; sidecar caches keep Program size and translator stamp unchanged.
  • Can be disabled cleanly at runtime via RX_VK_DRAW_SELF_FAST=0 (or reverted).

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (the whole suite has not run on this branch; Testing lists the checks that ran).
  • Measured against main, or Measurements says why there is nothing to measure (RX_VK_DRAW_SELF_FAST=0 vs unset via in-run HOS_AB on main @ 55773e361).
  • 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 (RX_VK_DRAW_SELF_FAST).
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths (the changed renderer units were syntax-checked on Windows only; CI's renderer builds have not run).
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary Eliminates per-draw CPU overhead outside the descriptor/command/pipeline scopes (`RX_VK_DRAW_SELF_FAST`, default `1`, supporting in-run `HOS_AB` flipping per recording): 1. **Throttled `gp_table_check_log` QPC (`gpu/vk/vk_draw.cpp`)**: Skips `steady_clock::now()` on every draw unless `final` or every 4096th tick, removing ~3,500 unnecessary clock queries per frame. With `RX_VK_DRAW_OVERHEAD_LEAN=1` (main's default since #3048), whose draw already calls it once in 4096 draws, this second sampling is skipped. 2. **Lock-free scene-draw & upscale-route fast-exits (`gpu/vk/vk_temporal.cpp`, `gpu/vk/vk_fsr3_inputs.cpp`, `gpu/vk/upscale_route.h/.cpp`)**: Checks atomic `(fast_cam_frame, fast_cam_area)` before taking `s.mu` when the frame's camera is already captured (invalidated cleanly alongside `s.cam.valid`), and keeps a yes from `upscale_route::wanted()` for the recording (an expired request is still cleared for main's `wanted_fast()`). 3. **`desc_slots_kept()` `k.reg == reg_gen` fast-exit & `ubo_delta` cleanup (`gpu/vk/vk_draw.cpp`)**: Short-circuits `desc_slots_kept()` when `k.reg == reg_gen`, evaluates `desc_slots_kept()` once instead of twice across `same_desc`/`ubo_delta` (`reuse_base`/`slots_ok`, which also carry main's texture-pack generation `pgen`), caches `desc_slotgen_on()` per recording and static `writes_ssbo` per `const Program*` (in a TLS sidecar cache leaving `Program` unchanged), and skips the redundant `cb.desc.fp` vector copy on `ubo_delta` hits. (The `gfx_sampled()` copy skipped on `ubo_delta` is main's since #2949, under `RX_VK_CMD_FAST`.) 4. **Cached `Targets` & `color_types[8]` (`gpu/vk/vk_draw.cpp`)**: Avoids repeated 336-byte `Targets` by-value copies and `color_types_of()` recomputations per draw when `s.rt_serial` and viewport are unchanged. 5. **Short-payload replay reads (`gpu/vk/vk_replay.cpp`)**: `read_bind_bufs()` and `read_bind_handles()` copy only the live header + `b.n` entries without zero-filling unused array tails or hitting cold fallback paths on normal short payloads. Read first: `gpu/vk/vk_draw.cpp` (`draw_self_fast_begin_recording`, `gp_table_check_log`, `desc_slots_kept`, `targets_ref`, `draw`), `gpu/vk/vk_temporal.cpp`, `gpu/vk/vk_fsr3_inputs.cpp`, `gpu/vk/upscale_route.cpp`, and `gpu/vk/vk_replay.cpp`. Assisted-by: Antigravity ## Testing **Tested:** Windows 11, NVIDIA GeForce RTX 4060 (`build-windows/rt-Longshot`, `v3.2.0-189-g461c67789` on `main @ 55773e361`): - Market 5x90s CPU-bound in-run `HOS_AB` (`147` periods, `30,085` frames): 5/5 individual runs won (`-1.05%` to `-1.69%`), 0 crashes, 0 runtime/Vulkan errors, `0.00` frames >= 50 ms on both sides. - `python -X utf8 -I tests/test_vk_draw_self_fast.py --cxx clang++`: `PASS` (`0` failures; verifies source wiring, `HOS_AB` toggle, all fast-path parities, and 5 broken-variant catches). - `python -X utf8 -I tests/test_draw_side_effects.py`: `PASS`. - `python -X utf8 -I tests/test_hos_ab.py --cc clang`: `PASS` (`RX_VK_DRAW_SELF_FAST` wired via `host->ab_value`). - `python -X utf8 -I tests/test_tls_objects.py` & `tests/test_thinlto_tls.py --cxx clang++`: `PASS`. - `python -X utf8 -I tests/test_run_all_declarations.py`: `PASS`. - Rebased onto `main @ 7bc53f84`, where main's `RX_VK_DRAW_OVERHEAD_LEAN` (#3048) and Sharpness (#3118) meet this PR: main's lean `pass_hit` check and its `=check` comparison use this PR's `draw_depth_layout` (the draw's layout is no longer written into `at`), and both `begin_pass` calls pass it; `build_descriptors` keeps main's `desc_fp()` reserve with `desc_slotgen_cached()`; `upscale_route::wanted()` keeps main's `g_wanted_at` and clears an expired request; the lock-free exit in `temporal_note_scene_draw` leaves out main's Sharpness-only scene, as the locked early return does; `gp_table_check_log`'s own sampling applies only when the lean switch is 0 or check. (The earlier rebase onto `a98cf28a`: `begin_pass`'s `RX_VK_CMD_FAST` same-target check compares the `depth_layout` override; `same_desc`/`ubo_delta` keep main's `pgen` through `reuse_base`; `temporal_note_scene_draw` keeps main's world-layer camera; the checks reading the reshaped source were updated.) - After the rebase onto `7bc53f84` (Windows, through `dev.py queue`): - the changed renderer units (`vk_draw.cpp`, `vk_replay.cpp`, `vk_temporal.cpp`, `vk_fsr3_inputs.cpp`, `upscale_route.cpp`) pass `clang++ -fsyntax-only` with the build plan's exact commands. - `tests/run_all.py --exact tests/test_vk_draw_self_fast.py tests/test_vk_draw_overhead_lean.py tests/test_hos_ab.py tests/test_switch_table.py`: 4 passed (`test_vk_draw_self_fast` now also catches a doubled `gp_table_check_log` sampling and an expired `wanted()` request left set). - `tests/run_all.py --changed origin/main`: 345 passed, 7 failed, 14 skipped. The 7 (`test_present_acquire_ahead`, `test_present_held_image`, `test_present_geometry_trace`, `test_present_image_free`, `test_sync_watch_event`, `test_turf_budget`, `test_dlssg`) fail the same way on main `7bc53f84`. **Tested by others:** - AMD Lab, Linux, Core i7-9700K, Radeon RX 580 (RADV 26.2.6), Market, 1280x720 at 50 % render, `RX_VK_DRAW_SELF_FAST=0` against `1` on `461c677`, three alternating pairs of 40 s: within the run-to-run spread. Median average FPS 54.88 → 54.69 (−0.35 %), p99 frame time 41.36 → 48.00 ms, frames of 50 ms or more 4 / 16 / 18 against 25 / 14 / 12; the harness flagged pipeline or shader activity in 11 / 34 / 67 and 96 / 39 / 59 frames. - Steam Deck LCD (RADV VANGOGH), @omgitsgela, separate interleaved launches with #2954 in the same build, both switches on against both off, 3 runs a side: fps 37.03 against 36.69 (+0.94 %, p 0.25); `draw_ms` −3.8 % to −4.6 % over three paired samples, and −2.6 % to −5.2 % in a build without #2946. - Beanstalk, `461c677` against main `55773e3`, Market and Kokiri Forest (FSR 3.1): passed on every target. p99 frame time windows+nvidia 15.7 → 10.3 ms, linux+nvidia 18.6 → 18.7, windows+amd 44.9 → 44.0, linux+radv 37.6 → 37.2, intel 235.0 → 239.6, steamdeck 45.7 → 47.3. One Windows AMD PC and one Windows Intel PC crashed on both sides in every start, so those two reports say nothing about the PR. **Still to test:** - A base-against-head comparison of the whole change at a player's settings (the A/Bs above flip the switch within this build). - The measurements were taken before the rebase; on current main the `gfx_sampled()` skip they included is main's (#2949), and main's `RX_VK_DRAW_OVERHEAD_LEAN` (#3048) now skips some of the same per-draw work (the `gp_table_check_log` calls, the scene-draw hooks when nothing wants them), so the switch's own share is smaller than the table shows until it is measured again. ## Measurements **Verdict:** Faster: **+1.39% FPS** (`-0.188 ms` mean frame time, 95% CI **`+0.73% to +2.09%`** strictly excluding 0 across 147 paired periods), **`-2.79%` `draw_ms`** (`-0.218 ms`), **`-8.64%` `wait_gpu_ms`** (`-0.214 ms`), **`+1.21%` P50 FPS** (`76.10 vs 75.19`), and **`+0.23%` 1% Low FPS** (`60.13 vs 59.99`), with all 5/5 runs winning. Ships enabled by default (`RX_VK_DRAW_SELF_FAST=1`). Setup: Windows 11, NVIDIA RTX 4060; `Market, child (crowded)` (`1280x720`, 50% internal res `768x432`, V-Sync Off, Framegen Off, `HOS_FPS_MAX=1000`, `RX_VK_FRAME_TRACE=1`), 5x90s runs after pipeline warm-up (`147` paired 3 s `HOS_AB` periods, `15,140` ON / `14,945` OFF frames; `dev.py ab` + `perf.py ab`). Baseline: Both sides ran on the same build (`v3.2.0-189-g461c67789` on `main @ 55773e361`) flipping `RX_VK_DRAW_SELF_FAST` every 3 s within each run (`HOS_AB=RX_VK_DRAW_SELF_FAST=0,3,0`). | Metric | Before, RX_VK_DRAW_SELF_FAST=0: this PR @ 461c6778 | After, RX_VK_DRAW_SELF_FAST unset: this PR @ 461c6778 | Δ | |---|---:|---:|---:| | Avg FPS | 73.79 | 74.76 | **+1.39%** | | Mean frame time | 13.56 ms | 13.37 ms | **-0.19 ms (95% CI +0.73%..+2.09%)** | | Median (P50) | 13.32 ms (75.19 fps) | 13.14 ms (76.10 fps) | **-0.18 ms (+1.21% fps)** | | 1% Low (P99) | 16.70 ms (59.99 fps) | 16.63 ms (60.13 fps) | **-0.07 ms (+0.23% 1% Low)** | | `draw_ms` mean | 7.837 ms | 7.618 ms | **-0.218 ms (-2.79%)** | | `cmds_ms` mean | 2.482 ms | 2.446 ms | **-0.036 ms (-1.44%)** | | `desc_ms` mean | 2.887 ms | 2.868 ms | **-0.019 ms (-0.66%)** | | `main_cpu_ms` mean | 4.439 ms | 4.383 ms | **-0.056 ms (-1.26%)** | | `wait_gpu_ms` mean | 2.473 ms | 2.259 ms | **-0.214 ms (-8.64%)** | | 50 ms+ frames / min | 0.00 | 0.00 | +0.00 | *(Pooled 0.1% Low was `50.13` ON vs `51.81` OFF FPS across 15 worst Market crowd frames per side with normal `draw_ms` `7–10 ms` and `game_ms` `11–19 ms`; `p99` and `draw_ms`/`cmds_ms`/`desc_ms` all improved cleanly across all 5 runs.)* ## Risks - Low risk: `fast_cam_frame` atomics mirror every `s.cam.valid` invalidation point; `desc_slots_kept()` only short-circuits when `reg_gen` itself is unchanged; sidecar caches keep `Program` size and translator stamp unchanged. - Can be disabled cleanly at runtime via `RX_VK_DRAW_SELF_FAST=0` (or reverted). ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (the whole suite has not run on this branch; Testing lists the checks that ran). - [x] Measured against `main`, or Measurements says why there is nothing to measure (`RX_VK_DRAW_SELF_FAST=0` vs unset via in-run `HOS_AB` on `main @ 55773e361`). - [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` (`RX_VK_DRAW_SELF_FAST`). - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths (the changed renderer units were syntax-checked on Windows only; CI's renderer builds have not run). - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
gpu/vk: add Wave 5A draw-loop fast paths (RX_VK_DRAW_SELF_FAST)
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+nvidia 2/1 pass
beanstalk/windows+amd 1/1 pass
beanstalk/linux+radv 2/1 pass
beanstalk/intel 1/1 pass
beanstalk/steamdeck 2/1 pass
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
461c677897
Assisted-by: Antigravity
Author
Contributor

Tested in game: Market CPU-bound 5x90s in-run HOS_AB (147 periods): +1.39% FPS (74.8 vs 73.8, 95% CI +0.73%..+2.09%), -2.79% draw_ms, -8.64% wait_gpu_ms, +0.23% 1% Low

Tested in game: Market CPU-bound 5x90s in-run HOS_AB (147 periods): +1.39% FPS (74.8 vs 73.8, 95% CI +0.73%..+2.09%), -2.79% draw_ms, -8.64% wait_gpu_ms, +0.23% 1% Low
Member

#2958: Deck measurement

Steam Deck LCD (RADV VANGOGH, Mesa 26.2.0-devel), 2026-12-01. Build: base 87045899 plus a dev-pack of main with #2954 and #2958 merged. Settings: 1280x800 output, 50 % render (640x400), the game's own upscaler, preset Custom/0, no V-Sync, no cap. Same save, slot and route as my other Deck runs; play window 30-97 % of each trace. Separate interleaved launches, because HOS_AB's thread does not start here yet (glibc refuses the 64 KiB stack; this host binary's static TLS block is 61,936 bytes; fix in review as #2971).

3 runs a side, both switches off in the off arm (RX_VK_PROG_FAST=0 RX_VK_DRAW_SELF_FAST=0): fps 37.03 against 36.69 (+0.94 %, p 0.25), median 26.70 against 27.09 ms (-0.39 ms, p 0.05).

draw_ms over three paired samples: 9.75-9.91 ms against 10.19-10.30 ms, -4.2 %, -4.6 %, -3.8 %, every sample the same direction. That is 0.3-0.5 ms of a 10.2 ms phase, and the draw phase is the largest host phase we measure on this hardware (10.1 ms of a 27 ms frame at 50 % render, 10.2 ms of 31 ms at 100 %).

In a build with #2952 but not #2946, the same draw saving is still visible (-2.6 to -5.2 %), so it does not depend on #2946's mesh fast paths. Queue note: #2958 conflicts with #2946 and #2958's test file overlaps #2952's (tests/test_hos_ab.py), but it merges cleanly with #2932 and with #2952 apart from that test.

## #2958: Deck measurement Steam Deck LCD (RADV VANGOGH, Mesa 26.2.0-devel), 2026-12-01. Build: base `87045899` plus a dev-pack of `main` with #2954 and #2958 merged. Settings: 1280x800 output, 50 % render (640x400), the game's own upscaler, preset Custom/0, no V-Sync, no cap. Same save, slot and route as my other Deck runs; play window 30-97 % of each trace. Separate interleaved launches, because `HOS_AB`'s thread does not start here yet (glibc refuses the 64 KiB stack; this host binary's static TLS block is 61,936 bytes; fix in review as #2971). **3 runs a side**, both switches off in the off arm (`RX_VK_PROG_FAST=0 RX_VK_DRAW_SELF_FAST=0`): fps 37.03 against 36.69 (+0.94 %, p 0.25), median 26.70 against 27.09 ms (-0.39 ms, p 0.05). `draw_ms` over three paired samples: 9.75-9.91 ms against 10.19-10.30 ms, **-4.2 %, -4.6 %, -3.8 %**, every sample the same direction. That is 0.3-0.5 ms of a 10.2 ms phase, and the draw phase is the largest host phase we measure on this hardware (10.1 ms of a 27 ms frame at 50 % render, 10.2 ms of 31 ms at 100 %). In a build with #2952 but not #2946, the same draw saving is still visible (-2.6 to -5.2 %), so it does not depend on #2946's mesh fast paths. Queue note: #2958 conflicts with #2946 and #2958's test file overlaps #2952's (`tests/test_hos_ab.py`), but it merges cleanly with #2932 and with #2952 apart from that test.
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The Windows A/B shows a small improvement between two modes of this branch, but it does not measure the whole change against main. Rendering parity and the default’s effect on the remaining Tier 1 systems are still unverified. Recommend approval; not approved on the forge.

The change reduces work in Vulkan draw recording and replay through several caches and short-payload copies. It adds a default-on kill switch and substantial cache and synchronization logic; the measured Windows A/B reports 1.39% higher average FPS and 0.23% higher 1% low.

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

  • L1: The reported A/B does not measure the complete change against main. When: Both Windows arms run this head; descriptor reuse restructuring and target color-type calculation also run with RX_VK_DRAW_SELF_FAST=0, so their cost or gain is absent from the comparison. Do: Run interleaved main-versus-head measurements in a player-representative heavy scene and settings, reporting average and 1% low FPS and frame times.
  • L2: The default-on replay changes need live parity and performance coverage on the remaining affected Tier 1 systems. When: The supplied Deck run combines this change with other PRs, while the PR lists Linux live parity as still to test; the Windows NVIDIA result cannot establish behavior on the other supported drivers. Do: Run representative gameplay and interleaved performance comparisons on Linux NVIDIA and Windows and Linux AMD, including Steam Deck parity, and record the results.

Checks: Still running: 10 checks.

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

Does it help: Unproven against main. The PR reports five Windows RTX 4060 in-run A/B tests, with mean frame time falling from 13.56 to 13.37 ms, but both sides use this branch and some changed work also runs with the switch off. The Deck report combines this PR with other changes and reports +0.94% FPS with p=0.25, so it does not isolate the gain.

Other systems: The changed paths run throughout Vulkan replay, including temporal upscalers, descriptor reuse, render targets and buffer and texture binding. The supplied runs cover Windows NVIDIA and a combined Steam Deck build; Linux NVIDIA and Windows and Linux AMD parity and performance remain outstanding.

Switches: RX_VK_DRAW_SELF_FAST is added as a kill switch, default on, sampled at each recording and available to HOS_AB. Its table row is present; the default is supported by the Windows branch A/B but is not yet established against main or across the affected Tier 1 systems.

Reviewed: 461c677897 against 55773e3613: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards, the commit, the production diff, upscale_route files, and selected surrounding replay, draw, registration and test code. Skimmed the large new test and did not read every changed code file in full; docs/review-checklist.md and ../Tooling/AGENTS.md were absent. No recorded runs or generated files were included in the diff.; nothing run (a code review).

Checked and fine:

  • The commit records AI assistance with an Assisted-by trailer.
  • The added switch has a switches.def row.
  • The normal bind producers constrain buffer and handle counts to their fixed array capacities.
  • The diff contains no generated shader headers, third-party files or apparent game-derived assets.

Testing: Read-only review; no builds, tests or project scripts were run. The author reports Windows checks and gameplay; CI is still running.

Overlaps and merge order: The Deck tester reports conflicts with #2946 and an overlap in tests/test_hos_ab.py with #2952; merge order is not established.


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

**Recommendation: Approve.** The code is ready: only testing is left. The Windows A/B shows a small improvement between two modes of this branch, but it does not measure the whole change against main. Rendering parity and the default’s effect on the remaining Tier 1 systems are still unverified. Recommend approval; not approved on the forge. The change reduces work in Vulkan draw recording and replay through several caches and short-payload copies. It adds a default-on kill switch and substantial cache and synchronization logic; the measured Windows A/B reports 1.39% higher average FPS and 0.23% higher 1% low. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The reported A/B does not measure the complete change against main. *When:* Both Windows arms run this head; descriptor reuse restructuring and target color-type calculation also run with RX_VK_DRAW_SELF_FAST=0, so their cost or gain is absent from the comparison. **Do:** Run interleaved main-versus-head measurements in a player-representative heavy scene and settings, reporting average and 1% low FPS and frame times. - **L2**: The default-on replay changes need live parity and performance coverage on the remaining affected Tier 1 systems. *When:* The supplied Deck run combines this change with other PRs, while the PR lists Linux live parity as still to test; the Windows NVIDIA result cannot establish behavior on the other supported drivers. **Do:** Run representative gameplay and interleaved performance comparisons on Linux NVIDIA and Windows and Linux AMD, including Steam Deck parity, and record the results. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against main. The PR reports five Windows RTX 4060 in-run A/B tests, with mean frame time falling from 13.56 to 13.37 ms, but both sides use this branch and some changed work also runs with the switch off. The Deck report combines this PR with other changes and reports +0.94% FPS with p=0.25, so it does not isolate the gain. **Other systems:** The changed paths run throughout Vulkan replay, including temporal upscalers, descriptor reuse, render targets and buffer and texture binding. The supplied runs cover Windows NVIDIA and a combined Steam Deck build; Linux NVIDIA and Windows and Linux AMD parity and performance remain outstanding. **Switches:** RX_VK_DRAW_SELF_FAST is added as a kill switch, default on, sampled at each recording and available to HOS_AB. Its table row is present; the default is supported by the Windows branch A/B but is not yet established against main or across the affected Tier 1 systems. **Reviewed:** 461c6778970f against 55773e36136a: Read AGENTS.md, CONTRIBUTING.md, the PR template, standards, the commit, the production diff, upscale_route files, and selected surrounding replay, draw, registration and test code. Skimmed the large new test and did not read every changed code file in full; docs/review-checklist.md and ../Tooling/AGENTS.md were absent. No recorded runs or generated files were included in the diff.; nothing run (a code review). **Checked and fine:** - The commit records AI assistance with an Assisted-by trailer. - The added switch has a switches.def row. - The normal bind producers constrain buffer and handle counts to their fixed array capacities. - The diff contains no generated shader headers, third-party files or apparent game-derived assets. **Testing:** Read-only review; no builds, tests or project scripts were run. The author reports Windows checks and gameplay; CI is still running. **Overlaps and merge order:** The Deck tester reports conflicts with #2946 and an overlap in tests/test_hos_ab.py with #2952; merge order is not established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Author
Contributor

Thank you @omgitsgela for running the Steam Deck LCD (RADV) comparison showing the independent -2.6% to -5.2% draw_ms saving even without #2946, and thank you @BeanBot for the review and approval recommendation. Acknowledged on L1/L2 (interleaved base-vs-HEAD measurements at player settings and Tier-1 Linux NVIDIA / Windows & Linux AMD parity/perf). Happy to rebase cleanly onto whichever merge order maintainers select between #2946, #2952, and #2958.

Thank you @omgitsgela for running the Steam Deck LCD (RADV) comparison showing the independent -2.6% to -5.2% `draw_ms` saving even without #2946, and thank you @BeanBot for the review and approval recommendation. Acknowledged on L1/L2 (interleaved base-vs-HEAD measurements at player settings and Tier-1 Linux NVIDIA / Windows & Linux AMD parity/perf). Happy to rebase cleanly onto whichever merge order maintainers select between #2946, #2952, and #2958.
Owner

@beanstalk

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

Commit 461c677 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm does not measure the reported per-draw CPU phase or reproduce the in-run switch-flipping confidence interval, so it may not resolve the claimed roughly 1% gain.
⚠️ Note: The plan selects FSR 3.1 but does not cover the SDK-dependent DLSS or FSR 4 paths, or run the standalone test suite.

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

The change passed all reported targets: Windows and Linux NVIDIA, Windows AMD, Linux RADV, Intel and Steam Deck. On Linux NVIDIA GTX 1660 Ti, Forest FSR 3 frame time p99 rose from 29.52 to 31.68 ms (+7.3%); on one Steam Deck it fell from 41.57 to 36.30 ms (−12.7%). One Windows AMD PC and one Windows Intel PC produced inconclusive reports because both baseline and candidate crashed on all three starts, pointing to those PCs rather than the change.

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

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ✅ pass (an outlier) 2 1 2 15.7 → 10.3 (−35%) — none
linux+nvidia ✅ pass (an outlier) 2 1 2 18.6 → 18.7 (+1%) — none
windows+amd ✅ pass (an outlier) 2 1 2 44.9 → 44.0 (−2%) — 3 PR runs
linux+radv ✅ pass (an outlier) 2 1 2 37.6 → 37.2 (−1%) — none
intel ✅ pass 2 1 2 235.0 → 239.6 (+2%) — 3 PR runs
steamdeck ✅ pass (an outlier) 2 1 2 45.7 → 47.3 (+4%) — 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.

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

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

The farm will compare main and the PR in the crowded Market and Kokiri Forest on NVIDIA, AMD, Intel and Steam Deck targets, including the named Windows and Linux driver paths. Three alternating starts per side will capture stationary pictures and measure 30-second uncapped frame-time and FPS segments at a CPU-oriented 720p resolution; the forest segment also selects FSR 3.1. Crashes, Vulkan device loss, substantial picture differences, or a frame-time regression over 15% will fail the PR. The reported small speed-up may be below the noise of these comparisons. No tester online now matches linux+nvidia: that target waits for one.

  • Where: windows+nvidia (1-2 reports), linux+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports).
  • draw-replay: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), set dlss to 3, teleport to Kokiri Forest, take the picture forest-fsr3 to compare with main, measure forest-fsr3 for 30 s (after 10 s warm-up); 3 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, draws and frame rate, the game's log.
  • The PR fails if: it crashes; or a picture differs from main by more than 20%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0.
  • Time: about 39 min of game runs per tester (6 game starts), plus the two builds.
Measurements on `windows+nvidia`, for the PR description

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

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+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 NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ 461c677
draw-replay · market · median frame time (ms) 7.9 7.8 (−1%)
draw-replay · forest-fsr3 · median frame time (ms) 5.3 5.3 (+1%)
draw-replay · market · frame time (p99) (ms) 15.7 10.3 (−35%)
draw-replay · forest-fsr3 · frame time (p99) (ms) 6.4 6.6 (+3%)
draw-replay · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+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 `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`  
Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ 461c677 |
|---|---|---|
| draw-replay · market · median frame time (ms) | 7.9 | 7.8 (−1%) |
| draw-replay · forest-fsr3 · median frame time (ms) | 5.3 | 5.3 (+1%) |
| draw-replay · market · frame time (p99) (ms) | 15.7 | 10.3 (−35%) |
| draw-replay · forest-fsr3 · frame time (p99) (ms) | 6.4 | 6.6 (+3%) |
| draw-replay · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

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

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

Before: main @ 55773e3 After: this PR @ 461c677
draw-replay · market · median frame time (ms) 14.1 14.1 (−0%)
draw-replay · forest-fsr3 · median frame time (ms) 10.2 10.2 (−0%)
draw-replay · market · frame time (p99) (ms) 18.6 18.7 (+1%)
draw-replay · forest-fsr3 · frame time (p99) (ms) 18.3 19.4 (+6%)
draw-replay · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ 461c677 |
|---|---|---|
| draw-replay · market · median frame time (ms) | 14.1 | 14.1 (−0%) |
| draw-replay · forest-fsr3 · median frame time (ms) | 10.2 | 10.2 (−0%) |
| draw-replay · market · frame time (p99) (ms) | 18.6 | 18.7 (+1%) |
| draw-replay · forest-fsr3 · frame time (p99) (ms) | 18.3 | 19.4 (+6%) |
| draw-replay · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

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

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

Before: main @ 55773e3 After: this PR @ 461c677
draw-replay · market · median frame time (ms) 40.5 39.8 (−2%)
draw-replay · forest-fsr3 · median frame time (ms) 7.8 7.5 (−4%)
draw-replay · market · frame time (p99) (ms) 44.9 44.0 (−2%)
draw-replay · forest-fsr3 · frame time (p99) (ms) 9.3 8.9 (−4%)
draw-replay · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ 461c677 |
|---|---|---|
| draw-replay · market · median frame time (ms) | 40.5 | 39.8 (−2%) |
| draw-replay · forest-fsr3 · median frame time (ms) | 7.8 | 7.5 (−4%) |
| draw-replay · market · frame time (p99) (ms) | 44.9 | 44.0 (−2%) |
| draw-replay · forest-fsr3 · frame time (p99) (ms) | 9.3 | 8.9 (−4%) |
| draw-replay · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

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

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ 461c677
draw-replay · market · median frame time (ms) 10.9 10.7 (−1%)
draw-replay · forest-fsr3 · median frame time (ms) 7.8 7.8 (−0%)
draw-replay · market · frame time (p99) (ms) 37.6 37.2 (−1%)
draw-replay · forest-fsr3 · frame time (p99) (ms) 9.4 9.2 (−2%)
draw-replay · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`  
Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ 461c677 |
|---|---|---|
| draw-replay · market · median frame time (ms) | 10.9 | 10.7 (−1%) |
| draw-replay · forest-fsr3 · median frame time (ms) | 7.8 | 7.8 (−0%) |
| draw-replay · market · frame time (p99) (ms) | 37.6 | 37.2 (−1%) |
| draw-replay · forest-fsr3 · frame time (p99) (ms) | 9.4 | 9.2 (−2%) |
| draw-replay · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

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

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

Before: main @ 55773e3 After: this PR @ 461c677
draw-replay · market · median frame time (ms) 215.6 216.0 (+0%)
draw-replay · forest-fsr3 · median frame time (ms) 111.0 110.7 (−0%)
draw-replay · market · frame time (p99) (ms) 235.0 239.6 (+2%)
draw-replay · forest-fsr3 · frame time (p99) (ms) 123.4 121.4 (−2%)
draw-replay · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ 461c677 |
|---|---|---|
| draw-replay · market · median frame time (ms) | 215.6 | 216.0 (+0%) |
| draw-replay · forest-fsr3 · median frame time (ms) | 111.0 | 110.7 (−0%) |
| draw-replay · market · frame time (p99) (ms) | 235.0 | 239.6 (+2%) |
| draw-replay · forest-fsr3 · frame time (p99) (ms) | 123.4 | 121.4 (−2%) |
| draw-replay · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

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

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

Before: main @ 55773e3 After: this PR @ 461c677
draw-replay · market · median frame time (ms) 36.3 35.6 (−2%)
draw-replay · forest-fsr3 · median frame time (ms) 31.2 30.9 (−1%)
draw-replay · market · frame time (p99) (ms) 45.7 47.3 (+4%)
draw-replay · forest-fsr3 · frame time (p99) (ms) 37.8 34.5 (−9%)
draw-replay · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ 461c677 |
|---|---|---|
| draw-replay · market · median frame time (ms) | 36.3 | 35.6 (−2%) |
| draw-replay · forest-fsr3 · median frame time (ms) | 31.2 | 30.9 (−1%) |
| draw-replay · market · frame time (p99) (ms) | 45.7 | 47.3 (+4%) |
| draw-replay · forest-fsr3 · frame time (p99) (ms) | 37.8 | 34.5 (−9%) |
| draw-replay · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

None: the plan varied no setting, switch or build option.
The testers' hardware
Target Report Ran on
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
linux+nvidia 1 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1660 Ti, 620.73.4 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM
linux+nvidia 2 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
windows+amd 1 windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
windows+amd 2 windows+amd+amd-proprietary+igpu+window+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
linux+radv 1 linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
linux+radv 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
intel 1 windows+intel+intel-proprietary+igpu+window Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
intel 2 linux+intel+anv+igpu Intel(R) Graphics (RKL GT1), 26.2.4 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
steamdeck 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>461c677</code> (the newer results are in a comment below)</summary> Commit `461c677` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2958) ⚠️ **Note:** The farm does not measure the reported per-draw CPU phase or reproduce the in-run switch-flipping confidence interval, so it may not resolve the claimed roughly 1% gain. ⚠️ **Note:** The plan selects FSR 3.1 but does not cover the SDK-dependent DLSS or FSR 4 paths, or run the standalone test suite. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change passed all reported targets: Windows and Linux NVIDIA, Windows AMD, Linux RADV, Intel and Steam Deck. On Linux NVIDIA GTX 1660 Ti, Forest FSR 3 frame time p99 rose from 29.52 to 31.68 ms (+7.3%); on one Steam Deck it fell from 41.57 to 36.30 ms (−12.7%). One Windows AMD PC and one Windows Intel PC produced inconclusive reports because both baseline and candidate crashed on all three starts, pointing to those PCs rather than the change. Done (started 2026-12-02 16:12 UTC, last report 11:38 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+nvidia` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_a6b18c658153c716) [2](https://beanstalk.magicbean.dev/reports/rp_429b393d88e5d770) | 15.7 → 10.3 (−35%) | — | none | | `linux+nvidia` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_63476a7d3a8b246f) [2](https://beanstalk.magicbean.dev/reports/rp_1fa1708720b12245) | 18.6 → 18.7 (+1%) | — | none | | `windows+amd` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_827e01bc9a5758c9) [2](https://beanstalk.magicbean.dev/reports/rp_660a92ea54ef0ae3) | 44.9 → 44.0 (−2%) | — | 3 PR runs | | `linux+radv` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_a18f3578c86244fc) [2](https://beanstalk.magicbean.dev/reports/rp_dd720bee4f40cb1a) | 37.6 → 37.2 (−1%) | — | none | | `intel` | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_cbc7832e057827fe) [2](https://beanstalk.magicbean.dev/reports/rp_ac68097934ddbc84) | 235.0 → 239.6 (+2%) | — | 3 PR runs | | `steamdeck` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_7f62d1350c0fed31) [2](https://beanstalk.magicbean.dev/reports/rp_12d2e838533b7308) | 45.7 → 47.3 (+4%) | — | 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. - `windows+amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_660a92ea54ef0ae3): `Insufficient frame-time evidence for 5 required comparison(s). See rule results.` - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_cbc7832e057827fe): `Insufficient frame-time evidence for 5 required comparison(s). See rule results.` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The farm will compare main and the PR in the crowded Market and Kokiri Forest on NVIDIA, AMD, Intel and Steam Deck targets, including the named Windows and Linux driver paths. Three alternating starts per side will capture stationary pictures and measure 30-second uncapped frame-time and FPS segments at a CPU-oriented 720p resolution; the forest segment also selects FSR 3.1. Crashes, Vulkan device loss, substantial picture differences, or a frame-time regression over 15% will fail the PR. The reported small speed-up may be below the noise of these comparisons. No tester online now matches linux+nvidia: that target waits for one. - **Where:** windows+nvidia (1-2 reports), linux+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports). - **draw-replay:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), set dlss to 3, teleport to Kokiri Forest, take the picture forest-fsr3 to compare with main, measure forest-fsr3 for 30 s (after 10 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate, the game's log. - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0. - **Time:** about 39 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** pass on windows+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+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 `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 7.9 | 7.8 (−1%) | | draw-replay · forest-fsr3 · median frame time (ms) | 5.3 | 5.3 (+1%) | | draw-replay · market · frame time (p99) (ms) | 15.7 | 10.3 (−35%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 6.4 | 6.6 (+3%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+nvidia (2 reports): no rule failed and no PR run crashed. 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 `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 7.9 | 7.8 (−1%) | | draw-replay · forest-fsr3 · median frame time (ms) | 5.3 | 5.3 (+1%) | | draw-replay · market · frame time (p99) (ms) | 15.7 | 10.3 (−35%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 6.4 | 6.6 (+3%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+nvidia`, for the PR description</summary> **Verdict:** pass on linux+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 14.1 | 14.1 (−0%) | | draw-replay · forest-fsr3 · median frame time (ms) | 10.2 | 10.2 (−0%) | | draw-replay · market · frame time (p99) (ms) | 18.6 | 18.7 (+1%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 18.3 | 19.4 (+6%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 14.1 | 14.1 (−0%) | | draw-replay · forest-fsr3 · median frame time (ms) | 10.2 | 10.2 (−0%) | | draw-replay · market · frame time (p99) (ms) | 18.6 | 18.7 (+1%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 18.3 | 19.4 (+6%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** pass on windows+amd (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 40.5 | 39.8 (−2%) | | draw-replay · forest-fsr3 · median frame time (ms) | 7.8 | 7.5 (−4%) | | draw-replay · market · frame time (p99) (ms) | 44.9 | 44.0 (−2%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 9.3 | 8.9 (−4%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+amd (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 40.5 | 39.8 (−2%) | | draw-replay · forest-fsr3 · median frame time (ms) | 7.8 | 7.5 (−4%) | | draw-replay · market · frame time (p99) (ms) | 44.9 | 44.0 (−2%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 9.3 | 8.9 (−4%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 10.9 | 10.7 (−1%) | | draw-replay · forest-fsr3 · median frame time (ms) | 7.8 | 7.8 (−0%) | | draw-replay · market · frame time (p99) (ms) | 37.6 | 37.2 (−1%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 9.4 | 9.2 (−2%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 10.9 | 10.7 (−1%) | | draw-replay · forest-fsr3 · median frame time (ms) | 7.8 | 7.8 (−0%) | | draw-replay · market · frame time (p99) (ms) | 37.6 | 37.2 (−1%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 9.4 | 9.2 (−2%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 215.6 | 216.0 (+0%) | | draw-replay · forest-fsr3 · median frame time (ms) | 111.0 | 110.7 (−0%) | | draw-replay · market · frame time (p99) (ms) | 235.0 | 239.6 (+2%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 123.4 | 121.4 (−2%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 215.6 | 216.0 (+0%) | | draw-replay · forest-fsr3 · median frame time (ms) | 111.0 | 110.7 (−0%) | | draw-replay · market · frame time (p99) (ms) | 235.0 | 239.6 (+2%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 123.4 | 121.4 (−2%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 36.3 | 35.6 (−2%) | | draw-replay · forest-fsr3 · median frame time (ms) | 31.2 | 30.9 (−1%) | | draw-replay · market · frame time (p99) (ms) | 45.7 | 47.3 (+4%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 37.8 | 34.5 (−9%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: draw-replay, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); draw-replay: 3 game starts a side, market 30 s after 10 s warm-up, forest-fsr3 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 461c677 | |---|---|---| | draw-replay · market · median frame time (ms) | 36.3 | 35.6 (−2%) | | draw-replay · forest-fsr3 · median frame time (ms) | 31.2 | 30.9 (−1%) | | draw-replay · market · frame time (p99) (ms) | 45.7 | 47.3 (+4%) | | draw-replay · forest-fsr3 · frame time (p99) (ms) | 37.8 | 34.5 (−9%) | | draw-replay · forbidden log lines | 0.0 | 0.0 | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_a6b18c658153c716) | 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` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_429b393d88e5d770) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `linux+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_63476a7d3a8b246f) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM` | | `linux+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_1fa1708720b12245) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_827e01bc9a5758c9) | windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` | | `windows+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_660a92ea54ef0ae3) | windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_a18f3578c86244fc) | linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_dd720bee4f40cb1a) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_cbc7832e057827fe) | windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` | | `intel` | [2](https://beanstalk.magicbean.dev/reports/rp_ac68097934ddbc84) | linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_7f62d1350c0fed31) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | | `steamdeck` | [2](https://beanstalk.magicbean.dev/reports/rp_12d2e838533b7308) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | </details> </details>
Owner

AMD Lab Market A/B on PR head 461c6778970f, using RX_VK_DRAW_SELF_FAST=0 and RX_VK_DRAW_SELF_FAST=1 on the same build.

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

Metric A (0) B (1)
Average FPS, each capture 58.21 / 54.88 / 54.36 53.10 / 55.75 / 54.69
Average FPS, median 54.88 54.69
1% low FPS (1000 ÷ p99), median 24.18 20.83
Median frame time 17.50 ms 17.57 ms
p99 frame time, median 41.36 ms 48.00 ms
Frames of 50 ms or more, each capture 4 / 16 / 18 25 / 14 / 12

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

After warm-up, the harness still flagged pipeline or shader activity in 11 / 34 / 67 frames on side A and 96 / 39 / 59 on side B across the three captures. The FPS and tail numbers include those frames.

AMD Lab Market A/B on PR head `461c6778970f`, using `RX_VK_DRAW_SELF_FAST=0` and `RX_VK_DRAW_SELF_FAST=1` on the same build. **Within the run-to-run spread.** Median average FPS changed by **-0.35%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 58.21 / 54.88 / 54.36 | 53.10 / 55.75 / 54.69 | | Average FPS, median | 54.88 | 54.69 | | 1% low FPS (1000 ÷ p99), median | 24.18 | 20.83 | | Median frame time | 17.50 ms | 17.57 ms | | p99 frame time, median | 41.36 ms | 48.00 ms | | Frames of 50 ms or more, each capture | 4 / 16 / 18 | 25 / 14 / 12 | Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 40 seconds per capture after warm-up. After warm-up, the harness still flagged pipeline or shader activity in 11 / 34 / 67 frames on side A and 96 / 39 / 59 on side B across the three captures. The FPS and tail numbers include those frames.
siantm force-pushed perf/vk-draw-self-fast from 461c677897
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+nvidia 2/1 pass
beanstalk/windows+amd 1/1 pass
beanstalk/linux+radv 2/1 pass
beanstalk/intel 1/1 pass
beanstalk/steamdeck 2/1 pass
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 aa94e69a8b
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 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
2026-12-03 19:34:21 +00:00
Compare
Member

Beanstalk test farm

Commit eeff19c · approved by nobody yet · dashboard

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

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

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

The rebase

  • begin_pass: main's same-target check under RX_VK_CMD_FAST (rt_serial) now also compares this PR's depth_layout override.
  • same_desc and ubo_delta keep main's texture-pack generation (pgen) through reuse_base.
  • The gfx_sampled() copy skip on ubo_delta hits is main's since #2949, under RX_VK_CMD_FAST, so this PR no longer carries its own copy.
  • temporal_note_scene_draw keeps main's world-layer camera. The lock-free exit returns only where the locked early return already did, so a draw that would set world_cam still reaches it.

Checks that read the changed code

  • test_bc_raw_targets, test_device_policy, test_readback_early, test_texture_pack, test_vk_occlusion_queries, test_rgba16f_scene_off and test_rgba16f_scene_fsr3_fg follow the reshaped source.
  • The fixtures of test_draw_stream_visibility, test_fsr_uniform_ownership and test_recording_admission copy draw_begin_recording(), which now also resets bare_targets_serial; they declare it.
  • test_vk_draw_self_fast's scene-draw fixture stubs main's world-layer and screen-effect queries and has world_cam.

Results on Windows, through dev.py queue:

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

Results from others

  • Beanstalk passed on every target. The windows+nvidia p99 15.7 → 10.3 ms comes from two reports and is marked as an outlier, so I don't count it as a gain. The Windows AMD and Windows Intel PCs that crashed did so on both sides in every start.
  • AMD Lab (RX 580, RADV), =0 against =1: −0.35 % median FPS, within the run-to-run spread. Thanks. The p99 41.36 → 48.00 ms goes with more frames flagged for pipeline or shader activity on the =1 side (96 / 39 / 59 against 11 / 34 / 67), so I can't separate the switch from compile stalls in that number.

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

  • The whole change against its base at a player's settings. The A/Bs in the description flip the switch inside one build.
  • The measurements were taken before the rebase. Now that the gfx_sampled() skip they included is main's, this switch's own share is smaller than the table shows until it is measured again.
Rebased onto main @ `a98cf28a` (the branch was `mergeable=False`) and pushed `aa94e69a`. **The rebase** - `begin_pass`: main's same-target check under `RX_VK_CMD_FAST` (`rt_serial`) now also compares this PR's `depth_layout` override. - `same_desc` and `ubo_delta` keep main's texture-pack generation (`pgen`) through `reuse_base`. - The `gfx_sampled()` copy skip on `ubo_delta` hits is main's since #2949, under `RX_VK_CMD_FAST`, so this PR no longer carries its own copy. - `temporal_note_scene_draw` keeps main's world-layer camera. The lock-free exit returns only where the locked early return already did, so a draw that would set `world_cam` still reaches it. **Checks that read the changed code** - `test_bc_raw_targets`, `test_device_policy`, `test_readback_early`, `test_texture_pack`, `test_vk_occlusion_queries`, `test_rgba16f_scene_off` and `test_rgba16f_scene_fsr3_fg` follow the reshaped source. - The fixtures of `test_draw_stream_visibility`, `test_fsr_uniform_ownership` and `test_recording_admission` copy `draw_begin_recording()`, which now also resets `bare_targets_serial`; they declare it. - `test_vk_draw_self_fast`'s scene-draw fixture stubs main's world-layer and screen-effect queries and has `world_cam`. Results on Windows, through `dev.py queue`: - The changed renderer units (`vk_draw.cpp`, `vk_replay.cpp`, `vk_temporal.cpp`, `vk_fsr3_inputs.cpp`, `upscale_route.cpp`) pass `clang++ -fsyntax-only` with the build's flags. - `tests/run_all.py --changed origin/main` on main `1c91b18f`: 341 passed, 1 failed, 14 skipped. - `test_switch_table` fails here, and the same way on main `1c91b18f` and `a98cf28a`: `LONGSHOT_SANDBOX_PROGRAMDATA` (`host/sandbox_win_plan.h:41`) has no row in `gpu/vk/switches.def`. - After the last rebase onto `a98cf28a`, which changed none of this PR's files, `test_intel_quick_compute` (the one check main changed among those that read this PR's files) passes. **Results from others** - Beanstalk passed on every target. The windows+nvidia p99 15.7 → 10.3 ms comes from two reports and is marked as an outlier, so I don't count it as a gain. The Windows AMD and Windows Intel PCs that crashed did so on both sides in every start. - AMD Lab (RX 580, RADV), `=0` against `=1`: −0.35 % median FPS, within the run-to-run spread. Thanks. The p99 41.36 → 48.00 ms goes with more frames flagged for pipeline or shader activity on the `=1` side (96 / 39 / 59 against 11 / 34 / 67), so I can't separate the switch from compile stalls in that number. **Still open** (I can't run these here: one Windows RTX 4060, shared GPU queue) - The whole change against its base at a player's settings. The A/Bs in the description flip the switch inside one build. - The measurements were taken before the rebase. Now that the `gfx_sampled()` skip they included is main's, this switch's own share is smaller than the table shows until it is measured again.
Owner

Please rebase!

Please rebase!
HumanBean approved these changes 2026-12-04 18:33:55 +00:00
Dismissed
siantm force-pushed perf/vk-draw-self-fast from aa94e69a8b
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 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 eeff19c23d
Some checks failed
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 7s
2026-12-05 10:29:55 +00:00
Compare
siantm dismissed HumanBean's review 2026-12-05 10:29:56 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Author
Contributor

Rebased onto main 7bc53f84 and pushed eeff19c2 (was aa94e69a). @HumanBean, your approval is on aa94e69a, the old head; the resolution below changes code, so it may want another look.

Conflicts (main's RX_VK_DRAW_OVERHEAD_LEAN #3048 and Sharpness #3118 touch the same lines)

  • draw(), before begin_pass: main's lean pass_hit check compared at.depth_layout. This PR no longer writes the draw's depth layout into at (it passes draw_depth_layout to begin_pass), so the lean check, its =check legacy comparison and both begin_pass calls use draw_depth_layout.
  • build_descriptors: main's desc_fp().reserve(32) stays, next to this PR's per-recording desc_slotgen_cached().
  • upscale_route::wanted(): main's g_wanted_at stays, and so does its clearing of an expired request (which wanted_fast() reads). This PR's per-recording cache now keeps only a yes, so an expired request is still cleared.
  • temporal_note_scene_draw: the lock-free exit leaves out main's Sharpness-only scene (sharpen_only), as the locked early return does.
  • gp_table_check_log (no textual conflict): with RX_VK_DRAW_OVERHEAD_LEAN=1, main's default, the draw already calls it once in 4096 draws, and this PR's own 1-in-4096 would have made that once in about 16.7M. It now applies only when the lean switch is 0 or check.
  • switches.def and test_hos_ab.py's WIRED: both rows kept.
  • test_vk_draw_self_fast.py follows these changes (eeff19c2). It has a broken variant for the doubled sampling and checks that an expired wanted() request is cleared.

Checks (Windows, through dev.py queue)

  • tests/run_all.py --exact tests/test_vk_draw_self_fast.py tests/test_vk_draw_overhead_lean.py tests/test_hos_ab.py tests/test_switch_table.py: 4 passed.
  • vk_draw.cpp, vk_replay.cpp, vk_temporal.cpp, vk_fsr3_inputs.cpp and upscale_route.cpp pass clang++ -fsyntax-only with the build plan's exact commands.
  • tests/run_all.py --changed origin/main: 345 passed, 7 failed, 14 skipped. The 7 (test_present_acquire_ahead, test_present_held_image, test_present_geometry_trace, test_present_image_free, test_sync_watch_event, test_turf_budget, test_dlssg) fail the same way on main 7bc53f84. For example, their fixtures don't declare settings_start or order_watch_on.

Still open

  • The measurements are from 461c677. Main's lean switch now skips some of the same per-draw work, so this switch's own share on current main needs measuring again. I updated Testing in the description to say so.
  • A farm run on eeff19c needs a BigBeans member to start it.
Rebased onto main `7bc53f84` and pushed `eeff19c2` (was `aa94e69a`). @HumanBean, your approval is on `aa94e69a`, the old head; the resolution below changes code, so it may want another look. **Conflicts** (main's `RX_VK_DRAW_OVERHEAD_LEAN` #3048 and Sharpness #3118 touch the same lines) - `draw()`, before `begin_pass`: main's lean `pass_hit` check compared `at.depth_layout`. This PR no longer writes the draw's depth layout into `at` (it passes `draw_depth_layout` to `begin_pass`), so the lean check, its `=check` legacy comparison and both `begin_pass` calls use `draw_depth_layout`. - `build_descriptors`: main's `desc_fp().reserve(32)` stays, next to this PR's per-recording `desc_slotgen_cached()`. - `upscale_route::wanted()`: main's `g_wanted_at` stays, and so does its clearing of an expired request (which `wanted_fast()` reads). This PR's per-recording cache now keeps only a yes, so an expired request is still cleared. - `temporal_note_scene_draw`: the lock-free exit leaves out main's Sharpness-only scene (`sharpen_only`), as the locked early return does. - `gp_table_check_log` (no textual conflict): with `RX_VK_DRAW_OVERHEAD_LEAN=1`, main's default, the draw already calls it once in 4096 draws, and this PR's own 1-in-4096 would have made that once in about 16.7M. It now applies only when the lean switch is 0 or `check`. - `switches.def` and `test_hos_ab.py`'s `WIRED`: both rows kept. - `test_vk_draw_self_fast.py` follows these changes (`eeff19c2`). It has a broken variant for the doubled sampling and checks that an expired `wanted()` request is cleared. **Checks** (Windows, through `dev.py queue`) - `tests/run_all.py --exact tests/test_vk_draw_self_fast.py tests/test_vk_draw_overhead_lean.py tests/test_hos_ab.py tests/test_switch_table.py`: 4 passed. - `vk_draw.cpp`, `vk_replay.cpp`, `vk_temporal.cpp`, `vk_fsr3_inputs.cpp` and `upscale_route.cpp` pass `clang++ -fsyntax-only` with the build plan's exact commands. - `tests/run_all.py --changed origin/main`: 345 passed, 7 failed, 14 skipped. The 7 (`test_present_acquire_ahead`, `test_present_held_image`, `test_present_geometry_trace`, `test_present_image_free`, `test_sync_watch_event`, `test_turf_budget`, `test_dlssg`) fail the same way on main `7bc53f84`. For example, their fixtures don't declare `settings_start` or `order_watch_on`. **Still open** - The measurements are from `461c677`. Main's lean switch now skips some of the same per-draw work, so this switch's own share on current main needs measuring again. I updated Testing in the description to say so. - A farm run on `eeff19c` needs a BigBeans member to start it.
Some checks failed
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 7s
This pull request has changes conflicting with the target branch.
  • gpu/vk/vk_temporal.cpp
Some workflows are waiting to be reviewed.
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/vk-draw-self-fast:siantm-perf/vk-draw-self-fast'
git switch 'siantm-perf/vk-draw-self-fast'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
6 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2958
No description provided.