perf(vk): inline pointer-bump DescWriter staging in build_descriptors (RX_VK_DESC_WRITER_INLINE) #3049

Open
siantm wants to merge 5 commits from siantm/Longshot:perf/vk-desc-writer-inline into main
Contributor

Summary

Eliminates per-binding std::vector growth/capacity checks and temporary descriptor staging allocations inside build_descriptors() and uniform_range() on the Vulkan replay thread without adding large TLS tables:

  • Inline pointer-bump staging (gpu/vk/desc_writer_inline.h, gpu/vk/vk_draw.cpp): pre-computes tight Plan bounds from Program::stages and unpacked desc_counts, stages descriptor writes/buffers/images/views/UBO entries/depth samples into stack-inline InlineCursorBuf<T, N> buffers (*cur_++ = v with zero inner-loop reallocation checks and reusable TLS fallback scratch for rare overflow shaders), and commits in one slice via Stage::commit().
  • Pre-reserved DescWriter & persistent BankCache capacity: preserves struct DescWriter fields for update_ubo_descriptors(), replaces TLS static thread_local std::vector<uint8_t> tmp churn in uniform_range() with stack uint8_t stack_tmp[0xA00], and clears BankCache::bytes via .clear() across recordings instead of reallocating c = BankCache{}.
  • Switch control (gpu/vk/switches.def): adds RX_VK_DESC_WRITER_INLINE (1 ON default, 0 OFF legacy, check lockstep shadow parity verification logging counts and mismatches every 100000 checks), sampled per recording via draw_begin_recording().

First files to read: gpu/vk/desc_writer_inline.h, gpu/vk/vk_draw.cpp (build_descriptors, uniform_range, desc_writer_inline_begin_recording), tests/test_vk_desc_writer_inline.py.

Testing

Tested:

  • Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4): 30 s live RX_VK_DESC_WRITER_INLINE=check parity run in market (Market_Child, pre-rebase commit c9c85be6e): 2348 frames at 78.3 fps (1% low 61.5 fps), 3,300,000+ checks, 0 mismatches, RUN_ERROR=None.
  • Game-free checks on the current head (7d96eed8f, rebased onto main 7bc53f84; Windows 11, llvm-mingw clang++ and g++): tests/test_vk_desc_writer_inline.py passes with both compilers and catches all 18 broken variants. vk_draw.cpp passes a clang++ -fsyntax-only compile with the renderer's own command from the build plan. tests/run_all.py --changed origin/main on 89d0e7fc8 (224 checks): 210 passed, 3 failed, 11 skipped. test_vk_desc_writer_inline failed because its harness did not know #3048's code in build_descriptors; fixed in 7d96eed8f. test_turf_budget fails the same way on main 7bc53f84 on this PC (order_watch_on undeclared, from vk_replay.cpp, which this PR does not touch), and test_fallback_buffer_cleanup timed out (it fails on main on this PC too). run_all.py --exact for the checks that cut build_descriptors or draw_begin_recording (test_vk_draw_overhead_lean, test_hos_ab, test_switch_table, test_dummy_views, test_handle_table_arrays, test_draw_binds, test_draw_stream_visibility, test_fsr_uniform_ownership, test_recording_admission): 9 passed. No renderer build or game run on this head.

Still to test:

  • Game runs on AMD, Linux and Steam Deck, and a base-vs-head comparison at the device's normal preset and resolution (Test Farm / @Beanstalk). The =check run above is from before the check-mode pointer fix; a new =check run in the game should now report 0 mismatches.

Measurements

Verdict: Faster with RX_VK_DESC_WRITER_INLINE ON (default) on the RTX 4060, no difference on an RX 580 (below): +1.19% fps (-0.150 ms mean frame time, 95% CI +0.81% to +1.61% across 5/5 runs; desc_ms -9.20% (-0.2362 ms), draw_ms -3.40% (-0.2448 ms), higher 1% and 0.1% lows). Switch ships at default 1 (ON).

Setup: Windows 11, NVIDIA GeForce RTX 4060; market (Market, child (crowded)), 804x581, Custom preset, 50% internal res (768x432), 1280x720 output, uncapped (HOS_FPS_MAX=1000), RX_VK_FRAME_TRACE=1, 5×90 s interleaved in-run A/B (HOS_AB=RX_VK_DESC_WRITER_INLINE=0,3,0) on c9c85be6e (SIDE_0 unset = ON vs SIDE_1 =0 = OFF). Both sides are this PR's build, and =0 still runs the build's other changes, so this is ON vs OFF, not main vs this PR. It also used 50% internal resolution, not the normal preset. The PR is now on main 7bc53f84; the rebase over #3048 (RX_VK_DRAW_OVERHEAD_LEAN) keeps its unbindable_image marking and lean_bind_stamp() in the staged texture and uniform-buffer paths. The rebase and the check-mode fix leave the ON path's per-draw work as measured: check mode now builds the staged pointers the way ON does, and the bank cache's reset at a recording's start moves the copy's buffer instead of clearing fields one by one. The numbers have not been measured again.

