perf(vk): add RX_VK_CMD_FAST descriptor templates, push-constant dedup, and draw/pass coalescing #2949

Merged
HumanBean merged 2 commits from siantm/Longshot:perf/vk-desc-template-cmds into main 2026-12-02 21:28:45 +00:00
Contributor

Summary

Every draw with > 32 descriptors (!p.push, such as clustered-light world shaders) called vkAllocateDescriptorSets and vkUpdateDescriptorSets synchronously on the replay thread with VkWriteDescriptorSet arrays, while every p.push program switch built N VkWriteDescriptorSet + duplicate allocations into the recorder ring, push_constants() re-emitted unchanged bytes, and draw_hazards()/begin_pass()/cb.vb re-scanned or copied full 16-slot arrays per draw. This PR removes those bottlenecks behind RX_VK_CMD_FAST (default 1, wired to HOS_AB), cutting cmds_ms (-3.17%), draw_ms (-1.20%), and 0.1% Low tail stalls (+13.17%).

What this changes:

  • Descriptor update templates (gpu/vk/vk_draw.cpp, vk_loader.h, vk_work.h, vk_recorder.h, vk_replay.cpp): Builds a cached sidecar VkDescriptorUpdateTemplate per Program (keeping Program size/translator_stamp unchanged, cleaned up on borrow guards and teardown). For !p.push, packs flat descriptor data and offloads vkUpdateDescriptorSetWithTemplate + vkCmdBindDescriptorSets onto the recorder thread via OP_UPDATE_SET (rec::update_and_bind_descriptor_set); for full p.push pushes, emits flat vkCmdPushDescriptorSetWithTemplateKHR packets when supported, falling back cleanly when null or during ubo_delta.
  • Push-constant deduplication (gpu/vk/vk_draw.cpp): Caches the last (layout, stages, data[kPushSize]) per recording (CmdBound) and skips identical vkCmdPushConstants calls.
  • Pass, hazard, and vertex-buffer coalescing (gpu/vk/vk_draw.cpp): Tracks Targets::rt_serial / Pass::rt_serial to compare render targets in O(1), fast-exits draw_hazards() when gfx_sampled and gfx_depth_sampled are empty, skips copying gfx_sampled on ubo_delta, and slices cb.vb.{b,o,z,s} memcpy to [vb_first, vb_first + vb_count).

Key files to read first: vk_draw.cpp, vk_recorder.h, vk_loader.h, vk_work.h, and vk_replay.cpp.

Testing

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

  • Ran 3×90s queued in-run HOS_AB=RX_VK_CMD_FAST=0,3,0 sessions in market (1280x720, 50% internal res, V-Sync off, uncapped HOS_FPS_MAX=1000, 89 paired periods) via dev.py ab: 0 crashes, 0 visual/Vulkan errors, and consistent speedup in all 3 runs (AB1..AB3).
  • python -X utf8 -I tests/test_vk_cmd_fast.py: passed before the descriptor template parity fixture was updated; rerun pending.
  • python -X utf8 -I tests/test_draw_side_effects.py: passed.
  • python -X utf8 -I tests/test_hos_ab.py: passed.
  • python -X utf8 -I tests/test_recorder_sync.py: passed.
  • python -X utf8 -I tests/test_pass_hazard.py: passed.
  • Not run as a full mise run test suite on this branch (targeted unit tests above ran directly). Pre-existing baseline failures on main @ 4908cc6da (test_switch_table.py, test_tex_desc_memo.py) are unrelated to this PR.

Still to test:

  • @Beanstalk: Linux (RADV) smoke and vkCmdPushDescriptorSetWithTemplateKHR / !p.push OP_UPDATE_SET draw parity sweep across Market, Hyrule Field, and Fire Temple.
  • @Beanstalk: CI full test suite (mise run test) on Linux and Windows.

Measurements

Verdict: faster: +0.60% FPS (+0.60% mean frame time reduction; -0.082 ms per frame, 95% CI +0.078% to +1.125%, 89 paired periods across 3 in-run HOS_AB sessions; 1% Low +1.05%, 0.1% Low +13.17%).

Setup: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40); Market, child (crowded) (window 1280x720); quality preset Custom, resolution 50% (768x432), output res 1280x720, frame generation Off, vsync Off; uncapped (HOS_FPS_MAX=1000); the frame trace (RX_VK_FRAME_TRACE=1), 90 s each after a warm-up until no frame waited for a pipeline, 3 runs, RX_VK_CMD_FAST flipped every 3 s within each run (HOS_AB=RX_VK_CMD_FAST=0,3,0).

Baseline: both columns are one build, v3.2.0-186-g33b3abd18 (not main): RX_VK_CMD_FAST=0 (side 1) against RX_VK_CMD_FAST unset / 1 (side 0) on it.

Before, RX_VK_CMD_FAST=0: this PR @ 33b3abd18 After, RX_VK_CMD_FAST unset: this PR @ 33b3abd18 Δ
FPS (pooled perf.py ab) 72.7 73.1 +0.60%
Mean frame time 13.76 ms 13.67 ms -0.08 ms
Median frame time 13.46 ms 13.39 ms -0.07 ms
P99 frame time 17.22 ms 17.02 ms -0.20 ms
Avg / P50 / 1% Low / 0.1% Low FPS 72.68 / 74.24 / 58.14 / 43.57 73.11 / 74.63 / 58.75 / 49.31 +0.59% / +0.53% / +1.05% / +13.17%
cmds_ms 2.521 ms 2.441 ms -0.080 ms (-3.17%)
draw_ms 7.951 ms 7.855 ms -0.096 ms (-1.20%)
wait_gpu_ms 2.573 ms 2.523 ms -0.051 ms (-1.98%)
Frames >= 50 ms per minute 0.00 0.00 +0.00
AB1: 5587 frames, side 0 (ON) 73.2 fps, side 1 (OFF) 73.1 fps, side 1 -0.19% fps
AB2: 5919 frames, side 0 (ON) 73.2 fps, side 1 (OFF) 72.9 fps, side 1 -0.51% fps
AB3: 5638 frames, side 0 (ON) 72.9 fps, side 1 (OFF) 72.1 fps, side 1 -1.12% fps
POOLED_DIFF: 89 periods, side 1 - side 0 = +0.0823 ms (+0.60%, fps -0.60%), 95% CI [+0.0107, +0.1538] ms (+0.078% to +1.125%)
[hos host] vk: switches set (10): HOS_AB=RX_VK_CMD_FAST=0,3,0 (diag), HOS_AUDIO_MUTE=1 (diag), HOS_DISCORD=0 (kill), HOS_FPS_MAX=1000 (player), HOS_WINDOW_NOACTIVATE=1 (diag), RX_VK_FRAME_TRACE=1 (diag)

