perf(vk): inline PushedFast shadow & POD vkCmdPushDescriptorSetKHR ring packing #2975

Open
siantm wants to merge 1 commit from siantm/Longshot:perf/vk-binddesc-push-fast into main
Contributor

Summary

Speeds up push-descriptor comparison and recording-ring serialization (FT_BINDDESC + FT_PUSHCALL / vkCmdPushDescriptorSetKHR in vk_recorder.h) under RX_VK_PUSH_DESC_FAST. The switch ships off (0): the test farm and the AMD Lab measured it slower on AMD (Steam Deck, RX 580, RX 7900 XTX), see Measurements; RX_VK_PUSH_DESC_FAST=1 turns it on for further measurement.

Before this change:

  1. Every bind_descriptors() push scanned DescWriter::imgs linearly to check for a null sampler, stored/compared descriptors in Pushed::words + Pushed::at offset vectors (words_same_store()), and built changed inside a heap-backed std::vector<VkWriteDescriptorSet>.
  2. Each vkCmdPushDescriptorSetKHR encoded onto the recorder ring via general-purpose Enc serialization + out-of-line pointer chasing across every VkWriteDescriptorSet element and its pBufferInfo/pImageInfo/pTexelBufferView sub-arrays.

With RX_VK_PUSH_DESC_FAST:

  1. build_descriptors() notes DescWriter::has_unbindable_image (no sampler, or no view without nullDescriptor: the same rule as the walk) as each sampled image is appended (DescWriter::push_sampled), eliminating the post-build linear scan.
  2. push_desc_fast.h introduces PushedFast: a flat uint64_t shadow word array paired with inline WriteMeta (up to kInlineWrites = 64 writes, heap fallback above) plus a stack VkWriteDescriptorSet changed_buf[64] in vk_draw.cpp, removing Pushed::at indirection and heap vector traffic on common draws.
  3. vk_recorder.h packs common vkCmdPushDescriptorSetKHR calls (up to 64 writes / 256 descriptors, pNext == nullptr, dstSet == VK_NULL_HANDLE, controllable via atomic rec::g_push_desc_fast) as a single compact exact-size POD ring record (through RX_VK_RECORDER_FAST's begin_fast/finish_fast, decoded in dispatch_fast) and replays them directly from stack arrays on the recorder thread. Full pushes keep RX_VK_CMD_FAST's push template.

First read push_desc_fast.h, vk_recorder.h, and vk_draw.cpp.

Testing

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

  • python -X utf8 -I tests/test_vk_push_desc_fast.py --cxx clang++ --headers ... passed (3,000-op PushedFast oracle parity against words_same_store, compact POD ring round-trip with poisoned caller memory, ring wrap-around, n==0, over-cap fallback, live g_push_desc_fast HOS_AB toggle, source wiring, and all 4 broken variants caught).
  • python -X utf8 -I tests/test_recorder_sync.py --cxx clang++ --headers ... --bench 20000, tests/test_recorder_parts.py, tests/test_hos_ab.py, tests/test_thinlto_tls.py, and tests/test_saveload_warm_cache.py passed.
  • Live Market smoke (RX_VK_PUSH_DESC_FAST=1, 15 s): 925 frames, 0 cold frames, RUN_ERROR=None.
  • Live Market parity (RX_VK_PUSH_DESC_FAST=check, 25 s): 1,692 frames, 12,300,000+ checks, 0 mismatches, RUN_ERROR=None.
  • Queued in-run HOS_AB (HOS_AB=RX_VK_PUSH_DESC_FAST=0,3,0, 5×90 s, 147 paired periods in Market): 5/5 runs won, zero crashes/errors.
  • Rebased onto main @ 0aeb6858 (2026-12-03): tests/run_all.py --exact of test_vk_push_desc_fast, test_vk_recorder_fast, test_recorder_sync, test_hos_ab, test_switch_table, test_vk_cmd_fast, test_push_state, test_sampler_admission, test_recording_admission, test_ub_snap_scope, and test_recorder_parts alone, passed (Windows 11, llvm-mingw clang++); clang++ -fsyntax-only of gpu/vk/vk_draw.cpp and gpu/vk/vk_replay.cpp passed. No game run on the rebased head.
  • Test farm on 568a6c4 (default on, against main @ 495ed9fe2): passed on the nvidia, intel and linux+radv targets; failed on AMD RX 7900 XTX (Market median frame time 11.95 -> 58.73 ms in 2 of 3 starts, mean FPS unchanged), Steam Deck (Market 1% low 48.23 -> 62.74 ms) and Windows RTX 4070 (Field p99 7.34 -> 9.66 ms; screenshot.max_diff 0.495, main's picture the broken one). RX_VK_PUSH_DESC_FAST=check logged no mismatch on any target.
  • HumanBean, Linux RTX 3090 (Market, =0 vs =1, 2 pairs, preliminary): 98.4 -> 120.5 FPS on average; AMD Lab, Linux RX 580 (3 pairs): 57.21 -> 54.91 FPS (-4.03%), p99 21.95 -> 45.25 ms, frames of 50 ms or more 7/12/1 -> 22/21/18.

Still to test:

  • AMD (RADV and Windows) and Steam Deck: RX_VK_PUSH_DESC_FAST=1 against =0 on the rebased head, to see whether the AMD slowdown repeats before the default goes back on (by hand / @Beanstalk).

Measurements

Verdict: mixed, so off by default: faster on the RTX 4060 below (+1.52% fps) and in HumanBean's preliminary Linux RTX 3090 pairs, slower on AMD: the AMD Lab RX 580 (-4.03% fps, p99 21.95 -> 45.25 ms) and the farm's Steam Deck (Market 1% low +30.1%); the farm's RX 7900 XTX Market median moved 11.95 -> 58.73 ms with its mean FPS unchanged (29.21 -> 28.36). Two independent AMD systems measured it slower, so it ships off; the reason is in its gpu/vk/switches.def row.

RTX 4060 in-run A/B: +1.52% fps, mean frame time -0.194 ms (95% interval +0.24% to +2.79% faster vs RX_VK_PUSH_DESC_FAST=0).

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

Baseline: both columns are one build, 5d89c34d9 on perf/vk-binddesc-push-fast (main @ 495ed9fe2): RX_VK_PUSH_DESC_FAST=0 (Before) against RX_VK_PUSH_DESC_FAST unset (After).

Before, RX_VK_PUSH_DESC_FAST=0: this PR @ 5d89c34d After, RX_VK_PUSH_DESC_FAST unset: this PR @ 5d89c34d Δ
fps 78.4 79.6 +1.52%
mean frame time 12.75 ms 12.56 ms -0.19 ms
median frame time 12.47 ms 12.27 ms -0.20 ms
cmds_ms 2.396 ms 2.149 ms -10.32% (-0.247 ms)
cmds_ms P99 / P99.9 3.34 ms / 3.95 ms 2.99 ms / 3.53 ms -0.35 ms / -0.42 ms
draw_ms 7.384 ms 7.139 ms -3.32% (-0.245 ms)
draw_ms - uploads_ms P99 / P99.9 10.46 ms / 11.59 ms 10.16 ms / 11.11 ms -0.30 ms / -0.48 ms
wait_gpu_ms 1.714 ms 1.416 ms -17.39% (-0.298 ms)

Note on frame-total tail variance: total-frame game_ms in AB2 had isolated simulation bursts (+0.347 ms ON mean game_ms), making single-run p99 slightly noisy (17.15 vs 17.02 ms, top 0.1% avg 24.46 ms ON vs 24.92 ms OFF), while renderer cmds_ms (-0.42 ms P99.9) and non-upload draw_ms (-0.48 ms P99.9) improve across all tail percentiles.

Risks

Off by default: the Pushed::words/Pushed::at comparison path and the generic Enc vkCmdPushDescriptorSetKHR ring encoding run as on main. RX_VK_PUSH_DESC_FAST=1 turns the fast paths on, =check runs both and logs any mismatch (0 mismatches across 12.3M+ checks on the RTX 4060, none logged on the farm). Shader cache and pipeline cache are untouched.

Assisted-by: Antigravity

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (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.
  • 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 Speeds up push-descriptor comparison and recording-ring serialization (`FT_BINDDESC` + `FT_PUSHCALL` / `vkCmdPushDescriptorSetKHR` in `vk_recorder.h`) under `RX_VK_PUSH_DESC_FAST`. **The switch ships off (`0`)**: the test farm and the AMD Lab measured it slower on AMD (Steam Deck, RX 580, RX 7900 XTX), see Measurements; `RX_VK_PUSH_DESC_FAST=1` turns it on for further measurement. Before this change: 1. Every `bind_descriptors()` push scanned `DescWriter::imgs` linearly to check for a null sampler, stored/compared descriptors in `Pushed::words` + `Pushed::at` offset vectors (`words_same_store()`), and built `changed` inside a heap-backed `std::vector<VkWriteDescriptorSet>`. 2. Each `vkCmdPushDescriptorSetKHR` encoded onto the recorder ring via general-purpose `Enc` serialization + out-of-line pointer chasing across every `VkWriteDescriptorSet` element and its `pBufferInfo`/`pImageInfo`/`pTexelBufferView` sub-arrays. With `RX_VK_PUSH_DESC_FAST`: 1. `build_descriptors()` notes `DescWriter::has_unbindable_image` (no sampler, or no view without `nullDescriptor`: the same rule as the walk) as each sampled image is appended (`DescWriter::push_sampled`), eliminating the post-build linear scan. 2. [push_desc_fast.h](gpu/vk/push_desc_fast.h) introduces `PushedFast`: a flat `uint64_t` shadow word array paired with inline `WriteMeta` (up to `kInlineWrites = 64` writes, heap fallback above) plus a stack `VkWriteDescriptorSet changed_buf[64]` in `vk_draw.cpp`, removing `Pushed::at` indirection and heap vector traffic on common draws. 3. [vk_recorder.h](gpu/vk/vk_recorder.h) packs common `vkCmdPushDescriptorSetKHR` calls (up to 64 writes / 256 descriptors, `pNext == nullptr`, `dstSet == VK_NULL_HANDLE`, controllable via atomic `rec::g_push_desc_fast`) as a single compact exact-size POD ring record (through `RX_VK_RECORDER_FAST`'s `begin_fast`/`finish_fast`, decoded in `dispatch_fast`) and replays them directly from stack arrays on the recorder thread. Full pushes keep `RX_VK_CMD_FAST`'s push template. First read [push_desc_fast.h](gpu/vk/push_desc_fast.h), [vk_recorder.h](gpu/vk/vk_recorder.h), and [vk_draw.cpp](gpu/vk/vk_draw.cpp). ## Testing **Tested:** Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4). - `python -X utf8 -I tests/test_vk_push_desc_fast.py --cxx clang++ --headers ...` passed (3,000-op `PushedFast` oracle parity against `words_same_store`, compact POD ring round-trip with poisoned caller memory, ring wrap-around, `n==0`, over-cap fallback, live `g_push_desc_fast` HOS_AB toggle, source wiring, and all 4 broken variants caught). - `python -X utf8 -I tests/test_recorder_sync.py --cxx clang++ --headers ... --bench 20000`, `tests/test_recorder_parts.py`, `tests/test_hos_ab.py`, `tests/test_thinlto_tls.py`, and `tests/test_saveload_warm_cache.py` passed. - Live Market smoke (`RX_VK_PUSH_DESC_FAST=1`, 15 s): `925` frames, `0` cold frames, `RUN_ERROR=None`. - Live Market parity (`RX_VK_PUSH_DESC_FAST=check`, 25 s): `1,692` frames, **`12,300,000+` checks, `0` mismatches**, `RUN_ERROR=None`. - Queued in-run `HOS_AB` (`HOS_AB=RX_VK_PUSH_DESC_FAST=0,3,0`, 5×90 s, `147` paired periods in Market): `5/5` runs won, zero crashes/errors. - Rebased onto `main` @ `0aeb6858` (2026-12-03): `tests/run_all.py --exact` of `test_vk_push_desc_fast`, `test_vk_recorder_fast`, `test_recorder_sync`, `test_hos_ab`, `test_switch_table`, `test_vk_cmd_fast`, `test_push_state`, `test_sampler_admission`, `test_recording_admission`, `test_ub_snap_scope`, and `test_recorder_parts` alone, passed (Windows 11, llvm-mingw clang++); `clang++ -fsyntax-only` of `gpu/vk/vk_draw.cpp` and `gpu/vk/vk_replay.cpp` passed. No game run on the rebased head. - Test farm on `568a6c4` (default on, against `main` @ `495ed9fe2`): passed on the `nvidia`, `intel` and `linux+radv` targets; failed on AMD RX 7900 XTX (Market median frame time 11.95 -> 58.73 ms in 2 of 3 starts, mean FPS unchanged), Steam Deck (Market 1% low 48.23 -> 62.74 ms) and Windows RTX 4070 (Field p99 7.34 -> 9.66 ms; `screenshot.max_diff` 0.495, main's picture the broken one). `RX_VK_PUSH_DESC_FAST=check` logged no mismatch on any target. - HumanBean, Linux RTX 3090 (Market, `=0` vs `=1`, 2 pairs, preliminary): 98.4 -> 120.5 FPS on average; AMD Lab, Linux RX 580 (3 pairs): 57.21 -> 54.91 FPS (-4.03%), p99 21.95 -> 45.25 ms, frames of 50 ms or more 7/12/1 -> 22/21/18. **Still to test:** - AMD (RADV and Windows) and Steam Deck: `RX_VK_PUSH_DESC_FAST=1` against `=0` on the rebased head, to see whether the AMD slowdown repeats before the default goes back on (`by hand` / `@Beanstalk`). ## Measurements **Verdict:** mixed, so off by default: faster on the RTX 4060 below (+1.52% fps) and in HumanBean's preliminary Linux RTX 3090 pairs, slower on AMD: the AMD Lab RX 580 (-4.03% fps, p99 21.95 -> 45.25 ms) and the farm's Steam Deck (Market 1% low +30.1%); the farm's RX 7900 XTX Market median moved 11.95 -> 58.73 ms with its mean FPS unchanged (29.21 -> 28.36). Two independent AMD systems measured it slower, so it ships off; the reason is in its `gpu/vk/switches.def` row. RTX 4060 in-run A/B: +1.52% fps, mean frame time -0.194 ms (95% interval +0.24% to +2.79% faster vs `RX_VK_PUSH_DESC_FAST=0`). Setup: Windows 11, NVIDIA GeForce RTX 4060 (driver 621.40, Vulkan 1.4); Market, child (crowded), 50% res (`768x432`), output res `1280x720`, frame generation Off, vsync Off, uncapped (`HOS_FPS_MAX=1000`), queued in-run `HOS_AB=RX_VK_PUSH_DESC_FAST=0,3,0` across 5×90 s runs (`147` paired periods; `16,108` ON frames vs `15,897` OFF frames). Baseline: both columns are one build, `5d89c34d9` on `perf/vk-binddesc-push-fast` (`main` @ `495ed9fe2`): `RX_VK_PUSH_DESC_FAST=0` (Before) against `RX_VK_PUSH_DESC_FAST` unset (After). | | Before, RX_VK_PUSH_DESC_FAST=0: this PR @ 5d89c34d | After, RX_VK_PUSH_DESC_FAST unset: this PR @ 5d89c34d | Δ | |---|---|---|---| | fps | 78.4 | 79.6 | +1.52% | | mean frame time | 12.75 ms | 12.56 ms | -0.19 ms | | median frame time | 12.47 ms | 12.27 ms | -0.20 ms | | `cmds_ms` | 2.396 ms | 2.149 ms | -10.32% (-0.247 ms) | | `cmds_ms` P99 / P99.9 | 3.34 ms / 3.95 ms | 2.99 ms / 3.53 ms | -0.35 ms / -0.42 ms | | `draw_ms` | 7.384 ms | 7.139 ms | -3.32% (-0.245 ms) | | `draw_ms - uploads_ms` P99 / P99.9 | 10.46 ms / 11.59 ms | 10.16 ms / 11.11 ms | -0.30 ms / -0.48 ms | | `wait_gpu_ms` | 1.714 ms | 1.416 ms | -17.39% (-0.298 ms) | Note on frame-total tail variance: total-frame `game_ms` in `AB2` had isolated simulation bursts (`+0.347 ms` ON mean `game_ms`), making single-run `p99` slightly noisy (`17.15` vs `17.02 ms`, `top 0.1%` avg `24.46 ms` ON vs `24.92 ms` OFF), while renderer `cmds_ms` (`-0.42 ms` P99.9) and non-upload `draw_ms` (`-0.48 ms` P99.9) improve across all tail percentiles. ## Risks Off by default: the `Pushed::words`/`Pushed::at` comparison path and the generic `Enc` `vkCmdPushDescriptorSetKHR` ring encoding run as on `main`. `RX_VK_PUSH_DESC_FAST=1` turns the fast paths on, `=check` runs both and logs any mismatch (`0` mismatches across `12.3M+` checks on the RTX 4060, none logged on the farm). Shader cache and pipeline cache are untouched. Assisted-by: Antigravity ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
perf(vk): Wave 7C RX_VK_PUSH_DESC_FAST bind_descriptors and POD ring packing
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
5d89c34d9e
Author
Contributor

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4, driver 621.40), Market: RX_VK_PUSH_DESC_FAST=1 (925 frames, RUN_ERROR=None), =check (1692 frames, 12.3M+ checks, 0 mismatches), 5x90s HOS_AB (147 periods, +1.52% FPS, 95% CI +0.24%..+2.79%, cmds_ms -10.32%)

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4, driver 621.40), Market: RX_VK_PUSH_DESC_FAST=1 (925 frames, RUN_ERROR=None), =check (1692 frames, 12.3M+ checks, 0 mismatches), 5x90s HOS_AB (147 periods, +1.52% FPS, 95% CI +0.24%..+2.79%, cmds_ms -10.32%)
Member

Possibly related, for context:

  • PR #2920 perf(vk): add per-thread texture/sampler and read-only SSBO descriptor memos — Descriptor hot-path optimization in build_descriptors; adjacent implementation
  • PR #2899 perf(vk): add UBO descriptor delta fast path, 8-slot ub_gap_cache, and lock-free invalidate exits — Recent Vulkan descriptor fast path in vk_draw.cpp; possible interaction
Possibly related, for context: - PR #2920 perf(vk): add per-thread texture/sampler and read-only SSBO descriptor memos — Descriptor hot-path optimization in build_descriptors; adjacent implementation - PR #2899 perf(vk): add UBO descriptor delta fast path, 8-slot ub_gap_cache, and lock-free invalidate exits — Recent Vulkan descriptor fast path in vk_draw.cpp; possible interaction
Member
@review
BeanBot left a comment

Recommendation: Request changes. The new dynamically initialized thread-local vectors violate the renderer’s TLS rule, and the commit does not record the stated AI assistance. The claimed performance gain also remains unproven against the base at settings players use.

The change caches descriptor comparisons and packs common push-descriptor calls into compact recorder packets. It adds a default-on switch and additional per-thread state; the reported in-build A/B shows lower renderer times on one NVIDIA Windows setup, but does not establish the change’s gain against main.

Blocking (1): must change before merging.

  1. L1 gpu/vk/vk_draw.cpp:6057: The new function-local thread-local vectors bypass this file’s required TLS_OBJECT ownership scheme. (more on the line) Do: Put the overflow vectors in TLS_OBJECT-owned state and access them through that state, including the second vector in bind_descriptors_ubo_delta.

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

  • L2: The commit does not contain the required AI-assistance trailer, although the PR says Antigravity assisted. When: The only commit, 5d89c34d, has no Assisted-by or Co-Authored-By trailer; the trailer in the PR body is not a commit trailer. Do: Record the assistance in the commit trailer as required by the checklist.
  • L5 gpu/vk/switches.def:720: The switch row claims that enabling it provides a per-recording PoolSetCache, but this change implements no such cache. (more on the line) Do: Remove the PoolSetCache claim from the switch row.

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

  • L3: The reported A/B does not measure the PR against its base or show performance at the settings players normally use. When: Both reported columns run 5d89c34d, and the setup uses 50% rendering resolution. The off path still runs changed code, so its +1.52% result cannot establish the total effect relative to 495ed9fe; 1% lows are also missing. Do: Run interleaved base-versus-head measurements in the target and heavy scenes at the PC’s normal Auto settings, reporting average FPS, 1% lows, median and p99 frame times and the targeted timings.
  • L4: The default-on renderer and recorder changes have not been exercised on the other affected Tier 1 systems. When: The only live run reported is Windows NVIDIA; the PR lists Linux and AMD as still to test, leaving RADV and Steam Deck behavior and performance unknown. Do: Run representative game smoke and base-versus-head performance checks on AMD RADV/Linux and Steam Deck, and cover the remaining Tier 1 Windows/Linux combinations as available.

@fix can do L1, L2 and L5.

Checks: Still running: 10 checks.

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

Does it help: Unproven. The PR reports +1.52% FPS and -0.194 ms mean frame time over five in-run A/B tests on an RTX 4060, but both sides use the PR build, at 50% rendering resolution. It does not report a comparison with base 495ed9fe at the PC’s normal settings or the required 1% lows.

Other systems: The changed paths cover graphics and compute descriptor pushes and the recorder thread on Windows and Linux. Windows NVIDIA has a live smoke and parity run; AMD, Linux, Steam Deck and Intel remain untested according to the PR. The packet is self-describing across switch changes, and the compact path bounds its writes and descriptor counts before packing.

Switches: RX_VK_PUSH_DESC_FAST is added, default on; 0 selects the legacy comparison and encoding paths, and check runs comparison parity checks. The row is present in switches.def. The default’s performance across supported hardware remains unmeasured.

Reviewed: 5d89c34d9e against 495ed9fe2a: Read repository rules, standards, PR template, commit log, the changed header, changed draw and recorder paths and their surrounding code, switch row, test harness and test wiring. Skimmed the rest of the large renderer and recorder files and the generated test harness data. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The null-sampler flag covers the combined-image-sampler append paths and excludes storage images.
  • The compact packet copies descriptor payloads before publication and falls back for unsupported writes or packet sizes.
  • The new test exercises ring wrap, caller-memory poisoning, fallback cases and deliberately broken variants.
  • No changed file is a game-derived output, generated shader, third-party file or renderer API definition.

Testing: Read-only review; no code, tests or project scripts were run. CI was still running in the supplied status.

Overlaps and merge order: Unknown; the network is closed and no overlap information was supplied.


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

**Recommendation: Request changes.** The new dynamically initialized thread-local vectors violate the renderer’s TLS rule, and the commit does not record the stated AI assistance. The claimed performance gain also remains unproven against the base at settings players use. The change caches descriptor comparisons and packs common push-descriptor calls into compact recorder packets. It adds a default-on switch and additional per-thread state; the reported in-build A/B shows lower renderer times on one NVIDIA Windows setup, but does not establish the change’s gain against main. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/vk_draw.cpp:6057`: The new function-local thread-local vectors bypass this file’s required TLS_OBJECT ownership scheme. (more on the line) **Do:** Put the overflow vectors in TLS_OBJECT-owned state and access them through that state, including the second vector in bind_descriptors_ubo_delta. **Should fix (2)**: not blocking, but worth doing before merging. - **L2**: The commit does not contain the required AI-assistance trailer, although the PR says Antigravity assisted. *When:* The only commit, 5d89c34d, has no Assisted-by or Co-Authored-By trailer; the trailer in the PR body is not a commit trailer. **Do:** Record the assistance in the commit trailer as required by the checklist. - **L5** `gpu/vk/switches.def:720`: The switch row claims that enabling it provides a per-recording PoolSetCache, but this change implements no such cache. (more on the line) **Do:** Remove the PoolSetCache claim from the switch row. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The reported A/B does not measure the PR against its base or show performance at the settings players normally use. *When:* Both reported columns run 5d89c34d, and the setup uses 50% rendering resolution. The off path still runs changed code, so its +1.52% result cannot establish the total effect relative to 495ed9fe; 1% lows are also missing. **Do:** Run interleaved base-versus-head measurements in the target and heavy scenes at the PC’s normal Auto settings, reporting average FPS, 1% lows, median and p99 frame times and the targeted timings. - **L4**: The default-on renderer and recorder changes have not been exercised on the other affected Tier 1 systems. *When:* The only live run reported is Windows NVIDIA; the PR lists Linux and AMD as still to test, leaving RADV and Steam Deck behavior and performance unknown. **Do:** Run representative game smoke and base-versus-head performance checks on AMD RADV/Linux and Steam Deck, and cover the remaining Tier 1 Windows/Linux combinations as available. `@fix` can do L1, L2 and L5. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. The PR reports +1.52% FPS and -0.194 ms mean frame time over five in-run A/B tests on an RTX 4060, but both sides use the PR build, at 50% rendering resolution. It does not report a comparison with base 495ed9fe at the PC’s normal settings or the required 1% lows. **Other systems:** The changed paths cover graphics and compute descriptor pushes and the recorder thread on Windows and Linux. Windows NVIDIA has a live smoke and parity run; AMD, Linux, Steam Deck and Intel remain untested according to the PR. The packet is self-describing across switch changes, and the compact path bounds its writes and descriptor counts before packing. **Switches:** RX_VK_PUSH_DESC_FAST is added, default on; 0 selects the legacy comparison and encoding paths, and check runs comparison parity checks. The row is present in switches.def. The default’s performance across supported hardware remains unmeasured. **Reviewed:** 5d89c34d9e4a against 495ed9fe2aaa: Read repository rules, standards, PR template, commit log, the changed header, changed draw and recorder paths and their surrounding code, switch row, test harness and test wiring. Skimmed the rest of the large renderer and recorder files and the generated test harness data. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The null-sampler flag covers the combined-image-sampler append paths and excludes storage images. - The compact packet copies descriptor payloads before publication and falls back for unsupported writes or packet sizes. - The new test exercises ring wrap, caller-memory poisoning, fallback cases and deliberately broken variants. - No changed file is a game-derived output, generated shader, third-party file or renderer API definition. **Testing:** Read-only review; no code, tests or project scripts were run. CI was still running in the supplied status. **Overlaps and merge order:** Unknown; the network is closed and no overlap information was supplied. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -717,6 +717,7 @@ SW(RX_VK_PROTECT_BARE, attempt, bool, "off", "1 keeps the GPU's version of pages
SW(RX_VK_PSYCHOV35_DLSS, kill, bool, "on: compatible engines take Native PsychoV35's RGBA16F scene", "=0 disables the Native PsychoV35 HDR route for the upscalers, for troubleshooting.")
SW(RX_VK_PTR_DIAG, diag, bool, "off: no lines", "Logs a line for each program whose global memory accesses are not all plain constant buffer pointers.")
SW(RX_VK_PUSH_ALL, kill, bool, "off: only changed bindings are pushed", "Pushes every descriptor binding at every draw, as before.")
SW(RX_VK_PUSH_DESC_FAST, kill, enum, "on (1): O(1) null-sampler guard, flat PushedFast delta shadow, per-recording PoolSetCache, and compact POD vkCmdPushDescriptorSetKHR ring encoding", "=0 (or off, false, no): off, runs the legacy descriptor bind and closure ring paths; =check: runs both and logs any mismatch; any other value: on (HOS_AB may flip).")
Member

L5 (should fix): The switch row claims that enabling it provides a per-recording PoolSetCache, but this change implements no such cache.

When: A reader inspecting the switch table is told the pool-set path is cached, while bind_descriptors still allocates and updates descriptor sets and there is no PoolSetCache in gpu/vk.

Do: Remove the PoolSetCache claim from the switch row.

**L5** (should fix): The switch row claims that enabling it provides a per-recording PoolSetCache, but this change implements no such cache. *When:* A reader inspecting the switch table is told the pool-set path is cached, while bind_descriptors still allocates and updates descriptor sets and there is no PoolSetCache in gpu/vk. **Do:** Remove the PoolSetCache claim from the switch row.
@ -5979,2 +6056,2 @@
fine_n[FC_PUSH_FULL]++, fine_n[FC_PUSH_WRITES] += (int64_t)wr.writes.size();
for (const VkWriteDescriptorSet& w : wr.writes) fine_n[FC_PUSH_DESCS] += w.descriptorCount;
static const bool ub_every = ub_snapshot_wanted() && ub_snap_dedup_mode() == 1;
static thread_local std::vector<VkWriteDescriptorSet> changed_overflow;
Member

L1 (blocking): The new function-local thread-local vectors bypass this file’s required TLS_OBJECT ownership scheme.

When: Both bind_descriptors and bind_descriptors_ubo_delta introduce dynamically initialized changed_overflow vectors. On llvm-mingw these add the TLS initialization guard overhead described at the top of this file to accesses in the descriptor hot path, contrary to its rule for new objects with constructors or destructors.

Do: Put the overflow vectors in TLS_OBJECT-owned state and access them through that state, including the second vector in bind_descriptors_ubo_delta.

**L1** (blocking): The new function-local thread-local vectors bypass this file’s required TLS_OBJECT ownership scheme. *When:* Both bind_descriptors and bind_descriptors_ubo_delta introduce dynamically initialized changed_overflow vectors. On llvm-mingw these add the TLS initialization guard overhead described at the top of this file to accesses in the descriptor hot path, contrary to its rule for new objects with constructors or destructors. **Do:** Put the overflow vectors in TLS_OBJECT-owned state and access them through that state, including the second vector in bind_descriptors_ubo_delta.
siantm force-pushed perf/vk-binddesc-push-fast from 5d89c34d9e
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 568a6c40e7
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 2/1 pass
beanstalk/amd 1/1 fail
beanstalk/intel 1/1 pass
beanstalk/linux+radv 2/1 pass
beanstalk/steamdeck 1/1 fail
beanstalk/windows+nvidia 1/1 fail
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-02 09:49:14 +00:00
Compare
Author
Contributor

Addressed review feedback in 568a6c40e (amended from 5d89c34d9):

  • L1 (gpu/vk/vk_draw.cpp): Removed the function-local static thread_local std::vector<VkWriteDescriptorSet> changed_overflow declarations from both bind_descriptors and bind_descriptors_ubo_delta. Moved the overflow scratch buffer to TLS_OBJECT(push_changed_overflow, std::vector<VkWriteDescriptorSet>) via push_write_scratch(...), avoiding function-local thread_local init guards on the hot path and keeping TLS_OBJECT thread-exit cleanup.
  • L2 (commit trailer): Added Assisted-by: Antigravity (Google DeepMind) to the commit message.
  • L5 (gpu/vk/switches.def): Removed the unimplemented per-recording PoolSetCache claim from the RX_VK_PUSH_DESC_FAST row.
  • L3 / L4: Tier 1 and interleaved base-vs-head measurements at Auto settings can be run via @Beanstalk / representative hardware runs once ready.

Checks run after the final edit:

  • python -X utf8 -I tests/test_vk_push_desc_fast.py --cxx clang++ --headers ... — passed (including all 4 broken variants)
  • python -X utf8 -I tests/test_vk_push_desc_fast.py --headers ... (default compiler discovery) — passed
  • python -X utf8 -I tests/test_vk_push_desc_fast.py --cxx g++ --headers ... — passed
  • clang++ -x c++-header -std=c++20 -Wall -Wextra -Werror -fsyntax-only and g++ -x c++ -std=c++20 -Wall -Wextra -Werror -fsyntax-only on gpu/vk/push_desc_fast.h — clean (exit 0)
  • python -I -B tests/test_tls_objects.py — PASS: 21 TLS_OBJECTs; 46 other namespace-scope thread_locals, none with a constructor or destructor
  • python -I -B tests/test_hos_ab.py --cc clang — passed
  • python -I -B tests/test_vk_braces.py — OK: the braces of 618 renderer sources balance
Addressed review feedback in `568a6c40e` (amended from `5d89c34d9`): - **L1 (`gpu/vk/vk_draw.cpp`)**: Removed the function-local `static thread_local std::vector<VkWriteDescriptorSet> changed_overflow` declarations from both `bind_descriptors` and `bind_descriptors_ubo_delta`. Moved the overflow scratch buffer to `TLS_OBJECT(push_changed_overflow, std::vector<VkWriteDescriptorSet>)` via `push_write_scratch(...)`, avoiding function-local `thread_local` init guards on the hot path and keeping `TLS_OBJECT` thread-exit cleanup. - **L2 (commit trailer)**: Added `Assisted-by: Antigravity (Google DeepMind)` to the commit message. - **L5 (`gpu/vk/switches.def`)**: Removed the unimplemented `per-recording PoolSetCache` claim from the `RX_VK_PUSH_DESC_FAST` row. - **L3 / L4**: Tier 1 and interleaved base-vs-head measurements at Auto settings can be run via `@Beanstalk` / representative hardware runs once ready. Checks run after the final edit: - `python -X utf8 -I tests/test_vk_push_desc_fast.py --cxx clang++ --headers ...` — passed (including all 4 broken variants) - `python -X utf8 -I tests/test_vk_push_desc_fast.py --headers ...` (default compiler discovery) — passed - `python -X utf8 -I tests/test_vk_push_desc_fast.py --cxx g++ --headers ...` — passed - `clang++ -x c++-header -std=c++20 -Wall -Wextra -Werror -fsyntax-only` and `g++ -x c++ -std=c++20 -Wall -Wextra -Werror -fsyntax-only` on `gpu/vk/push_desc_fast.h` — clean (exit 0) - `python -I -B tests/test_tls_objects.py` — `PASS: 21 TLS_OBJECTs; 46 other namespace-scope thread_locals, none with a constructor or destructor` - `python -I -B tests/test_hos_ab.py --cc clang` — passed - `python -I -B tests/test_vk_braces.py` — `OK: the braces of 618 renderer sources balance`
Member

@siantm only members of BigBeans can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.

@siantm only members of `BigBeans` can start the farm. One of them can approve this request by reacting 👍 to it or to this comment.
Owner

@review
@beanstalk

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

Commit 568a6c4 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The fixed CPU-oriented settings differ from players' Auto settings; the plan does not measure the reported renderer-specific timings or establish a 1.52% gain within farm noise.
⚠️ Note: Check mode reports mismatches but this plan does not require a periodic check-count log, so a clean log alone does not prove how many descriptor checks ran. The farm cannot run the requested macOS test or the standalone unit harness.

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

The change failed on AMD, Steam Deck and Windows NVIDIA; the NVIDIA, Intel and Linux RADV targets passed. On the AMD RX 7900 XTX, Market median frame time rose 11.95 → 58.73 ms (+391.4%); on Steam Deck, Market 1% low frame time rose 48.23 → 62.74 ms (+30.1%). On the Windows RTX 4070, Field p99 rose 7.34 → 9.66 ms (+31.6%), and screenshot difference reached 0.495 against a 0.2 limit. The Intel UHD 630 report was inconclusive because both baseline and candidate crashed on every start, pointing to that PC rather than the change; another Intel PC passed.

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

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
nvidia ✅ pass (an outlier) 2 1 2 27.5 → 26.0 (−5%) — none
amd ❌ fail (an outlier) 2 1 2 37.3 → 37.0 (−1%) — none
intel ✅ pass 2 1 2 205.8 → 205.8 (−0%) — 4 PR runs
linux+radv ✅ pass (an outlier) 2 1 2 58.4 → 51.0 (−13%) — none
steamdeck ❌ fail (an outlier) 2 1 2 38.8 → 37.4 (−3%) — none
windows+nvidia ❌ fail (an outlier) 2 1 2 8.4 → 9.5 (+13%) — none

Why it failed

  • amd: performance market.frametime_p50_ms.max_delta_pct: 12.0 → 58.7 (+391.4%); limit 15.0
  • steamdeck: performance market.frametime_1pct_low_ms.max_delta_pct: 48.2 → 62.7 (+30.1%); limit 15.0
  • windows+nvidia: performance field.frametime_p99_ms.max_delta_pct: 7.3 → 9.7 (+31.6%); limit 15.0
  • windows+nvidia: performance field.frametime_1pct_low_ms.max_delta_pct: 7.7 → 10.4 (+34.2%); limit 15.0
  • windows+nvidia: performance screenshot.max_diff: 0.2 → 0.5; limit 0.2

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

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

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

The farm will compare main and the PR in the Market and Hyrule Field on NVIDIA, AMD, Intel, RADV and Steam Deck systems, including the tested Windows NVIDIA path. Three starts per side measure uncapped frame times and FPS at a fixed CPU-oriented resolution; one additional start per side exercises the PR's live descriptor parity check. Crashes, descriptor mismatch logs, materially changed pictures, or frame-time regressions above 15% fail the run.

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

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

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

Before: main @ 495ed9f After: this PR @ 568a6c4
performance · field · median frame time (ms) 23.1 22.0 (−5%)
performance · market · median frame time (ms) 24.1 23.4 (−3%)
performance · field · frame time (p99) (ms) 27.5 26.0 (−5%)
performance · market · frame time (p99) (ms) 31.8 31.4 (−1%)
performance · field · frame time (worst 1%) (ms) 28.7 27.2 (−5%)
performance · market · frame time (worst 1%) (ms) 42.3 33.3 (−21%)
performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_PUSH_DESC_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 495ed9f | After: this PR @ 568a6c4 |
|---|---|---|
| performance · field · median frame time (ms) | 23.1 | 22.0 (−5%) |
| performance · market · median frame time (ms) | 24.1 | 23.4 (−3%) |
| performance · field · frame time (p99) (ms) | 27.5 | 26.0 (−5%) |
| performance · market · frame time (p99) (ms) | 31.8 | 31.4 (−1%) |
| performance · field · frame time (worst 1%) (ms) | 28.7 | 27.2 (−5%) |
| performance · market · frame time (worst 1%) (ms) | 42.3 | 33.3 (−21%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

Verdict: fail on amd (2 reports): performance market.frametime_p50_ms.max_delta_pct (+391.4%) 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 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 495ed9f After: this PR @ 568a6c4
performance · field · median frame time (ms) 12.3 12.3 (+0%)
performance · market · median frame time (ms) 15.3 38.6 (+152%)
performance · field · frame time (p99) (ms) 37.3 37.0 (−1%)
performance · market · frame time (p99) (ms) 42.1 42.0 (−0%)
performance · field · frame time (worst 1%) (ms) 38.8 38.3 (−1%)
performance · market · frame time (worst 1%) (ms) 44.8 42.8 (−5%)
performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_PUSH_DESC_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on amd (2 reports): `performance market.frametime_p50_ms.max_delta_pct (+391.4%)` 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 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`  
Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 495ed9f | After: this PR @ 568a6c4 |
|---|---|---|
| performance · field · median frame time (ms) | 12.3 | 12.3 (+0%) |
| performance · market · median frame time (ms) | 15.3 | 38.6 (+152%) |
| performance · field · frame time (p99) (ms) | 37.3 | 37.0 (−1%) |
| performance · market · frame time (p99) (ms) | 42.1 | 42.0 (−0%) |
| performance · field · frame time (worst 1%) (ms) | 38.8 | 38.3 (−1%) |
| performance · market · frame time (worst 1%) (ms) | 44.8 | 42.8 (−5%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

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

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

Before: main @ 495ed9f After: this PR @ 568a6c4
performance · field · median frame time (ms) 195.8 195.2 (−0%)
performance · market · median frame time (ms) 215.1 215.1 (−0%)
performance · field · frame time (p99) (ms) 205.8 205.8 (−0%)
performance · market · frame time (p99) (ms) 230.3 230.7 (+0%)
performance · field · frame time (worst 1%) (ms) 208.8 208.9 (+0%)
performance · market · frame time (worst 1%) (ms) 231.3 234.0 (+1%)
performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_PUSH_DESC_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 495ed9f | After: this PR @ 568a6c4 |
|---|---|---|
| performance · field · median frame time (ms) | 195.8 | 195.2 (−0%) |
| performance · market · median frame time (ms) | 215.1 | 215.1 (−0%) |
| performance · field · frame time (p99) (ms) | 205.8 | 205.8 (−0%) |
| performance · market · frame time (p99) (ms) | 230.3 | 230.7 (+0%) |
| performance · field · frame time (worst 1%) (ms) | 208.8 | 208.9 (+0%) |
| performance · market · frame time (worst 1%) (ms) | 231.3 | 234.0 (+1%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

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

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

Before: main @ 495ed9f After: this PR @ 568a6c4
performance · field · median frame time (ms) 22.4 22.6 (+1%)
performance · market · median frame time (ms) 24.7 24.7 (−0%)
performance · field · frame time (p99) (ms) 58.4 51.0 (−13%)
performance · market · frame time (p99) (ms) 52.9 53.0 (+0%)
performance · field · frame time (worst 1%) (ms) 60.1 54.8 (−9%)
performance · market · frame time (worst 1%) (ms) 56.1 55.7 (−1%)
performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_PUSH_DESC_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 495ed9f | After: this PR @ 568a6c4 |
|---|---|---|
| performance · field · median frame time (ms) | 22.4 | 22.6 (+1%) |
| performance · market · median frame time (ms) | 24.7 | 24.7 (−0%) |
| performance · field · frame time (p99) (ms) | 58.4 | 51.0 (−13%) |
| performance · market · frame time (p99) (ms) | 52.9 | 53.0 (+0%) |
| performance · field · frame time (worst 1%) (ms) | 60.1 | 54.8 (−9%) |
| performance · market · frame time (worst 1%) (ms) | 56.1 | 55.7 (−1%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

Verdict: fail on steamdeck (2 reports): performance market.frametime_1pct_low_ms.max_delta_pct (+30.1%) failed.

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

Before: main @ 495ed9f After: this PR @ 568a6c4
performance · field · median frame time (ms) 28.2 28.4 (+0%)
performance · market · median frame time (ms) 36.0 35.8 (−0%)
performance · field · frame time (p99) (ms) 38.8 37.4 (−3%)
performance · market · frame time (p99) (ms) 46.8 48.3 (+3%)
performance · field · frame time (worst 1%) (ms) 43.5 40.4 (−7%)
performance · market · frame time (worst 1%) (ms) 60.4 60.9 (+1%)
performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_PUSH_DESC_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on steamdeck (2 reports): `performance market.frametime_1pct_low_ms.max_delta_pct (+30.1%)` failed.

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

| | Before: main @ 495ed9f | After: this PR @ 568a6c4 |
|---|---|---|
| performance · field · median frame time (ms) | 28.2 | 28.4 (+0%) |
| performance · market · median frame time (ms) | 36.0 | 35.8 (−0%) |
| performance · field · frame time (p99) (ms) | 38.8 | 37.4 (−3%) |
| performance · market · frame time (p99) (ms) | 46.8 | 48.3 (+3%) |
| performance · field · frame time (worst 1%) (ms) | 43.5 | 40.4 (−7%) |
| performance · market · frame time (worst 1%) (ms) | 60.4 | 60.9 (+1%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

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

Verdict: fail on windows+nvidia (2 reports): performance field.frametime_p99_ms.max_delta_pct (+31.6%); performance field.frametime_1pct_low_ms.max_delta_pct (+34.2%); performance screenshot.max_diff failed.

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

Before: main @ 495ed9f After: this PR @ 568a6c4
performance · field · median frame time (ms) 6.6 6.7 (+0%)
performance · market · median frame time (ms) 9.8 9.7 (−1%)
performance · field · frame time (p99) (ms) 8.4 9.5 (+13%)
performance · market · frame time (p99) (ms) 13.1 12.8 (−2%)
performance · field · frame time (worst 1%) (ms) 9.2 10.3 (+11%)
performance · market · frame time (worst 1%) (ms) 15.9 15.1 (−5%)
performance · forbidden log lines 0.0 0.0
live-parity · RX_VK_PUSH_DESC_FAST=check (PR only) · forbidden log lines 0.0 0.0

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+nvidia (2 reports): `performance field.frametime_p99_ms.max_delta_pct (+31.6%)`; `performance field.frametime_1pct_low_ms.max_delta_pct (+34.2%)`; `performance screenshot.max_diff` failed.

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

| | Before: main @ 495ed9f | After: this PR @ 568a6c4 |
|---|---|---|
| performance · field · median frame time (ms) | 6.6 | 6.7 (+0%) |
| performance · market · median frame time (ms) | 9.8 | 9.7 (−1%) |
| performance · field · frame time (p99) (ms) | 8.4 | 9.5 (+13%) |
| performance · market · frame time (p99) (ms) | 13.1 | 12.8 (−2%) |
| performance · field · frame time (worst 1%) (ms) | 9.2 | 10.3 (+11%) |
| performance · market · frame time (worst 1%) (ms) | 15.9 | 15.1 (−5%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested |
The testers' hardware
Target Report Ran on
nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM
nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0 AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM
amd 1 linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
amd 2 linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
intel 1 windows+intel+intel-proprietary+igpu+window Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
intel 2 linux+intel+anv+igpu Intel(R) Graphics (RKL GT1), 26.2.4 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM
linux+radv 1 linux+amd+radv+dgpu AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
linux+radv 2 linux+amd+radv+igpu AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8 AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
steamdeck 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>568a6c4</code> (the newer results are in a comment below)</summary> Commit `568a6c4` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2975) ⚠️ **Note:** The fixed CPU-oriented settings differ from players' Auto settings; the plan does not measure the reported renderer-specific timings or establish a 1.52% gain within farm noise. ⚠️ **Note:** Check mode reports mismatches but this plan does not require a periodic check-count log, so a clean log alone does not prove how many descriptor checks ran. The farm cannot run the requested macOS test or the standalone unit harness. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change failed on AMD, Steam Deck and Windows NVIDIA; the NVIDIA, Intel and Linux RADV targets passed. On the AMD RX 7900 XTX, Market median frame time rose 11.95 → 58.73 ms (+391.4%); on Steam Deck, Market 1% low frame time rose 48.23 → 62.74 ms (+30.1%). On the Windows RTX 4070, Field p99 rose 7.34 → 9.66 ms (+31.6%), and screenshot difference reached 0.495 against a 0.2 limit. The Intel UHD 630 report was inconclusive because both baseline and candidate crashed on every start, pointing to that PC rather than the change; another Intel PC passed. Done (started 2026-12-02 15:59 UTC, last report 07:43 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `nvidia` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_aa48575ad441326f) [2](https://beanstalk.magicbean.dev/reports/rp_00aa7126a344f59d) | 27.5 → 26.0 (−5%) | — | none | | `amd` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_ed82ab9844ebaa93) [2](https://beanstalk.magicbean.dev/reports/rp_f9ff9abf1d06129f) | 37.3 → 37.0 (−1%) | — | none | | `intel` | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_c8ef9f74d4a76d96) [2](https://beanstalk.magicbean.dev/reports/rp_bf51816bf6421a4a) | 205.8 → 205.8 (−0%) | — | 4 PR runs | | `linux+radv` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_6a4562873acbbce4) [2](https://beanstalk.magicbean.dev/reports/rp_784c504b0bd23e70) | 58.4 → 51.0 (−13%) | — | none | | `steamdeck` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_352d80988c4b2bdb) [2](https://beanstalk.magicbean.dev/reports/rp_a71118621b59b693) | 38.8 → 37.4 (−3%) | — | none | | `windows+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_de57307ef11e0310) [2](https://beanstalk.magicbean.dev/reports/rp_20c23886613c99c7) | 8.4 → 9.5 (+13%) | — | none | **Why it failed** - `amd`: `performance` `market.frametime_p50_ms.max_delta_pct`: `12.0 → 58.7 (+391.4%); limit 15.0` - `steamdeck`: `performance` `market.frametime_1pct_low_ms.max_delta_pct`: `48.2 → 62.7 (+30.1%); limit 15.0` - `windows+nvidia`: `performance` `field.frametime_p99_ms.max_delta_pct`: `7.3 → 9.7 (+31.6%); limit 15.0` - `windows+nvidia`: `performance` `field.frametime_1pct_low_ms.max_delta_pct`: `7.7 → 10.4 (+34.2%); limit 15.0` - `windows+nvidia`: `performance` `screenshot.max_diff`: `0.2 → 0.5; limit 0.2` **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_c8ef9f74d4a76d96): `Insufficient frame-time evidence for 8 required comparison(s). See rule results.` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The farm will compare main and the PR in the Market and Hyrule Field on NVIDIA, AMD, Intel, RADV and Steam Deck systems, including the tested Windows NVIDIA path. Three starts per side measure uncapped frame times and FPS at a fixed CPU-oriented resolution; one additional start per side exercises the PR's live descriptor parity check. Crashes, descriptor mismatch logs, materially changed pictures, or frame-time regressions above 15% fail the run. - **Where:** nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), linux+radv (1-2 reports), steamdeck (1-2 reports), windows+nvidia (1-2 reports). - **Matrix:** 1 cell, each on main and the PR: RX_VK_PUSH_DESC_FAST `check` (PR only). - **performance:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up); 3 runs on each side. - **live-parity:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, teleport to Hyrule Field; 1 run on each side. - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate, the game's log. - **The PR fails if:** it crashes; or median frame time in field is more than 15% above main; or frame time (p99) in field is more than 15% above main; or frame time (worst 1%) in field is more than 15% above main; or median frame time in market is more than 15% above main; or frame time (p99) in market is more than 15% above main; or frame time (worst 1%) in market is more than 15% above main; or a picture differs from main by more than 20%; or forbidden log lines is above 0. - **Time:** about 51 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `nvidia`, for the PR description</summary> **Verdict:** pass on nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 23.1 | 22.0 (−5%) | | performance · market · median frame time (ms) | 24.1 | 23.4 (−3%) | | performance · field · frame time (p99) (ms) | 27.5 | 26.0 (−5%) | | performance · market · frame time (p99) (ms) | 31.8 | 31.4 (−1%) | | performance · field · frame time (worst 1%) (ms) | 28.7 | 27.2 (−5%) | | performance · market · frame time (worst 1%) (ms) | 42.3 | 33.3 (−21%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 23.1 | 22.0 (−5%) | | performance · market · median frame time (ms) | 24.1 | 23.4 (−3%) | | performance · field · frame time (p99) (ms) | 27.5 | 26.0 (−5%) | | performance · market · frame time (p99) (ms) | 31.8 | 31.4 (−1%) | | performance · field · frame time (worst 1%) (ms) | 28.7 | 27.2 (−5%) | | performance · market · frame time (worst 1%) (ms) | 42.3 | 33.3 (−21%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `amd`, for the PR description</summary> **Verdict:** fail on amd (2 reports): `performance market.frametime_p50_ms.max_delta_pct (+391.4%)` 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 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 12.3 | 12.3 (+0%) | | performance · market · median frame time (ms) | 15.3 | 38.6 (+152%) | | performance · field · frame time (p99) (ms) | 37.3 | 37.0 (−1%) | | performance · market · frame time (p99) (ms) | 42.1 | 42.0 (−0%) | | performance · field · frame time (worst 1%) (ms) | 38.8 | 38.3 (−1%) | | performance · market · frame time (worst 1%) (ms) | 44.8 | 42.8 (−5%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on amd (2 reports): `performance market.frametime_p50_ms.max_delta_pct (+391.4%)` 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 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 12.3 | 12.3 (+0%) | | performance · market · median frame time (ms) | 15.3 | 38.6 (+152%) | | performance · field · frame time (p99) (ms) | 37.3 | 37.0 (−1%) | | performance · market · frame time (p99) (ms) | 42.1 | 42.0 (−0%) | | performance · field · frame time (worst 1%) (ms) | 38.8 | 38.3 (−1%) | | performance · market · frame time (worst 1%) (ms) | 44.8 | 42.8 (−5%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 195.8 | 195.2 (−0%) | | performance · market · median frame time (ms) | 215.1 | 215.1 (−0%) | | performance · field · frame time (p99) (ms) | 205.8 | 205.8 (−0%) | | performance · market · frame time (p99) (ms) | 230.3 | 230.7 (+0%) | | performance · field · frame time (worst 1%) (ms) | 208.8 | 208.9 (+0%) | | performance · market · frame time (worst 1%) (ms) | 231.3 | 234.0 (+1%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 195.8 | 195.2 (−0%) | | performance · market · median frame time (ms) | 215.1 | 215.1 (−0%) | | performance · field · frame time (p99) (ms) | 205.8 | 205.8 (−0%) | | performance · market · frame time (p99) (ms) | 230.3 | 230.7 (+0%) | | performance · field · frame time (worst 1%) (ms) | 208.8 | 208.9 (+0%) | | performance · market · frame time (worst 1%) (ms) | 231.3 | 234.0 (+1%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 22.4 | 22.6 (+1%) | | performance · market · median frame time (ms) | 24.7 | 24.7 (−0%) | | performance · field · frame time (p99) (ms) | 58.4 | 51.0 (−13%) | | performance · market · frame time (p99) (ms) | 52.9 | 53.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 60.1 | 54.8 (−9%) | | performance · market · frame time (worst 1%) (ms) | 56.1 | 55.7 (−1%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 22.4 | 22.6 (+1%) | | performance · market · median frame time (ms) | 24.7 | 24.7 (−0%) | | performance · field · frame time (p99) (ms) | 58.4 | 51.0 (−13%) | | performance · market · frame time (p99) (ms) | 52.9 | 53.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 60.1 | 54.8 (−9%) | | performance · market · frame time (worst 1%) (ms) | 56.1 | 55.7 (−1%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** fail on steamdeck (2 reports): `performance market.frametime_1pct_low_ms.max_delta_pct (+30.1%)` failed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 28.2 | 28.4 (+0%) | | performance · market · median frame time (ms) | 36.0 | 35.8 (−0%) | | performance · field · frame time (p99) (ms) | 38.8 | 37.4 (−3%) | | performance · market · frame time (p99) (ms) | 46.8 | 48.3 (+3%) | | performance · field · frame time (worst 1%) (ms) | 43.5 | 40.4 (−7%) | | performance · market · frame time (worst 1%) (ms) | 60.4 | 60.9 (+1%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on steamdeck (2 reports): `performance market.frametime_1pct_low_ms.max_delta_pct (+30.1%)` failed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 28.2 | 28.4 (+0%) | | performance · market · median frame time (ms) | 36.0 | 35.8 (−0%) | | performance · field · frame time (p99) (ms) | 38.8 | 37.4 (−3%) | | performance · market · frame time (p99) (ms) | 46.8 | 48.3 (+3%) | | performance · field · frame time (worst 1%) (ms) | 43.5 | 40.4 (−7%) | | performance · market · frame time (worst 1%) (ms) | 60.4 | 60.9 (+1%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** fail on windows+nvidia (2 reports): `performance field.frametime_p99_ms.max_delta_pct (+31.6%)`; `performance field.frametime_1pct_low_ms.max_delta_pct (+34.2%)`; `performance screenshot.max_diff` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 6.6 | 6.7 (+0%) | | performance · market · median frame time (ms) | 9.8 | 9.7 (−1%) | | performance · field · frame time (p99) (ms) | 8.4 | 9.5 (+13%) | | performance · market · frame time (p99) (ms) | 13.1 | 12.8 (−2%) | | performance · field · frame time (worst 1%) (ms) | 9.2 | 10.3 (+11%) | | performance · market · frame time (worst 1%) (ms) | 15.9 | 15.1 (−5%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+nvidia (2 reports): `performance field.frametime_p99_ms.max_delta_pct (+31.6%)`; `performance field.frametime_1pct_low_ms.max_delta_pct (+34.2%)`; `performance screenshot.max_diff` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` Scene: performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); live-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); performance: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; live-parity: 1 game start a side; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 495ed9f | After: this PR @ 568a6c4 | |---|---|---| | performance · field · median frame time (ms) | 6.6 | 6.7 (+0%) | | performance · market · median frame time (ms) | 9.8 | 9.7 (−1%) | | performance · field · frame time (p99) (ms) | 8.4 | 9.5 (+13%) | | performance · market · frame time (p99) (ms) | 13.1 | 12.8 (−2%) | | performance · field · frame time (worst 1%) (ms) | 9.2 | 10.3 (+11%) | | performance · market · frame time (worst 1%) (ms) | 15.9 | 15.1 (−5%) | | performance · forbidden log lines | 0.0 | 0.0 | | live-parity · `RX_VK_PUSH_DESC_FAST=check (PR only)` · forbidden log lines | 0.0 | 0.0 | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (median frame time) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_PUSH_DESC_FAST` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | live-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_aa48575ad441326f) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` | | `nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_00aa7126a344f59d) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3050 Ti Laptop GPU, 621.1.0` `AMD Ryzen 7 5800H with Radeon Graphics, 16 GB RAM` | | `amd` | [1](https://beanstalk.magicbean.dev/reports/rp_ed82ab9844ebaa93) | linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` | | `amd` | [2](https://beanstalk.magicbean.dev/reports/rp_f9ff9abf1d06129f) | linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_c8ef9f74d4a76d96) | windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` | | `intel` | [2](https://beanstalk.magicbean.dev/reports/rp_bf51816bf6421a4a) | linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_6a4562873acbbce4) | linux+amd+radv+dgpu `AMD Radeon RX 7900 XTX (RADV NAVI31), 26.3.1` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_784c504b0bd23e70) | linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_352d80988c4b2bdb) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | | `steamdeck` | [2](https://beanstalk.magicbean.dev/reports/rp_a71118621b59b693) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_de57307ef11e0310) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_20c23886613c99c7) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` | </details> </details>
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported runs show a promising improvement on one Windows NVIDIA system, but they do not compare the PR with its base at normal player settings or cover the other affected Tier 1 systems. Recommend approval; not approved on the forge.

The change reduces descriptor comparison and recorder serialization work using a fast shadow and compact ring records. It adds a fallback and parity-check path, at the cost of more renderer and recorder complexity.

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

  • L3: The reported A/B does not measure the PR against its base or show performance at the settings players normally use. When: Both reported columns run 5d89c34d, and the setup uses 50% rendering resolution. The off path still runs changed code, so its +1.52% result cannot establish the total effect relative to 495ed9fe; 1% lows are also missing. Do: Run interleaved base-versus-head measurements in the target and heavy scenes at the PC’s normal Auto settings, reporting average FPS, 1% lows, median and p99 frame times and the targeted timings.
  • L4: The default-on renderer and recorder changes have not been exercised on the other affected Tier 1 systems. When: The only live run reported is Windows NVIDIA; the PR lists Linux and AMD as still to test, leaving RADV and Steam Deck behavior and performance unknown. Do: Run representative game smoke and base-versus-head performance checks on AMD RADV/Linux and Steam Deck, and cover the remaining Tier 1 Windows/Linux combinations as available.

Since the last review (on 5d89c34d9e)
Resolved: L1 (The new function-local thread-local vectors bypass this file’s required TLS_OBJECT ownersh…); L2 (The commit does not contain the required AI-assistance trailer, although the PR says Antig…); L5 (The switch row claims that enabling it provides a per-recording PoolSetCache, but this cha…)
Still open: L3 (The reported A/B does not measure the PR against its base or show performance at the setti…); L4 (The default-on renderer and recorder changes have not been exercised on the other affected…)

Checks: Still running: 10 checks.

Also noticed (1; not asked for, not blocking)
  • The requested Beanstalk run could not be submitted: no Test Farm tool is available and the network is closed.
More: does it help, other systems, switches, what was read

Does it help: Unproven against the base. The author reports 78.4 to 79.6 fps and 12.75 to 12.56 ms mean frame time over five 90-second Windows RTX 4060 runs, but both sides used the PR build with the switch toggled, at 50% resolution.

Other systems: The default-on paths affect Vulkan descriptor recording across supported GPUs and operating systems. Windows NVIDIA smoke and parity runs are reported; Linux, AMD, Intel and the other affected Tier 1 configurations remain untested.

Switches: RX_VK_PUSH_DESC_FAST is added, default on; 0 selects the legacy paths and check compares descriptor shadows. The default is not yet supported by base-comparison and Tier 1 measurements.

Reviewed: 568a6c40e7 against 495ed9fe2a: Read AGENTS.md, CONTRIBUTING.md, the commit message, the fix diff and push_desc_fast.h; skimmed the PR diff, test changes and relevant standards references. The large changed files and tests were not read in full. Comments, supplied CI status and the range-diff were considered.; nothing run (a code review).

Checked and fine:

  • The shared overflow scratch is sized for the writes or dirty-write count at each changed caller.
  • The fix retains the fast descriptor and compact recorder paths.

Testing: No code or tests were run. The author reports game-free checks, Windows NVIDIA smoke and parity runs, and five A/B runs; the supplied CI checks are 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 code is ready: only testing is left. The reported runs show a promising improvement on one Windows NVIDIA system, but they do not compare the PR with its base at normal player settings or cover the other affected Tier 1 systems. Recommend approval; not approved on the forge. The change reduces descriptor comparison and recorder serialization work using a fast shadow and compact ring records. It adds a fallback and parity-check path, at the cost of more renderer and recorder complexity. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The reported A/B does not measure the PR against its base or show performance at the settings players normally use. *When:* Both reported columns run 5d89c34d, and the setup uses 50% rendering resolution. The off path still runs changed code, so its +1.52% result cannot establish the total effect relative to 495ed9fe; 1% lows are also missing. **Do:** Run interleaved base-versus-head measurements in the target and heavy scenes at the PC’s normal Auto settings, reporting average FPS, 1% lows, median and p99 frame times and the targeted timings. - **L4**: The default-on renderer and recorder changes have not been exercised on the other affected Tier 1 systems. *When:* The only live run reported is Windows NVIDIA; the PR lists Linux and AMD as still to test, leaving RADV and Steam Deck behavior and performance unknown. **Do:** Run representative game smoke and base-versus-head performance checks on AMD RADV/Linux and Steam Deck, and cover the remaining Tier 1 Windows/Linux combinations as available. **Since the last review** (on 5d89c34d9e4a) Resolved: L1 (The new function-local thread-local vectors bypass this file’s required TLS_OBJECT ownersh…); L2 (The commit does not contain the required AI-assistance trailer, although the PR says Antig…); L5 (The switch row claims that enabling it provides a per-recording PoolSetCache, but this cha…) Still open: L3 (The reported A/B does not measure the PR against its base or show performance at the setti…); L4 (The default-on renderer and recorder changes have not been exercised on the other affected…) **Checks:** Still running: 10 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The requested Beanstalk run could not be submitted: no Test Farm tool is available and the network is closed. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against the base. The author reports 78.4 to 79.6 fps and 12.75 to 12.56 ms mean frame time over five 90-second Windows RTX 4060 runs, but both sides used the PR build with the switch toggled, at 50% resolution. **Other systems:** The default-on paths affect Vulkan descriptor recording across supported GPUs and operating systems. Windows NVIDIA smoke and parity runs are reported; Linux, AMD, Intel and the other affected Tier 1 configurations remain untested. **Switches:** RX_VK_PUSH_DESC_FAST is added, default on; 0 selects the legacy paths and check compares descriptor shadows. The default is not yet supported by base-comparison and Tier 1 measurements. **Reviewed:** 568a6c40e7bb against 495ed9fe2aaa: Read AGENTS.md, CONTRIBUTING.md, the commit message, the fix diff and push_desc_fast.h; skimmed the PR diff, test changes and relevant standards references. The large changed files and tests were not read in full. Comments, supplied CI status and the range-diff were considered.; nothing run (a code review). **Checked and fine:** - The shared overflow scratch is sized for the writes or dirty-write count at each changed caller. - The fix retains the fast descriptor and compact recorder paths. **Testing:** No code or tests were run. The author reports game-free checks, Windows NVIDIA smoke and parity runs, and five A/B runs; the supplied CI checks are 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>
Owner

Preliminary Linux Market A/B on PR head 568a6c40e7bb. The same build ran with RX_VK_PUSH_DESC_FAST=0 and =1. The switch defaults to on.

Capture Switch Average FPS Median frame time p99 frame time 1% low FPS (1000 ÷ p99)
A1 Off 94.4 9.45 ms 28.34 ms 35.3
B1 On 119.1 8.13 ms 12.46 ms 80.2
A2 Off 102.3 9.50 ms 15.42 ms 64.8
B2 On 121.8 7.95 ms 11.83 ms 84.5

The enabled captures were both faster. Median average FPS was approximately 98.4 off and 120.5 on (+22.5%). Treat the size of the gain as preliminary. The off captures included 2 and 4 frames flagged for pipeline or shader activity, compared with 0 and 0 on, and the shared queue separated the captures by several minutes.

Market (child), Linux, RTX 3090 with NVIDIA 620.70.06, 1280×720 output at 50% render scale, uncapped with V-Sync and frame generation off. Two alternating 40-second pairs after warm-up. The session paused before the third pair.

Preliminary Linux Market A/B on PR head `568a6c40e7bb`. The same build ran with `RX_VK_PUSH_DESC_FAST=0` and `=1`. The switch defaults to on. | Capture | Switch | Average FPS | Median frame time | p99 frame time | 1% low FPS (1000 ÷ p99) | |---|---|---:|---:|---:|---:| | A1 | Off | 94.4 | 9.45 ms | 28.34 ms | 35.3 | | B1 | On | 119.1 | 8.13 ms | 12.46 ms | 80.2 | | A2 | Off | 102.3 | 9.50 ms | 15.42 ms | 64.8 | | B2 | On | 121.8 | 7.95 ms | 11.83 ms | 84.5 | The enabled captures were both faster. Median average FPS was approximately **98.4 off and 120.5 on (+22.5%)**. Treat the size of the gain as preliminary. The off captures included 2 and 4 frames flagged for pipeline or shader activity, compared with 0 and 0 on, and the shared queue separated the captures by several minutes. Market (child), Linux, RTX 3090 with NVIDIA 620.70.06, 1280×720 output at 50% render scale, uncapped with V-Sync and frame generation off. Two alternating 40-second pairs after warm-up. The session paused before the third pair.
Owner

AMD Lab Market A/B on PR head 568a6c40e7bb, using RX_VK_PUSH_DESC_FAST=0 and RX_VK_PUSH_DESC_FAST=1 on the same build.

Slower in these captures. Median average FPS changed by -4.03%.

Metric A (0) B (1)
Average FPS, each capture 57.28 / 56.29 / 57.21 54.91 / 54.37 / 56.23
Average FPS, median 57.21 54.91
1% low FPS (1000 ÷ p99), median 45.55 22.10
Median frame time 17.39 ms 17.56 ms
p99 frame time, median 21.95 ms 45.25 ms
Frames of 50 ms or more, each capture 7 / 12 / 1 22 / 21 / 18

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 15 / 23 / 2 frames on side A and 50 / 34 / 44 on side B across the three captures. The FPS and tail numbers include those frames.

AMD Lab Market A/B on PR head `568a6c40e7bb`, using `RX_VK_PUSH_DESC_FAST=0` and `RX_VK_PUSH_DESC_FAST=1` on the same build. **Slower in these captures.** Median average FPS changed by **-4.03%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 57.28 / 56.29 / 57.21 | 54.91 / 54.37 / 56.23 | | Average FPS, median | 57.21 | 54.91 | | 1% low FPS (1000 ÷ p99), median | 45.55 | 22.10 | | Median frame time | 17.39 ms | 17.56 ms | | p99 frame time, median | 21.95 ms | 45.25 ms | | Frames of 50 ms or more, each capture | 7 / 12 / 1 | 22 / 21 / 18 | 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 15 / 23 / 2 frames on side A and 50 / 34 / 44 on side B across the three captures. The FPS and tail numbers include those frames.
siantm force-pushed perf/vk-binddesc-push-fast from 568a6c40e7
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 2/1 pass
beanstalk/amd 1/1 fail
beanstalk/intel 1/1 pass
beanstalk/linux+radv 2/1 pass
beanstalk/steamdeck 1/1 fail
beanstalk/windows+nvidia 1/1 fail
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 2dd0ba5d7c
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 7s
2026-12-03 19:43:30 +00:00
Compare
Member

Beanstalk test farm

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

Rebased onto main @ 0aeb6858 (head 2dd0ba5d). RX_VK_PUSH_DESC_FAST now ships off. The description is updated to match.

Rebase. main now has RX_VK_CMD_FAST and RX_VK_RECORDER_FAST, so the fast path is rebuilt on top of them instead of beside them:

  • Full pushes keep RX_VK_CMD_FAST's push template.
  • The O(1) image guard (DescWriter::has_unbindable_image, noted in push_sampled) follows main's current rule: an image with no sampler, or with no view on a device without nullDescriptor, is refused, as the walked guard refuses it.
  • The compact POD packet is written through RX_VK_RECORDER_FAST's begin_fast/finish_fast and decoded in dispatch_fast, instead of reserving its own ring space.
  • tests/recording_admission_test.cpp and the sampler-admission fixture stub the new hooks.

Default off, and why. Two independent AMD systems measured it slower:

  • HumanBean's AMD Lab RX 580: -4.03% median FPS, p99 21.95 → 45.25 ms, frames of 50 ms or more 7/12/1 → 22/21/18.
  • The farm's Steam Deck: Market 1% low 48.23 → 62.74 ms (+30.1%).

The gpu/vk/switches.def row (now attempt, default 0) gives that reason. RX_VK_PUSH_DESC_FAST=1 still turns it on for more measurements.

Farm results (568a6c4):

  • amd (RX 7900 XTX), Market median 11.95 → 58.73 ms: the PR's frame times sit around 12 ms or around 60 ms. The median moved in 2 of 3 starts, while mean FPS barely changed (29.21 → 28.36). I can't explain that split from the code. It is part of why the switch is now off.
  • windows+nvidia (RTX 4070), screenshot.max_diff 0.495: the broken picture is main's, which shows the white-ground glitch; the PR's picture renders correctly. The Field p99 7.34 → 9.66 ms on that PC has not been measured again.
  • RX_VK_PUSH_DESC_FAST=check logged no mismatch on any target.
  • I compared the fast path with the slow path line by line (shadow update, delta loops, ring packet encode and decode) and found no difference in what they record.

L3 / L4 (base against head at player settings, other Tier 1 systems): still open. I can't run the game here (one Windows RTX 4060 PC, a shared queue), so these need the farm or people. With the switch off, the open question is whether =1 is worth turning on, on AMD (RADV and Windows) and Steam Deck. HumanBean's Linux RTX 3090 pairs (98.4 → 120.5 FPS, preliminary) point the other way on NVIDIA.

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

  • tests/run_all.py --exact of test_vk_push_desc_fast, test_vk_recorder_fast, test_recorder_sync, test_hos_ab, test_switch_table, test_vk_cmd_fast, test_push_state, test_sampler_admission, test_recording_admission, test_ub_snap_scope: 10 passed, 0 failed.
  • tests/run_all.py --jobs 1 --exact tests/test_recorder_parts.py: passed. It runs alone because it once failed while 8 checks ran at once, on main as well.
  • clang++ -fsyntax-only of gpu/vk/vk_draw.cpp and gpu/vk/vk_replay.cpp, with the build plan's own compile commands: no errors.
    No game run on the rebased head.
Rebased onto `main` @ `0aeb6858` (head `2dd0ba5d`). `RX_VK_PUSH_DESC_FAST` now ships **off**. The description is updated to match. **Rebase.** `main` now has `RX_VK_CMD_FAST` and `RX_VK_RECORDER_FAST`, so the fast path is rebuilt on top of them instead of beside them: - Full pushes keep `RX_VK_CMD_FAST`'s push template. - The O(1) image guard (`DescWriter::has_unbindable_image`, noted in `push_sampled`) follows `main`'s current rule: an image with no sampler, or with no view on a device without `nullDescriptor`, is refused, as the walked guard refuses it. - The compact POD packet is written through `RX_VK_RECORDER_FAST`'s `begin_fast`/`finish_fast` and decoded in `dispatch_fast`, instead of reserving its own ring space. - `tests/recording_admission_test.cpp` and the sampler-admission fixture stub the new hooks. **Default off, and why.** Two independent AMD systems measured it slower: - HumanBean's AMD Lab RX 580: -4.03% median FPS, p99 21.95 → 45.25 ms, frames of 50 ms or more 7/12/1 → 22/21/18. - The farm's Steam Deck: Market 1% low 48.23 → 62.74 ms (+30.1%). The `gpu/vk/switches.def` row (now `attempt`, default `0`) gives that reason. `RX_VK_PUSH_DESC_FAST=1` still turns it on for more measurements. **Farm results (`568a6c4`):** - `amd` (RX 7900 XTX), Market median 11.95 → 58.73 ms: the PR's frame times sit around 12 ms or around 60 ms. The median moved in 2 of 3 starts, while mean FPS barely changed (29.21 → 28.36). I can't explain that split from the code. It is part of why the switch is now off. - `windows+nvidia` (RTX 4070), `screenshot.max_diff` 0.495: the broken picture is **main's**, which shows the white-ground glitch; the PR's picture renders correctly. The Field p99 7.34 → 9.66 ms on that PC has not been measured again. - `RX_VK_PUSH_DESC_FAST=check` logged no mismatch on any target. - I compared the fast path with the slow path line by line (shadow update, delta loops, ring packet encode and decode) and found no difference in what they record. **L3 / L4 (base against head at player settings, other Tier 1 systems):** still open. I can't run the game here (one Windows RTX 4060 PC, a shared queue), so these need the farm or people. With the switch off, the open question is whether `=1` is worth turning on, on AMD (RADV and Windows) and Steam Deck. HumanBean's Linux RTX 3090 pairs (98.4 → 120.5 FPS, preliminary) point the other way on NVIDIA. **Tested on the rebased head** (Windows 11, llvm-mingw clang++): - `tests/run_all.py --exact` of `test_vk_push_desc_fast`, `test_vk_recorder_fast`, `test_recorder_sync`, `test_hos_ab`, `test_switch_table`, `test_vk_cmd_fast`, `test_push_state`, `test_sampler_admission`, `test_recording_admission`, `test_ub_snap_scope`: 10 passed, 0 failed. - `tests/run_all.py --jobs 1 --exact tests/test_recorder_parts.py`: passed. It runs alone because it once failed while 8 checks ran at once, on `main` as well. - `clang++ -fsyntax-only` of `gpu/vk/vk_draw.cpp` and `gpu/vk/vk_replay.cpp`, with the build plan's own compile commands: no errors. No game run on the rebased head.
dyst left a comment

Recommendation: Request changes. It no longer merges, and the conflict is more than text: main now routes descriptor binds through bind_descriptors_lean (#3048, RX_VK_DRAW_OVERHEAD_LEAN, on by default), which keeps only Pushed and knows nothing of PushedFast. Its measurements were taken before that path existed. Even before the rebase, the speed-up shows only on NVIDIA and it is measured slower on AMD, so it ships off and does nothing for players yet, while adding a second descriptor shadow that every bind path has to keep in step.

For players, nothing changes as it ships: RX_VK_PUSH_DESC_FAST is off. With it on, the CPU does less work for each descriptor push (no walk over the images, a flat compare shadow, and a compact ring packet for vkCmdPushDescriptorSetKHR). That gives +1.5% fps on an RTX 4060 and is slower on AMD. The code is careful and well checked (=check, the oracle test), but it is a lot of new code in the hottest bind path for an off-by-default attempt.

Does it help: Unproven on current main, and mixed where it was measured. On the RTX 4060, an in-run HOS_AB comparing the switch on and off in one build at 5d89c34d (over main 495ed9fe2) gave +1.52% fps (95% CI +0.24% to +2.79%) and cmds_ms -10%. HumanBean's Linux RTX 3090 gave 98.4 -> 120.5 fps (2 pairs, preliminary). Slower: the AMD Lab RX 580 at -4.03% fps (p99 21.95 -> 45.25 ms), and the farm at 568a6c4 (default on) failed on amd (Market median 11.95 -> 58.73 ms), steamdeck (1% low +30%) and windows+nvidia (Field p99 +32%). None of these numbers is main against this PR on main as it is now. With #3048's lean path as the default, most draws would not reach the fast path at all.
Other systems: AMD (RADV and Windows) and the Steam Deck are measured slower with it on. With it off, the cost over main is small but not measured: one flag test per sampled image in build_descriptors (push_sampled), one pushed_fast() TLS access per bind, and a second reset in descriptors_disturbed().
Switches: RX_VK_PUSH_DESC_FAST (attempt, enum: 0 / 1 / check): off by default, which is right given the AMD numbers. The row names the reason and the PR.
Reviewed: 2dd0ba5d7 against its merge base 0aeb68589. Read in full: gpu/vk/push_desc_fast.h, the vk_draw.cpp and vk_recorder.h hunks together with the code they rely on (descriptors_disturbed and its callers, draw_begin_recording, write_kind, begin_fast/finish_fast, the dispatch_fast consumer), switches.def, and the test wiring (test_hos_ab.py, test_sampler_admission.py, both admission fixtures). Checked against main be4942212: the conflict and #3048's bind_descriptors_lean. Skimmed tests/test_vk_push_desc_fast.py. Nothing run.
Fixed in this review: nothing. The conflict is a design question, not a basic one.
Checked and fine:

  • With the switch off, the walk, Pushed words and the Enc packet behave as on main. The legacy loops now break and recurse after the loop instead of recursing inside it; the result is the same.
  • descriptors_disturbed() forgets both shadows and runs at each recording's start (draw_begin_recording). So a HOS_AB flip between recordings can't delta against the other mode's stale shadow. Within one recording only one shadow is used.
  • PushedFast: inline and heap metadata are picked consistently through n_writes. compare_and_store_write returns -1 before it touches anything, and the partial stores before a -1 are overwritten by the full push that follows. The ub_every (Intel Arc) handling matches the legacy path in both functions.
  • The POD packet: both sides compute the layout from the same counts, and the payload is copied into the ring, so the caller's arrays may change after the call. It falls back to the closure packet for pNext, unknown kinds, a set dstSet, more than 64 writes or 256 descriptors, a missing pointer, or no room in the ring. Dispatch sets only the pointer that matches the type.

Blocking

  1. gpu/vk/vk_draw.cpp does not merge into main be4942212: there are conflicts at the includes, DescWriter and build_descriptors. The bigger issue is semantic. Main's bind_descriptors_lean (#3048) is the default bind path, and bind_descriptors_ubo_delta also hands off to it. It updates pushed() only. Rebased as it is, =1 would mix two shadows within one recording. One case: the lean path pushes new writes for cmd/layout/n while pf still holds the older ones, then a bind_descriptors draw in fast mode compares against pf, finds a write "unchanged" and leaves out a descriptor the GPU needs (wrong texture or buffer). The reverse also happens: vk_draw.cpp:6637 returns without touching ps, so a later lean bind can delta against a stale ps. Fix: rebase onto main and either put the fast shadow into bind_descriptors_lean as well, or make every push keep the other shadow in step (at minimum, invalidate the other shadow's cmd). Then extend =check to cover the lean path.
  2. The numbers predate #3048 and come from a single PC (on against off in one build). After the rebase, measure main against the PR on current main: with the switch off, to show the off path costs nothing; with it on, on NVIDIA plus an AMD or Steam Deck run to see whether the AMD slowdown repeats. A Beanstalk run of the rebased head would cover both. Until then, the Ready for review box "on current main" doesn't hold.

Suggestions

  • =check also turns on the POD ring packet (vk_draw.cpp:6375 stores mode != 0), but nothing compares that packet with the closure packet. The 12.3M checks cover the shadow, not the ring encoding (the unit test's round trip covers that). Say so in Testing, or keep the closure packet under =check so that its runs isolate the shadow.
  • rec::g_push_desc_fast is process-wide but is set at each recording's start from a thread-local mode (vk_draw.cpp:6375). With several recording threads under HOS_AB, one thread's start can switch another thread's ring encoding in the middle of a recording. That is harmless for correctness, since the ring decodes both, but it blurs the A/B's on and off periods. vk_recorder.h:237 also sets it in mode_init, where the per-recording store already decides it.
  • If AMD stays slower after the rebase, ask whether the ring packet or the shadow is the cause (e.g. =1 with RX_VK_RECORDER_FAST=0). The two halves could then ship or be dropped separately, and the smaller one would be easier to carry.

Testing: By the author: the unit and oracle tests and the renderer checks on the rebased head (Windows, llvm-mingw); in the game on the RTX 4060 at 5d89c34d (smoke, =check with 0 mismatches in 12.3M checks, 5×90 s HOS_AB). The rebased head 2dd0ba5d7 has had no game run and no farm run. The farm at 568a6c4 failed on amd, steamdeck and windows+nvidia, and the AMD Lab's RX 580 measured it slower. Still missing: a game run, =check and a farm run on a head rebased onto current main. These hold the merge.
Overlaps and merge order: #3304 (WIP: a whole push's words made in one pass) goes after the same Pushed::words cost by another route: decide which shadow to keep before either merges. #3049 (inline DescWriter staging) and #3303 (texture checks in build_descriptors) change the same DescWriter and the image-append sites push_sampled replaces. #2948 (descriptor buffers for game shaders) would make push descriptors moot wherever it applies. #3080 and #3116 (both WIP) give textual conflicts in vk_draw.cpp and vk_recorder.h. Suggested order: settle this one against #3304 first, then rebase over whichever of #3049 and #3303 lands first.

**Recommendation: Request changes.** It no longer merges, and the conflict is more than text: main now routes descriptor binds through `bind_descriptors_lean` (https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3048, `RX_VK_DRAW_OVERHEAD_LEAN`, on by default), which keeps only `Pushed` and knows nothing of `PushedFast`. Its measurements were taken before that path existed. Even before the rebase, the speed-up shows only on NVIDIA and it is measured slower on AMD, so it ships off and does nothing for players yet, while adding a second descriptor shadow that every bind path has to keep in step. For players, nothing changes as it ships: `RX_VK_PUSH_DESC_FAST` is off. With it on, the CPU does less work for each descriptor push (no walk over the images, a flat compare shadow, and a compact ring packet for `vkCmdPushDescriptorSetKHR`). That gives +1.5% fps on an RTX 4060 and is slower on AMD. The code is careful and well checked (`=check`, the oracle test), but it is a lot of new code in the hottest bind path for an off-by-default attempt. **Does it help:** Unproven on current main, and mixed where it was measured. On the RTX 4060, an in-run `HOS_AB` comparing the switch on and off in one build at 5d89c34d (over main 495ed9fe2) gave +1.52% fps (95% CI +0.24% to +2.79%) and `cmds_ms` -10%. HumanBean's Linux RTX 3090 gave 98.4 -> 120.5 fps (2 pairs, preliminary). Slower: the AMD Lab RX 580 at -4.03% fps (p99 21.95 -> 45.25 ms), and the farm at 568a6c4 (default on) failed on `amd` (Market median 11.95 -> 58.73 ms), `steamdeck` (1% low +30%) and `windows+nvidia` (Field p99 +32%). None of these numbers is main against this PR on main as it is now. With #3048's lean path as the default, most draws would not reach the fast path at all. **Other systems:** AMD (RADV and Windows) and the Steam Deck are measured slower with it on. With it off, the cost over main is small but not measured: one flag test per sampled image in `build_descriptors` (`push_sampled`), one `pushed_fast()` TLS access per bind, and a second reset in `descriptors_disturbed()`. **Switches:** `RX_VK_PUSH_DESC_FAST` (attempt, enum: 0 / 1 / check): off by default, which is right given the AMD numbers. The row names the reason and the PR. **Reviewed:** 2dd0ba5d7 against its merge base 0aeb68589. Read in full: `gpu/vk/push_desc_fast.h`, the `vk_draw.cpp` and `vk_recorder.h` hunks together with the code they rely on (`descriptors_disturbed` and its callers, `draw_begin_recording`, `write_kind`, `begin_fast`/`finish_fast`, the `dispatch_fast` consumer), `switches.def`, and the test wiring (`test_hos_ab.py`, `test_sampler_admission.py`, both admission fixtures). Checked against main be4942212: the conflict and #3048's `bind_descriptors_lean`. Skimmed `tests/test_vk_push_desc_fast.py`. Nothing run. **Fixed in this review:** nothing. The conflict is a design question, not a basic one. **Checked and fine:** - With the switch off, the walk, `Pushed` words and the `Enc` packet behave as on main. The legacy loops now `break` and recurse after the loop instead of recursing inside it; the result is the same. - `descriptors_disturbed()` forgets both shadows and runs at each recording's start (`draw_begin_recording`). So a `HOS_AB` flip between recordings can't delta against the other mode's stale shadow. Within one recording only one shadow is used. - `PushedFast`: inline and heap metadata are picked consistently through `n_writes`. `compare_and_store_write` returns -1 before it touches anything, and the partial stores before a -1 are overwritten by the full push that follows. The `ub_every` (Intel Arc) handling matches the legacy path in both functions. - The POD packet: both sides compute the layout from the same counts, and the payload is copied into the ring, so the caller's arrays may change after the call. It falls back to the closure packet for `pNext`, unknown kinds, a set `dstSet`, more than 64 writes or 256 descriptors, a missing pointer, or no room in the ring. Dispatch sets only the pointer that matches the type. **Blocking** 1. `gpu/vk/vk_draw.cpp` does not merge into main be4942212: there are conflicts at the includes, `DescWriter` and `build_descriptors`. The bigger issue is semantic. Main's `bind_descriptors_lean` (#3048) is the default bind path, and `bind_descriptors_ubo_delta` also hands off to it. It updates `pushed()` only. Rebased as it is, `=1` would mix two shadows within one recording. One case: the lean path pushes new writes for cmd/layout/n while `pf` still holds the older ones, then a `bind_descriptors` draw in fast mode compares against `pf`, finds a write "unchanged" and leaves out a descriptor the GPU needs (wrong texture or buffer). The reverse also happens: `vk_draw.cpp:6637` returns without touching `ps`, so a later lean bind can delta against a stale `ps`. Fix: rebase onto main and either put the fast shadow into `bind_descriptors_lean` as well, or make every push keep the other shadow in step (at minimum, invalidate the other shadow's `cmd`). Then extend `=check` to cover the lean path. 2. The numbers predate #3048 and come from a single PC (on against off in one build). After the rebase, measure main against the PR on current main: with the switch off, to show the off path costs nothing; with it on, on NVIDIA plus an AMD or Steam Deck run to see whether the AMD slowdown repeats. A Beanstalk run of the rebased head would cover both. Until then, the *Ready for review* box "on current `main`" doesn't hold. **Suggestions** - `=check` also turns on the POD ring packet (`vk_draw.cpp:6375` stores `mode != 0`), but nothing compares that packet with the closure packet. The 12.3M checks cover the shadow, not the ring encoding (the unit test's round trip covers that). Say so in Testing, or keep the closure packet under `=check` so that its runs isolate the shadow. - `rec::g_push_desc_fast` is process-wide but is set at each recording's start from a thread-local mode (`vk_draw.cpp:6375`). With several recording threads under `HOS_AB`, one thread's start can switch another thread's ring encoding in the middle of a recording. That is harmless for correctness, since the ring decodes both, but it blurs the A/B's on and off periods. `vk_recorder.h:237` also sets it in `mode_init`, where the per-recording store already decides it. - If AMD stays slower after the rebase, ask whether the ring packet or the shadow is the cause (e.g. `=1` with `RX_VK_RECORDER_FAST=0`). The two halves could then ship or be dropped separately, and the smaller one would be easier to carry. **Testing:** By the author: the unit and oracle tests and the renderer checks on the rebased head (Windows, llvm-mingw); in the game on the RTX 4060 at 5d89c34d (smoke, `=check` with 0 mismatches in 12.3M checks, 5×90 s `HOS_AB`). The rebased head 2dd0ba5d7 has had no game run and no farm run. The farm at 568a6c4 failed on `amd`, `steamdeck` and `windows+nvidia`, and the AMD Lab's RX 580 measured it slower. Still missing: a game run, `=check` and a farm run on a head rebased onto current main. These hold the merge. **Overlaps and merge order:** https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3304 (WIP: a whole push's words made in one pass) goes after the same `Pushed::words` cost by another route: decide which shadow to keep before either merges. https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3049 (inline `DescWriter` staging) and https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3303 (texture checks in `build_descriptors`) change the same `DescWriter` and the image-append sites `push_sampled` replaces. https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2948 (descriptor buffers for game shaders) would make push descriptors moot wherever it applies. https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3080 and https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3116 (both WIP) give textual conflicts in `vk_draw.cpp` and `vk_recorder.h`. Suggested order: settle this one against #3304 first, then rebase over whichever of #3049 and #3303 lands first.
Some checks are pending
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 7s
This pull request has changes conflicting with the target branch.
  • gpu/vk/vk_draw.cpp
Some workflows are waiting to be reviewed.
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2975
No description provided.