Metric Before: main @ d53dbe94b (measured as this PR's RX_VK_DESC_WRITER_INLINE=0 path on c9c85be6e) After: this PR @ c9c85be6e (RX_VK_DESC_WRITER_INLINE=1) Δ (ON vs OFF)
Average fps (pooled 5×90 s) 79.36 80.29 +1.19% (CI +0.81%..+1.61%)
P50 fps 81.23 82.00 +0.77 fps
1% Low fps 60.90 61.35 +0.45 fps
0.1% Low fps 45.72 47.10 +1.38 fps
Mean frame time (ms) 12.6015 ms 12.4555 ms -0.1460 ms (-1.16%)
desc_ms 2.5660 ms 2.3298 ms -0.2362 ms (-9.20%)
draw_ms 7.1899 ms 6.9451 ms -0.2448 ms (-3.40%)
Frames ≥ 50 ms / min 0.00 0.00 0.00

On a second system the gain does not show: HumanBean's AMD Lab (Linux, Mesa RADV, Radeon RX 580, Core i7-9700K; Market child, 1280x720 output at 33% render scale, uncapped, 3 alternating pairs of 60 s, PR head f17d456a5 merged onto main ee9e1ed76, =0 vs =1 in one build): average fps 60.52 → 60.23 (-0.48%, within the run-to-run spread), p99 19.72 → 19.73 ms, renderer CPU thread 9.43 / 9.66 / 9.62 ms (=0) vs 9.64 / 9.50 / 9.56 ms (=1): no difference. That lab is GPU-bound at any scale, so the CPU thread is the row to read. An earlier run there at 50% (-0.88%) was superseded by this one.

Risks

  • Low risk: all inline staging paths are gated by RX_VK_DESC_WRITER_INLINE (=0 falls back immediately to legacy std::vector::push_back at any recording boundary), overflow-checked with reusable TLS scratch for programs exceeding inline capacity, and verified with an =check lockstep comparison (3.3M+ checks, 0 mismatches). That run was before =check compared the inline path's own write pointers (e94116358). No API structs, persistent files, or shader formats change.

Checklist

Ready for review

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

When it applies

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

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested.
  • Approved in review, every comment answered.
  • CI passes on the head.
## Summary Eliminates per-binding `std::vector` growth/capacity checks and temporary descriptor staging allocations inside `build_descriptors()` and `uniform_range()` on the Vulkan replay thread without adding large TLS tables: - **Inline pointer-bump staging (`gpu/vk/desc_writer_inline.h`, `gpu/vk/vk_draw.cpp`):** pre-computes tight `Plan` bounds from `Program::stages` and unpacked `desc_counts`, stages descriptor writes/buffers/images/views/UBO entries/depth samples into stack-inline `InlineCursorBuf<T, N>` buffers (`*cur_++ = v` with zero inner-loop reallocation checks and reusable TLS fallback scratch for rare overflow shaders), and commits in one slice via `Stage::commit()`. - **Pre-reserved `DescWriter` & persistent `BankCache` capacity:** preserves `struct DescWriter` fields for `update_ubo_descriptors()`, replaces TLS `static thread_local std::vector<uint8_t> tmp` churn in `uniform_range()` with stack `uint8_t stack_tmp[0xA00]`, and clears `BankCache::bytes` via `.clear()` across recordings instead of reallocating `c = BankCache{}`. - **Switch control (`gpu/vk/switches.def`):** adds `RX_VK_DESC_WRITER_INLINE` (`1` ON default, `0` OFF legacy, `check` lockstep shadow parity verification logging counts and mismatches every `100000` checks), sampled per recording via `draw_begin_recording()`. First files to read: `gpu/vk/desc_writer_inline.h`, `gpu/vk/vk_draw.cpp` (`build_descriptors`, `uniform_range`, `desc_writer_inline_begin_recording`), `tests/test_vk_desc_writer_inline.py`. ## Testing **Tested:** - **Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4):** 30 s live `RX_VK_DESC_WRITER_INLINE=check` parity run in `market` (`Market_Child`, pre-rebase commit `c9c85be6e`): `2348` frames at `78.3` fps (`1% low 61.5 fps`), `3,300,000+` checks, `0` mismatches, `RUN_ERROR=None`. - **Game-free checks on the current head (`7d96eed8f`, rebased onto main `7bc53f84`; Windows 11, llvm-mingw clang++ and g++):** `tests/test_vk_desc_writer_inline.py` passes with both compilers and catches all 18 broken variants. `vk_draw.cpp` passes a `clang++ -fsyntax-only` compile with the renderer's own command from the build plan. `tests/run_all.py --changed origin/main` on `89d0e7fc8` (224 checks): 210 passed, 3 failed, 11 skipped. `test_vk_desc_writer_inline` failed because its harness did not know #3048's code in `build_descriptors`; fixed in `7d96eed8f`. `test_turf_budget` fails the same way on main `7bc53f84` on this PC (`order_watch_on` undeclared, from `vk_replay.cpp`, which this PR does not touch), and `test_fallback_buffer_cleanup` timed out (it fails on main on this PC too). `run_all.py --exact` for the checks that cut `build_descriptors` or `draw_begin_recording` (`test_vk_draw_overhead_lean`, `test_hos_ab`, `test_switch_table`, `test_dummy_views`, `test_handle_table_arrays`, `test_draw_binds`, `test_draw_stream_visibility`, `test_fsr_uniform_ownership`, `test_recording_admission`): 9 passed. No renderer build or game run on this head. **Still to test:** - Game runs on AMD, Linux and Steam Deck, and a base-vs-head comparison at the device's normal preset and resolution (Test Farm / `@Beanstalk`). The `=check` run above is from before the check-mode pointer fix; a new `=check` run in the game should now report 0 mismatches. ## Measurements **Verdict:** Faster with `RX_VK_DESC_WRITER_INLINE` ON (default) on the RTX 4060, no difference on an RX 580 (below): `+1.19%` fps (`-0.150 ms` mean frame time, 95% CI `+0.81%` to `+1.61%` across 5/5 runs; `desc_ms -9.20%` (`-0.2362 ms`), `draw_ms -3.40%` (`-0.2448 ms`), higher `1%` and `0.1%` lows). Switch ships at default `1` (ON). Setup: Windows 11, NVIDIA GeForce RTX 4060; `market` (`Market, child (crowded)`), 804x581, Custom preset, 50% internal res (768x432), 1280x720 output, uncapped (`HOS_FPS_MAX=1000`), `RX_VK_FRAME_TRACE=1`, 5×90 s interleaved in-run A/B (`HOS_AB=RX_VK_DESC_WRITER_INLINE=0,3,0`) on `c9c85be6e` (`SIDE_0` unset = ON vs `SIDE_1` `=0` = OFF). Both sides are this PR's build, and `=0` still runs the build's other changes, so this is ON vs OFF, not main vs this PR. It also used 50% internal resolution, not the normal preset. The PR is now on main `7bc53f84`; the rebase over #3048 (`RX_VK_DRAW_OVERHEAD_LEAN`) keeps its `unbindable_image` marking and `lean_bind_stamp()` in the staged texture and uniform-buffer paths. The rebase and the check-mode fix leave the ON path's per-draw work as measured: check mode now builds the staged pointers the way ON does, and the bank cache's reset at a recording's start moves the copy's buffer instead of clearing fields one by one. The numbers have not been measured again. | Metric | Before: main @ d53dbe94b (measured as this PR's `RX_VK_DESC_WRITER_INLINE=0` path on c9c85be6e) | After: this PR @ c9c85be6e (`RX_VK_DESC_WRITER_INLINE=1`) | Δ (ON vs OFF) | |---|---|---|---| | Average fps (pooled 5×90 s) | `79.36` | `80.29` | `+1.19%` (CI `+0.81%`..`+1.61%`) | | P50 fps | `81.23` | `82.00` | `+0.77` fps | | 1% Low fps | `60.90` | `61.35` | `+0.45` fps | | 0.1% Low fps | `45.72` | `47.10` | `+1.38` fps | | Mean frame time (`ms`) | `12.6015 ms` | `12.4555 ms` | `-0.1460 ms` (`-1.16%`) | | `desc_ms` | `2.5660 ms` | `2.3298 ms` | `-0.2362 ms` (`-9.20%`) | | `draw_ms` | `7.1899 ms` | `6.9451 ms` | `-0.2448 ms` (`-3.40%`) | | Frames ≥ 50 ms / min | `0.00` | `0.00` | `0.00` | On a second system the gain does not show: HumanBean's AMD Lab (Linux, Mesa RADV, Radeon RX 580, Core i7-9700K; Market child, 1280x720 output at 33% render scale, uncapped, 3 alternating pairs of 60 s, PR head `f17d456a5` merged onto main `ee9e1ed76`, `=0` vs `=1` in one build): average fps `60.52` → `60.23` (`-0.48%`, within the run-to-run spread), p99 `19.72` → `19.73 ms`, renderer CPU thread `9.43 / 9.66 / 9.62 ms` (`=0`) vs `9.64 / 9.50 / 9.56 ms` (`=1`): no difference. That lab is GPU-bound at any scale, so the CPU thread is the row to read. An earlier run there at 50% (`-0.88%`) was superseded by this one. ## Risks - Low risk: all inline staging paths are gated by `RX_VK_DESC_WRITER_INLINE` (`=0` falls back immediately to legacy `std::vector::push_back` at any recording boundary), overflow-checked with reusable TLS scratch for programs exceeding inline capacity, and verified with an `=check` lockstep comparison (`3.3M+` checks, `0` mismatches). That run was before `=check` compared the inline path's own write pointers (`e94116358`). No API structs, persistent files, or shader formats change. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes: `run_all.py --changed origin/main` (the 206 checks that read the changed files) passes except 6 that also fail on main `b4d56f526` on this PC, named in Testing. - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested. - [ ] Approved in review, every comment answered. - [ ] CI passes on the head.
perf(vk): inline pointer-bump DescWriter staging in build_descriptors (RX_VK_DESC_WRITER_INLINE)
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
3f811745bb
Eliminates per-descriptor std::vector capacity checks and steady-state heap allocations in build_descriptors() and uniform_range() BankCache via gpu/vk/desc_writer_inline.h, with =0 legacy fallback, =check shadow parity, HOS_AB wiring, and tests/test_vk_desc_writer_inline.py.

Assisted-by: Antigravity (Google DeepMind)
Author
Contributor

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4), market (Market_Child): 30 s RX_VK_DESC_WRITER_INLINE=check (2348 frames, 78.3 fps, 3.3M+ checks, 0 mismatches); 5x90 s in-run A/B (80.29 ON vs 79.36 OFF fps, +1.19%, 95% CI +0.81%..+1.61%, desc_ms -9.20%); rebased head 3f811745b compiled (0 failed) and passed 8/8 strict descriptor/switch tests.

Tested in game: Windows 11, NVIDIA GeForce RTX 4060 (Vulkan 1.4), market (Market_Child): 30 s RX_VK_DESC_WRITER_INLINE=check (2348 frames, 78.3 fps, 3.3M+ checks, 0 mismatches); 5x90 s in-run A/B (80.29 ON vs 79.36 OFF fps, +1.19%, 95% CI +0.81%..+1.61%, desc_ms -9.20%); rebased head 3f811745b compiled (0 failed) and passed 8/8 strict descriptor/switch tests.
Member

Possibly related, for context:

  • PR #2989 perf(vk): precompile per-program descriptor plans (RX_VK_DESC_PLAN_FAST) — Open descriptor-plan optimization shares build_descriptors and may overlap implementation
Possibly related, for context: - PR #2989 perf(vk): precompile per-program descriptor plans (RX_VK_DESC_PLAN_FAST) — Open descriptor-plan optimization shares build_descriptors and may overlap implementation
Member
@review
BeanBot left a comment

Recommendation: Approve. The reported 1.19% FPS gain is from an older branch revision at reduced resolution, with the legacy switch as the comparison rather than the stated main commit. The default-on renderer change still needs measurements against the actual base at player settings and coverage on the affected Tier 1 systems. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

Descriptor builds stage writes in inline buffers and retain scratch capacity to reduce allocation and vector growth overhead. This adds a second assembly path, per-build planning and copying, and retained per-thread memory.

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

  • L1 gpu/vk/vk_draw.cpp:5648: Check mode uses the legacy pointer calculation for both outputs, so its pointer comparison does not exercise the inline path's pointer calculation. (more on the line) Do: Construct the staged write pointers using the Mode-1 calculation in check mode and compare their offsets against the legacy pointers; add a check-mode test that corrupts that calculation.

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

  • L2: The measured improvement does not establish the gain against the actual base at the settings players use. When: The reported 1.19% result compares ON and OFF on c9c85be6e at 50% internal resolution; the OFF branch still contains other code from this change, and neither side is the stated base or current HEAD. Do: Run repeated interleaved base-versus-HEAD measurements at the device's normal preset and resolution, including the target and heavy areas, FPS lows and frame times.
  • L3: The default-on descriptor path has not been exercised across the Tier 1 systems it affects. When: Only Windows on an NVIDIA RTX 4060 has a reported game run; descriptor construction and its CPU cost also affect Linux, AMD and Steam Deck players. Do: Run representative game and performance comparisons on the remaining Tier 1 OS and GPU combinations, including Steam Deck, and report rendering correctness and frame-time lows.