Risks

  • Driver / Recorder Thread Ordering: Offloaded !p.push vkUpdateDescriptorSetWithTemplate + vkCmdBindDescriptorSets runs on the recorder thread (rec::on()) using OwnSlot-isolated descriptor pools and requires vkCmdPushDescriptorSetWithTemplateKHR driver support where enabled (falls back cleanly to vkCmdPushDescriptorSetKHR if null).
  • Rollback / toggle: Setting RX_VK_CMD_FAST=0 disables every optimization in this PR at runtime, or reverting the commit removes it cleanly.
  • No save/options/cache impact: Saves, longshot_options.ini, and shader/pipeline caches (translator_stamp) are unaffected.

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 (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

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

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (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 Every draw with `> 32` descriptors (`!p.push`, such as clustered-light world shaders) called `vkAllocateDescriptorSets` and `vkUpdateDescriptorSets` synchronously on the replay thread with `VkWriteDescriptorSet` arrays, while every `p.push` program switch built N `VkWriteDescriptorSet` + duplicate allocations into the recorder ring, `push_constants()` re-emitted unchanged bytes, and `draw_hazards()`/`begin_pass()`/`cb.vb` re-scanned or copied full 16-slot arrays per draw. This PR removes those bottlenecks behind `RX_VK_CMD_FAST` (default `1`, wired to `HOS_AB`), cutting `cmds_ms` (`-3.17%`), `draw_ms` (`-1.20%`), and `0.1% Low` tail stalls (`+13.17%`). What this changes: - **Descriptor update templates (`gpu/vk/vk_draw.cpp`, `vk_loader.h`, `vk_work.h`, `vk_recorder.h`, `vk_replay.cpp`):** Builds a cached sidecar `VkDescriptorUpdateTemplate` per `Program` (keeping `Program` size/`translator_stamp` unchanged, cleaned up on borrow guards and teardown). For `!p.push`, packs flat descriptor data and offloads `vkUpdateDescriptorSetWithTemplate` + `vkCmdBindDescriptorSets` onto the recorder thread via `OP_UPDATE_SET` (`rec::update_and_bind_descriptor_set`); for full `p.push` pushes, emits flat `vkCmdPushDescriptorSetWithTemplateKHR` packets when supported, falling back cleanly when null or during `ubo_delta`. - **Push-constant deduplication (`gpu/vk/vk_draw.cpp`):** Caches the last `(layout, stages, data[kPushSize])` per recording (`CmdBound`) and skips identical `vkCmdPushConstants` calls. - **Pass, hazard, and vertex-buffer coalescing (`gpu/vk/vk_draw.cpp`):** Tracks `Targets::rt_serial` / `Pass::rt_serial` to compare render targets in O(1), fast-exits `draw_hazards()` when `gfx_sampled` and `gfx_depth_sampled` are empty, skips copying `gfx_sampled` on `ubo_delta`, and slices `cb.vb.{b,o,z,s}` `memcpy` to `[vb_first, vb_first + vb_count)`. Key files to read first: [vk_draw.cpp](file:///gpu/vk/vk_draw.cpp), [vk_recorder.h](file:///gpu/vk/vk_recorder.h), [vk_loader.h](file:///gpu/vk/vk_loader.h), [vk_work.h](file:///gpu/vk/vk_work.h), and [vk_replay.cpp](file:///gpu/vk/vk_replay.cpp). ## Testing **Tested:** Windows 11, NVIDIA GeForce RTX 4060 (driver `621.40` / Vulkan 1.4): - Ran 3×90s queued in-run `HOS_AB=RX_VK_CMD_FAST=0,3,0` sessions in `market` (`1280x720`, 50% internal res, V-Sync off, uncapped `HOS_FPS_MAX=1000`, `89` paired periods) via `dev.py ab`: 0 crashes, 0 visual/Vulkan errors, and consistent speedup in all 3 runs (`AB1..AB3`). - `python -X utf8 -I tests/test_vk_cmd_fast.py`: passed before the descriptor template parity fixture was updated; rerun pending. - `python -X utf8 -I tests/test_draw_side_effects.py`: passed. - `python -X utf8 -I tests/test_hos_ab.py`: passed. - `python -X utf8 -I tests/test_recorder_sync.py`: passed. - `python -X utf8 -I tests/test_pass_hazard.py`: passed. - Not run as a full `mise run test` suite on this branch (targeted unit tests above ran directly). Pre-existing baseline failures on `main @ 4908cc6da` (`test_switch_table.py`, `test_tex_desc_memo.py`) are unrelated to this PR. **Still to test:** - `@Beanstalk`: Linux (RADV) smoke and `vkCmdPushDescriptorSetWithTemplateKHR` / `!p.push` `OP_UPDATE_SET` draw parity sweep across Market, Hyrule Field, and Fire Temple. - `@Beanstalk`: CI full test suite (`mise run test`) on Linux and Windows. ## Measurements **Verdict:** faster: **+0.60% FPS** (`+0.60%` mean frame time reduction; **-0.082 ms** per frame, 95% CI **`+0.078%` to `+1.125%`**, `89` paired periods across 3 in-run `HOS_AB` sessions; `1% Low +1.05%`, `0.1% Low +13.17%`). Setup: Windows 11, NVIDIA GeForce RTX 4060 (driver `621.40`); Market, child (crowded) (window `1280x720`); quality preset Custom, resolution 50% (`768x432`), output res `1280x720`, frame generation Off, vsync Off; uncapped (`HOS_FPS_MAX=1000`); the frame trace (`RX_VK_FRAME_TRACE=1`), 90 s each after a warm-up until no frame waited for a pipeline, 3 runs, `RX_VK_CMD_FAST` flipped every 3 s within each run (`HOS_AB=RX_VK_CMD_FAST=0,3,0`). **Baseline:** both columns are one build, `v3.2.0-186-g33b3abd18` (not `main`): `RX_VK_CMD_FAST=0` (`side 1`) against `RX_VK_CMD_FAST` unset / `1` (`side 0`) on it. | | Before, RX_VK_CMD_FAST=0: this PR @ 33b3abd18 | After, RX_VK_CMD_FAST unset: this PR @ 33b3abd18 | Δ | |---|---|---|---| | FPS (pooled `perf.py ab`) | 72.7 | 73.1 | +0.60% | | Mean frame time | 13.76 ms | 13.67 ms | -0.08 ms | | Median frame time | 13.46 ms | 13.39 ms | -0.07 ms | | P99 frame time | 17.22 ms | 17.02 ms | -0.20 ms | | Avg / P50 / 1% Low / 0.1% Low FPS | 72.68 / 74.24 / 58.14 / 43.57 | 73.11 / 74.63 / 58.75 / 49.31 | +0.59% / +0.53% / +1.05% / +13.17% | | `cmds_ms` | 2.521 ms | 2.441 ms | -0.080 ms (-3.17%) | | `draw_ms` | 7.951 ms | 7.855 ms | -0.096 ms (-1.20%) | | `wait_gpu_ms` | 2.573 ms | 2.523 ms | -0.051 ms (-1.98%) | | Frames >= 50 ms per minute | 0.00 | 0.00 | +0.00 | ```text AB1: 5587 frames, side 0 (ON) 73.2 fps, side 1 (OFF) 73.1 fps, side 1 -0.19% fps AB2: 5919 frames, side 0 (ON) 73.2 fps, side 1 (OFF) 72.9 fps, side 1 -0.51% fps AB3: 5638 frames, side 0 (ON) 72.9 fps, side 1 (OFF) 72.1 fps, side 1 -1.12% fps POOLED_DIFF: 89 periods, side 1 - side 0 = +0.0823 ms (+0.60%, fps -0.60%), 95% CI [+0.0107, +0.1538] ms (+0.078% to +1.125%) [hos host] vk: switches set (10): HOS_AB=RX_VK_CMD_FAST=0,3,0 (diag), HOS_AUDIO_MUTE=1 (diag), HOS_DISCORD=0 (kill), HOS_FPS_MAX=1000 (player), HOS_WINDOW_NOACTIVATE=1 (diag), RX_VK_FRAME_TRACE=1 (diag) ``` ## Risks - **Driver / Recorder Thread Ordering:** Offloaded `!p.push` `vkUpdateDescriptorSetWithTemplate` + `vkCmdBindDescriptorSets` runs on the recorder thread (`rec::on()`) using `OwnSlot`-isolated descriptor pools and requires `vkCmdPushDescriptorSetWithTemplateKHR` driver support where enabled (falls back cleanly to `vkCmdPushDescriptorSetKHR` if null). - **Rollback / toggle:** Setting `RX_VK_CMD_FAST=0` disables every optimization in this PR at runtime, or reverting the commit removes it cleanly. - **No save/options/cache impact:** Saves, `longshot_options.ini`, and shader/pipeline caches (`translator_stamp`) are unaffected. ## 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 (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
perf(vk): add RX_VK_CMD_FAST descriptor templates, push-constant dedup, and draw/pass coalescing
Some checks failed
PR description / Title and description (pull_request_target) Successful in 4s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 0/1 pass, 2 running, 0 queued
beanstalk/linux+nvidia 0/1 pass, 0 running, 2 queued
beanstalk/windows+amd 0/1 pass, 2 running, 0 queued
beanstalk/linux+radv 0/1 pass, 2 running, 0 queued
beanstalk/intel 0/1 pass, 0 running, 2 queued
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
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
33b3abd184
Assisted-by: Antigravity
Author
Contributor

Tested in game: Windows 11 RTX 4060 Market 3x90s HOS_AB=RX_VK_CMD_FAST=0,3,0 (89 periods): +0.60% FPS (73.1 vs 72.7), -0.082 ms (95% CI +0.078% to +1.125%), +1.05% 1% Low, +13.17% 0.1% Low, -3.17% cmds_ms

Tested in game: Windows 11 RTX 4060 Market 3x90s HOS_AB=RX_VK_CMD_FAST=0,3,0 (89 periods): +0.60% FPS (73.1 vs 72.7), -0.082 ms (95% CI +0.078% to +1.125%), +1.05% 1% Low, +13.17% 0.1% Low, -3.17% cmds_ms
Member

Possibly related, for context:

  • PR #2047 perf(vk): a draw leaves out a block of push constants its command buffer already has (RX_VK_BIND_CHANGED, on) — Overlapping push-constant deduplication change
  • PR #2899 perf(vk): add UBO descriptor delta fast path, 8-slot ub_gap_cache, and lock-free invalidate exits — Related descriptor hot-path changes in vk_draw.cpp
  • issue #402 Deck: the frame is CPU-bound in the submission path, not GPU-bound (16 fps at 50% internal, GPU-bound wait 0.4 ms) — Issue documents CPU-side Vulkan submission and draw costs
Possibly related, for context: - PR #2047 perf(vk): a draw leaves out a block of push constants its command buffer already has (RX_VK_BIND_CHANGED, on) — Overlapping push-constant deduplication change - PR #2899 perf(vk): add UBO descriptor delta fast path, 8-slot ub_gap_cache, and lock-free invalidate exits — Related descriptor hot-path changes in vk_draw.cpp - issue #402 Deck: the frame is CPU-bound in the submission path, not GPU-bound (16 fps at 50% internal, GPU-bound wait 0.4 ms) — Issue documents CPU-side Vulkan submission and draw costs
Owner

@review
@beanstalk

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

Commit 33b3abd · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm cannot run the requested Linux and Windows CI test suites or directly measure cmds_ms, draw_ms, 0.1% lows, or the author's in-run paired-switch confidence interval; the frame-time thresholds also cannot establish the claimed 0.60% speedup.
⚠️ Note: The scenes exercise the affected renderer but do not prove that both descriptor-template branches or the unsupported-driver fallback were reached.

Started at 15:20 UTC.

Estimate: done in about 3 h, from the queue and the testers online now; some jobs can't start yet.

Target Result Reports VRAM peak (MB) Crashes
windows+nvidia 🔄 running 0 of 1 — —
linux+nvidia ⏳ queued 0 of 1 — —
windows+amd 🔄 running 0 of 1 — —
linux+radv 🔄 running 0 of 1 — —
intel ⏳ queued 0 of 1 — —
steamdeck ⏳ queued 0 of 1 — —

draw-parity · frame time p99 (ms)

Target main RX_VK_CMD_FAST= RX_VK_CMD_FAST=0 (reference)
windows+nvidia — — —
linux+nvidia — — —
windows+amd — — —
linux+radv — — —
intel — — —
steamdeck — — —
What was tested

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

The plan compares the shipped command-recording fast paths and their disabled fallback against main across NVIDIA, AMD, Intel, RADV, and Steam Deck targets; the Deck target will wait for an online tester. Each configuration runs twice per side, measuring 20 seconds after warm-up in the Market, Hyrule Field, and Fire Temple at an uncapped, CPU-oriented resolution, with stationary screenshots at each location. Crashes, device loss, substantial frame-time regressions, or screenshot differences beyond the allowed tolerance fail the pull request. The switch comparison also checks whether the shipped fast paths regress relative to the PR's fallback. No tester online now matches linux+nvidia, steamdeck: those targets wait 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).
  • Matrix: 2 cells, each on main and the PR: RX_VK_CMD_FAST `` or 0 (PR only).
  • draw-parity: from the repository's save market-entrance (settings vsync=2, resolution=4, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 20 s (after 5 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 5 s warm-up), teleport to Fire Temple, take the picture fire-temple to compare with main, measure fire-temple for 20 s (after 5 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run).
  • Measured: crashes, frame times, stutters and hitches, the game's log.
  • The PR fails if: it crashes; or the PR's frame time (p99) with RX_VK_CMD_FAST= is more than 15% above RX_VK_CMD_FAST=0; or a picture differs from main by more than 25%; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main.
  • Time: about 52 min of game runs per tester (8 game starts), plus the two builds.
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>33b3abd</code> (the newer results are in a comment below)</summary> Commit `33b3abd` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2949) ⚠️ **Note:** The farm cannot run the requested Linux and Windows CI test suites or directly measure cmds_ms, draw_ms, 0.1% lows, or the author's in-run paired-switch confidence interval; the frame-time thresholds also cannot establish the claimed 0.60% speedup. ⚠️ **Note:** The scenes exercise the affected renderer but do not prove that both descriptor-template branches or the unsupported-driver fallback were reached. Started at 15:20 UTC. **Estimate:** done in about 3 h, from the queue and the testers online now; some jobs can't start yet. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `windows+nvidia` | 🔄 running | 0 of 1 | — | — | | `linux+nvidia` | ⏳ queued | 0 of 1 | — | — | | `windows+amd` | 🔄 running | 0 of 1 | — | — | | `linux+radv` | 🔄 running | 0 of 1 | — | — | | `intel` | ⏳ queued | 0 of 1 | — | — | | `steamdeck` | ⏳ queued | 0 of 1 | — | — | **`draw-parity`** · frame time p99 (ms) | Target | main | `RX_VK_CMD_FAST=` | `RX_VK_CMD_FAST=0` (reference) | | --- | --- | --- | --- | | `windows+nvidia` | — | — | — | | `linux+nvidia` | — | — | — | | `windows+amd` | — | — | — | | `linux+radv` | — | — | — | | `intel` | — | — | — | | `steamdeck` | — | — | — | <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The plan compares the shipped command-recording fast paths and their disabled fallback against main across NVIDIA, AMD, Intel, RADV, and Steam Deck targets; the Deck target will wait for an online tester. Each configuration runs twice per side, measuring 20 seconds after warm-up in the Market, Hyrule Field, and Fire Temple at an uncapped, CPU-oriented resolution, with stationary screenshots at each location. Crashes, device loss, substantial frame-time regressions, or screenshot differences beyond the allowed tolerance fail the pull request. The switch comparison also checks whether the shipped fast paths regress relative to the PR's fallback. No tester online now matches linux+nvidia, steamdeck: those targets wait 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). - **Matrix:** 2 cells, each on main and the PR: RX_VK_CMD_FAST `` or `0` (PR only). - **draw-parity:** from the repository's save `market-entrance` (settings vsync=2, resolution=4, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 20 s (after 5 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 5 s warm-up), teleport to Fire Temple, take the picture fire-temple to compare with main, measure fire-temple for 20 s (after 5 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run). - **Measured:** crashes, frame times, stutters and hitches, the game's log. - **The PR fails if:** it crashes; or the PR's frame time (p99) with RX_VK_CMD_FAST= is more than 15% above RX_VK_CMD_FAST=0; or a picture differs from main by more than 25%; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or frame time (worst 1%) is more than 15% above main. - **Time:** about 52 min of game runs per tester (8 game starts), plus the two builds. </details> </details>
BeanBot left a comment

Recommendation: Approve. The reported 0.60% FPS improvement compares two switch settings on the PR build, so it does not establish the gain over the base. The renderer paths also need the outstanding Tier 1 hardware runs before the default can be accepted. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change uses descriptor templates and caches command state to reduce replay work. It adds template creation, per-thread caches, recorder packets, and a default-on switch; the net player benefit and cross-platform cost remain unproven.

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

  • L4 tests/test_vk_cmd_fast.py:234: The template parity fixture recreates the template-entry construction instead of exercising the production construction. (more on the line) Do: Exercise the production template-entry builder in the fixture and verify its entries against independently specified expected bindings and packed data.

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

  • L1: The reported switch comparison does not measure the net change against main, including work that still runs with the switch off. When: Both measurement columns use the PR build, which creates descriptor templates during layout initialization regardless of RX_VK_CMD_FAST. The reported 0.60% therefore cannot show whether the shipped build is faster than the base in player settings. Do: Compare the base and PR with interleaved runs in the target and heavy scenes at player settings, reporting average and low FPS and frame times.
  • L2: The changed renderer paths need the outstanding Linux RADV and Steam Deck runs. When: The default-on path changes descriptor updates and command recording on these systems, while the supplied game run covers only Windows NVIDIA. Do: Run the requested push-template and pooled-set parity sweep in Market, Hyrule Field, and Fire Temple on Linux RADV and Steam Deck, with Vulkan validation and frame-time comparisons against the base.
  • L3: Windows AMD Tier 1 behavior and performance have not been measured. When: The default-on descriptor and recorder paths also run on Windows RX 6000–9000, but the supplied run is on an RTX 4060. Do: Run the descriptor parity sweep and an interleaved base-versus-PR frame-time comparison on Windows AMD.

@fix can do L4.

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

  • The maintainer requested @​Beanstalk; no Test Farm tool was available in this review environment. Can the requested farm runs be submitted through the Forgejo?

Checks: Still running: 10 checks.

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

Does it help: Unproven. Three Windows RTX 4060 in-run comparisons report 73.1 versus 72.7 FPS and 0.082 ms lower mean frame time with the switch on, but both sides use PR commit 33b3abd18 rather than comparing with base 4908cc6dad. The 0.60% result is small and was collected at 50% internal resolution.

Other systems: The change affects descriptor updates, push constants, render passes, and recorder ordering on both Windows and Linux, including push and pooled descriptor paths and mesh fallback. The supplied game run covers Windows NVIDIA Market; AMD, Linux RADV, Steam Deck, other scenes, and the stated descriptor parity sweep remain untested.

Switches: RX_VK_CMD_FAST is added as a default-on kill switch and can be flipped through HOS_AB. Its row is present in switches.def; the default is not yet supported by a base comparison or measurements on the other affected Tier 1 systems.

Reviewed: 33b3abd184 against 4908cc6dad: Read the repository rules, PR template, commit and changed-file diffs; inspected the changed descriptor, pass, recorder, test and surrounding call paths. The large renderer files and test fixture were read selectively rather than in full. docs/review-checklist.md and ../Tooling/AGENTS.md were not present.; nothing run (a code review).

Checked and fine:

  • The commit records AI assistance with an Assisted-by trailer.
  • The switch has a switches.def row and is read once per recording.
  • The changed files do not include game-derived outputs, generated shader headers, or third-party files.
  • The hazard fast exit retains the check for targets sampled earlier in the pass.

Testing: No code, tests, or project scripts were run, as required for this review. The supplied targeted test results and Windows NVIDIA game run were considered; CI is still running.

Overlaps and merge order: Not checked: network access is closed.


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

**Recommendation: Approve.** The reported 0.60% FPS improvement compares two switch settings on the PR build, so it does not establish the gain over the base. The renderer paths also need the outstanding Tier 1 hardware runs before the default can be accepted. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change uses descriptor templates and caches command state to reduce replay work. It adds template creation, per-thread caches, recorder packets, and a default-on switch; the net player benefit and cross-platform cost remain unproven. **Should fix (1)**: not blocking, but worth doing before merging. - **L4** `tests/test_vk_cmd_fast.py:234`: The template parity fixture recreates the template-entry construction instead of exercising the production construction. (more on the line) **Do:** Exercise the production template-entry builder in the fixture and verify its entries against independently specified expected bindings and packed data. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The reported switch comparison does not measure the net change against main, including work that still runs with the switch off. *When:* Both measurement columns use the PR build, which creates descriptor templates during layout initialization regardless of RX_VK_CMD_FAST. The reported 0.60% therefore cannot show whether the shipped build is faster than the base in player settings. **Do:** Compare the base and PR with interleaved runs in the target and heavy scenes at player settings, reporting average and low FPS and frame times. - **L2**: The changed renderer paths need the outstanding Linux RADV and Steam Deck runs. *When:* The default-on path changes descriptor updates and command recording on these systems, while the supplied game run covers only Windows NVIDIA. **Do:** Run the requested push-template and pooled-set parity sweep in Market, Hyrule Field, and Fire Temple on Linux RADV and Steam Deck, with Vulkan validation and frame-time comparisons against the base. - **L3**: Windows AMD Tier 1 behavior and performance have not been measured. *When:* The default-on descriptor and recorder paths also run on Windows RX 6000–9000, but the supplied run is on an RTX 4060. **Do:** Run the descriptor parity sweep and an interleaved base-versus-PR frame-time comparison on Windows AMD. `@fix` can do L4. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - The maintainer requested @​Beanstalk; no Test Farm tool was available in this review environment. Can the requested farm runs be submitted through the Forgejo? **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. Three Windows RTX 4060 in-run comparisons report 73.1 versus 72.7 FPS and 0.082 ms lower mean frame time with the switch on, but both sides use PR commit 33b3abd18 rather than comparing with base 4908cc6dadff. The 0.60% result is small and was collected at 50% internal resolution. **Other systems:** The change affects descriptor updates, push constants, render passes, and recorder ordering on both Windows and Linux, including push and pooled descriptor paths and mesh fallback. The supplied game run covers Windows NVIDIA Market; AMD, Linux RADV, Steam Deck, other scenes, and the stated descriptor parity sweep remain untested. **Switches:** RX_VK_CMD_FAST is added as a default-on kill switch and can be flipped through HOS_AB. Its row is present in switches.def; the default is not yet supported by a base comparison or measurements on the other affected Tier 1 systems. **Reviewed:** 33b3abd1848a against 4908cc6dadff: Read the repository rules, PR template, commit and changed-file diffs; inspected the changed descriptor, pass, recorder, test and surrounding call paths. The large renderer files and test fixture were read selectively rather than in full. docs/review-checklist.md and ../Tooling/AGENTS.md were not present.; nothing run (a code review). **Checked and fine:** - The commit records AI assistance with an Assisted-by trailer. - The switch has a switches.def row and is read once per recording. - The changed files do not include game-derived outputs, generated shader headers, or third-party files. - The hazard fast exit retains the check for targets sampled earlier in the pass. **Testing:** No code, tests, or project scripts were run, as required for this review. The supplied targeted test results and Windows NVIDIA game run were considered; CI is still running. **Overlaps and merge order:** Not checked: network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -0,0 +231,4 @@
static void copy_block_attachment(VkCommandBuffer, const Texture&, VkImage, uint32_t, uint32_t, bool) {}
static void texture_transition_layout(VkCommandBuffer, Texture*, VkImageLayout, bool = false) {}
static void texture_written(Texture*, const char*) {}
static void texture_rendered(Texture*) {}
Member

L4 (should fix): The template parity fixture recreates the template-entry construction instead of exercising the production construction.

When: If ensure_layout assigns an incorrect entry offset or stride, the fixture still builds its own correct entries and can pass while the driver reads the wrong descriptors.

Do: Exercise the production template-entry builder in the fixture and verify its entries against independently specified expected bindings and packed data.

**L4** (should fix): The template parity fixture recreates the template-entry construction instead of exercising the production construction. *When:* If ensure_layout assigns an incorrect entry offset or stride, the fixture still builds its own correct entries and can pass while the driver reads the wrong descriptors. **Do:** Exercise the production template-entry builder in the fixture and verify its entries against independently specified expected bindings and packed data.
Owner
@fix
BeanBot force-pushed perf/vk-desc-template-cmds from 33b3abd184
Some checks failed
PR description / Title and description (pull_request_target) Successful in 4s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 0/1 pass, 2 running, 0 queued
beanstalk/linux+nvidia 0/1 pass, 0 running, 2 queued
beanstalk/windows+amd 0/1 pass, 2 running, 0 queued
beanstalk/linux+radv 0/1 pass, 2 running, 0 queued
beanstalk/intel 0/1 pass, 0 running, 2 queued
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
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 0795832263
Some checks failed
PR description / Title and description (pull_request_target) Failing after 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 16s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m11s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m59s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m31s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m40s
CI / Website build and checks (pull_request) Failing after 36s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 28m45s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 42m31s
beanstalk/windows+amd 1/1 fail
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+radv 1/1 fail
beanstalk/intel 0/1 pass, 0 running, 2 queued
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
2026-12-01 15:47:26 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The renderer optimization has a small measured gain with its switch enabled, but its net gain against main and the outstanding AMD and Linux runs remain unproven. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 0795832263. I rebased it onto main (c88b4f3d15). I edited its description to match the change.

Changed

  • Descriptor template parity fixture: Extracted the production entry builder in gpu/vk/vk_draw.cpp:972 and used it in tests/test_vk_cmd_fast.py:268. The fixture checks independently specified bindings, offsets and strides, then compares packed descriptor data. Tests were not run as requested.

Nothing was built or run: the checks run again on the new head.

The change reduces descriptor and draw-recording work, with added caching and recorder-thread complexity. The fixture fix tests the production descriptor-entry builder without removing the optimization.

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

  • L1: The reported switch comparison does not measure the net change against main, including work that still runs with the switch off. When: Both measurement columns use the PR build, which creates descriptor templates during layout initialization regardless of RX_VK_CMD_FAST. The reported 0.60% therefore cannot show whether the shipped build is faster than the base in player settings. Do: Compare the base and PR with interleaved runs in the target and heavy scenes at player settings, reporting average and low FPS and frame times.
  • L2: The changed renderer paths need the outstanding Linux RADV and Steam Deck runs. When: The default-on path changes descriptor updates and command recording on these systems, while the supplied game run covers only Windows NVIDIA. Do: Run the requested push-template and pooled-set parity sweep in Market, Hyrule Field, and Fire Temple on Linux RADV and Steam Deck, with Vulkan validation and frame-time comparisons against the base.
  • L3: Windows AMD Tier 1 behavior and performance have not been measured. When: The default-on descriptor and recorder paths also run on Windows RX 6000–9000, but the supplied run is on an RTX 4060. Do: Run the descriptor parity sweep and an interleaved base-versus-PR frame-time comparison on Windows AMD.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (1; not asked for, not blocking)
  • The base diff also contains earlier DLSS, video, storage-buffer and documentation commits beyond the listed command-recording change.
More: does it help, other systems, switches, what was read

Does it help: Unproven against main. The reported RTX 4060 comparison on one PR build shows 73.1 versus 72.7 FPS and a 0.082 ms mean frame-time reduction across 89 paired periods, but it does not include PR work that runs with the switch off.

Other systems: The changed Vulkan paths can affect Linux RADV, Steam Deck and Windows AMD drivers; their requested game runs remain outstanding. Windows NVIDIA testing reported no visual or Vulkan errors.

Switches: RX_VK_CMD_FAST is added, defaults to 1, and supports HOS_AB. The switch-on comparison favors that default on the tested NVIDIA system; the net gain against main and other hardware remain unmeasured.

Reviewed: 0795832263 against c88b4f3d15: Read the BeanBot fix diff, the descriptor-entry builder and its caller, and the descriptor parity fixture. Read AGENTS.md, CONTRIBUTING.md and the PR template; docs/review-checklist.md and the adjacent Tooling AGENTS.md were unavailable. Skimmed the base diff and commit list; the full changed code was not read.; nothing run (a code review).

Checked and fine:

  • The extracted descriptor-entry builder preserves the prior production logic, and the fixture independently checks its entries and packed data.

Testing: No commands from the project were run. The author reports Windows NVIDIA game testing; the updated fixture and CI have not yet run.

Overlaps and merge order: The base diff includes earlier commits identified as #2807, #2930, #2913, #2871, #2942 and #2939; their merge status was not verified.


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

**Recommendation: Approve.** The code is ready: only testing is left. The renderer optimization has a small measured gain with its switch enabled, but its net gain against main and the outstanding AMD and Linux runs remain unproven. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 0795832263b8. I rebased it onto `main` (c88b4f3d1573). I edited its description to match the change. **Changed** - **Descriptor template parity fixture**: Extracted the production entry builder in gpu/vk/vk_draw.cpp:972 and used it in tests/test_vk_cmd_fast.py:268. The fixture checks independently specified bindings, offsets and strides, then compares packed descriptor data. Tests were not run as requested. Nothing was built or run: the checks run again on the new head. The change reduces descriptor and draw-recording work, with added caching and recorder-thread complexity. The fixture fix tests the production descriptor-entry builder without removing the optimization. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The reported switch comparison does not measure the net change against main, including work that still runs with the switch off. *When:* Both measurement columns use the PR build, which creates descriptor templates during layout initialization regardless of RX_VK_CMD_FAST. The reported 0.60% therefore cannot show whether the shipped build is faster than the base in player settings. **Do:** Compare the base and PR with interleaved runs in the target and heavy scenes at player settings, reporting average and low FPS and frame times. - **L2**: The changed renderer paths need the outstanding Linux RADV and Steam Deck runs. *When:* The default-on path changes descriptor updates and command recording on these systems, while the supplied game run covers only Windows NVIDIA. **Do:** Run the requested push-template and pooled-set parity sweep in Market, Hyrule Field, and Fire Temple on Linux RADV and Steam Deck, with Vulkan validation and frame-time comparisons against the base. - **L3**: Windows AMD Tier 1 behavior and performance have not been measured. *When:* The default-on descriptor and recorder paths also run on Windows RX 6000–9000, but the supplied run is on an RTX 4060. **Do:** Run the descriptor parity sweep and an interleaved base-versus-PR frame-time comparison on Windows AMD. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The base diff also contains earlier DLSS, video, storage-buffer and documentation commits beyond the listed command-recording change. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against main. The reported RTX 4060 comparison on one PR build shows 73.1 versus 72.7 FPS and a 0.082 ms mean frame-time reduction across 89 paired periods, but it does not include PR work that runs with the switch off. **Other systems:** The changed Vulkan paths can affect Linux RADV, Steam Deck and Windows AMD drivers; their requested game runs remain outstanding. Windows NVIDIA testing reported no visual or Vulkan errors. **Switches:** RX_VK_CMD_FAST is added, defaults to 1, and supports HOS_AB. The switch-on comparison favors that default on the tested NVIDIA system; the net gain against main and other hardware remain unmeasured. **Reviewed:** 0795832263b8 against c88b4f3d1573: Read the BeanBot fix diff, the descriptor-entry builder and its caller, and the descriptor parity fixture. Read AGENTS.md, CONTRIBUTING.md and the PR template; docs/review-checklist.md and the adjacent Tooling AGENTS.md were unavailable. Skimmed the base diff and commit list; the full changed code was not read.; nothing run (a code review). **Checked and fine:** - The extracted descriptor-entry builder preserves the prior production logic, and the fixture independently checks its entries and packed data. **Testing:** No commands from the project were run. The author reports Windows NVIDIA game testing; the updated fixture and CI have not yet run. **Overlaps and merge order:** The base diff includes earlier commits identified as #2807, #2930, #2913, #2871, #2942 and #2939; their merge status was not verified. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
Author
Contributor

Thank you @fix and @BeanBot! Confirmed commit 079583226 (which extracted the production descriptor template entry builder to resolve L4) passes all local checks: tests/test_vk_cmd_fast.py under both clang++ and g++ (-std=c++20 -Wall -Wextra -Werror with Vulkan headers), tests/test_hos_ab.py --cc clang, tests/test_tls_objects.py, and tests/test_vk_braces.py. Acknowledged on L1–L3 (base-vs-HEAD measurements at player settings and Tier-1 Linux RADV / Steam Deck / Windows AMD runs).

Thank you `@fix` and `@BeanBot`! Confirmed commit `079583226` (which extracted the production descriptor template entry builder to resolve L4) passes all local checks: `tests/test_vk_cmd_fast.py` under both `clang++` and `g++` (`-std=c++20 -Wall -Wextra -Werror` with Vulkan headers), `tests/test_hos_ab.py --cc clang`, `tests/test_tls_objects.py`, and `tests/test_vk_braces.py`. Acknowledged on L1–L3 (base-vs-HEAD measurements at player settings and Tier-1 Linux RADV / Steam Deck / Windows AMD runs).
Owner

@beanstalk

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

Commit 0795832 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm cannot run the requested CI test suite or enable Vulkan validation through this plan, and these scenes do not prove that both descriptor-template branches or their fallback were exercised.
⚠️ Note: The probes do not measure cmds_ms, draw_ms or 0.1% lows; the reported 0.60% gain is smaller than the regression thresholds and may be indistinguishable from run-to-run noise.

Started at 19:37 UTC.

Estimate: done in about 4 h 45 min, from the queue and the testers online now; some jobs can't start yet.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ✅ pass (an outlier) 2 1 2 18.5 → 17.8 (−4%) — none
windows+amd ❌ fail (an outlier) 2 1 2 39.0 → 38.9 (−0%) — none
linux+radv ❌ fail (an outlier) 2 1 2 13.8 → 13.9 (+1%) — none
intel ⏳ queued 0 of 1 — — —
steamdeck ⏳ queued 0 of 1 — — —

Why it failed

  • windows+amd: command-parity screenshot.max_diff: 0.5 → 1.0; limit 0.2
  • linux+radv: command-parity fire-temple.frametime_p99_ms.max_delta_pct: 9.7 → 11.9 (+21.8%); limit 15.0
What was tested

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

The farm will compare the default-on PR against main on Windows NVIDIA, Windows AMD, Linux RADV, Intel and Steam Deck hardware. Three interleaved starts per side will visit Market, Hyrule Field and Fire Temple, capturing stationary pictures and measuring 30 seconds of uncapped gameplay at each place after warm-up. The run records frame times and FPS at a fixed 720p output size to emphasize CPU-side command work. A crash, picture difference above 0.2, or a frame-time regression above 15% fails the PR.

  • Where: windows+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports).
  • command-parity: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up), teleport to Fire Temple, take the picture fire-temple to compare with main, measure fire-temple for 30 s (after 10 s warm-up); 3 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, draws and frame rate.
  • The PR fails if: it crashes; or a picture differs from main by more than 20%; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main.
  • Time: about 43 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+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
Scene: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 After: this PR @ 0795832
command-parity · field · frame time (p99) (ms) 18.5 17.8 (−4%)
command-parity · market · frame time (p99) (ms) 29.0 26.5 (−9%)
command-parity · fire-temple · frame time (p99) (ms) 18.5 20.2 (+9%)
command-parity · field · frame time (worst 1%) (ms) 19.6 18.8 (−4%)
command-parity · market · frame time (worst 1%) (ms) 31.6 27.9 (−12%)
command-parity · fire-temple · frame time (worst 1%) (ms) 21.8 23.4 (+7%)

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+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM`  
Scene: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 | After: this PR @ 0795832 |
|---|---|---|
| command-parity · field · frame time (p99) (ms) | 18.5 | 17.8 (−4%) |
| command-parity · market · frame time (p99) (ms) | 29.0 | 26.5 (−9%) |
| command-parity · fire-temple · frame time (p99) (ms) | 18.5 | 20.2 (+9%) |
| command-parity · field · frame time (worst 1%) (ms) | 19.6 | 18.8 (−4%) |
| command-parity · market · frame time (worst 1%) (ms) | 31.6 | 27.9 (−12%) |
| command-parity · fire-temple · frame time (worst 1%) (ms) | 21.8 | 23.4 (+7%) |

**Flags and settings**

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

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

Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM; 2: windows+amd+amd-proprietary+igpu+window+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
Scene: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 After: this PR @ 0795832
command-parity · field · frame time (p99) (ms) 39.0 38.9 (−0%)
command-parity · market · frame time (p99) (ms) 44.1 43.5 (−1%)
command-parity · fire-temple · frame time (p99) (ms) 40.2 42.5 (+6%)
command-parity · field · frame time (worst 1%) (ms) 39.8 40.0 (+0%)
command-parity · market · frame time (worst 1%) (ms) 49.5 46.2 (−7%)
command-parity · fire-temple · frame time (worst 1%) (ms) 42.1 44.9 (+6%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM`  
Scene: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 | After: this PR @ 0795832 |
|---|---|---|
| command-parity · field · frame time (p99) (ms) | 39.0 | 38.9 (−0%) |
| command-parity · market · frame time (p99) (ms) | 44.1 | 43.5 (−1%) |
| command-parity · fire-temple · frame time (p99) (ms) | 40.2 | 42.5 (+6%) |
| command-parity · field · frame time (worst 1%) (ms) | 39.8 | 40.0 (+0%) |
| command-parity · market · frame time (worst 1%) (ms) | 49.5 | 46.2 (−7%) |
| command-parity · fire-temple · frame time (worst 1%) (ms) | 42.1 | 44.9 (+6%) |

**Flags and settings**

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

Verdict: fail on linux+radv (2 reports): command-parity fire-temple.frametime_p99_ms.max_delta_pct (+21.8%) failed.

Hardware: 1: linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 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: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 After: this PR @ 0795832
command-parity · field · frame time (p99) (ms) 13.8 13.9 (+1%)
command-parity · market · frame time (p99) (ms) 17.4 18.0 (+4%)
command-parity · fire-temple · frame time (p99) (ms) 14.9 15.7 (+5%)
command-parity · field · frame time (worst 1%) (ms) 15.2 15.4 (+1%)
command-parity · market · frame time (worst 1%) (ms) 21.1 20.5 (−3%)
command-parity · fire-temple · frame time (worst 1%) (ms) 17.9 18.3 (+2%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+radv (2 reports): `command-parity fire-temple.frametime_p99_ms.max_delta_pct (+21.8%)` failed.

Hardware: 1: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 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: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 | After: this PR @ 0795832 |
|---|---|---|
| command-parity · field · frame time (p99) (ms) | 13.8 | 13.9 (+1%) |
| command-parity · market · frame time (p99) (ms) | 17.4 | 18.0 (+4%) |
| command-parity · fire-temple · frame time (p99) (ms) | 14.9 | 15.7 (+5%) |
| command-parity · field · frame time (worst 1%) (ms) | 15.2 | 15.4 (+1%) |
| command-parity · market · frame time (worst 1%) (ms) | 21.1 | 20.5 (−3%) |
| command-parity · fire-temple · frame time (worst 1%) (ms) | 17.9 | 18.3 (+2%) |

**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+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
windows+amd 1 windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
windows+amd 2 windows+amd+amd-proprietary+igpu+window+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
linux+radv 1 linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 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
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>0795832</code> (the newer results are in a comment below)</summary> Commit `0795832` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2949) ⚠️ **Note:** The farm cannot run the requested CI test suite or enable Vulkan validation through this plan, and these scenes do not prove that both descriptor-template branches or their fallback were exercised. ⚠️ **Note:** The probes do not measure cmds_ms, draw_ms or 0.1% lows; the reported 0.60% gain is smaller than the regression thresholds and may be indistinguishable from run-to-run noise. Started at 19:37 UTC. **Estimate:** done in about 4 h 45 min, from the queue and the testers online now; some jobs can't start yet. | 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_8952a436ad9fdd15) [2](https://beanstalk.magicbean.dev/reports/rp_c24952b890c99b36) | 18.5 → 17.8 (−4%) | — | none | | `windows+amd` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_c35e98e00b41211e) [2](https://beanstalk.magicbean.dev/reports/rp_515999c6e4741629) | 39.0 → 38.9 (−0%) | — | none | | `linux+radv` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_68bd7c864349ac5d) [2](https://beanstalk.magicbean.dev/reports/rp_aa7586c0e9882a54) | 13.8 → 13.9 (+1%) | — | none | | `intel` | ⏳ queued | 0 of 1 | — | — | — | | `steamdeck` | ⏳ queued | 0 of 1 | — | — | — | **Why it failed** - `windows+amd`: `command-parity` `screenshot.max_diff`: `0.5 → 1.0; limit 0.2` - `linux+radv`: `command-parity` `fire-temple.frametime_p99_ms.max_delta_pct`: `9.7 → 11.9 (+21.8%); limit 15.0` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The farm will compare the default-on PR against main on Windows NVIDIA, Windows AMD, Linux RADV, Intel and Steam Deck hardware. Three interleaved starts per side will visit Market, Hyrule Field and Fire Temple, capturing stationary pictures and measuring 30 seconds of uncapped gameplay at each place after warm-up. The run records frame times and FPS at a fixed 720p output size to emphasize CPU-side command work. A crash, picture difference above 0.2, or a frame-time regression above 15% fails the PR. - **Where:** windows+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports). - **command-parity:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up), teleport to Fire Temple, take the picture fire-temple to compare with main, measure fire-temple for 30 s (after 10 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate. - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or frame time (p99) is more than 15% above main; or frame time (worst 1%) is more than 15% above main. - **Time:** about 43 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+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 | After: this PR @ 0795832 | |---|---|---| | command-parity · field · frame time (p99) (ms) | 18.5 | 17.8 (−4%) | | command-parity · market · frame time (p99) (ms) | 29.0 | 26.5 (−9%) | | command-parity · fire-temple · frame time (p99) (ms) | 18.5 | 20.2 (+9%) | | command-parity · field · frame time (worst 1%) (ms) | 19.6 | 18.8 (−4%) | | command-parity · market · frame time (worst 1%) (ms) | 31.6 | 27.9 (−12%) | | command-parity · fire-temple · frame time (worst 1%) (ms) | 21.8 | 23.4 (+7%) | **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+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 | After: this PR @ 0795832 | |---|---|---| | command-parity · field · frame time (p99) (ms) | 18.5 | 17.8 (−4%) | | command-parity · market · frame time (p99) (ms) | 29.0 | 26.5 (−9%) | | command-parity · fire-temple · frame time (p99) (ms) | 18.5 | 20.2 (+9%) | | command-parity · field · frame time (worst 1%) (ms) | 19.6 | 18.8 (−4%) | | command-parity · market · frame time (worst 1%) (ms) | 31.6 | 27.9 (−12%) | | command-parity · fire-temple · frame time (worst 1%) (ms) | 21.8 | 23.4 (+7%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** fail on windows+amd (2 reports): `command-parity screenshot.max_diff` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 | After: this PR @ 0795832 | |---|---|---| | command-parity · field · frame time (p99) (ms) | 39.0 | 38.9 (−0%) | | command-parity · market · frame time (p99) (ms) | 44.1 | 43.5 (−1%) | | command-parity · fire-temple · frame time (p99) (ms) | 40.2 | 42.5 (+6%) | | command-parity · field · frame time (worst 1%) (ms) | 39.8 | 40.0 (+0%) | | command-parity · market · frame time (worst 1%) (ms) | 49.5 | 46.2 (−7%) | | command-parity · fire-temple · frame time (worst 1%) (ms) | 42.1 | 44.9 (+6%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+amd (2 reports): `command-parity screenshot.max_diff` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 | After: this PR @ 0795832 | |---|---|---| | command-parity · field · frame time (p99) (ms) | 39.0 | 38.9 (−0%) | | command-parity · market · frame time (p99) (ms) | 44.1 | 43.5 (−1%) | | command-parity · fire-temple · frame time (p99) (ms) | 40.2 | 42.5 (+6%) | | command-parity · field · frame time (worst 1%) (ms) | 39.8 | 40.0 (+0%) | | command-parity · market · frame time (worst 1%) (ms) | 49.5 | 46.2 (−7%) | | command-parity · fire-temple · frame time (worst 1%) (ms) | 42.1 | 44.9 (+6%) | **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:** fail on linux+radv (2 reports): `command-parity fire-temple.frametime_p99_ms.max_delta_pct (+21.8%)` failed. Hardware: 1: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 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: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 | After: this PR @ 0795832 | |---|---|---| | command-parity · field · frame time (p99) (ms) | 13.8 | 13.9 (+1%) | | command-parity · market · frame time (p99) (ms) | 17.4 | 18.0 (+4%) | | command-parity · fire-temple · frame time (p99) (ms) | 14.9 | 15.7 (+5%) | | command-parity · field · frame time (worst 1%) (ms) | 15.2 | 15.4 (+1%) | | command-parity · market · frame time (worst 1%) (ms) | 21.1 | 20.5 (−3%) | | command-parity · fire-temple · frame time (worst 1%) (ms) | 17.9 | 18.3 (+2%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+radv (2 reports): `command-parity fire-temple.frametime_p99_ms.max_delta_pct (+21.8%)` failed. Hardware: 1: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 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: command-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); command-parity: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up, fire-temple 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 @ c88b4f3 | After: this PR @ 0795832 | |---|---|---| | command-parity · field · frame time (p99) (ms) | 13.8 | 13.9 (+1%) | | command-parity · market · frame time (p99) (ms) | 17.4 | 18.0 (+4%) | | command-parity · fire-temple · frame time (p99) (ms) | 14.9 | 15.7 (+5%) | | command-parity · field · frame time (worst 1%) (ms) | 15.2 | 15.4 (+1%) | | command-parity · market · frame time (worst 1%) (ms) | 21.1 | 20.5 (−3%) | | command-parity · fire-temple · frame time (worst 1%) (ms) | 17.9 | 18.3 (+2%) | **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_8952a436ad9fdd15) | 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_c24952b890c99b36) | windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_c35e98e00b41211e) | 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_515999c6e4741629) | 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_68bd7c864349ac5d) | linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_aa7586c0e9882a54) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` | </details> </details>
Owner

AMD Lab Market A/B on PR head 0795832263b8, using RX_VK_CMD_FAST=0 and RX_VK_CMD_FAST=1 on the same build.

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

Metric A (0) B (1)
Average FPS, each capture 54.90 / 55.94 / 58.16 56.70 / 56.46 / 53.44
Average FPS, median 55.94 56.46
1% low FPS (1000 ÷ p99), median 27.00 28.79
Median frame time 17.43 ms 17.50 ms
p99 frame time, median 37.04 ms 34.73 ms
Frames of 50 ms or more, each capture 14 / 7 / 3 5 / 6 / 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 43 / 31 / 6 frames on side A and 11 / 27 / 44 on side B across the three captures. The FPS and tail numbers include those frames.

AMD Lab Market A/B on PR head `0795832263b8`, using `RX_VK_CMD_FAST=0` and `RX_VK_CMD_FAST=1` on the same build. **Within the run-to-run spread.** Median average FPS changed by **+0.93%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 54.90 / 55.94 / 58.16 | 56.70 / 56.46 / 53.44 | | Average FPS, median | 55.94 | 56.46 | | 1% low FPS (1000 ÷ p99), median | 27.00 | 28.79 | | Median frame time | 17.43 ms | 17.50 ms | | p99 frame time, median | 37.04 ms | 34.73 ms | | Frames of 50 ms or more, each capture | 14 / 7 / 3 | 5 / 6 / 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 43 / 31 / 6 frames on side A and 11 / 27 / 44 on side B across the three captures. The FPS and tail numbers include those frames.
Owner
@rebase
Member

I rebased this pull request onto main (b40214d2bb): the new head is f3cbb279d5.

Conflicts resolved

  • gpu/vk/vk_draw.cpp: Kept both branches’ recording setup and disturbance handling.
  • tests/test_hos_ab.py: Kept both switch registrations.

Nothing was built or run: read the resolution before merging.


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

I rebased this pull request onto `main` (b40214d2bb8d): the new head is f3cbb279d591. **Conflicts resolved** - gpu/vk/vk_draw.cpp: Kept both branches’ recording setup and disturbance handling. - tests/test_hos_ab.py: Kept both switch registrations. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed perf/vk-desc-template-cmds from 0795832263
Some checks failed
PR description / Title and description (pull_request_target) Failing after 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 16s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m11s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 3m59s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m31s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 7m40s
CI / Website build and checks (pull_request) Failing after 36s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 28m45s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 42m31s
beanstalk/windows+amd 1/1 fail
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+radv 1/1 fail
beanstalk/intel 0/1 pass, 0 running, 2 queued
beanstalk/steamdeck 0/1 pass, 0 running, 2 queued
to f3cbb279d5
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) Successful in 9s
CI / Third-party parts and guide screenshots (pull_request) Failing after 12s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Failing after 15s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Successful in 4m35s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 1m54s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 3m44s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 3m53s
CI / Website build and checks (pull_request) Failing after 32s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 14m57s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 40m28s
2026-12-02 21:20:54 +00:00
Compare
Member

Beanstalk test farm

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

Recommendation: Approve. The code is ready: only testing is left. The net performance gain against main remains unproven, and the required Steam Deck and Windows AMD results are outstanding. The Linux RADV A/B result is within run-to-run spread. Recommend approval; not approved on the forge.

The change reduces descriptor and command-recording work, with a default-on switch to restore the earlier paths. It adds renderer and recorder complexity whose net cost and benefit against main are not yet measured.

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

  • L1: The reported switch comparison does not measure the net change against main, including work that still runs with the switch off. When: Both measurement columns use the PR build, which creates descriptor templates during layout initialization regardless of RX_VK_CMD_FAST. The reported 0.60% therefore cannot show whether the shipped build is faster than the base in player settings. Do: Compare the base and PR with interleaved runs in the target and heavy scenes at player settings, reporting average and low FPS and frame times.
  • L2: The changed renderer paths still need a Steam Deck game run. When: The Linux RX 580 run does not exercise Steam Deck hardware and its driver environment. Do: Run the changed descriptor and draw paths on Steam Deck and report behavior and performance.
  • L3: Windows AMD Tier 1 behavior and performance have not been measured. When: The default-on descriptor and recorder paths also run on Windows RX 6000–9000, but the supplied run is on an RTX 4060. Do: Run the descriptor parity sweep and an interleaved base-versus-PR frame-time comparison on Windows AMD.