@fix can do L1.

Checks: Still running: 11 checks.

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

Does it help: Unproven against the requested baseline. Five interleaved runs on an RTX 4060 reported 80.29 versus 79.36 FPS and improved lows, but compared switch modes on pre-rebase c9c85be6e at 50% internal resolution, not HEAD against its base at the normal preset and resolution.

Other systems: The changed path handles graphics and compute descriptors on Windows and Linux, including texture hazards and descriptor reuse. The supplied game run covers Windows and NVIDIA only; AMD, Linux and Steam Deck behavior and performance remain unverified. The host API and shaders do not change.

Switches: RX_VK_DESC_WRITER_INLINE is added, default 1; 0 uses the legacy path and check compares staged results. Its table row is present, but the default's benefit across supported systems is not yet established.

Reviewed: 3f811745bb against 455b083738: Read the repository rules, PR template, commit and changed production paths, including descriptor consumers and the staging header. Reviewed the new test harness and mutations, and skimmed the remaining unchanged portions of vk_draw.cpp and test_hos_ab.py. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).

Checked and fine:

  • The driver-bank stack buffer is bounded by the existing 0xA00 size clamp.
  • The descriptor plan accounts for each descriptor list, and the retained BankCache reset restores its non-vector fields.
  • The commit records AI assistance; no generated shader, API interface or third-party file changes appear in the diff.

Testing: No commands from the change were run, as requested. The supplied Windows parity and A/B results were considered; CI is still running.

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


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