Since the last review (on 0795832263)
Still open: L1 (The reported switch comparison does not measure the net change against main, including wor…); L2 (The changed renderer paths still need a Steam Deck game run.); L3 (Windows AMD Tier 1 behavior and performance have not been measured.)

Checks: Still running: 11 checks.

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

Does it help: Unproven. The author's Windows NVIDIA switch comparison reports +0.60% FPS across 89 paired periods, but compares two settings on the PR build rather than the PR against main. The Linux RX 580 comparison reports a +0.93% median average FPS change within run-to-run spread.

Other systems: The changed Vulkan paths affect both push and allocated descriptor sets, recorder ordering, pass reuse and draw state across drivers and platforms. Windows NVIDIA was exercised in Market; Linux RADV has an A/B result, while Steam Deck and Windows AMD game results remain outstanding.

Switches: RX_VK_CMD_FAST is added, defaults on, and can be disabled with 0 or changed between recordings through HOS_AB. Its default's net benefit against main and behavior on the outstanding systems are not established.

Reviewed: f3cbb279d5 against b40214d2bb: Read the repository rules and PR template, the commit list, the renderer and recorder diffs, and the reported runs. Skimmed the test diff; the full changed source files and all dependent code were not read in full.; nothing run (a code review).

Checked and fine:

  • The author reports the production descriptor-template fixture passing with clang++ and g++.
  • The Linux RADV report includes alternating captures and identifies shader or pipeline activity in the measurements.

Testing: No commands that build or run the project were executed. The reported Windows NVIDIA run and Linux RADV A/B are available; CI is still running.

Overlaps and merge order: none found


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

**Recommendation: Approve.** The code is ready: only testing is left. The net performance gain against main remains unproven, and the required Steam Deck and Windows AMD results are outstanding. The Linux RADV A/B result is within run-to-run spread. Recommend approval; not approved on the forge. The change reduces descriptor and command-recording work, with a default-on switch to restore the earlier paths. It adds renderer and recorder complexity whose net cost and benefit against main are not yet measured. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The reported switch comparison does not measure the net change against main, including work that still runs with the switch off. *When:* Both measurement columns use the PR build, which creates descriptor templates during layout initialization regardless of RX_VK_CMD_FAST. The reported 0.60% therefore cannot show whether the shipped build is faster than the base in player settings. **Do:** Compare the base and PR with interleaved runs in the target and heavy scenes at player settings, reporting average and low FPS and frame times. - **L2**: The changed renderer paths still need a Steam Deck game run. *When:* The Linux RX 580 run does not exercise Steam Deck hardware and its driver environment. **Do:** Run the changed descriptor and draw paths on Steam Deck and report behavior and performance. - **L3**: Windows AMD Tier 1 behavior and performance have not been measured. *When:* The default-on descriptor and recorder paths also run on Windows RX 6000–9000, but the supplied run is on an RTX 4060. **Do:** Run the descriptor parity sweep and an interleaved base-versus-PR frame-time comparison on Windows AMD. **Since the last review** (on 0795832263b8) Still open: L1 (The reported switch comparison does not measure the net change against main, including wor…); L2 (The changed renderer paths still need a Steam Deck game run.); L3 (Windows AMD Tier 1 behavior and performance have not been measured.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. The author's Windows NVIDIA switch comparison reports +0.60% FPS across 89 paired periods, but compares two settings on the PR build rather than the PR against main. The Linux RX 580 comparison reports a +0.93% median average FPS change within run-to-run spread. **Other systems:** The changed Vulkan paths affect both push and allocated descriptor sets, recorder ordering, pass reuse and draw state across drivers and platforms. Windows NVIDIA was exercised in Market; Linux RADV has an A/B result, while Steam Deck and Windows AMD game results remain outstanding. **Switches:** RX_VK_CMD_FAST is added, defaults on, and can be disabled with 0 or changed between recordings through HOS_AB. Its default's net benefit against main and behavior on the outstanding systems are not established. **Reviewed:** f3cbb279d591 against b40214d2bb8d: Read the repository rules and PR template, the commit list, the renderer and recorder diffs, and the reported runs. Skimmed the test diff; the full changed source files and all dependent code were not read in full.; nothing run (a code review). **Checked and fine:** - The author reports the production descriptor-template fixture passing with clang++ and g++. - The Linux RADV report includes alternating captures and identifies shader or pipeline activity in the measurements. **Testing:** No commands that build or run the project were executed. The reported Windows NVIDIA run and Linux RADV A/B are available; CI is still running. **Overlaps and merge order:** none found </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch perf/vk-desc-template-cmds 2026-12-02 21:28:45 +00:00
Author
Contributor

Thank you @HumanBean for the farm run and the AMD Lab run, and @BeanBot for the rebase. This PR is merged now (2eb2f9f1f), so this comment only records what the results show; nothing was pushed.

AMD Lab (Linux, RX 580, RADV), RX_VK_CMD_FAST=0 against 1 on 0795832: within the run-to-run spread. Median average FPS 55.94 → 56.46 (+0.93 %), p99 frame time 37.04 → 34.73 ms, frames of 50 ms or more 14 / 7 / 3 against 5 / 6 / 12. No measurable change on that machine.

Beanstalk on 0795832 against main c88b4f3 (Market, Hyrule Field, Fire Temple): windows+nvidia passed, p99 18.5 → 17.8 ms. The two ❌ are not regressions in my reading of the reports:

  • windows+amd, screenshot.max_diff: the failing report is a Ryzen 5 5600G iGPU running at about 14 fps. Its Market picture from main is a black loading screen and the PR's is the rendered Market, which is where the 0.79 comes from (main against itself: 0). Field is 0.96 against main's own 0.46 on the same slow PC. The other Windows AMD report (RX 9070 XT) passed with Market 0.137 (main against itself 0.161) and Fire Temple 0.089. Its p99 frame times: Market 12.45 → 12.43 ms, Fire Temple 11.22 → 11.06 ms.
  • linux+radv, Fire Temple p99 +21.8 %: RX 9070 XT, 9.74 → 11.86 ms, while the other RADV report (Radeon 890M) went 20.03 → 19.52 ms (−2.6 %) in the same scene, with Market and Field within ±1.3 %. Pictures matched main on both (Fire Temple 0.052 and 0.092, main against itself 0.055 and 0.083).
  • intel and steamdeck were cancelled when the branch was rebased, so they have no results.

Review items: L3 (Windows AMD) now has the two farm reports above against main, but not the descriptor parity sweep. L1 (base against head at player settings) and L2 (Steam Deck game run) have not run. They need the farm or someone with the hardware; I have one Windows RTX 4060 here and ran nothing new for this comment.

Thank you @HumanBean for the farm run and the AMD Lab run, and @BeanBot for the rebase. This PR is merged now (2eb2f9f1f), so this comment only records what the results show; nothing was pushed. **AMD Lab (Linux, RX 580, RADV), `RX_VK_CMD_FAST=0` against `1` on `0795832`:** within the run-to-run spread. Median average FPS 55.94 → 56.46 (+0.93 %), p99 frame time 37.04 → 34.73 ms, frames of 50 ms or more 14 / 7 / 3 against 5 / 6 / 12. No measurable change on that machine. **Beanstalk on `0795832` against main `c88b4f3`** (Market, Hyrule Field, Fire Temple): windows+nvidia passed, p99 18.5 → 17.8 ms. The two ❌ are not regressions in my reading of the reports: - **windows+amd, `screenshot.max_diff`:** the failing report is a Ryzen 5 5600G iGPU running at about 14 fps. Its Market picture from main is a black loading screen and the PR's is the rendered Market, which is where the 0.79 comes from (main against itself: 0). Field is 0.96 against main's own 0.46 on the same slow PC. The other Windows AMD report (RX 9070 XT) passed with Market 0.137 (main against itself 0.161) and Fire Temple 0.089. Its p99 frame times: Market 12.45 → 12.43 ms, Fire Temple 11.22 → 11.06 ms. - **linux+radv, Fire Temple p99 +21.8 %:** RX 9070 XT, 9.74 → 11.86 ms, while the other RADV report (Radeon 890M) went 20.03 → 19.52 ms (−2.6 %) in the same scene, with Market and Field within ±1.3 %. Pictures matched main on both (Fire Temple 0.052 and 0.092, main against itself 0.055 and 0.083). - intel and steamdeck were cancelled when the branch was rebased, so they have no results. **Review items:** L3 (Windows AMD) now has the two farm reports above against main, but not the descriptor parity sweep. L1 (base against head at player settings) and L2 (Steam Deck game run) have not run. They need the farm or someone with the hardware; I have one Windows RTX 4060 here and ran nothing new for this comment.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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!2949
No description provided.