**Recommendation: Approve.** The reported 1.19% FPS gain is from an older branch revision at reduced resolution, with the legacy switch as the comparison rather than the stated main commit. The default-on renderer change still needs measurements against the actual base at player settings and coverage on the affected Tier 1 systems. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. Descriptor builds stage writes in inline buffers and retain scratch capacity to reduce allocation and vector growth overhead. This adds a second assembly path, per-build planning and copying, and retained per-thread memory. **Should fix (1)**: not blocking, but worth doing before merging. - **L1** `gpu/vk/vk_draw.cpp:5648`: Check mode uses the legacy pointer calculation for both outputs, so its pointer comparison does not exercise the inline path's pointer calculation. (more on the line) **Do:** Construct the staged write pointers using the Mode-1 calculation in check mode and compare their offsets against the legacy pointers; add a check-mode test that corrupts that calculation. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The measured improvement does not establish the gain against the actual base at the settings players use. *When:* The reported 1.19% result compares ON and OFF on c9c85be6e at 50% internal resolution; the OFF branch still contains other code from this change, and neither side is the stated base or current HEAD. **Do:** Run repeated interleaved base-versus-HEAD measurements at the device's normal preset and resolution, including the target and heavy areas, FPS lows and frame times. - **L3**: The default-on descriptor path has not been exercised across the Tier 1 systems it affects. *When:* Only Windows on an NVIDIA RTX 4060 has a reported game run; descriptor construction and its CPU cost also affect Linux, AMD and Steam Deck players. **Do:** Run representative game and performance comparisons on the remaining Tier 1 OS and GPU combinations, including Steam Deck, and report rendering correctness and frame-time lows. `@fix` can do L1. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against the requested baseline. Five interleaved runs on an RTX 4060 reported 80.29 versus 79.36 FPS and improved lows, but compared switch modes on pre-rebase c9c85be6e at 50% internal resolution, not HEAD against its base at the normal preset and resolution. **Other systems:** The changed path handles graphics and compute descriptors on Windows and Linux, including texture hazards and descriptor reuse. The supplied game run covers Windows and NVIDIA only; AMD, Linux and Steam Deck behavior and performance remain unverified. The host API and shaders do not change. **Switches:** RX_VK_DESC_WRITER_INLINE is added, default 1; 0 uses the legacy path and check compares staged results. Its table row is present, but the default's benefit across supported systems is not yet established. **Reviewed:** 3f811745bb4b against 455b083738f4: Read the repository rules, PR template, commit and changed production paths, including descriptor consumers and the staging header. Reviewed the new test harness and mutations, and skimmed the remaining unchanged portions of vk_draw.cpp and test_hos_ab.py. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review). **Checked and fine:** - The driver-bank stack buffer is bounded by the existing 0xA00 size clamp. - The descriptor plan accounts for each descriptor list, and the retained BankCache reset restores its non-vector fields. - The commit records AI assistance; no generated shader, API interface or third-party file changes appear in the diff. **Testing:** No commands from the change were run, as requested. The supplied Windows parity and A/B results were considered; CI is still running. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -5516,0 +5645,4 @@
}
if constexpr (Mode != 1) draw_sampled().push_back(tex);
};
auto buf_ptr_at = [&](size_t first) -> const VkDescriptorBufferInfo* {
Member

L1 (should fix): Check mode uses the legacy pointer calculation for both outputs, so its pointer comparison does not exercise the inline path's pointer calculation.

When: In mode 2, buf_ptr_at, img_ptr_at and view_ptr_at all take the non-Mode-1 branch; the same write is then emitted to both writers. A wrong Mode-1 backing pointer can therefore produce zero check mismatches while the default path supplies an invalid descriptor pointer.

Do: Construct the staged write pointers using the Mode-1 calculation in check mode and compare their offsets against the legacy pointers; add a check-mode test that corrupts that calculation.

**L1** (should fix): Check mode uses the legacy pointer calculation for both outputs, so its pointer comparison does not exercise the inline path's pointer calculation. *When:* In mode 2, buf_ptr_at, img_ptr_at and view_ptr_at all take the non-Mode-1 branch; the same write is then emitted to both writers. A wrong Mode-1 backing pointer can therefore produce zero check mismatches while the default path supplies an invalid descriptor pointer. **Do:** Construct the staged write pointers using the Mode-1 calculation in check mode and compare their offsets against the legacy pointers; add a check-mode test that corrupts that calculation.
siantm force-pushed perf/vk-desc-writer-inline from 3f811745bb
Some checks failed
PR description / Title and description (pull_request_target) Successful in 7s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 78e7ccba4c
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-03 16:05:41 +00:00
Compare
test(vk): the fixtures that cut draw_begin_recording and the texture loop know the inline staging
Some checks reported errors
PR description / Title and description (pull_request_target) Successful in 4s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/amd 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/linux 0/1 pass, 2 error
beanstalk/windows 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 2 error
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
f17d456a59
- draw_begin_recording keeps the bank cache's copy capacity by moving its buffer across `c = BankCache{}`
  rather than resetting the other fields one by one: the same result, and a field added to BankCache is
  reset without anyone having to remember it here.
- tests/draw_stream_visibility_test.cpp, fsr_uniform_ownership_test.cpp, recording_admission_test.cpp: stubs for
  desc_writer_inline_begin_recording and desc_writer_inline_mode (1, the shipped default), and the bank cache's
  `bytes` in the two stand-in BankCaches. tests/test_dummy_views.py: the emitters (emit_img, emit_sampled,
  emit_depth, cur_img_count) the cut texture loop now calls. All four failed to compile against this PR's
  vk_draw.cpp; test_vk_desc_writer_inline.py's source check follows the reset's new line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Rebased onto main b4d56f526 because the PR could not be merged as it was. I also fixed L1 and five checks that this PR broke. The head is now f17d456a5.

Rebase: gpu/vk/vk_draw.cpp conflicted with #3032 (depth-comparison dummy views) and #2822 (which removed rec_grass_reach). The resolution keeps main's dummy_view (the depth dummy for comparison samplers) and this PR's emit_sampled / emit_depth, in both texture loops, and leaves out the rec_grass_reach line that main removed.

L1 (check mode compared only the legacy pointer calculation): fixed in e94116358.

  • The staged write now always gets the Mode-1 pointer (stage.out_*_base + first), in check mode too. The legacy write gets out.*.data() + first. This is done by emit_buf_write / emit_img_write / emit_view_write in build_descriptors, which replace emit_write and the *_ptr_at helpers.
  • verify_parity (gpu/vk/desc_writer_inline.h) first checks that the staged bases are the writer's own arrays, then that every write's buffer, image and texel-view pointer equals the legacy one. A mismatch names each side's index.
  • Tests in tests/test_vk_desc_writer_inline.py:
    • a moved staged base must fail verify_parity, and so must a staged write pointer at a different index;
    • new broken variants verify_skip_staged_base and check_wrong_staged_{buf,img,view}_ptr. The last three move the Mode-1 pointer by one element and run check mode alone, with no mode-1 build compared (-DDWI_CHECK_MODE_ONLY). Check mode has to count the mismatch.
    • With the old check mode those three would pass, because the Mode-1 pointer was never computed there.

Checks this PR broke (none of them was in the 8 checks run before):

  • 78e7ccba4: test_handle_table_arrays required stage_handles(..., table.data(), p.key), which this PR changed to table_ptr. The check now requires the new call and that both tables are sized to d.count.
  • f17d456a5: four fixtures that cut code from vk_draw.cpp no longer compiled:
    • draw_stream_visibility_test.cpp, fsr_uniform_ownership_test.cpp, recording_admission_test.cpp: they were missing desc_writer_inline_begin_recording / desc_writer_inline_mode, and two of them stub BankCache without the fields the reset wrote.
    • test_dummy_views.py: it was missing the texture loop's emitters.
  • I simplified the reset at a recording's start: it now moves bytes out, does c = BankCache{}, and moves bytes back. That keeps the buffer's capacity as before, without listing every field, so a field added to BankCache later is reset too. The stubs needed only bytes after that.

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

  • python -I -B tests/test_vk_desc_writer_inline.py: PASS with clang++ and g++; all 18 broken variants caught.
  • python -I -B tests/run_all.py --changed origin/main on 78e7ccba4 (206 checks): 195 passed, 11 failed.
    • 4 are the fixtures above.
    • 6 fail the same way on main b4d56f526 on this PC: test_fallback_buffer_cleanup, test_jobs_wait_runs_queued, test_mesh_args_cleanup, test_pipeline_cache_save, test_prepare_stall, test_recorder_own_idle. I ran them with --exact in a checkout of b4d56f526.
    • test_mesh_fallback_capacity hit its 60 s timeout while the PC was loaded.
  • run_all.py --exact on f17d456a5, covering those 4, test_mesh_fallback_capacity, test_handle_table_arrays, test_vk_desc_writer_inline, test_vk_ubo_ssbo_fast, test_desc_counts and test_hos_ab: 10 passed, 0 failed.
  • No renderer build and no game run on this head. The PC is shared and C: is nearly full. CI's renderer builds will compile it.

L2 (base vs head at player settings): still open, and you're right. The 1.19% compares =1 against =0 inside the same build (c9c85be6e) at 50% internal resolution, so it is not main vs this PR. The description now says that, and the table header no longer says "main @ d53dbe94b". An interleaved base-vs-head run at the normal preset and resolution, in the market and a heavy area, still needs the farm or a person; I have not run it.

L3 (Tier 1 systems): still open. Only Windows with an RTX 4060 has a game run. AMD, Linux and Steam Deck need the farm (@Beanstalk). The in-game =check run (3.3M+ checks, 0 mismatches) was before the L1 fix, so it did not test the inline pointers. A new =check run on this head is the useful one. Both are listed under Still to test.

The description's Testing, Measurements, Risks and checklist are updated to match.

Rebased onto main `b4d56f526` because the PR could not be merged as it was. I also fixed L1 and five checks that this PR broke. The head is now `f17d456a5`. **Rebase:** `gpu/vk/vk_draw.cpp` conflicted with #3032 (depth-comparison dummy views) and #2822 (which removed `rec_grass_reach`). The resolution keeps main's `dummy_view` (the depth dummy for comparison samplers) and this PR's `emit_sampled` / `emit_depth`, in both texture loops, and leaves out the `rec_grass_reach` line that main removed. **L1 (check mode compared only the legacy pointer calculation):** fixed in `e94116358`. - The staged write now always gets the Mode-1 pointer (`stage.out_*_base + first`), in check mode too. The legacy write gets `out.*.data() + first`. This is done by `emit_buf_write` / `emit_img_write` / `emit_view_write` in `build_descriptors`, which replace `emit_write` and the `*_ptr_at` helpers. - `verify_parity` (`gpu/vk/desc_writer_inline.h`) first checks that the staged bases are the writer's own arrays, then that every write's buffer, image and texel-view pointer equals the legacy one. A mismatch names each side's index. - Tests in `tests/test_vk_desc_writer_inline.py`: - a moved staged base must fail `verify_parity`, and so must a staged write pointer at a different index; - new broken variants `verify_skip_staged_base` and `check_wrong_staged_{buf,img,view}_ptr`. The last three move the Mode-1 pointer by one element and run check mode alone, with no mode-1 build compared (`-DDWI_CHECK_MODE_ONLY`). Check mode has to count the mismatch. - With the old check mode those three would pass, because the Mode-1 pointer was never computed there. **Checks this PR broke** (none of them was in the 8 checks run before): - `78e7ccba4`: `test_handle_table_arrays` required `stage_handles(..., table.data(), p.key)`, which this PR changed to `table_ptr`. The check now requires the new call and that both tables are sized to `d.count`. - `f17d456a5`: four fixtures that cut code from `vk_draw.cpp` no longer compiled: - `draw_stream_visibility_test.cpp`, `fsr_uniform_ownership_test.cpp`, `recording_admission_test.cpp`: they were missing `desc_writer_inline_begin_recording` / `desc_writer_inline_mode`, and two of them stub `BankCache` without the fields the reset wrote. - `test_dummy_views.py`: it was missing the texture loop's emitters. - I simplified the reset at a recording's start: it now moves `bytes` out, does `c = BankCache{}`, and moves `bytes` back. That keeps the buffer's capacity as before, without listing every field, so a field added to `BankCache` later is reset too. The stubs needed only `bytes` after that. **Tested** (Windows 11, llvm-mingw, through the PC's job queue): - `python -I -B tests/test_vk_desc_writer_inline.py`: PASS with clang++ and g++; all 18 broken variants caught. - `python -I -B tests/run_all.py --changed origin/main` on `78e7ccba4` (206 checks): 195 passed, 11 failed. - 4 are the fixtures above. - 6 fail the same way on main `b4d56f526` on this PC: `test_fallback_buffer_cleanup`, `test_jobs_wait_runs_queued`, `test_mesh_args_cleanup`, `test_pipeline_cache_save`, `test_prepare_stall`, `test_recorder_own_idle`. I ran them with `--exact` in a checkout of `b4d56f526`. - `test_mesh_fallback_capacity` hit its 60 s timeout while the PC was loaded. - `run_all.py --exact` on `f17d456a5`, covering those 4, `test_mesh_fallback_capacity`, `test_handle_table_arrays`, `test_vk_desc_writer_inline`, `test_vk_ubo_ssbo_fast`, `test_desc_counts` and `test_hos_ab`: 10 passed, 0 failed. - No renderer build and no game run on this head. The PC is shared and C: is nearly full. CI's renderer builds will compile it. **L2 (base vs head at player settings):** still open, and you're right. The 1.19% compares `=1` against `=0` inside the same build (`c9c85be6e`) at 50% internal resolution, so it is not main vs this PR. The description now says that, and the table header no longer says "main @ d53dbe94b". An interleaved base-vs-head run at the normal preset and resolution, in the market and a heavy area, still needs the farm or a person; I have not run it. **L3 (Tier 1 systems):** still open. Only Windows with an RTX 4060 has a game run. AMD, Linux and Steam Deck need the farm (`@Beanstalk`). The in-game `=check` run (3.3M+ checks, 0 mismatches) was before the L1 fix, so it did not test the inline pointers. A new `=check` run on this head is the useful one. Both are listed under Still to test. The description's Testing, Measurements, Risks and checklist are updated to match.
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 f17d456 (the newer results are in a comment below)

Commit f17d456 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The fixed CPU-focused settings do not test each device's normal preset and resolution; the farm also cannot isolate descriptor or draw milliseconds or reliably establish the claimed 1.19% gain with these samples.
⚠️ Note: Check mode fails on a mismatch log, but the plan cannot guarantee that the periodic 100,000-check progress line is reached or that rare overflow shaders are exercised.

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

The change could not be judged on NVIDIA, AMD, Intel, Linux, Windows or Steam Deck. All reports stopped before gameplay because main’s tools.lock has unexpected SDL URLs on line 32, so there are no performance or other comparison measurements. Steam Deck did receive error reports despite the earlier note that it would wait for a tester.

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

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

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

  • nvidia, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • nvidia, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • amd, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • amd, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • intel, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • intel, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • linux, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • linux, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • and 4 more, in the reports
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 Kokiri Forest, using uncapped, CPU-focused gameplay with three starts per side and 30-second measurements at each location. A separate check-mode run will exercise descriptor parity, while still-scene screenshots test rendering against main. Crashes, descriptor mismatch logs, substantial frame-time regressions, or excessive screenshot differences fail the plan. NVIDIA, AMD, Intel, Linux, Windows and Steam Deck are covered; the Steam Deck target will wait for a tester to come online. No tester online now matches steamdeck: that target waits for one.

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

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

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss NVIDIA GeForce RTX 5090, 621.47.0 AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss `NVIDIA GeForce RTX 5090, 621.47.0` `AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

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

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

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

Nothing was measured: no metric came back.

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

Nothing was measured: no metric came back.

**Flags and settings**

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

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

Hardware: 1: 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: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

Hardware: 1: 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: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

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

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

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

Nothing was measured: no metric came back.

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

Nothing was measured: no metric came back.

**Flags and settings**

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

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

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

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

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

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, 12 GB RAM
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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, 12 GB RAM`  
Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-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+dlss NVIDIA GeForce RTX 5090, 621.47.0 AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM
nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM
amd 1 linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.3.1 AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM
amd 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
intel 1 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 1 linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.3.1 AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM
linux 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
windows 1 windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 4090, 621.40.0 13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM
windows 2 windows+nvidia+nvidia-proprietary+dgpu+window+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
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, 12 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>f17d456</code> (the newer results are in a comment below)</summary> Commit `f17d456` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/3049) ⚠️ **Note:** The fixed CPU-focused settings do not test each device's normal preset and resolution; the farm also cannot isolate descriptor or draw milliseconds or reliably establish the claimed 1.19% gain with these samples. ⚠️ **Note:** Check mode fails on a mismatch log, but the plan cannot guarantee that the periodic 100,000-check progress line is reached or that rare overflow shaders are exercised. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change could not be judged on NVIDIA, AMD, Intel, Linux, Windows or Steam Deck. All reports stopped before gameplay because main’s tools.lock has unexpected SDL URLs on line 32, so there are no performance or other comparison measurements. Steam Deck did receive error reports despite the earlier note that it would wait for a tester. Done (started 06:39 UTC, last report 23:25 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `nvidia` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_1dd20067418ea3ad) [2](https://beanstalk.magicbean.dev/reports/rp_9b23a5e4f10aabc2) | — | — | none | | `amd` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_3b9f910a1f976f56) [2](https://beanstalk.magicbean.dev/reports/rp_413a702992ee1796) | — | — | none | | `intel` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_a56fc4c43c43d56e) [2](https://beanstalk.magicbean.dev/reports/rp_5272047a4ea40bbc) | — | — | none | | `linux` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_f2bc72855bc41883) [2](https://beanstalk.magicbean.dev/reports/rp_732245ed981a3c9e) | — | — | none | | `windows` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_ddb82a56bd73e0b5) [2](https://beanstalk.magicbean.dev/reports/rp_b4aae868b8a9b8c1) | — | — | none | | `steamdeck` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_c37468db3d2842fa) [2](https://beanstalk.magicbean.dev/reports/rp_72baa3ab8b141f21) | — | — | none | **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_1dd20067418ea3ad): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_9b23a5e4f10aabc2): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `amd`, [report 1](https://beanstalk.magicbean.dev/reports/rp_3b9f910a1f976f56): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_413a702992ee1796): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_a56fc4c43c43d56e): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `intel`, [report 2](https://beanstalk.magicbean.dev/reports/rp_5272047a4ea40bbc): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `linux`, [report 1](https://beanstalk.magicbean.dev/reports/rp_f2bc72855bc41883): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `linux`, [report 2](https://beanstalk.magicbean.dev/reports/rp_732245ed981a3c9e): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - and 4 more, in the reports <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 Kokiri Forest, using uncapped, CPU-focused gameplay with three starts per side and 30-second measurements at each location. A separate check-mode run will exercise descriptor parity, while still-scene screenshots test rendering against main. Crashes, descriptor mismatch logs, substantial frame-time regressions, or excessive screenshot differences fail the plan. NVIDIA, AMD, Intel, Linux, Windows and Steam Deck are covered; the Steam Deck target will wait for a tester to come online. No tester online now matches steamdeck: that target waits for one. - **Where:** nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), linux (1-2 reports), windows (1-2 reports), steamdeck (1-2 reports). - **Matrix:** 1 cell, each on main and the PR: RX_VK_DESC_WRITER_INLINE `check` (PR only). - **default-performance:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 30 s (after 10 s warm-up); 3 runs on each side. - **descriptor-parity:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, measure market-check for 30 s (after 10 s warm-up), teleport to Kokiri Forest, measure forest-check for 30 s (after 10 s warm-up); 1 run on each side. - **Measured:** crashes, frame times, stutters and hitches, the game's log. - **The PR fails if:** it crashes; or frame time (p99) in forest is more than 15% above main; or frame time (worst 1%) in forest 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 52 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:** could not be judged on nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss `NVIDIA GeForce RTX 5090, 621.47.0` `AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on nvidia (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss `NVIDIA GeForce RTX 5090, 621.47.0` `AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `amd`, for the PR description</summary> **Verdict:** could not be judged on amd (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on amd (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** could not be judged on intel (2 reports). Hardware: 1: 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: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on intel (2 reports). Hardware: 1: 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: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `linux`, for the PR description</summary> **Verdict:** could not be judged on linux (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on linux (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `windows`, for the PR description</summary> **Verdict:** could not be judged on windows (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows (2 reports). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** could not be judged on steamdeck (2 reports). 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, 12 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-parity, main without it → the PR with check: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on steamdeck (2 reports). 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, 12 GB RAM` Scene: default-performance, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); descriptor-parity, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); default-performance: 3 game starts a side, market 30 s after 10 s warm-up, forest 30 s after 10 s warm-up; descriptor-parity: 1 game start a side, market-check 30 s after 10 s warm-up, forest-check 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_DESC_WRITER_INLINE` | switch the PR adds (set on the PR side only) | `check` | not in main | the PR's default | descriptor-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_1dd20067418ea3ad) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss `NVIDIA GeForce RTX 5090, 621.47.0` `AMD Ryzen 9 9950X3D 16-Core Processor, 48 GB RAM` | | `nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_9b23a5e4f10aabc2) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM` | | `amd` | [1](https://beanstalk.magicbean.dev/reports/rp_3b9f910a1f976f56) | linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM` | | `amd` | [2](https://beanstalk.magicbean.dev/reports/rp_413a702992ee1796) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_a56fc4c43c43d56e) | 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_5272047a4ea40bbc) | 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` | [1](https://beanstalk.magicbean.dev/reports/rp_f2bc72855bc41883) | linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.3.1` `AMD Ryzen 5 7600X3D 6-Core Processor, 32 GB RAM` | | `linux` | [2](https://beanstalk.magicbean.dev/reports/rp_732245ed981a3c9e) | linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` | | `windows` | [1](https://beanstalk.magicbean.dev/reports/rp_ddb82a56bd73e0b5) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 4090, 621.40.0` `13th Gen Intel(R) Core(TM) i7-13700K, 32 GB RAM` | | `windows` | [2](https://beanstalk.magicbean.dev/reports/rp_b4aae868b8a9b8c1) | windows+nvidia+nvidia-proprietary+dgpu+window+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_c37468db3d2842fa) | 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_72baa3ab8b141f21) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` | </details> </details>
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The pointer-parity fix addresses the earlier code finding, but the performance gain against the base and behavior across affected Tier 1 systems remain unmeasured. CI is still running. Recommend approval; not approved on the forge.

The change stages Vulkan descriptor writes in inline buffers and retains scratch capacity to reduce allocation and per-binding overhead. It adds a check mode and substantial staging code; its gain against main has not yet been established.

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

  • L2: The measured improvement does not establish the gain against the actual base at the settings players use. When: The reported 1.19% result compares ON and OFF on c9c85be6e at 50% internal resolution; the OFF branch still contains other code from this change, and neither side is the stated base or current HEAD. Do: Run repeated interleaved base-versus-HEAD measurements at the device's normal preset and resolution, including the target and heavy areas, FPS lows and frame times.
  • L3: The default-on descriptor path has not been exercised across the Tier 1 systems it affects. When: Only Windows on an NVIDIA RTX 4060 has a reported game run; descriptor construction and its CPU cost also affect Linux, AMD and Steam Deck players. Do: Run representative game and performance comparisons on the remaining Tier 1 OS and GPU combinations, including Steam Deck, and report rendering correctness and frame-time lows.

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

  • Can the Test Farm run current-head check-mode parity and repeated base-versus-head measurements at normal settings on affected Tier 1 hardware?

Since the last review (on 3f811745bb)
Resolved: L1 (Check mode uses the legacy pointer calculation for both outputs, so its pointer comparison…)
Still open: L2 (The measured improvement does not establish the gain against the actual base at the settin…); L3 (The default-on descriptor path has not been exercised across the Tier 1 systems it affects…)

Checks: Still running: 10 checks.

Also noticed (1; not asked for, not blocking)
  • The measurements table still labels the OFF path as main, although the surrounding text correctly explains that both sides use the PR build.
More: does it help, other systems, switches, what was read

Does it help: Unproven against the base: five interleaved runs on a Windows RTX 4060 reported 80.29 versus 79.36 fps, with higher lows, but compared ON and OFF in the same older PR build at 50% internal resolution. They do not measure the full change against main at normal player settings.

Other systems: The descriptor path affects Vulkan rendering across GPUs and operating systems, including Linux and Steam Deck. The recorded game parity run was on Windows NVIDIA and predates the pointer fix; AMD, Linux, Steam Deck and current-head game results are still needed.

Switches: RX_VK_DESC_WRITER_INLINE is added, default 1; 0 selects legacy staging and check enables parity comparison. The default's performance against main and across affected systems remains unproven.

Reviewed: f17d456a59 against b4d56f5264: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the changed pointer emitters and parity verifier, the recording reset, and the fix diff. Skimmed the remaining diff and test harness; the complete changed code and all supporting callers were not read. docs/review-checklist.md and the adjacent Tooling checkout were unavailable.; nothing run (a code review).

Checked and fine:

  • The changed emitters cover buffer, image and texel-view writes, including both texture paths.
  • The recording reset preserves byte-buffer capacity while resetting the remaining BankCache fields.

Testing: No commands that build, execute tests or run the game were run. The author reports current-head game-free tests passing and an older Windows NVIDIA game run; CI is still running.

Overlaps and merge order: Not checked.


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 pointer-parity fix addresses the earlier code finding, but the performance gain against the base and behavior across affected Tier 1 systems remain unmeasured. CI is still running. Recommend approval; not approved on the forge. The change stages Vulkan descriptor writes in inline buffers and retains scratch capacity to reduce allocation and per-binding overhead. It adds a check mode and substantial staging code; its gain against main has not yet been established. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L2**: The measured improvement does not establish the gain against the actual base at the settings players use. *When:* The reported 1.19% result compares ON and OFF on c9c85be6e at 50% internal resolution; the OFF branch still contains other code from this change, and neither side is the stated base or current HEAD. **Do:** Run repeated interleaved base-versus-HEAD measurements at the device's normal preset and resolution, including the target and heavy areas, FPS lows and frame times. - **L3**: The default-on descriptor path has not been exercised across the Tier 1 systems it affects. *When:* Only Windows on an NVIDIA RTX 4060 has a reported game run; descriptor construction and its CPU cost also affect Linux, AMD and Steam Deck players. **Do:** Run representative game and performance comparisons on the remaining Tier 1 OS and GPU combinations, including Steam Deck, and report rendering correctness and frame-time lows. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - Can the Test Farm run current-head check-mode parity and repeated base-versus-head measurements at normal settings on affected Tier 1 hardware? **Since the last review** (on 3f811745bb4b) Resolved: L1 (Check mode uses the legacy pointer calculation for both outputs, so its pointer comparison…) Still open: L2 (The measured improvement does not establish the gain against the actual base at the settin…); L3 (The default-on descriptor path has not been exercised across the Tier 1 systems it affects…) **Checks:** Still running: 10 checks. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The measurements table still labels the OFF path as main, although the surrounding text correctly explains that both sides use the PR build. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against the base: five interleaved runs on a Windows RTX 4060 reported 80.29 versus 79.36 fps, with higher lows, but compared ON and OFF in the same older PR build at 50% internal resolution. They do not measure the full change against main at normal player settings. **Other systems:** The descriptor path affects Vulkan rendering across GPUs and operating systems, including Linux and Steam Deck. The recorded game parity run was on Windows NVIDIA and predates the pointer fix; AMD, Linux, Steam Deck and current-head game results are still needed. **Switches:** RX_VK_DESC_WRITER_INLINE is added, default 1; 0 selects legacy staging and check enables parity comparison. The default's performance against main and across affected systems remains unproven. **Reviewed:** f17d456a59ff against b4d56f526449: Read AGENTS.md, CONTRIBUTING.md, the pull request template, the changed pointer emitters and parity verifier, the recording reset, and the fix diff. Skimmed the remaining diff and test harness; the complete changed code and all supporting callers were not read. docs/review-checklist.md and the adjacent Tooling checkout were unavailable.; nothing run (a code review). **Checked and fine:** - The changed emitters cover buffer, image and texel-view writes, including both texture paths. - The recording reset preserves byte-buffer capacity while resetting the remaining BankCache fields. **Testing:** No commands that build, execute tests or run the game were run. The author reports current-head game-free tests passing and an older Windows NVIDIA game run; CI is still running. **Overlaps and merge order:** Not checked. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Owner

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

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

Metric A (0) B (1)
Average FPS, each capture 60.15 / 60.64 / 60.60 60.13 / 59.09 / 60.06
Average FPS, median 60.60 60.06
1% low FPS (1000 ÷ p99), median 51.53 50.23
Median frame time 16.51 ms 16.64 ms
p99 frame time, median 19.41 ms 19.91 ms
Frames of 50 ms or more, each capture 0 / 0 / 0 0 / 0 / 0

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

The two ranges only just separate (highest B 60.13, lowest A 60.15) and the gap is under 1%, so read this as no gain on this PC rather than a measurable loss.

AMD Lab Market A/B: PR head `f17d456a59ff` merged onto `main` `ee9e1ed76`, using `RX_VK_DESC_WRITER_INLINE=0` (A) and `RX_VK_DESC_WRITER_INLINE=1` (B) on the same build. **Slower in these captures.** Median average FPS changed by **-0.88%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 60.15 / 60.64 / 60.60 | 60.13 / 59.09 / 60.06 | | Average FPS, median | 60.60 | 60.06 | | 1% low FPS (1000 ÷ p99), median | 51.53 | 50.23 | | Median frame time | 16.51 ms | 16.64 ms | | p99 frame time, median | 19.41 ms | 19.91 ms | | Frames of 50 ms or more, each capture | 0 / 0 / 0 | 0 / 0 / 0 | Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 60 seconds per capture after warm-up, each a timing job of the queue. The two ranges only just separate (highest B 60.13, lowest A 60.15) and the gap is under 1%, so read this as no gain on this PC rather than a measurable loss.
Owner

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

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

Metric A (0) B (1)
Average FPS, each capture 60.95 / 60.52 / 60.05 59.42 / 60.23 / 60.45
Average FPS, median 60.52 60.23
1% low FPS (1000 ÷ p99), median 50.72 50.68
Median frame time 16.50 ms 16.60 ms
p99 frame time, median 19.72 ms 19.73 ms
Frames of 50 ms or more, each capture 0 / 1 / 0 0 / 0 / 0

Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output at 33% render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 60 seconds per capture after warm-up, each a timing job of the queue.

Time a frame (each capture) A B
Renderer's CPU thread (replay, submit) 9.43 / 9.66 / 9.62 ms 9.64 / 9.50 / 9.56 ms
GPU time 12.20 / 12.20 / 12.20 ms 12.30 / 12.20 / 12.20 ms

This replaces my earlier lab run at 50% render scale: its -0.9% did not hold up. The RX 580 lab can't be made cleanly CPU-bound (neither scale nor scene takes the GPU out of the frame), so the CPU thread row is the one to read for this change: no difference there either.

AMD Lab Market A/B: PR head `f17d456a59ff` merged onto `main` `ee9e1ed76`, using `RX_VK_DESC_WRITER_INLINE=0` (A) and `RX_VK_DESC_WRITER_INLINE=1` (B) on the same build. **Within the run-to-run spread.** Median average FPS changed by **-0.48%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 60.95 / 60.52 / 60.05 | 59.42 / 60.23 / 60.45 | | Average FPS, median | 60.52 | 60.23 | | 1% low FPS (1000 ÷ p99), median | 50.72 | 50.68 | | Median frame time | 16.50 ms | 16.60 ms | | p99 frame time, median | 19.72 ms | 19.73 ms | | Frames of 50 ms or more, each capture | 0 / 1 / 0 | 0 / 0 / 0 | Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output at 33% render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 60 seconds per capture after warm-up, each a timing job of the queue. | Time a frame (each capture) | A | B | |---|---:|---:| | Renderer's CPU thread (replay, submit) | 9.43 / 9.66 / 9.62 ms | 9.64 / 9.50 / 9.56 ms | | GPU time | 12.20 / 12.20 / 12.20 ms | 12.30 / 12.20 / 12.20 ms | This replaces [my earlier lab run](https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3049#issuecomment-102278) at 50% render scale: its -0.9% did not hold up. The RX 580 lab can't be made cleanly CPU-bound (neither scale nor scene takes the GPU out of the frame), so the CPU thread row is the one to read for this change: no difference there either.
siantm force-pushed perf/vk-desc-writer-inline from f17d456a59
Some checks reported errors
PR description / Title and description (pull_request_target) Successful in 4s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/amd 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/linux 0/1 pass, 2 error
beanstalk/windows 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 2 error
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 7d96eed8fb
Some checks are pending
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
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 / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 6s
2026-12-05 10:16:36 +00:00
Compare
Member

Beanstalk test farm

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

Rebased onto main 7bc53f84 because the PR could not be merged. The head is now 7d96eed8f.

Rebase: gpu/vk/vk_draw.cpp conflicted with #3048 (RX_VK_DRAW_OVERHEAD_LEAN), which changed the same lines of build_descriptors. The resolution keeps both sides:

  • the three texture paths mark out.unbindable_image as #3048 does, then stage the image with this PR's emit_img;
  • the uniform-buffer entries go through emit_ubo with #3048's lean_bind_stamp();
  • #3048's desc_fp() reserve stays, next to this PR's per-mode desc_fp() clear;
  • both switches' includes, thread-locals and *_begin_recording() calls are kept.

7d96eed8f updates this PR's own check for #3048: its harness stubs draw_overhead_lean_mode, lean_bind_stamp() and draw_overhead_lean::image_unbindable. Its copy of the legacy writer is now made with DescWriter(), which reserves since #3048, and then assigned. A copy-constructed empty vector has no storage, so the pointer of a count-0 write had become null in the copy only.

Checks on this head (Windows 11, llvm-mingw clang++, each a job of the PC's queue):

  • tests/run_all.py --changed origin/main on 89d0e7fc8 (224 checks): 210 passed, 3 failed, 11 skipped. test_vk_desc_writer_inline is fixed in 7d96eed8f (above). test_turf_budget fails the same way on main 7bc53f84 on this PC (order_watch_on and sync_watch_event_on undeclared, from vk_replay.cpp, which this PR doesn't touch). test_fallback_buffer_cleanup timed out; it fails on main on this PC too.
  • tests/run_all.py --exact tests/test_vk_desc_writer_inline.py on 7d96eed8f: passed (clang++ and g++, all 18 broken variants caught).
  • --exact for the checks that cut build_descriptors or draw_begin_recording (test_vk_draw_overhead_lean, test_hos_ab, test_switch_table, test_dummy_views, test_handle_table_arrays, test_draw_binds, test_draw_stream_visibility, test_fsr_uniform_ownership, test_recording_admission): 9 passed.
  • vk_draw.cpp with clang++ -fsyntax-only and the renderer's own command from the build plan: ok.
  • No renderer build and no game run on this head.

HumanBean's AMD Lab runs (RX 580, Linux RADV): thank you. The 33% run (102412) replaces the 50% one (102278, -0.88%). Average fps moved by -0.48% (60.52 → 60.23), within the run-to-run spread. The renderer's CPU thread took 9.43 / 9.66 / 9.62 ms with the switch off and 9.64 / 9.50 / 9.56 ms with it on: no difference. So the gain measured on the RTX 4060 doesn't show on that PC. That is one system without a gain, and none measured slower, so the default stays 1. The description's Measurements now give these numbers next to the RTX 4060's.

L2 (base vs head at the settings players use) and L3 (the other Tier 1 systems, Steam Deck included): still open. I can't run them here (one Windows RTX 4060 PC on a shared queue); they need the Test Farm or people. The farm run of 2026-12-04 couldn't be judged on any target: the testers' baseline setup stopped on SDL URLs in main's tools.lock. It says nothing about this PR either way. A re-run needs a BigBeans member to start the farm again after this rebase.

BeanBot's question, whether the farm can run current-head check-mode parity and base-vs-head at normal settings: its plan for this PR already has a descriptor-parity cell with RX_VK_DESC_WRITER_INLINE=check. But it runs at fixed CPU-focused settings, not each device's normal preset, and the plan's own note says it can't isolate descriptor milliseconds. So L2 at normal settings still needs a person or a different farm plan.

Rebased onto main `7bc53f84` because the PR could not be merged. The head is now `7d96eed8f`. **Rebase:** `gpu/vk/vk_draw.cpp` conflicted with #3048 (`RX_VK_DRAW_OVERHEAD_LEAN`), which changed the same lines of `build_descriptors`. The resolution keeps both sides: - the three texture paths mark `out.unbindable_image` as #3048 does, then stage the image with this PR's `emit_img`; - the uniform-buffer entries go through `emit_ubo` with #3048's `lean_bind_stamp()`; - #3048's `desc_fp()` reserve stays, next to this PR's per-mode `desc_fp()` clear; - both switches' includes, thread-locals and `*_begin_recording()` calls are kept. `7d96eed8f` updates this PR's own check for #3048: its harness stubs `draw_overhead_lean_mode`, `lean_bind_stamp()` and `draw_overhead_lean::image_unbindable`. Its copy of the legacy writer is now made with `DescWriter()`, which reserves since #3048, and then assigned. A copy-constructed empty vector has no storage, so the pointer of a count-0 write had become null in the copy only. **Checks on this head** (Windows 11, llvm-mingw clang++, each a job of the PC's queue): - `tests/run_all.py --changed origin/main` on `89d0e7fc8` (224 checks): 210 passed, 3 failed, 11 skipped. `test_vk_desc_writer_inline` is fixed in `7d96eed8f` (above). `test_turf_budget` fails the same way on main `7bc53f84` on this PC (`order_watch_on` and `sync_watch_event_on` undeclared, from `vk_replay.cpp`, which this PR doesn't touch). `test_fallback_buffer_cleanup` timed out; it fails on main on this PC too. - `tests/run_all.py --exact tests/test_vk_desc_writer_inline.py` on `7d96eed8f`: passed (clang++ and g++, all 18 broken variants caught). - `--exact` for the checks that cut `build_descriptors` or `draw_begin_recording` (`test_vk_draw_overhead_lean`, `test_hos_ab`, `test_switch_table`, `test_dummy_views`, `test_handle_table_arrays`, `test_draw_binds`, `test_draw_stream_visibility`, `test_fsr_uniform_ownership`, `test_recording_admission`): 9 passed. - `vk_draw.cpp` with `clang++ -fsyntax-only` and the renderer's own command from the build plan: ok. - No renderer build and no game run on this head. **HumanBean's AMD Lab runs (RX 580, Linux RADV):** thank you. The 33% run (102412) replaces the 50% one (102278, -0.88%). Average fps moved by -0.48% (60.52 → 60.23), within the run-to-run spread. The renderer's CPU thread took 9.43 / 9.66 / 9.62 ms with the switch off and 9.64 / 9.50 / 9.56 ms with it on: no difference. So the gain measured on the RTX 4060 doesn't show on that PC. That is one system without a gain, and none measured slower, so the default stays `1`. The description's Measurements now give these numbers next to the RTX 4060's. **L2 (base vs head at the settings players use) and L3 (the other Tier 1 systems, Steam Deck included):** still open. I can't run them here (one Windows RTX 4060 PC on a shared queue); they need the Test Farm or people. The farm run of 2026-12-04 couldn't be judged on any target: the testers' baseline setup stopped on SDL URLs in main's `tools.lock`. It says nothing about this PR either way. A re-run needs a BigBeans member to start the farm again after this rebase. BeanBot's question, whether the farm can run current-head check-mode parity and base-vs-head at normal settings: its plan for this PR already has a `descriptor-parity` cell with `RX_VK_DESC_WRITER_INLINE=check`. But it runs at fixed CPU-focused settings, not each device's normal preset, and the plan's own note says it can't isolate descriptor milliseconds. So L2 at normal settings still needs a person or a different farm plan.
dyst left a comment

Recommendation: Wait (on a main-against-head measurement at players' settings, and a game run of the current head). The code reads correct and the switch is a clean kill switch. But the only gain is +1.2% ON against OFF inside one build on one RTX 4060 at 50% internal resolution, with no change on an RX 580. Head 7d96eed8f, rebased through build_descriptors over #3048, has not run in the game. That is not enough yet for ~500 lines of a second descriptor path that ships ON by default.

For a player: slightly less CPU time building descriptors on the renderer's thread. On a CPU-bound NVIDIA PC that may be about 1% fps; the GPU-bound RX 580 showed nothing. Nothing else changes for players. The code is not simpler: build_descriptors becomes a three-mode templated lambda with nine staging buffers.

Does it help: Unproven against main. RTX 4060, Windows, Market child, 5x90 s in-run HOS_AB on c9c85be6e (an older head), ON against OFF in the same build at 50% internal res: +1.19% fps (CI +0.81..+1.61), desc_ms -9.2%, lows a little higher. RX 580 / RADV (HumanBean, 3 pairs, f17d456a5): -0.48% fps, renderer CPU thread 9.43/9.66/9.62 ms against 9.64/9.50/9.56 ms, so no difference. There is no main-against-head run, none at the normal preset, and none on the current head. The 2026-12-04 farm run couldn't be judged on any target (the testers' setup stopped on tools.lock's SDL URLs), so it says nothing either way.
Other systems: every Vulkan draw and dispatch on every GPU and OS goes through the new default path. The descriptor contents are checked to be identical by =check, but that game run (3.3M checks, 0 mismatches) predates the L1 check-mode fix and the #3048 rebase. Nothing has run on AMD or Intel on Windows, or on the Steam Deck. Stack use on the replay thread grows by about 8 KB a build_descriptors call (the Stage's inline arrays) plus 2.5 KB in uniform_range. That is fine on an 8 MB Linux stack and on a 1 MB Windows default unless the replay thread is made smaller; I didn't find where its size is set.
Switches: RX_VK_DESC_WRITER_INLINE, a kill switch (0 legacy, check both paths and compare), default 1, row present in switches.def, read per recording with HOS_AB. The default rests on one PC's ON/OFF gain. If a main-against-head run shows nothing, the default should be 0, or the PR closed in favour of #2989's plan.
Reviewed: 7d96eed8f: gpu/vk/desc_writer_inline.h in full, the whole gpu/vk/vk_draw.cpp diff, the switch row, and the head's build_descriptors checked for writes to out.* outside the emitters (none). Also read the head's readers of desc_fp() (cb.desc.fp, guarded by desc_fp_on) and of draw_sampled() (both after the build), and uniform_range's 0xA00 clamp. Skimmed the fixture updates (tests/*_test.cpp, test_dummy_views.py, test_handle_table_arrays.py, test_hos_ab.py). Not read in full: tests/test_vk_desc_writer_inline.py (1,089 lines). Nothing run.
Fixed in this review: nothing.
Checked and fine:

  • Pointer stability in mode 1. The staged writes point into out.bufs/imgs/views after reserve(nbuf/nimg/nview), and commit's assign of at most the reserved count does not reallocate, so the pointers stay valid. verify_parity checks the bases too.
  • The plan's bounds cover every push. A list makes one write; every element pushes one buf, img or view; depth and sampled pushes are at most one an image; fp words are at most one a view or image (the memo hit's emit_fp and the miss path's note_fp are exclusive); UBO entries come only from constant buffers. So InlineCursorBuf::push, which has no bound check, cannot overrun as long as desc_counts is right, which the legacy pointer stability already relied on.
  • desc_fp() is left uncleared in mode 1 when desc_fp_on is off, but its only reader (cb.desc.fp) is behind if (desc_fp_on). draw_sampled() is assigned by the commit before its readers.
  • The handle table's per-list prepare is reused immediately. The overflow scratch is per-thread and reused.
  • uniform_range's stack buffer is bounded by n = clamp(..., 16, 0xA00). Keeping the BankCache::bytes capacity across recordings resets every other field, and a field added later is reset too.
  • The mode is set in draw_begin_recording before the bank reset that reads it, like the other per-recording switches.

Suggestions

  • gpu/vk/vk_draw.cpp:5453: desc_fp_note is no longer called (the note_fp lambda copies it). Remove it, or have note_fp call it, so the two can't drift. scripts/profiling/cpu_functions.json still lists it.
  • The three-mode lambda keeps both paths alive for good. Once the measurement settles the default, plan the GONE(...) of the losing path (and of check), so build_descriptors goes back to one path.

Questions

  • How big is the replay thread's stack on Windows? The new per-call stack use is about 10 KB.

Testing: By the author: game-free checks on this head (test_vk_desc_writer_inline with both compilers, 18 broken variants caught; 9 checks that cut build_descriptors pass; clang++ -fsyntax-only) and the RTX 4060 runs above on an older head. By HumanBean: the RX 580 A/B. The farm run couldn't be judged. CI not checked here. What holds the merge: (1) a game run of 7d96eed8f with =check (0 mismatches after the L1 fix), and (2) main against this head, interleaved, at the normal preset in the Market and a heavy area, on the RTX 4060 and one AMD or Steam Deck system (a farm re-run once tools.lock is fixed would cover it).
Overlaps and merge order: #2989 (RX_VK_DESC_PLAN_FAST, per-program descriptor plans) does the same job in the same function. Only one of the two plans should land; measure them against each other before either merges. #3304, #3303, #3116, #3080 and #3046 also touch build_descriptors/vk_draw.cpp (not read here). Whichever lands second rebases.

**Recommendation: Wait (on a main-against-head measurement at players' settings, and a game run of the current head).** The code reads correct and the switch is a clean kill switch. But the only gain is +1.2% ON against OFF inside one build on one RTX 4060 at 50% internal resolution, with no change on an RX 580. Head `7d96eed8f`, rebased through `build_descriptors` over #3048, has not run in the game. That is not enough yet for ~500 lines of a second descriptor path that ships ON by default. For a player: slightly less CPU time building descriptors on the renderer's thread. On a CPU-bound NVIDIA PC that may be about 1% fps; the GPU-bound RX 580 showed nothing. Nothing else changes for players. The code is not simpler: `build_descriptors` becomes a three-mode templated lambda with nine staging buffers. **Does it help:** Unproven against main. RTX 4060, Windows, Market child, 5x90 s in-run `HOS_AB` on `c9c85be6e` (an older head), ON against OFF in the same build at 50% internal res: +1.19% fps (CI +0.81..+1.61), `desc_ms` -9.2%, lows a little higher. RX 580 / RADV (HumanBean, 3 pairs, `f17d456a5`): -0.48% fps, renderer CPU thread 9.43/9.66/9.62 ms against 9.64/9.50/9.56 ms, so no difference. There is no main-against-head run, none at the normal preset, and none on the current head. The 2026-12-04 farm run couldn't be judged on any target (the testers' setup stopped on `tools.lock`'s SDL URLs), so it says nothing either way. **Other systems:** every Vulkan draw and dispatch on every GPU and OS goes through the new default path. The descriptor contents are checked to be identical by `=check`, but that game run (3.3M checks, 0 mismatches) predates the L1 check-mode fix and the #3048 rebase. Nothing has run on AMD or Intel on Windows, or on the Steam Deck. Stack use on the replay thread grows by about 8 KB a `build_descriptors` call (the `Stage`'s inline arrays) plus 2.5 KB in `uniform_range`. That is fine on an 8 MB Linux stack and on a 1 MB Windows default unless the replay thread is made smaller; I didn't find where its size is set. **Switches:** `RX_VK_DESC_WRITER_INLINE`, a kill switch (`0` legacy, `check` both paths and compare), default `1`, row present in `switches.def`, read per recording with `HOS_AB`. The default rests on one PC's ON/OFF gain. If a main-against-head run shows nothing, the default should be `0`, or the PR closed in favour of #2989's plan. **Reviewed:** `7d96eed8f`: `gpu/vk/desc_writer_inline.h` in full, the whole `gpu/vk/vk_draw.cpp` diff, the switch row, and the head's `build_descriptors` checked for writes to `out.*` outside the emitters (none). Also read the head's readers of `desc_fp()` (`cb.desc.fp`, guarded by `desc_fp_on`) and of `draw_sampled()` (both after the build), and `uniform_range`'s `0xA00` clamp. Skimmed the fixture updates (`tests/*_test.cpp`, `test_dummy_views.py`, `test_handle_table_arrays.py`, `test_hos_ab.py`). Not read in full: `tests/test_vk_desc_writer_inline.py` (1,089 lines). Nothing run. **Fixed in this review:** nothing. **Checked and fine:** - Pointer stability in mode 1. The staged writes point into `out.bufs/imgs/views` after `reserve(nbuf/nimg/nview)`, and `commit`'s `assign` of at most the reserved count does not reallocate, so the pointers stay valid. `verify_parity` checks the bases too. - The plan's bounds cover every push. A list makes one write; every element pushes one buf, img or view; depth and sampled pushes are at most one an image; fp words are at most one a view or image (the memo hit's `emit_fp` and the miss path's `note_fp` are exclusive); UBO entries come only from constant buffers. So `InlineCursorBuf::push`, which has no bound check, cannot overrun as long as `desc_counts` is right, which the legacy pointer stability already relied on. - `desc_fp()` is left uncleared in mode 1 when `desc_fp_on` is off, but its only reader (`cb.desc.fp`) is behind `if (desc_fp_on)`. `draw_sampled()` is assigned by the commit before its readers. - The handle table's per-list `prepare` is reused immediately. The overflow scratch is per-thread and reused. - `uniform_range`'s stack buffer is bounded by `n = clamp(..., 16, 0xA00)`. Keeping the `BankCache::bytes` capacity across recordings resets every other field, and a field added later is reset too. - The mode is set in `draw_begin_recording` before the bank reset that reads it, like the other per-recording switches. **Suggestions** - `gpu/vk/vk_draw.cpp:5453`: `desc_fp_note` is no longer called (the `note_fp` lambda copies it). Remove it, or have `note_fp` call it, so the two can't drift. `scripts/profiling/cpu_functions.json` still lists it. - The three-mode lambda keeps both paths alive for good. Once the measurement settles the default, plan the `GONE(...)` of the losing path (and of `check`), so `build_descriptors` goes back to one path. **Questions** - How big is the replay thread's stack on Windows? The new per-call stack use is about 10 KB. **Testing:** By the author: game-free checks on this head (`test_vk_desc_writer_inline` with both compilers, 18 broken variants caught; 9 checks that cut `build_descriptors` pass; `clang++ -fsyntax-only`) and the RTX 4060 runs above on an older head. By HumanBean: the RX 580 A/B. The farm run couldn't be judged. CI not checked here. What holds the merge: (1) a game run of `7d96eed8f` with `=check` (0 mismatches after the L1 fix), and (2) main against this head, interleaved, at the normal preset in the Market and a heavy area, on the RTX 4060 and one AMD or Steam Deck system (a farm re-run once `tools.lock` is fixed would cover it). **Overlaps and merge order:** #2989 (`RX_VK_DESC_PLAN_FAST`, per-program descriptor plans) does the same job in the same function. Only one of the two plans should land; measure them against each other before either merges. #3304, #3303, #3116, #3080 and #3046 also touch `build_descriptors`/`vk_draw.cpp` (not read here). Whichever lands second rebases.
Some checks are pending
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
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 / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 6s
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
Some workflows are waiting to be reviewed.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/vk-desc-writer-inline:siantm-perf/vk-desc-writer-inline'
git switch 'siantm-perf/vk-desc-writer-inline'
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!3049
No description provided.