perf(vk): expand prog_fast cache, inline c2 fast_answers, and route mesh programs #2954

Open
siantm wants to merge 3 commits from siantm/Longshot:perf/vk-prog-fast-answers into main
Contributor

Summary

Cuts programs_ms by -22.67% (-0.289 ms per frame) via RX_VK_PROG_FAST (default 1, supporting in-run HOS_AB flipping per recording):

  1. 8-way MRU program_for TLS Cache (gpu/vk/vk_shader.cpp): Expands prog_fast from 2 slots to 8 MRU ways, caches prog_sig and stage attachment mask amask on ProgFast, and routes Mesh shaders through the unified cache path. A change of the mods' CURVE hooks (curves_hash, main's) drops all 8 ways with the picks.
  2. Inline c2 fast_answers & fast_still_valid() (gpu/vk/vk_shader.cpp, gpu/vk/vk_shader.h): Validates c2-resident texture/image/depth handles directly against NvnState without calling answer_handles() + still_valid(), and skips ub_gen invalidation checks on c2-only programs.
  3. prog_fast_begin_recording() (gpu/vk/vk_draw.cpp, gpu/vk/vk_internal.h): Samples host->ab_value("RX_VK_PROG_FAST", env) once per recording so HOS_AB flips cleanly without per-draw environment overhead.

Read first: gpu/vk/vk_shader.cpp (fast_still_valid, prog_fast, program_for), gpu/vk/vk_shader.h, gpu/vk/vk_draw.cpp (prog_fast_begin_recording), and gpu/vk/vk_replay.cpp.

Assisted-by: Antigravity

Testing

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

  • Market 5x90s CPU-bound in-run HOS_AB (145 periods, 30,001 frames): 5/5 individual runs won (-1.35% to -2.65%), 0 crashes, 0 shader/pipeline failures (39,168 graphics + 5,087 compute pipelines prepared), 0.00 frames >= 50 ms on both sides.
  • python -X utf8 -I tests/test_vk_prog_fast.py: 0 failures (default + strict modes; verifies c2/UBO/image/depth/mesh fast_still_valid parity, 8-way MRU, ub_gen/reg_gen/tex_gen invalidation, state_prog_sig, and RX_VK_PROG_FAST=0 fallback).
  • python -X utf8 -I tests/test_pick_tex_gen.py: PASS: the last picks stand while their textures do.
  • Rebased onto main @ a98cf28a: main's mods' CURVE-hook check (curves_hash) replaced the HDR tone-mapper check at the top of program_for and now clears all 8 ways; tests/test_scene_tonemap_pass.py is gone on main, so this PR no longer edits it. tests/test_vk_prog_fast.py stubs program_hooks_now() and checks that a curves_hash change drops a kept pick. test_curve_pass checks that every way is dropped, test_same_bind checks prog_sigs.bind_program's memcmp before bind_gen++ in prog_fast.h, the RX_VK_PROG_FAST row sorts after RX_VK_PROGRAM_CACHE_ZSTD, and the fixtures that copy draw_begin_recording() stub prog_fast_begin_recording().
  • After the rebase (Windows, through dev.py queue):
    • the changed renderer units (vk_draw.cpp, vk_replay.cpp, vk_shader.cpp, vk_progcache.cpp) pass clang++ -fsyntax-only with the build's flags.
    • tests/run_all.py --changed origin/main on main 1c91b18f: 354 passed, 2 failed, 17 skipped.
    • test_prepare_stall failed in that run (its watchdog case stopped after 4 s instead of 12 s, with 4 checks at once) and passed when run alone.
    • test_switch_table fails here, and the same way on main 1c91b18f and a98cf28a: LONGSHOT_SANDBOX_PROGRAMDATA (host/sandbox_win_plan.h:41) has no row in gpu/vk/switches.def.
    • after the last rebase onto a98cf28a, which changed none of this PR's files, test_intel_quick_compute (the one check main changed among those that read this PR's files) passes.

Tested by others:

  • AMD Lab, Linux, Core i7-9700K, Radeon RX 580 (RADV 26.2.6), Market, 1280x720 at 50 % render, RX_VK_PROG_FAST=0 against 1 on 30ef7ca, three alternating pairs of 40 s: within the run-to-run spread. Median average FPS 55.58 → 55.32 (−0.46 %), p99 frame time 48.17 → 40.52 ms, frames of 50 ms or more 20 / 15 / 6 against 0 / 14 / 18.
  • Steam Deck LCD (RADV VANGOGH), @omgitsgela, separate interleaved launches with #2958 in the same build, both switches on against both off, 3 runs a side: fps 37.03 against 36.69 (+0.94 %, p 0.25); programs_ms −24.2 % to −25.6 % over three paired samples.
  • Beanstalk, 30ef7ca against main 55773e3, Market and Hyrule Field: passed on every target. p99 frame time windows+nvidia 28.0 → 20.1 ms, linux+nvidia 15.1 → 15.2, windows+amd 38.8 → 38.7, linux+radv 13.9 → 13.8, intel 209.4 → 206.6, steamdeck 37.5 → 38.7 (one Deck's Market p99 44.86 → 48.16 ms and its maximum 101 → 891 ms; screenshot difference 0.26, under the 0.3 limit). One Windows Intel PC failed to start the PR side (an error from scripts/dev.py, the other Windows PCs built and ran it), the Linux Intel PC passed.

Still to test:

  • A base-against-head comparison of the whole change at a player's settings (the A/Bs above flip the switch within this build).
  • The measurements were taken before main's CURVE-hook change; the pick path they time is the same, but they have not been taken again on current main.

Measurements

Verdict: Faster: +1.79% FPS (-0.244 ms mean frame time, 95% CI +1.31% to +2.40% strictly excluding 0 across 145 paired periods), -22.67% programs_ms (-0.289 ms), +2.47% 1% Low FPS (60.10 vs 58.65), and +4.87% 0.1% Low FPS (49.70 vs 47.39), with all 5/5 runs winning. Ships enabled by default (RX_VK_PROG_FAST=1).

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

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

Metric Before, RX_VK_PROG_FAST=0: this PR @ aece3ffa After, RX_VK_PROG_FAST unset: this PR @ aece3ffa Δ
Avg FPS 73.42 74.74 +1.79%
Mean frame time 13.63 ms 13.38 ms -0.24 ms (95% CI +1.31%..+2.40%)
Median (P50) 13.37 ms (74.79 fps) 13.14 ms (76.10 fps) -0.23 ms (+1.75% fps)
1% Low (P99) 17.10 ms (58.65 fps) 16.65 ms (60.10 fps) -0.45 ms (+2.47% 1% Low)
0.1% Low (P99.9) 47.39 fps 49.70 fps +4.87% 0.1% Low
programs_ms mean 1.274 ms 0.985 ms -0.289 ms (-22.67%)
draw_ms mean 7.869 ms 7.599 ms -0.270 ms (-3.43%)
wait_gpu_ms mean 2.417 ms 2.194 ms -0.223 ms (-9.23%)
cmds_ms mean 2.493 ms 2.481 ms -0.013 ms (-0.50%)
50 ms+ frames / min 0.00 0.00 +0.00

Risks

  • Low risk: fast_still_valid() and c2 inline fast_answers mirror still_valid() / answer_handles() generation checks (ub_gen, reg_gen, tex_gen) and fall back to the full lookup path on any mismatch or edge shape.
  • Can be disabled cleanly at runtime via RX_VK_PROG_FAST=0 (or reverted). Note vk_shader.cpp edits update LONGSHOT_SHADER_STAMP as expected.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (the whole suite has not run on this branch; Testing lists the checks that ran).
  • Measured against main, or Measurements says why there is nothing to measure (RX_VK_PROG_FAST=0 vs unset via in-run HOS_AB on main @ 55773e361).
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def (RX_VK_PROG_FAST).
  • A check under tests/ that reads changed source is updated, not weakened (test_vk_prog_fast.py, test_pick_tex_gen.py, test_curve_pass.py, test_same_bind.py).
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths (the changed renderer units were syntax-checked on Windows only; CI's renderer builds have not run).
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
## Summary Cuts `programs_ms` by **-22.67%** (`-0.289 ms` per frame) via `RX_VK_PROG_FAST` (default `1`, supporting in-run `HOS_AB` flipping per recording): 1. **8-way MRU `program_for` TLS Cache (`gpu/vk/vk_shader.cpp`)**: Expands `prog_fast` from 2 slots to 8 MRU ways, caches `prog_sig` and stage attachment mask `amask` on `ProgFast`, and routes Mesh shaders through the unified cache path. A change of the mods' CURVE hooks (`curves_hash`, main's) drops all 8 ways with the picks. 2. **Inline `c2` `fast_answers` & `fast_still_valid()` (`gpu/vk/vk_shader.cpp`, `gpu/vk/vk_shader.h`)**: Validates `c2`-resident texture/image/depth handles directly against `NvnState` without calling `answer_handles()` + `still_valid()`, and skips `ub_gen` invalidation checks on `c2`-only programs. 3. **`prog_fast_begin_recording()` (`gpu/vk/vk_draw.cpp`, `gpu/vk/vk_internal.h`)**: Samples `host->ab_value("RX_VK_PROG_FAST", env)` once per recording so `HOS_AB` flips cleanly without per-draw environment overhead. Read first: `gpu/vk/vk_shader.cpp` (`fast_still_valid`, `prog_fast`, `program_for`), `gpu/vk/vk_shader.h`, `gpu/vk/vk_draw.cpp` (`prog_fast_begin_recording`), and `gpu/vk/vk_replay.cpp`. Assisted-by: Antigravity ## Testing **Tested:** Windows 11, NVIDIA GeForce RTX 4060 (`build-windows/rt-Longshot`, `v3.2.0-189-gaece3ffa1` on `main @ 55773e361`): - Market 5x90s CPU-bound in-run `HOS_AB` (`145` periods, `30,001` frames): 5/5 individual runs won (`-1.35%` to `-2.65%`), 0 crashes, 0 shader/pipeline failures (`39,168` graphics + `5,087` compute pipelines prepared), `0.00` frames >= 50 ms on both sides. - `python -X utf8 -I tests/test_vk_prog_fast.py`: `0 failures` (default + strict modes; verifies `c2`/UBO/image/depth/mesh `fast_still_valid` parity, 8-way MRU, `ub_gen`/`reg_gen`/`tex_gen` invalidation, `state_prog_sig`, and `RX_VK_PROG_FAST=0` fallback). - `python -X utf8 -I tests/test_pick_tex_gen.py`: `PASS: the last picks stand while their textures do`. - Rebased onto `main @ a98cf28a`: main's mods' CURVE-hook check (`curves_hash`) replaced the HDR tone-mapper check at the top of `program_for` and now clears all 8 ways; `tests/test_scene_tonemap_pass.py` is gone on main, so this PR no longer edits it. `tests/test_vk_prog_fast.py` stubs `program_hooks_now()` and checks that a `curves_hash` change drops a kept pick. `test_curve_pass` checks that every way is dropped, `test_same_bind` checks `prog_sigs.bind_program`'s `memcmp` before `bind_gen++` in `prog_fast.h`, the `RX_VK_PROG_FAST` row sorts after `RX_VK_PROGRAM_CACHE_ZSTD`, and the fixtures that copy `draw_begin_recording()` stub `prog_fast_begin_recording()`. - After the rebase (Windows, through `dev.py queue`): - the changed renderer units (`vk_draw.cpp`, `vk_replay.cpp`, `vk_shader.cpp`, `vk_progcache.cpp`) pass `clang++ -fsyntax-only` with the build's flags. - `tests/run_all.py --changed origin/main` on main `1c91b18f`: 354 passed, 2 failed, 17 skipped. - `test_prepare_stall` failed in that run (its watchdog case stopped after 4 s instead of 12 s, with 4 checks at once) and passed when run alone. - `test_switch_table` fails here, and the same way on main `1c91b18f` and `a98cf28a`: `LONGSHOT_SANDBOX_PROGRAMDATA` (`host/sandbox_win_plan.h:41`) has no row in `gpu/vk/switches.def`. - after the last rebase onto `a98cf28a`, which changed none of this PR's files, `test_intel_quick_compute` (the one check main changed among those that read this PR's files) passes. **Tested by others:** - AMD Lab, Linux, Core i7-9700K, Radeon RX 580 (RADV 26.2.6), Market, 1280x720 at 50 % render, `RX_VK_PROG_FAST=0` against `1` on `30ef7ca`, three alternating pairs of 40 s: within the run-to-run spread. Median average FPS 55.58 → 55.32 (−0.46 %), p99 frame time 48.17 → 40.52 ms, frames of 50 ms or more 20 / 15 / 6 against 0 / 14 / 18. - Steam Deck LCD (RADV VANGOGH), @omgitsgela, separate interleaved launches with #2958 in the same build, both switches on against both off, 3 runs a side: fps 37.03 against 36.69 (+0.94 %, p 0.25); `programs_ms` −24.2 % to −25.6 % over three paired samples. - Beanstalk, `30ef7ca` against main `55773e3`, Market and Hyrule Field: passed on every target. p99 frame time windows+nvidia 28.0 → 20.1 ms, linux+nvidia 15.1 → 15.2, windows+amd 38.8 → 38.7, linux+radv 13.9 → 13.8, intel 209.4 → 206.6, steamdeck 37.5 → 38.7 (one Deck's Market p99 44.86 → 48.16 ms and its maximum 101 → 891 ms; screenshot difference 0.26, under the 0.3 limit). One Windows Intel PC failed to start the PR side (an error from `scripts/dev.py`, the other Windows PCs built and ran it), the Linux Intel PC passed. **Still to test:** - A base-against-head comparison of the whole change at a player's settings (the A/Bs above flip the switch within this build). - The measurements were taken before main's CURVE-hook change; the pick path they time is the same, but they have not been taken again on current main. ## Measurements **Verdict:** Faster: **+1.79% FPS** (`-0.244 ms` mean frame time, 95% CI **`+1.31% to +2.40%`** strictly excluding 0 across 145 paired periods), **`-22.67%` `programs_ms`** (`-0.289 ms`), **`+2.47%` 1% Low FPS** (`60.10 vs 58.65`), and **`+4.87%` 0.1% Low FPS** (`49.70 vs 47.39`), with all 5/5 runs winning. Ships enabled by default (`RX_VK_PROG_FAST=1`). Setup: Windows 11, NVIDIA RTX 4060; `Market, child (crowded)` (`1280x720`, 50% internal res `768x432`, V-Sync Off, Framegen Off, `HOS_FPS_MAX=1000`, `RX_VK_FRAME_TRACE=1`), 5x90s runs after pipeline warm-up (`145` paired 3 s `HOS_AB` periods, `15,136` ON / `14,865` OFF frames; `dev.py ab` + `perf.py ab`). Baseline: Both sides ran on the same build (`v3.2.0-189-gaece3ffa1` on `main @ 55773e361`) flipping `RX_VK_PROG_FAST` every 3 s within each run (`HOS_AB=RX_VK_PROG_FAST=0,3,0`). | Metric | Before, RX_VK_PROG_FAST=0: this PR @ aece3ffa | After, RX_VK_PROG_FAST unset: this PR @ aece3ffa | Δ | |---|---:|---:|---:| | Avg FPS | 73.42 | 74.74 | **+1.79%** | | Mean frame time | 13.63 ms | 13.38 ms | **-0.24 ms (95% CI +1.31%..+2.40%)** | | Median (P50) | 13.37 ms (74.79 fps) | 13.14 ms (76.10 fps) | **-0.23 ms (+1.75% fps)** | | 1% Low (P99) | 17.10 ms (58.65 fps) | 16.65 ms (60.10 fps) | **-0.45 ms (+2.47% 1% Low)** | | 0.1% Low (P99.9) | 47.39 fps | 49.70 fps | **+4.87% 0.1% Low** | | `programs_ms` mean | 1.274 ms | 0.985 ms | **-0.289 ms (-22.67%)** | | `draw_ms` mean | 7.869 ms | 7.599 ms | **-0.270 ms (-3.43%)** | | `wait_gpu_ms` mean | 2.417 ms | 2.194 ms | **-0.223 ms (-9.23%)** | | `cmds_ms` mean | 2.493 ms | 2.481 ms | **-0.013 ms (-0.50%)** | | 50 ms+ frames / min | 0.00 | 0.00 | +0.00 | ## Risks - Low risk: `fast_still_valid()` and `c2` inline `fast_answers` mirror `still_valid()` / `answer_handles()` generation checks (`ub_gen`, `reg_gen`, `tex_gen`) and fall back to the full lookup path on any mismatch or edge shape. - Can be disabled cleanly at runtime via `RX_VK_PROG_FAST=0` (or reverted). Note `vk_shader.cpp` edits update `LONGSHOT_SHADER_STAMP` as expected. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (the whole suite has not run on this branch; Testing lists the checks that ran). - [x] Measured against `main`, or Measurements says why there is nothing to measure (`RX_VK_PROG_FAST=0` vs unset via in-run `HOS_AB` on `main @ 55773e361`). - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def` (`RX_VK_PROG_FAST`). - [x] A check under `tests/` that reads changed source is updated, not weakened (`test_vk_prog_fast.py`, `test_pick_tex_gen.py`, `test_curve_pass.py`, `test_same_bind.py`). - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths (the changed renderer units were syntax-checked on Windows only; CI's renderer builds have not run). - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold.
perf(vk): expand prog_fast cache, inline c2 fast_answers, and route mesh programs
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 1/1 fail
beanstalk/linux+nvidia 1/1 fail
beanstalk/linux+radv 2/1 pass
beanstalk/amd 2/1 pass
beanstalk/intel 0/1 pass, 0 running, 1 queued
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
aece3ffa1d
Assisted-by: Antigravity
Author
Contributor

Tested in game: Market CPU-bound 5x90s in-run HOS_AB (145 periods): +1.79% FPS (74.7 vs 73.4, 95% CI +1.31%..+2.40%), -22.67% programs_ms, +2.47% 1% Low, +4.87% 0.1% Low

Tested in game: Market CPU-bound 5x90s in-run HOS_AB (145 periods): +1.79% FPS (74.7 vs 73.4, 95% CI +1.31%..+2.40%), -22.67% programs_ms, +2.47% 1% Low, +4.87% 0.1% Low
Member

Possibly related, for context:

  • PR #795 WIP: perf(vk): a draw keeps its program across texture registrations and uniform updates that do not touch its answers — Overlapping fast program selection cache work in vk_shader.cpp
  • issue #1908 BUG: Vulkan Shader Preparation and Pipeline Cache Generation Extremely Slow on Linux — Open Linux Vulkan shader preparation performance report; narrower but relevant area
Possibly related, for context: - PR #795 WIP: perf(vk): a draw keeps its program across texture registrations and uniform updates that do not touch its answers — Overlapping fast program selection cache work in vk_shader.cpp - issue #1908 BUG: Vulkan Shader Preparation and Pipeline Cache Generation Extremely Slow on Linux — Open Linux Vulkan shader preparation performance report; narrower but relevant area
Owner

@beanstalk

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

Commit aece3ff · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm cannot directly measure programs_ms or reproduce the reported in-run paired confidence interval; these frame-time checks are not sensitive enough to establish the claimed small speedup.
⚠️ Note: The plan tests the default enabled path against main, not live switch flipping or the disabled fallback, and does not run the separate unit-test suite.
⚠️ Note: Shader preparation and pipeline-cache generation from the linked issue are not measured by this gameplay-focused plan.

Started at 2026-12-01 15:19 UTC.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ❌ fail (an outlier) 2 1 2 27.5 → 28.6 (+4%) — none
linux+nvidia ❌ fail 1 1 18.1 → 18.1 (+0%) — none
linux+radv ✅ pass (an outlier) 2 1 2 11.8 → 11.1 (−6%) — none
amd ✅ pass (an outlier) 2 1 2 39.0 → 39.1 (+0%) — none
intel ⏳ queued 1 1 — — none

Why it failed

  • windows+nvidia: program-selection market.frametime_p50_ms.max_delta_pct: 38.7 → 45.3 (+17.0%); limit 15.0
  • linux+nvidia: program-selection screenshot.max_diff: 0.1 → 0.3; limit 0.2

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

  • intel, report 1: the pr runtime failed (exit 1): File "Z:\longshot\scripts\dev.py", line 70, in <module>
What was tested

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

The farm will compare the PR with main on Windows NVIDIA, Linux NVIDIA, RADV, AMD and Intel hardware. Three starts per side will measure uncapped, CPU-oriented frame times for 30 seconds each in the Market and Hyrule Field, with still-scene pictures checked at both locations. A crash, a picture difference over the allowed tolerance, or a frame-time regression over 15% fails the relevant target. No tester online now matches linux+nvidia: that target waits for one.

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

Verdict: fail on windows+nvidia (2 reports): program-selection market.frametime_p50_ms.max_delta_pct (+17.0%) failed.

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

Before: main @ 55773e3 After: this PR @ aece3ff
program-selection · field · median frame time (ms) 22.3 24.1 (+8%)
program-selection · market · median frame time (ms) 23.9 27.1 (+13%)
program-selection · field · frame time (p99) (ms) 27.5 28.6 (+4%)
program-selection · market · frame time (p99) (ms) 28.9 31.8 (+10%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+nvidia (2 reports): `program-selection market.frametime_p50_ms.max_delta_pct (+17.0%)` failed.

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

| | Before: main @ 55773e3 | After: this PR @ aece3ff |
|---|---|---|
| program-selection · field · median frame time (ms) | 22.3 | 24.1 (+8%) |
| program-selection · market · median frame time (ms) | 23.9 | 27.1 (+13%) |
| program-selection · field · frame time (p99) (ms) | 27.5 | 28.6 (+4%) |
| program-selection · market · frame time (p99) (ms) | 28.9 | 31.8 (+10%) |

**Flags and settings**

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

Verdict: fail on linux+nvidia (1 report): program-selection screenshot.max_diff failed.

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

Before: main @ 55773e3 After: this PR @ aece3ff
program-selection · field · median frame time (ms) 13.3 13.4 (+1%)
program-selection · market · median frame time (ms) 17.6 17.8 (+1%)
program-selection · field · frame time (p99) (ms) 18.1 18.1 (+0%)
program-selection · market · frame time (p99) (ms) 21.3 22.3 (+5%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+nvidia (1 report): `program-selection screenshot.max_diff` failed.

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

| | Before: main @ 55773e3 | After: this PR @ aece3ff |
|---|---|---|
| program-selection · field · median frame time (ms) | 13.3 | 13.4 (+1%) |
| program-selection · market · median frame time (ms) | 17.6 | 17.8 (+1%) |
| program-selection · field · frame time (p99) (ms) | 18.1 | 18.1 (+0%) |
| program-selection · market · frame time (p99) (ms) | 21.3 | 22.3 (+5%) |

**Flags and settings**

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

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

Hardware: 1: linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 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: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ aece3ff
program-selection · field · median frame time (ms) 7.2 7.2 (+1%)
program-selection · market · median frame time (ms) 10.2 10.2 (+0%)
program-selection · field · frame time (p99) (ms) 11.8 11.1 (−6%)
program-selection · market · frame time (p99) (ms) 15.1 14.0 (−7%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 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: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ aece3ff |
|---|---|---|
| program-selection · field · median frame time (ms) | 7.2 | 7.2 (+1%) |
| program-selection · market · median frame time (ms) | 10.2 | 10.2 (+0%) |
| program-selection · field · frame time (p99) (ms) | 11.8 | 11.1 (−6%) |
| program-selection · market · frame time (p99) (ms) | 15.1 | 14.0 (−7%) |

**Flags and settings**

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

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

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

Before: main @ 55773e3 After: this PR @ aece3ff
program-selection · field · median frame time (ms) 36.4 36.5 (+0%)
program-selection · market · median frame time (ms) 40.0 40.0 (−0%)
program-selection · field · frame time (p99) (ms) 39.0 39.1 (+0%)
program-selection · market · frame time (p99) (ms) 44.1 45.6 (+3%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ aece3ff |
|---|---|---|
| program-selection · field · median frame time (ms) | 36.4 | 36.5 (+0%) |
| program-selection · market · median frame time (ms) | 40.0 | 40.0 (−0%) |
| program-selection · field · frame time (p99) (ms) | 39.0 | 39.1 (+0%) |
| program-selection · market · frame time (p99) (ms) | 44.1 | 45.6 (+3%) |

**Flags and settings**

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

Verdict: queued on intel (1 report).

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

Nothing was measured: no metric came back.

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** queued on intel (1 report).

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

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
The testers' hardware
Target Report Ran on
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
linux+nvidia 1 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1660 Ti, 620.73.4 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM
linux+radv 1 linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM
linux+radv 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
amd 1 windows+amd+amd-proprietary+dgpu+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
amd 2 windows+amd+amd-proprietary+igpu+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
intel 1 windows+intel+intel-proprietary+igpu Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>aece3ff</code> (the newer results are in a comment below)</summary> Commit `aece3ff` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2954) ⚠️ **Note:** The farm cannot directly measure programs_ms or reproduce the reported in-run paired confidence interval; these frame-time checks are not sensitive enough to establish the claimed small speedup. ⚠️ **Note:** The plan tests the default enabled path against main, not live switch flipping or the disabled fallback, and does not run the separate unit-test suite. ⚠️ **Note:** Shader preparation and pipeline-cache generation from the linked issue are not measured by this gameplay-focused plan. Started at 2026-12-01 15:19 UTC. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_302d5364b2b8b2e0) [2](https://beanstalk.magicbean.dev/reports/rp_effc802e3975147a) | 27.5 → 28.6 (+4%) | — | none | | `linux+nvidia` | ❌ fail | 1 [1](https://beanstalk.magicbean.dev/reports/rp_2815ea87035c2323) | 18.1 → 18.1 (+0%) | — | none | | `linux+radv` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_94af0ebb23207e15) [2](https://beanstalk.magicbean.dev/reports/rp_445b5d2c0582c966) | 11.8 → 11.1 (−6%) | — | none | | `amd` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_59d5c5487fb548d6) [2](https://beanstalk.magicbean.dev/reports/rp_8d4773f5ccb0e3d7) | 39.0 → 39.1 (+0%) | — | none | | `intel` | ⏳ queued | 1 [1](https://beanstalk.magicbean.dev/reports/rp_37e48f2f86b8ac71) | — | — | none | **Why it failed** - `windows+nvidia`: `program-selection` `market.frametime_p50_ms.max_delta_pct`: `38.7 → 45.3 (+17.0%); limit 15.0` - `linux+nvidia`: `program-selection` `screenshot.max_diff`: `0.1 → 0.3; limit 0.2` **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_37e48f2f86b8ac71): `the pr runtime failed (exit 1): File "Z:\longshot\scripts\dev.py", line 70, in <module>` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The farm will compare the PR with main on Windows NVIDIA, Linux NVIDIA, RADV, AMD and Intel hardware. Three starts per side will measure uncapped, CPU-oriented frame times for 30 seconds each in the Market and Hyrule Field, with still-scene pictures checked at both locations. A crash, a picture difference over the allowed tolerance, or a frame-time regression over 15% fails the relevant target. No tester online now matches linux+nvidia: that target waits for one. - **Where:** windows+nvidia (1-2 reports), linux+nvidia (1-2 reports), linux+radv (1-2 reports), amd (1-2 reports), intel (1-2 reports). - **program-selection:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches. - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main. - **Time:** about 39 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** fail on windows+nvidia (2 reports): `program-selection market.frametime_p50_ms.max_delta_pct (+17.0%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ aece3ff | |---|---|---| | program-selection · field · median frame time (ms) | 22.3 | 24.1 (+8%) | | program-selection · market · median frame time (ms) | 23.9 | 27.1 (+13%) | | program-selection · field · frame time (p99) (ms) | 27.5 | 28.6 (+4%) | | program-selection · market · frame time (p99) (ms) | 28.9 | 31.8 (+10%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+nvidia (2 reports): `program-selection market.frametime_p50_ms.max_delta_pct (+17.0%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ aece3ff | |---|---|---| | program-selection · field · median frame time (ms) | 22.3 | 24.1 (+8%) | | program-selection · market · median frame time (ms) | 23.9 | 27.1 (+13%) | | program-selection · field · frame time (p99) (ms) | 27.5 | 28.6 (+4%) | | program-selection · market · frame time (p99) (ms) | 28.9 | 31.8 (+10%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+nvidia`, for the PR description</summary> **Verdict:** fail on linux+nvidia (1 report): `program-selection screenshot.max_diff` failed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ aece3ff | |---|---|---| | program-selection · field · median frame time (ms) | 13.3 | 13.4 (+1%) | | program-selection · market · median frame time (ms) | 17.6 | 17.8 (+1%) | | program-selection · field · frame time (p99) (ms) | 18.1 | 18.1 (+0%) | | program-selection · market · frame time (p99) (ms) | 21.3 | 22.3 (+5%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+nvidia (1 report): `program-selection screenshot.max_diff` failed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ aece3ff | |---|---|---| | program-selection · field · median frame time (ms) | 13.3 | 13.4 (+1%) | | program-selection · market · median frame time (ms) | 17.6 | 17.8 (+1%) | | program-selection · field · frame time (p99) (ms) | 18.1 | 18.1 (+0%) | | program-selection · market · frame time (p99) (ms) | 21.3 | 22.3 (+5%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 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: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ aece3ff | |---|---|---| | program-selection · field · median frame time (ms) | 7.2 | 7.2 (+1%) | | program-selection · market · median frame time (ms) | 10.2 | 10.2 (+0%) | | program-selection · field · frame time (p99) (ms) | 11.8 | 11.1 (−6%) | | program-selection · market · frame time (p99) (ms) | 15.1 | 14.0 (−7%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 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: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ aece3ff | |---|---|---| | program-selection · field · median frame time (ms) | 7.2 | 7.2 (+1%) | | program-selection · market · median frame time (ms) | 10.2 | 10.2 (+0%) | | program-selection · field · frame time (p99) (ms) | 11.8 | 11.1 (−6%) | | program-selection · market · frame time (p99) (ms) | 15.1 | 14.0 (−7%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `amd`, for the PR description</summary> **Verdict:** pass on amd (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ aece3ff | |---|---|---| | program-selection · field · median frame time (ms) | 36.4 | 36.5 (+0%) | | program-selection · market · median frame time (ms) | 40.0 | 40.0 (−0%) | | program-selection · field · frame time (p99) (ms) | 39.0 | 39.1 (+0%) | | program-selection · market · frame time (p99) (ms) | 44.1 | 45.6 (+3%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on amd (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ aece3ff | |---|---|---| | program-selection · field · median frame time (ms) | 36.4 | 36.5 (+0%) | | program-selection · market · median frame time (ms) | 40.0 | 40.0 (−0%) | | program-selection · field · frame time (p99) (ms) | 39.0 | 39.1 (+0%) | | program-selection · market · frame time (p99) (ms) | 44.1 | 45.6 (+3%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** queued on intel (1 report). Hardware: 1: windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** queued on intel (1 report). Hardware: 1: windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_302d5364b2b8b2e0) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_effc802e3975147a) | windows+nvidia+nvidia-proprietary+dgpu+xess `NVIDIA GeForce GTX 980, 582.78.0` `Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM` | | `linux+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_2815ea87035c2323) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_94af0ebb23207e15) | linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_445b5d2c0582c966) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `amd` | [1](https://beanstalk.magicbean.dev/reports/rp_59d5c5487fb548d6) | windows+amd+amd-proprietary+dgpu+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` | | `amd` | [2](https://beanstalk.magicbean.dev/reports/rp_8d4773f5ccb0e3d7) | windows+amd+amd-proprietary+igpu+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_37e48f2f86b8ac71) | windows+intel+intel-proprietary+igpu `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM` | </details> </details>
Owner
@review
BeanBot left a comment

Recommendation: Approve. The reported A/B shows a gain within the PR build, but it does not measure the complete change against main at player settings. The new default also needs coverage on the other Tier 1 systems affected by the renderer path. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge.

The change caches more program selections and descriptor answers to reduce CPU time spent choosing shaders. It adds per-program cached data and a per-recording switch, and changes graphics, compute and mesh program selection.

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

  • L3 tests/test_vk_prog_fast.py:215: The signature test exercises a handwritten copy of the replay update instead of the changed replay code. (more on the line) Do: Extract and exercise the actual replay binding and queue-sidecar logic, or factor it into a shared function used by both replay and the test.

Nits (1): optional.

  • L4: The checklist says the full test suite passes and both host platforms build, while Testing says the full suite and Linux compile are still to test. When: A maintainer reading only the checked boxes would believe those required checks already passed. Do: Correct the checklist and record the actual results once the suite and Linux compile have completed.

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

  • L1 gpu/vk/vk_shader.cpp:2400: Measure the complete change against the base at settings players use. (more on the line) Do: Run interleaved warmed comparisons of the base and head in the target and a heavy scene at the device's normal resolution and preset; report frame times, average FPS and 1% lows.
  • L2 gpu/vk/vk_shader.cpp:2401: Exercise the changed selection path on the other affected Tier 1 systems before choosing the default for them. (more on the line) Do: Run gameplay and comparable base/head timing on Linux RADV, including Steam Deck, and the remaining affected Tier 1 Windows/Linux configurations; check mesh output and frame pacing.

@fix can do L3 and L4.

Checks: Still running: 10 checks.

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

Does it help: Unproven against main. On Windows with an RTX 4060, the author reports 74.74 versus 73.42 FPS and 0.985 versus 1.274 ms programs_ms over five runs, comparing the PR's switch on and off. Both sides include changes that remain active when the switch is off, and the run used 720p with 50% internal resolution rather than the device's normal settings.

Other systems: The program-selection path affects graphics, compute and mesh draws, including the compute mesh fallback used by RADV and Steam Deck. Only Windows NVIDIA gameplay is reported; Linux, AMD/RADV and Steam Deck behavior and timing remain unverified. Shader-cache loading also populates the new answer data, including when the switch is off.

Switches: RX_VK_PROG_FAST is added as a kill/A-B switch, default on, with a switches.def row. Its default has a Windows NVIDIA A/B result but is not yet supported by measurements on the other affected Tier 1 systems.

Reviewed: aece3ffa1d against 55773e3613: Read the repository rules and PR template, commit and changed shader, replay, cache, switch and test code and relevant callers and bank layout. The large draw and replay files and the existing cache tests were read around changed and dependent paths rather than in full. No recorded runs or generated files were included in the diff. docs/review-checklist.md and the neighboring Tooling checkout were absent.; nothing run (a code review).

Checked and fine:

  • The commit records its AI assistance trailer, and the diff contains no game-derived files or generated shader headers.
  • The fast-answer data is populated before ready is published, including both program-cache read paths.
  • The direct c2 slot ranges and zero words match driver_bank_word, and texture registration generations are checked before fast-cache reuse.

Testing: Read-only review; no build, tests or project scripts were run. The supplied CI checks are still running.

Overlaps and merge order: Not available from the supplied checkout and PR context.


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

**Recommendation: Approve.** The reported A/B shows a gain within the PR build, but it does not measure the complete change against main at player settings. The new default also needs coverage on the other Tier 1 systems affected by the renderer path. Nothing blocking is left: what remains is for the author before merging (below). Recommend approval; not approved on the forge. The change caches more program selections and descriptor answers to reduce CPU time spent choosing shaders. It adds per-program cached data and a per-recording switch, and changes graphics, compute and mesh program selection. **Should fix (1)**: not blocking, but worth doing before merging. - **L3** `tests/test_vk_prog_fast.py:215`: The signature test exercises a handwritten copy of the replay update instead of the changed replay code. (more on the line) **Do:** Extract and exercise the actual replay binding and queue-sidecar logic, or factor it into a shared function used by both replay and the test. **Nits (1)**: optional. - **L4**: The checklist says the full test suite passes and both host platforms build, while Testing says the full suite and Linux compile are still to test. *When:* A maintainer reading only the checked boxes would believe those required checks already passed. **Do:** Correct the checklist and record the actual results once the suite and Linux compile have completed. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `gpu/vk/vk_shader.cpp:2400`: Measure the complete change against the base at settings players use. (more on the line) **Do:** Run interleaved warmed comparisons of the base and head in the target and a heavy scene at the device's normal resolution and preset; report frame times, average FPS and 1% lows. - **L2** `gpu/vk/vk_shader.cpp:2401`: Exercise the changed selection path on the other affected Tier 1 systems before choosing the default for them. (more on the line) **Do:** Run gameplay and comparable base/head timing on Linux RADV, including Steam Deck, and the remaining affected Tier 1 Windows/Linux configurations; check mesh output and frame pacing. `@fix` can do L3 and L4. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against main. On Windows with an RTX 4060, the author reports 74.74 versus 73.42 FPS and 0.985 versus 1.274 ms programs_ms over five runs, comparing the PR's switch on and off. Both sides include changes that remain active when the switch is off, and the run used 720p with 50% internal resolution rather than the device's normal settings. **Other systems:** The program-selection path affects graphics, compute and mesh draws, including the compute mesh fallback used by RADV and Steam Deck. Only Windows NVIDIA gameplay is reported; Linux, AMD/RADV and Steam Deck behavior and timing remain unverified. Shader-cache loading also populates the new answer data, including when the switch is off. **Switches:** RX_VK_PROG_FAST is added as a kill/A-B switch, default on, with a switches.def row. Its default has a Windows NVIDIA A/B result but is not yet supported by measurements on the other affected Tier 1 systems. **Reviewed:** aece3ffa1da4 against 55773e36136a: Read the repository rules and PR template, commit and changed shader, replay, cache, switch and test code and relevant callers and bank layout. The large draw and replay files and the existing cache tests were read around changed and dependent paths rather than in full. No recorded runs or generated files were included in the diff. docs/review-checklist.md and the neighboring Tooling checkout were absent.; nothing run (a code review). **Checked and fine:** - The commit records its AI assistance trailer, and the diff contains no game-derived files or generated shader headers. - The fast-answer data is populated before ready is published, including both program-cache read paths. - The direct c2 slot ranges and zero words match driver_bank_word, and texture registration generations are checked before fast-cache reuse. **Testing:** Read-only review; no build, tests or project scripts were run. The supplied CI checks are still running. **Overlaps and merge order:** Not available from the supplied checkout and PR context. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -2268,3 +2398,3 @@
const Program* program_for(const NvnState& s, ProgramKind kind, const uint8_t color_types[8], bool actor_turf) {
if (!s.has_prog) return nullptr;
if (kind == ProgramKind::Mesh) return mesh_program_for(s, color_types, actor_turf);
const bool fast = prog_fast_on();
Member

L1 (should fix): Measure the complete change against the base at settings players use. The switch-off side still runs changed code, including cached-answer population and the rewritten texture lookup, so it is not main.

When: The reported 1.79% gain compares two modes of aece3ffa at reduced resolution; it cannot show the net effect of the entire PR against 55773e361 at the normal preset and native resolution.

Do: Run interleaved warmed comparisons of the base and head in the target and a heavy scene at the device's normal resolution and preset; report frame times, average FPS and 1% lows.

**L1** (should fix): Measure the complete change against the base at settings players use. The switch-off side still runs changed code, including cached-answer population and the rewritten texture lookup, so it is not main. *When:* The reported 1.79% gain compares two modes of aece3ffa at reduced resolution; it cannot show the net effect of the entire PR against 55773e361 at the normal preset and native resolution. **Do:** Run interleaved warmed comparisons of the base and head in the target and a heavy scene at the device's normal resolution and preset; report frame times, average FPS and 1% lows.
@ -2269,2 +2399,3 @@
if (!s.has_prog) return nullptr;
if (kind == ProgramKind::Mesh) return mesh_program_for(s, color_types, actor_turf);
const bool fast = prog_fast_on();
if (!fast && kind == ProgramKind::Mesh) return mesh_program_for(s, color_types, actor_turf);
Member

L2 (should fix): Exercise the changed selection path on the other affected Tier 1 systems before choosing the default for them.

When: RADV and Steam Deck normally use the compute mesh fallback, while the reported run covers Windows NVIDIA; the new mesh cache and answer validation now run on both paths.

Do: Run gameplay and comparable base/head timing on Linux RADV, including Steam Deck, and the remaining affected Tier 1 Windows/Linux configurations; check mesh output and frame pacing.

**L2** (should fix): Exercise the changed selection path on the other affected Tier 1 systems before choosing the default for them. *When:* RADV and Steam Deck normally use the compute mesh fallback, while the reported run covers Windows NVIDIA; the new mesh cache and answer validation now run on both paths. **Do:** Run gameplay and comparable base/head timing on Linux RADV, including Steam Deck, and the remaining affected Tier 1 Windows/Linux configurations; check mesh output and frame pacing.
@ -0,0 +212,4 @@
const auto it = g_state_sigs.find(&s);
return it != g_state_sigs.end() ? it->second : prog_stage_sig(s.prog);
}
static void sim_bind_program(NvnState& s, const nvn_prog* bprog) {
Member

L3 (should fix): The signature test exercises a handwritten copy of the replay update instead of the changed replay code.

When: Removing the assignment to the cached signature inside NOP_BIND_PROGRAM while leaving its source markers present would still pass the simulated bind tests, although real replay would retain the old signature.

Do: Extract and exercise the actual replay binding and queue-sidecar logic, or factor it into a shared function used by both replay and the test.

**L3** (should fix): The signature test exercises a handwritten copy of the replay update instead of the changed replay code. *When:* Removing the assignment to the cached signature inside NOP_BIND_PROGRAM while leaving its source markers present would still pass the simulated bind tests, although real replay would retain the old signature. **Do:** Extract and exercise the actual replay binding and queue-sidecar logic, or factor it into a shared function used by both replay and the test.
Member

#2954: Deck measurement

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

3 runs with both switches on against 3 with both off (RX_VK_PROG_FAST=0 RX_VK_DRAW_SELF_FAST=0): fps 37.03 against 36.69 (+0.94 %, permutation p 0.25), median frame 26.70 against 27.09 ms (-0.39 ms, -1.43 %, p 0.05, the floor for 3 a side), mean 27.01 against 27.26 ms. p99 and frames over 60 ms are within spread.

Phase medians, three paired samples: programs_ms 1.19 ms against 1.57-1.60 ms (-24.2 %, -24.7 %, -25.6 %) and draw_ms -3.8 to -4.6 %, with desc_ms slightly worse (+3.4 to +4.4 %). Your -22.67 % on Windows transferred almost exactly in percentage terms.

The absolute saving is small because the phase is: programs_ms is 1.6 ms of a 27 ms frame at this setting, so a quarter of it is 0.39 ms. At 100 % render the frame is 31 ms and the saving is inside gpu_wait_ms. Worth merging for the phase it fixes, not as a frame-rate change on this hardware.

Queue note: #2954 does not merge cleanly with #2946 (vk_internal.h, vk_progcache.cpp, vk_shader.cpp) or with #2952 (vk_draw.cpp), and those two fast paths overlap (#2946 routes mesh programs through the TLS prog_fast/picks, this PR expands the prog_fast cache), so the two together would need reconciling rather than stacking.

## #2954: Deck measurement Steam Deck LCD (RADV VANGOGH, Mesa 26.2.0-devel), 2026-12-01. Build: base `87045899` plus a dev-pack of `main` with #2954 and #2958 merged, renderer and host from that tree. Settings: 1280x800 output, 50 % render (640x400) with the game's own upscaler, preset Custom/0, no V-Sync, no cap. Same save, slot and route as my other Deck runs (Hyrule Field anchor, walk/pan/turn passes, play window 30-97 % of each trace). Arms are separate interleaved launches because `HOS_AB`'s thread does not start on this platform yet (glibc refuses the 64 KiB stack: this binary's static TLS block is 61,936 bytes; fix in review as #2971). **3 runs with both switches on against 3 with both off** (`RX_VK_PROG_FAST=0 RX_VK_DRAW_SELF_FAST=0`): fps 37.03 against 36.69 (+0.94 %, permutation p 0.25), median frame 26.70 against 27.09 ms (-0.39 ms, -1.43 %, p 0.05, the floor for 3 a side), mean 27.01 against 27.26 ms. p99 and frames over 60 ms are within spread. Phase medians, three paired samples: **`programs_ms` 1.19 ms against 1.57-1.60 ms (-24.2 %, -24.7 %, -25.6 %)** and `draw_ms` -3.8 to -4.6 %, with `desc_ms` slightly worse (+3.4 to +4.4 %). Your -22.67 % on Windows transferred almost exactly in percentage terms. The absolute saving is small because the phase is: `programs_ms` is 1.6 ms of a 27 ms frame at this setting, so a quarter of it is 0.39 ms. At 100 % render the frame is 31 ms and the saving is inside `gpu_wait_ms`. Worth merging for the phase it fixes, not as a frame-rate change on this hardware. Queue note: #2954 does not merge cleanly with #2946 (`vk_internal.h`, `vk_progcache.cpp`, `vk_shader.cpp`) or with #2952 (`vk_draw.cpp`), and those two fast paths overlap (#2946 routes mesh programs through the TLS `prog_fast`/`picks`, this PR expands the `prog_fast` cache), so the two together would need reconciling rather than stacking.
siantm force-pushed perf/vk-prog-fast-answers from aece3ffa1d
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 1/1 fail
beanstalk/linux+nvidia 1/1 fail
beanstalk/linux+radv 2/1 pass
beanstalk/amd 2/1 pass
beanstalk/intel 0/1 pass, 0 running, 1 queued
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 30ef7ca5cc
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+nvidia 2/1 pass
beanstalk/windows+amd 2/1 pass
beanstalk/linux+radv 2/1 pass
beanstalk/intel 1/1 pass
beanstalk/steamdeck 2/1 pass
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-02 10:41:13 +00:00
Compare
Author
Contributor

Addressed review #3003 L3 and audited the Beanstalk reports in 30ef7ca5c:

  • L3 (tests/test_vk_prog_fast.py, NOP_BIND_PROGRAM / state_prog_sig): Extracted prog_sig::stage_sig and prog_sig::ProgSigCache<State> (bind_program, on_new_queue, on_switch_queue, get) into standalone gpu/vk/prog_fast.h, wired through gpu/vk/vk_internal.h and gpu/vk/vk_replay.cpp without modifying gpu/vk/vk_shader.cpp. Replaced the handwritten sim_bind_program / g_state_sigs copy in tests/test_vk_prog_fast.py with the production prog_fast.h helpers, added source wiring checks, added 3 MUST_FAIL broken variants (skip_sig_update, skip_prog_copy, skip_queue_switch), and added compiler fallback discovery (--cxx / CXX -> clang++ / g++ / c++) and Windows DLL PATH handling.
  • L1 & L2: Noted for base-vs-HEAD measurements at player settings and remaining Tier 1 hardware runs (Steam Deck RADV numbers already posted above by @omgitsgela: -24.2% to -25.6% programs_ms).
  • Beanstalk audit (linux+nvidia screenshot.max_diff 0.1 -> 0.3, windows+nvidia market.frametime_p50_ms +17.0%): Audited gpu/vk/vk_shader.cpp (program_for, mesh_program_locked, fast_still_valid, populate_fast_answers, answer_stage_mask, c2_decode_slot), gpu/vk/vk_replay.cpp (use_queue_state, NOP_BIND_PROGRAM), and gpu/vk/vk_progcache.cpp (program_cache_read, program_cache_read_light).
    • c2_decode_slot matches driver_bank_word bank-2 slot ranges (0x20, 0x120, 0x168, 0x568), fast_still_valid matches still_valid across c2_only, secondary/shifted descriptors, UBO/handle-program fallbacks, canon_uint_image, type_fixed (Rect/Buffer exceptions), depth strip_int, and strict RX_VK_CAPTURE=0 mode, and f.ub is skipped only when f.amask != ~0u (all answers in c2, unaffected by NOP_UPDATE_UB).
    • Mesh routing keys on ct_hash ^ s.prog.serial ^ kind + actor_turf and validates fast_still_valid; populate_fast_answers runs before ready.store(true, release) in both translation and cache-load paths; tonemap_seen clears picks and all 8 prog_fast ways.
    • No functional shader-selection bug was found in vk_shader.cpp: linux+radv passed (-6% field p99, -7% market p99), amd passed (+0%), and linux+nvidia had +0%/+1% frame times with only screenshot.max_diff 0.3 (likely scene/animation variance between runs), while windows+nvidia (+13% median / +17.0% max delta, flagged as an outlier by Beanstalk) far exceeds the entire programs_ms phase (~1.0–1.6 ms).

Verified after the final edit:

  • clang++ and g++ -std=c++20 -Wall -Wextra -Werror -fsyntax-only on gpu/vk/prog_fast.h
  • python -I -B tests/test_vk_prog_fast.py with --cxx clang++, --cxx g++, and default discovery (default + strict + 3/3 MUST_FAIL broken variants caught)
  • python -I -B tests/test_hos_ab.py --cc clang, python -I -B tests/test_tls_objects.py, python -I -B tests/test_vk_braces.py, python -I -B tests/test_pick_tex_gen.py, and python -I -B tests/test_scene_tonemap_pass.py
Addressed review #3003 L3 and audited the Beanstalk reports in `30ef7ca5c`: - **L3 (`tests/test_vk_prog_fast.py`, `NOP_BIND_PROGRAM` / `state_prog_sig`):** Extracted `prog_sig::stage_sig` and `prog_sig::ProgSigCache<State>` (`bind_program`, `on_new_queue`, `on_switch_queue`, `get`) into standalone `gpu/vk/prog_fast.h`, wired through `gpu/vk/vk_internal.h` and `gpu/vk/vk_replay.cpp` without modifying `gpu/vk/vk_shader.cpp`. Replaced the handwritten `sim_bind_program` / `g_state_sigs` copy in `tests/test_vk_prog_fast.py` with the production `prog_fast.h` helpers, added source wiring checks, added 3 `MUST_FAIL` broken variants (`skip_sig_update`, `skip_prog_copy`, `skip_queue_switch`), and added compiler fallback discovery (`--cxx` / `CXX` -> `clang++` / `g++` / `c++`) and Windows DLL `PATH` handling. - **L1 & L2:** Noted for base-vs-HEAD measurements at player settings and remaining Tier 1 hardware runs (Steam Deck RADV numbers already posted above by @omgitsgela: `-24.2%` to `-25.6%` `programs_ms`). - **Beanstalk audit (`linux+nvidia` `screenshot.max_diff 0.1 -> 0.3`, `windows+nvidia` `market.frametime_p50_ms +17.0%`):** Audited `gpu/vk/vk_shader.cpp` (`program_for`, `mesh_program_locked`, `fast_still_valid`, `populate_fast_answers`, `answer_stage_mask`, `c2_decode_slot`), `gpu/vk/vk_replay.cpp` (`use_queue_state`, `NOP_BIND_PROGRAM`), and `gpu/vk/vk_progcache.cpp` (`program_cache_read`, `program_cache_read_light`). - `c2_decode_slot` matches `driver_bank_word` bank-2 slot ranges (`0x20`, `0x120`, `0x168`, `0x568`), `fast_still_valid` matches `still_valid` across `c2_only`, secondary/shifted descriptors, UBO/handle-program fallbacks, `canon_uint_image`, `type_fixed` (Rect/Buffer exceptions), depth `strip_int`, and strict `RX_VK_CAPTURE=0` mode, and `f.ub` is skipped only when `f.amask != ~0u` (all answers in `c2`, unaffected by `NOP_UPDATE_UB`). - `Mesh` routing keys on `ct_hash ^ s.prog.serial ^ kind` + `actor_turf` and validates `fast_still_valid`; `populate_fast_answers` runs before `ready.store(true, release)` in both translation and cache-load paths; `tonemap_seen` clears `picks` and all 8 `prog_fast` ways. - No functional shader-selection bug was found in `vk_shader.cpp`: `linux+radv` passed (`-6%` field p99, `-7%` market p99), `amd` passed (`+0%`), and `linux+nvidia` had `+0%`/`+1%` frame times with only `screenshot.max_diff 0.3` (likely scene/animation variance between runs), while `windows+nvidia` (`+13%` median / `+17.0%` max delta, flagged as an outlier by Beanstalk) far exceeds the entire `programs_ms` phase (`~1.0–1.6 ms`). Verified after the final edit: - `clang++` and `g++` `-std=c++20 -Wall -Wextra -Werror -fsyntax-only` on `gpu/vk/prog_fast.h` - `python -I -B tests/test_vk_prog_fast.py` with `--cxx clang++`, `--cxx g++`, and default discovery (`default` + `strict` + 3/3 `MUST_FAIL` broken variants caught) - `python -I -B tests/test_hos_ab.py --cc clang`, `python -I -B tests/test_tls_objects.py`, `python -I -B tests/test_vk_braces.py`, `python -I -B tests/test_pick_tex_gen.py`, and `python -I -B tests/test_scene_tonemap_pass.py`
Owner

@review
@beanstalk

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

Commit 30ef7ca · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm does not measure the programs_ms phase or reproduce the in-recording switch flips, so it cannot directly verify the claimed 22.67% phase saving.
⚠️ Note: The plan tests the shipping default against main, not the switch-off fallback or player-specific presets; it also does not run the full test suite or guarantee that mesh-specific paths are exercised.

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

The change passed on all reported targets: Windows NVIDIA and AMD, Linux NVIDIA and RADV, Intel, and Steam Deck. On one Steam Deck, Market frame-time p99 rose from 44.86 to 48.16 ms (+7.4%), and the maximum rose from 101.39 to 891.04 ms; screenshot difference was 0.26, below the 0.3 failure threshold. One Windows Intel PC had a PR runtime error with no scenario results, while the Linux Intel PC passed; Linux NVIDIA also has passing reports despite the test description saying it was waiting for a tester.

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

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ✅ pass (an outlier) 2 1 2 28.0 → 20.1 (−28%) — none
linux+nvidia ✅ pass (an outlier) 2 1 2 15.1 → 15.2 (+0%) — none
windows+amd ✅ pass (an outlier) 2 1 2 38.8 → 38.7 (−0%) — none
linux+radv ✅ pass (an outlier) 2 1 2 13.9 → 13.8 (−1%) — none
intel ✅ pass 2 1 2 209.4 → 206.6 (−1%) — none
steamdeck ✅ pass (an outlier) 2 1 2 37.5 → 38.7 (+3%) — 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.

  • intel, report 1: the pr runtime failed (exit 1): File "Z:\longshot\scripts\dev.py", line 70, in <module>
What was tested

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

Compare the PR with main on Windows NVIDIA and AMD, Linux NVIDIA and RADV, Intel, and Steam Deck. Three starts per side exercise the Market and Hyrule Field at uncapped CPU-focused settings, with 30-second warmed frame-time measurements and stationary screenshot comparisons. The PR fails for a crash, a frame-time regression over 15%, or a screenshot difference over 0.3. No tester online now matches linux+nvidia: that target waits for one.

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

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

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

Before: main @ 55773e3 After: this PR @ 30ef7ca
program-selection · field · median frame time (ms) 23.7 16.6 (−30%)
program-selection · market · median frame time (ms) 27.5 27.5 (−0%)
program-selection · field · frame time (p99) (ms) 28.0 20.1 (−28%)
program-selection · market · frame time (p99) (ms) 31.7 32.0 (+1%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ 30ef7ca |
|---|---|---|
| program-selection · field · median frame time (ms) | 23.7 | 16.6 (−30%) |
| program-selection · market · median frame time (ms) | 27.5 | 27.5 (−0%) |
| program-selection · field · frame time (p99) (ms) | 28.0 | 20.1 (−28%) |
| program-selection · market · frame time (p99) (ms) | 31.7 | 32.0 (+1%) |

**Flags and settings**

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

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

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

Before: main @ 55773e3 After: this PR @ 30ef7ca
program-selection · field · median frame time (ms) 11.2 11.1 (−1%)
program-selection · market · median frame time (ms) 15.6 15.5 (−1%)
program-selection · field · frame time (p99) (ms) 15.1 15.2 (+0%)
program-selection · market · frame time (p99) (ms) 19.1 19.0 (−1%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ 30ef7ca |
|---|---|---|
| program-selection · field · median frame time (ms) | 11.2 | 11.1 (−1%) |
| program-selection · market · median frame time (ms) | 15.6 | 15.5 (−1%) |
| program-selection · field · frame time (p99) (ms) | 15.1 | 15.2 (+0%) |
| program-selection · market · frame time (p99) (ms) | 19.1 | 19.0 (−1%) |

**Flags and settings**

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

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

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

Before: main @ 55773e3 After: this PR @ 30ef7ca
program-selection · field · median frame time (ms) 36.3 36.2 (−0%)
program-selection · market · median frame time (ms) 39.8 39.8 (−0%)
program-selection · field · frame time (p99) (ms) 38.8 38.7 (−0%)
program-selection · market · frame time (p99) (ms) 44.4 44.3 (−0%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ 30ef7ca |
|---|---|---|
| program-selection · field · median frame time (ms) | 36.3 | 36.2 (−0%) |
| program-selection · market · median frame time (ms) | 39.8 | 39.8 (−0%) |
| program-selection · field · frame time (p99) (ms) | 38.8 | 38.7 (−0%) |
| program-selection · market · frame time (p99) (ms) | 44.4 | 44.3 (−0%) |

**Flags and settings**

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

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

Hardware: 1: linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM; 2: linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 55773e3 After: this PR @ 30ef7ca
program-selection · field · median frame time (ms) 11.4 11.5 (+0%)
program-selection · market · median frame time (ms) 14.1 14.2 (+0%)
program-selection · field · frame time (p99) (ms) 13.9 13.8 (−1%)
program-selection · market · frame time (p99) (ms) 17.3 17.1 (−2%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM`  
Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 55773e3 | After: this PR @ 30ef7ca |
|---|---|---|
| program-selection · field · median frame time (ms) | 11.4 | 11.5 (+0%) |
| program-selection · market · median frame time (ms) | 14.1 | 14.2 (+0%) |
| program-selection · field · frame time (p99) (ms) | 13.9 | 13.8 (−1%) |
| program-selection · market · frame time (p99) (ms) | 17.3 | 17.1 (−2%) |

**Flags and settings**

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

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

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

Before: main @ 55773e3 After: this PR @ 30ef7ca
program-selection · field · median frame time (ms) 196.0 195.6 (−0%)
program-selection · market · median frame time (ms) 215.2 216.0 (+0%)
program-selection · field · frame time (p99) (ms) 209.4 206.6 (−1%)
program-selection · market · frame time (p99) (ms) 241.2 243.0 (+1%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ 30ef7ca |
|---|---|---|
| program-selection · field · median frame time (ms) | 196.0 | 195.6 (−0%) |
| program-selection · market · median frame time (ms) | 215.2 | 216.0 (+0%) |
| program-selection · field · frame time (p99) (ms) | 209.4 | 206.6 (−1%) |
| program-selection · market · frame time (p99) (ms) | 241.2 | 243.0 (+1%) |

**Flags and settings**

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

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

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

Before: main @ 55773e3 After: this PR @ 30ef7ca
program-selection · field · median frame time (ms) 28.2 28.3 (+0%)
program-selection · market · median frame time (ms) 35.4 36.2 (+2%)
program-selection · field · frame time (p99) (ms) 37.5 38.7 (+3%)
program-selection · market · frame time (p99) (ms) 46.8 48.5 (+4%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

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

| | Before: main @ 55773e3 | After: this PR @ 30ef7ca |
|---|---|---|
| program-selection · field · median frame time (ms) | 28.2 | 28.3 (+0%) |
| program-selection · market · median frame time (ms) | 35.4 | 36.2 (+2%) |
| program-selection · field · frame time (p99) (ms) | 37.5 | 38.7 (+3%) |
| program-selection · market · frame time (p99) (ms) | 46.8 | 48.5 (+4%) |

**Flags and settings**

None: the plan varied no setting, switch or build option.
The testers' hardware
Target Report Ran on
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu+window NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window+xess NVIDIA GeForce GTX 980, 582.78.0 Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 32 GB RAM
linux+nvidia 1 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1660 Ti, 620.73.4 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM
linux+nvidia 2 linux+nvidia+nvidia-proprietary+dgpu+dlss NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2 AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM
windows+amd 1 windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
windows+amd 2 windows+amd+amd-proprietary+igpu+window+xess AMD Radeon(TM) Graphics, 2.0.279 AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM
linux+radv 1 linux+amd+radv+igpu AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99 AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM
linux+radv 2 linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
intel 1 windows+intel+intel-proprietary+igpu+window Intel(R) UHD Graphics 630, 0.404.2115 Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM
intel 2 linux+intel+anv+igpu Intel(R) Graphics (RKL GT1), 26.2.4 11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
steamdeck 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>30ef7ca</code> (the newer results are in a comment below)</summary> Commit `30ef7ca` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2954) ⚠️ **Note:** The farm does not measure the programs_ms phase or reproduce the in-recording switch flips, so it cannot directly verify the claimed 22.67% phase saving. ⚠️ **Note:** The plan tests the shipping default against main, not the switch-off fallback or player-specific presets; it also does not run the full test suite or guarantee that mesh-specific paths are exercised. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change passed on all reported targets: Windows NVIDIA and AMD, Linux NVIDIA and RADV, Intel, and Steam Deck. On one Steam Deck, Market frame-time p99 rose from 44.86 to 48.16 ms (+7.4%), and the maximum rose from 101.39 to 891.04 ms; screenshot difference was 0.26, below the 0.3 failure threshold. One Windows Intel PC had a PR runtime error with no scenario results, while the Linux Intel PC passed; Linux NVIDIA also has passing reports despite the test description saying it was waiting for a tester. Done (started 2026-12-02 16:19 UTC, last report 12:12 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+nvidia` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_423707a778417e97) [2](https://beanstalk.magicbean.dev/reports/rp_0b26e26711160dc1) | 28.0 → 20.1 (−28%) | — | none | | `linux+nvidia` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_1f91a4c7d868f19a) [2](https://beanstalk.magicbean.dev/reports/rp_9a2ea843ca496cfd) | 15.1 → 15.2 (+0%) | — | none | | `windows+amd` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_d4fe241ff5bce973) [2](https://beanstalk.magicbean.dev/reports/rp_a53ac36ce641b316) | 38.8 → 38.7 (−0%) | — | none | | `linux+radv` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_7e507169bdcd36c1) [2](https://beanstalk.magicbean.dev/reports/rp_c224c513b95a0c83) | 13.9 → 13.8 (−1%) | — | none | | `intel` | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_d7934f10f1792901) [2](https://beanstalk.magicbean.dev/reports/rp_43d798ecf8e89529) | 209.4 → 206.6 (−1%) | — | none | | `steamdeck` | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_4d6e9410c1541cea) [2](https://beanstalk.magicbean.dev/reports/rp_bb4156e378dbae34) | 37.5 → 38.7 (+3%) | — | 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. - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_d7934f10f1792901): `the pr runtime failed (exit 1): File "Z:\longshot\scripts\dev.py", line 70, in <module>` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) Compare the PR with main on Windows NVIDIA and AMD, Linux NVIDIA and RADV, Intel, and Steam Deck. Three starts per side exercise the Market and Hyrule Field at uncapped CPU-focused settings, with 30-second warmed frame-time measurements and stationary screenshot comparisons. The PR fails for a crash, a frame-time regression over 15%, or a screenshot difference over 0.3. No tester online now matches linux+nvidia: that target waits for one. - **Where:** windows+nvidia (1-2 reports), linux+nvidia (1-2 reports), windows+amd (1-2 reports), linux+radv (1-2 reports), intel (1-2 reports), steamdeck (1-2 reports). - **program-selection:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Market, take the picture market to compare with main, measure market for 30 s (after 10 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 10 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate. - **The PR fails if:** it crashes; or a picture differs from main by more than 30%; or median frame time is more than 15% above main; or frame time (p99) is more than 15% above main. - **Time:** about 39 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** pass on windows+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 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: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 23.7 | 16.6 (−30%) | | program-selection · market · median frame time (ms) | 27.5 | 27.5 (−0%) | | program-selection · field · frame time (p99) (ms) | 28.0 | 20.1 (−28%) | | program-selection · market · frame time (p99) (ms) | 31.7 | 32.0 (+1%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 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: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 23.7 | 16.6 (−30%) | | program-selection · market · median frame time (ms) | 27.5 | 27.5 (−0%) | | program-selection · field · frame time (p99) (ms) | 28.0 | 20.1 (−28%) | | program-selection · market · frame time (p99) (ms) | 31.7 | 32.0 (+1%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+nvidia`, for the PR description</summary> **Verdict:** pass on linux+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu+dlss `NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2` `AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 11.2 | 11.1 (−1%) | | program-selection · market · median frame time (ms) | 15.6 | 15.5 (−1%) | | program-selection · field · frame time (p99) (ms) | 15.1 | 15.2 (+0%) | | program-selection · market · frame time (p99) (ms) | 19.1 | 19.0 (−1%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+nvidia (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu+dlss `NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2` `AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 11.2 | 11.1 (−1%) | | program-selection · market · median frame time (ms) | 15.6 | 15.5 (−1%) | | program-selection · field · frame time (p99) (ms) | 15.1 | 15.2 (+0%) | | program-selection · market · frame time (p99) (ms) | 19.1 | 19.0 (−1%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `windows+amd`, for the PR description</summary> **Verdict:** pass on windows+amd (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 36.3 | 36.2 (−0%) | | program-selection · market · median frame time (ms) | 39.8 | 39.8 (−0%) | | program-selection · field · frame time (p99) (ms) | 38.8 | 38.7 (−0%) | | program-selection · market · frame time (p99) (ms) | 44.4 | 44.3 (−0%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+amd (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`; 2: windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 36.3 | 36.2 (−0%) | | program-selection · market · median frame time (ms) | 39.8 | 39.8 (−0%) | | program-selection · field · frame time (p99) (ms) | 38.8 | 38.7 (−0%) | | program-selection · market · frame time (p99) (ms) | 44.4 | 44.3 (−0%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 11.4 | 11.5 (+0%) | | program-selection · market · median frame time (ms) | 14.1 | 14.2 (+0%) | | program-selection · field · frame time (p99) (ms) | 13.9 | 13.8 (−1%) | | program-selection · market · frame time (p99) (ms) | 17.3 | 17.1 (−2%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on linux+radv (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 11.4 | 11.5 (+0%) | | program-selection · market · median frame time (ms) | 14.1 | 14.2 (+0%) | | program-selection · field · frame time (p99) (ms) | 13.9 | 13.8 (−1%) | | program-selection · market · frame time (p99) (ms) | 17.3 | 17.1 (−2%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `intel`, for the PR description</summary> **Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 196.0 | 195.6 (−0%) | | program-selection · market · median frame time (ms) | 215.2 | 216.0 (+0%) | | program-selection · field · frame time (p99) (ms) | 209.4 | 206.6 (−1%) | | program-selection · market · frame time (p99) (ms) | 241.2 | 243.0 (+1%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on intel (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+intel+intel-proprietary+igpu+window `Intel(R) UHD Graphics 630, 0.404.2115` `Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 8 GB RAM`; 2: linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 196.0 | 195.6 (−0%) | | program-selection · market · median frame time (ms) | 215.2 | 216.0 (+0%) | | program-selection · field · frame time (p99) (ms) | 209.4 | 206.6 (−1%) | | program-selection · market · frame time (p99) (ms) | 241.2 | 243.0 (+1%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 28.2 | 28.3 (+0%) | | program-selection · market · median frame time (ms) | 35.4 | 36.2 (+2%) | | program-selection · field · frame time (p99) (ms) | 37.5 | 38.7 (+3%) | | program-selection · market · frame time (p99) (ms) | 46.8 | 48.5 (+4%) | **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on steamdeck (2 reports): no rule failed and no PR run crashed. Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: program-selection, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); program-selection: 3 game starts a side, market 30 s after 10 s warm-up, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 55773e3 | After: this PR @ 30ef7ca | |---|---|---| | program-selection · field · median frame time (ms) | 28.2 | 28.3 (+0%) | | program-selection · market · median frame time (ms) | 35.4 | 36.2 (+2%) | | program-selection · field · frame time (p99) (ms) | 37.5 | 38.7 (+3%) | | program-selection · market · frame time (p99) (ms) | 46.8 | 48.5 (+4%) | **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_423707a778417e97) | windows+nvidia+nvidia-proprietary+dgpu+window `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 9 5900X 12-Core Processor, 128 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_0b26e26711160dc1) | 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` | | `linux+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_1f91a4c7d868f19a) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1660 Ti, 620.73.4` `Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz, 16 GB RAM` | | `linux+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_9a2ea843ca496cfd) | linux+nvidia+nvidia-proprietary+dgpu+dlss `NVIDIA GeForce RTX 5070 Laptop GPU, 620.85.2` `AMD Ryzen AI 9 365 w/ Radeon 880M, 32 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_d4fe241ff5bce973) | windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` | | `windows+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_a53ac36ce641b316) | windows+amd+amd-proprietary+igpu+window+xess `AMD Radeon(TM) Graphics, 2.0.279` `AMD Ryzen 5 5600G with Radeon Graphics, 28 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_7e507169bdcd36c1) | linux+amd+radv+igpu `AMD Radeon 8060S Graphics (RADV STRIX_HALO), 26.99.99` `AMD RYZEN AI MAX+ 395 w/ Radeon 8060S, 64 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_c224c513b95a0c83) | linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_d7934f10f1792901) | 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_43d798ecf8e89529) | linux+intel+anv+igpu `Intel(R) Graphics (RKL GT1), 26.2.4` `11th Gen Intel(R) Core(TM) i7-11700K @ 3.60GHz, 128 GB RAM` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_4d6e9410c1541cea) | 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_bb4156e378dbae34) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | </details> </details>
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The signature test now exercises the production helper, but the complete change still lacks a base-versus-HEAD measurement and the remaining affected Tier 1 hardware runs. CI is also still running. Recommend approval; not approved on the forge.

The change expands the Vulkan program cache and avoids repeated handle validation, aiming to reduce CPU time spent selecting shader programs. The extracted signature helper makes that replay behavior directly testable at the cost of another sidecar abstraction.

Nits (1): optional.

  • L4: The checklist says the full test suite passes and both host platforms build, while Testing says the full suite and Linux compile are still to test. When: A maintainer reading only the checked boxes would believe those required checks already passed. Do: Correct the checklist and record the actual results once the suite and Linux compile have completed.

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

  • L1 gpu/vk/vk_shader.cpp:2400: Measure the complete change against the base at settings players use. The switch-off side still runs changed code, including cached-answer population and the rewritten texture lookup, so it is not main. When: The reported 1.79% gain compares two modes of aece3ffa at reduced resolution; it cannot show the net effect of the entire PR against 55773e361 at the normal preset and native resolution. Do: Run interleaved warmed comparisons of the base and head in the target and a heavy scene at the device's normal resolution and preset; report frame times, average FPS and 1% lows.
  • L2 gpu/vk/vk_shader.cpp:2401: Exercise the changed selection path on the other affected Tier 1 systems before choosing the default for them. When: RADV and Steam Deck normally use the compute mesh fallback, while the reported run covers Windows NVIDIA; the new mesh cache and answer validation now run on both paths. Do: Run gameplay and comparable base/head timing on Linux RADV, including Steam Deck, and the remaining affected Tier 1 Windows/Linux configurations; check mesh output and frame pacing.

@fix can do L4.

Since the last review (on aece3ffa1d)
Resolved: L3 (The signature test exercises a handwritten copy of the replay update instead of the change…)
Still open: L1 (Measure the complete change against the base at settings players use. The switch-off side…); L2 (Exercise the changed selection path on the other affected Tier 1 systems before choosing t…); L4 (The checklist says the full test suite passes and both host platforms build, while Testing…)

Checks: Still running: 10 checks.

Also noticed (3; not asked for, not blocking)
  • The Deck measurement combines this change with #2958, so it does not isolate either change's net effect.
  • The supplied farm audit reports a Windows NVIDIA frame-time outlier and a Linux NVIDIA screenshot difference without establishing their cause.
  • The maintainer requested a Beanstalk run, but no farm action was available within the read-only, network-closed review constraints.
More: does it help, other systems, switches, what was read

Does it help: Unproven for the complete change against main. On Windows RTX 4060, the reported in-run switch comparison showed +1.79% FPS and -22.67% programs_ms, but both sides include other changes from this PR. A Steam Deck run with this PR and #2958 together showed programs_ms down 24.2–25.6%, but does not isolate this PR against its base.

Other systems: The selection path affects Vulkan graphics and mesh programs across drivers and operating systems. The comments report RADV and AMD runs and an audit of NVIDIA farm results, but do not establish coverage of all affected Tier 1 systems; the Windows NVIDIA farm result also reported a frame-time outlier.

Switches: RX_VK_PROG_FAST is added, default 1, with per-recording HOS_AB sampling. Its default still needs the base comparison and remaining Tier 1 runs requested in the ledger.

Reviewed: 30ef7ca5cc against 55773e3613: Read the repository rules, PR template, changed signature helper and replay diff, and the supplied range-diff and test changes. The remaining changed renderer and test files were not read in full; recorded runs were reviewed from the supplied description and comments.; nothing run (a code review).

Checked and fine:

  • The replay binding and queue-switch paths call the same signature helper exercised by the revised test.
  • The test includes deliberately broken signature-update, program-copy and queue-switch variants.

Testing: No commands from the project were run. The author reports Windows in-game testing and game-free checks; the current head's CI checks are still running.

Overlaps and merge order: The Deck tester reports conflicts with #2946 and #2952; #2946 also overlaps the mesh program cache path. Reconcile the paths and retest in the eventual merge order.


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 signature test now exercises the production helper, but the complete change still lacks a base-versus-HEAD measurement and the remaining affected Tier 1 hardware runs. CI is also still running. Recommend approval; not approved on the forge. The change expands the Vulkan program cache and avoids repeated handle validation, aiming to reduce CPU time spent selecting shader programs. The extracted signature helper makes that replay behavior directly testable at the cost of another sidecar abstraction. **Nits (1)**: optional. - **L4**: The checklist says the full test suite passes and both host platforms build, while Testing says the full suite and Linux compile are still to test. *When:* A maintainer reading only the checked boxes would believe those required checks already passed. **Do:** Correct the checklist and record the actual results once the suite and Linux compile have completed. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `gpu/vk/vk_shader.cpp:2400`: Measure the complete change against the base at settings players use. The switch-off side still runs changed code, including cached-answer population and the rewritten texture lookup, so it is not main. *When:* The reported 1.79% gain compares two modes of aece3ffa at reduced resolution; it cannot show the net effect of the entire PR against 55773e361 at the normal preset and native resolution. **Do:** Run interleaved warmed comparisons of the base and head in the target and a heavy scene at the device's normal resolution and preset; report frame times, average FPS and 1% lows. - **L2** `gpu/vk/vk_shader.cpp:2401`: Exercise the changed selection path on the other affected Tier 1 systems before choosing the default for them. *When:* RADV and Steam Deck normally use the compute mesh fallback, while the reported run covers Windows NVIDIA; the new mesh cache and answer validation now run on both paths. **Do:** Run gameplay and comparable base/head timing on Linux RADV, including Steam Deck, and the remaining affected Tier 1 Windows/Linux configurations; check mesh output and frame pacing. `@fix` can do L4. **Since the last review** (on aece3ffa1da4) Resolved: L3 (The signature test exercises a handwritten copy of the replay update instead of the change…) Still open: L1 (Measure the complete change against the base at settings players use. The switch-off side…); L2 (Exercise the changed selection path on the other affected Tier 1 systems before choosing t…); L4 (The checklist says the full test suite passes and both host platforms build, while Testing…) **Checks:** Still running: 10 checks. <details> <summary>Also noticed (3; not asked for, not blocking)</summary> - The Deck measurement combines this change with #2958, so it does not isolate either change's net effect. - The supplied farm audit reports a Windows NVIDIA frame-time outlier and a Linux NVIDIA screenshot difference without establishing their cause. - The maintainer requested a Beanstalk run, but no farm action was available within the read-only, network-closed review constraints. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven for the complete change against main. On Windows RTX 4060, the reported in-run switch comparison showed +1.79% FPS and -22.67% programs_ms, but both sides include other changes from this PR. A Steam Deck run with this PR and #2958 together showed programs_ms down 24.2–25.6%, but does not isolate this PR against its base. **Other systems:** The selection path affects Vulkan graphics and mesh programs across drivers and operating systems. The comments report RADV and AMD runs and an audit of NVIDIA farm results, but do not establish coverage of all affected Tier 1 systems; the Windows NVIDIA farm result also reported a frame-time outlier. **Switches:** RX_VK_PROG_FAST is added, default 1, with per-recording HOS_AB sampling. Its default still needs the base comparison and remaining Tier 1 runs requested in the ledger. **Reviewed:** 30ef7ca5ccfb against 55773e36136a: Read the repository rules, PR template, changed signature helper and replay diff, and the supplied range-diff and test changes. The remaining changed renderer and test files were not read in full; recorded runs were reviewed from the supplied description and comments.; nothing run (a code review). **Checked and fine:** - The replay binding and queue-switch paths call the same signature helper exercised by the revised test. - The test includes deliberately broken signature-update, program-copy and queue-switch variants. **Testing:** No commands from the project were run. The author reports Windows in-game testing and game-free checks; the current head's CI checks are still running. **Overlaps and merge order:** The Deck tester reports conflicts with #2946 and #2952; #2946 also overlaps the mesh program cache path. Reconcile the paths and retest in the eventual merge order. </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 on PR head 30ef7ca5ccfb, using RX_VK_PROG_FAST=0 and RX_VK_PROG_FAST=1 on the same build.

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

Metric A (0) B (1)
Average FPS, each capture 54.76 / 55.58 / 56.14 55.34 / 55.32 / 52.72
Average FPS, median 55.58 55.32
1% low FPS (1000 ÷ p99), median 20.76 24.68
Median frame time 17.36 ms 18.01 ms
p99 frame time, median 48.17 ms 40.52 ms
Frames of 50 ms or more, each capture 20 / 15 / 6 0 / 14 / 18

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

After warm-up, the harness still flagged pipeline or shader activity in 45 / 40 / 31 frames on side A and 2 / 34 / 62 on side B across the three captures. The FPS and tail numbers include those frames.

AMD Lab Market A/B on PR head `30ef7ca5ccfb`, using `RX_VK_PROG_FAST=0` and `RX_VK_PROG_FAST=1` on the same build. **Within the run-to-run spread.** Median average FPS changed by **-0.46%**. | Metric | A (`0`) | B (`1`) | |---|---:|---:| | Average FPS, each capture | 54.76 / 55.58 / 56.14 | 55.34 / 55.32 / 52.72 | | Average FPS, median | 55.58 | 55.32 | | 1% low FPS (1000 ÷ p99), median | 20.76 | 24.68 | | Median frame time | 17.36 ms | 18.01 ms | | p99 frame time, median | 48.17 ms | 40.52 ms | | Frames of 50 ms or more, each capture | 20 / 15 / 6 | 0 / 14 / 18 | Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output and 50% (640x360) render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 40 seconds per capture after warm-up. After warm-up, the harness still flagged pipeline or shader activity in 45 / 40 / 31 frames on side A and 2 / 34 / 62 on side B across the three captures. The FPS and tail numbers include those frames.
siantm force-pushed perf/vk-prog-fast-answers from 30ef7ca5cc
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/windows+nvidia 2/1 pass
beanstalk/linux+nvidia 2/1 pass
beanstalk/windows+amd 2/1 pass
beanstalk/linux+radv 2/1 pass
beanstalk/intel 1/1 pass
beanstalk/steamdeck 2/1 pass
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to dc4bbc2eaf
Some checks failed
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 7s
2026-12-03 19:34:24 +00:00
Compare
Member

Beanstalk test farm

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

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

The rebase

  • Main replaced the HDR tone-mapper check at the top of program_for with the mods' CURVE-hook check (curves_hash). It now drops all 8 prog_fast ways together with the picks.
  • tests/test_scene_tonemap_pass.py is gone on main, so this PR no longer edits it.

Checks that read the changed code

  • test_vk_prog_fast stubs program_hooks_now() and adds a case: a curves_hash change must drop a kept pick.
  • test_curve_pass checks that the CURVE-hook change clears every way (for (auto& f : prog_fast) f.on = false;) instead of the two slots it named before.
  • test_same_bind: NOP_BIND_PROGRAM now binds through prog_sigs.bind_program. The check now finds that call and checks, in prog_fast.h, that the memcmp comes before bind_gen++, which is the order it checked before.
  • switches.def: the RX_VK_PROG_FAST row moved after RX_VK_PROGRAM_CACHE_ZSTD, the order test_switch_table wants.
  • The fixtures of test_draw_stream_visibility, test_fsr_uniform_ownership and test_recording_admission copy draw_begin_recording(). They now stub prog_fast_begin_recording().

Results on Windows, through dev.py queue:

  • The changed renderer units (vk_draw.cpp, vk_replay.cpp, vk_shader.cpp, vk_progcache.cpp) pass clang++ -fsyntax-only with the build's flags.
  • tests/run_all.py --changed origin/main on main 1c91b18f: 354 passed, 2 failed, 17 skipped.
  • test_prepare_stall failed in that run (its watchdog case stopped after 4 s instead of 12 s, with 4 checks at once) and passed when run alone.
  • test_switch_table fails here, and the same way on main 1c91b18f and a98cf28a: LONGSHOT_SANDBOX_PROGRAMDATA (host/sandbox_win_plan.h:41) has no row in gpu/vk/switches.def.
  • After the last rebase onto a98cf28a, which changed none of this PR's files, test_intel_quick_compute (the one check main changed among those that read this PR's files) passes.

BeanBot L4: fixed in the description. "mise run test passes" and "builds on Linux" are unticked, and Testing lists what ran.

Results from others

  • Beanstalk passed on every target. In one Steam Deck report, Market's p99 went 44.86 → 48.16 ms and its maximum frame time 101 → 891 ms; the screenshot difference was 0.26 (limit 0.3). That's a single report, so it stays open: a farm re-run would show whether the spike repeats. The Windows Intel PC's PR side failed to start, with an error from scripts/dev.py, so that report says nothing about the change.
  • AMD Lab (RX 580, RADV), =0 against =1: −0.46 % median FPS, within the run-to-run spread; p99 48.17 → 40.52 ms. Thanks.

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

  • L1: the whole change against its base at a player's settings and native resolution.
  • L2: the other Tier 1 systems on their compute mesh fallback path (RADV and Steam Deck), with timing. omgitsgela's Deck runs combine this PR with #2958, so they don't isolate it.
Rebased onto main @ `a98cf28a` (the branch was `mergeable=False`) and pushed `dc4bbc2e`. **The rebase** - Main replaced the HDR tone-mapper check at the top of `program_for` with the mods' CURVE-hook check (`curves_hash`). It now drops all 8 `prog_fast` ways together with the picks. - `tests/test_scene_tonemap_pass.py` is gone on main, so this PR no longer edits it. **Checks that read the changed code** - `test_vk_prog_fast` stubs `program_hooks_now()` and adds a case: a `curves_hash` change must drop a kept pick. - `test_curve_pass` checks that the CURVE-hook change clears every way (`for (auto& f : prog_fast) f.on = false;`) instead of the two slots it named before. - `test_same_bind`: `NOP_BIND_PROGRAM` now binds through `prog_sigs.bind_program`. The check now finds that call and checks, in `prog_fast.h`, that the `memcmp` comes before `bind_gen++`, which is the order it checked before. - `switches.def`: the `RX_VK_PROG_FAST` row moved after `RX_VK_PROGRAM_CACHE_ZSTD`, the order `test_switch_table` wants. - The fixtures of `test_draw_stream_visibility`, `test_fsr_uniform_ownership` and `test_recording_admission` copy `draw_begin_recording()`. They now stub `prog_fast_begin_recording()`. Results on Windows, through `dev.py queue`: - The changed renderer units (`vk_draw.cpp`, `vk_replay.cpp`, `vk_shader.cpp`, `vk_progcache.cpp`) pass `clang++ -fsyntax-only` with the build's flags. - `tests/run_all.py --changed origin/main` on main `1c91b18f`: 354 passed, 2 failed, 17 skipped. - `test_prepare_stall` failed in that run (its watchdog case stopped after 4 s instead of 12 s, with 4 checks at once) and passed when run alone. - `test_switch_table` fails here, and the same way on main `1c91b18f` and `a98cf28a`: `LONGSHOT_SANDBOX_PROGRAMDATA` (`host/sandbox_win_plan.h:41`) has no row in `gpu/vk/switches.def`. - After the last rebase onto `a98cf28a`, which changed none of this PR's files, `test_intel_quick_compute` (the one check main changed among those that read this PR's files) passes. **BeanBot L4:** fixed in the description. "`mise run test` passes" and "builds on Linux" are unticked, and Testing lists what ran. **Results from others** - Beanstalk passed on every target. In one Steam Deck report, Market's p99 went 44.86 → 48.16 ms and its maximum frame time 101 → 891 ms; the screenshot difference was 0.26 (limit 0.3). That's a single report, so it stays open: a farm re-run would show whether the spike repeats. The Windows Intel PC's PR side failed to start, with an error from `scripts/dev.py`, so that report says nothing about the change. - AMD Lab (RX 580, RADV), `=0` against `=1`: −0.46 % median FPS, within the run-to-run spread; p99 48.17 → 40.52 ms. Thanks. **Still open** (I can't run these here: one Windows RTX 4060, shared GPU queue) - L1: the whole change against its base at a player's settings and native resolution. - L2: the other Tier 1 systems on their compute mesh fallback path (RADV and Steam Deck), with timing. omgitsgela's Deck runs combine this PR with #2958, so they don't isolate it.
dyst left a comment

Verdict: Comment. The code reads right: fast_still_valid gives still_valid's answer in every case I checked. But on my PC the part of this PR that saves time is the recheck, which my #3303 replaces too. The 8 ways and the uniform rule, ported over #3303, saved nothing measurable. The two rechecks can't both land, so one should be chosen before either merges.

(I wrote #3303, so weigh what follows with that in mind.)

For a player, this makes choosing each draw's shader variant cheaper on the render thread: about a quarter of programs_ms, 0.3 ms a frame at Market, a percent or two of fps where the render thread is the limit. It has three pieces:

  • the recheck (fast_still_valid over fast_answers);
  • 8 most-recent ways in place of 2;
  • a c2-only pick kept past a uniform buffer update.

Your A/B flips all three together, so it can't say which one carries the gain.

Reviewed: dc4bbc2e against its merge base with main, a98cf28a.

  • Read in full, in gpu/vk/vk_shader.cpp: still_valid, fast_still_valid, fast_c2_word, c2_decode_slot, populate_fast_answers, answer_stage_mask, and program_for's fast path and keep.
  • Read where those depend on it: driver_bank_word (vk_bank.cpp), descriptor_handle, canonical_answer.
  • Read in tests/test_vk_prog_fast.py: test_still_valid_parity and the source cuts. The rest of that file was only skimmed.
  • Not read: prog_fast.h (the stage-signature cache), the wiring in vk_replay.cpp, vk_draw.cpp and vk_progcache.cpp, and the other tests' edits.
  • Nothing of this branch was built or run.
  • What I measured instead: a port of the 8 ways, the uniform rule and the cached mask onto #3303 (main de091ae29 plus #3303 at a4d4e380a). It keeps #3303's recheck and leaves out this PR's recheck, the mesh routing and the stage-signature cache.

Fixed in this review: nothing.

Checked and fine:

  • c2_decode_slot agrees with bank 2 in driver_bank_word:
    • the four ranges (0x20, 0x120, 0x168, 0x568) and the alignment check;
    • 0 for any other offset;
    • the 0xA00 bound holds, since the last range ends at 0x968;
    • fast_c2_word's truncation is lo().
  • The shift and the second word match descriptor_handle. A c2_only answer needs nvn_stage < kNvnStages, as driver_bank_word does.
  • canon_uint_image, type_fixed (with the Rect and Buffer exceptions) and strip_int follow canonical_answer, including the strict mode under RX_VK_CAPTURE=0.
  • fast_still_valid checks each answer's type at every recheck instead of trusting an equal handle. So it is at least as strict as the compare with pk.handles: a slot registered again with another type is caught.
  • populate_fast_answers runs before ready is published, on the translation path and on both cache-read paths.
  • The curve-hook change drops all 8 ways.

Suggestions

  1. Show that the ways and the uniform rule pay on their own, or drop them. On my PC they didn't.

    Setup: Ryzen 9 3900X, RTX 3080, Windows 11; Market (child), 3440x1440 output at 67 % render, uncapped, threaded rendering on. The port above, with RX_VK_PROG_FAST flipped every 3 s within each run (HOS_AB; =0 is #3303 alone). 2 runs of 60 s.

    ways and rule on RX_VK_PROG_FAST=0 (#3303 alone)
    fps 63.7 63.9 (95 % interval of the difference −3.06 % to +2.38 %)
    programs_ms, run 1 / run 2 0.994 / 1.103 1.000 / 0.934

    The pick counters explain it. Of 13.0 M picks (both sides), 9.8 M kept their last program. Only 455,888 of those came from ways 3 to 8, and only 42,083 were kept past a uniform update. Both counters grow only while the switch is on, so that is about 7 % and 0.6 % of that half. Each of those hits saves a picks lookup and a recheck that #3303 already makes cheap, while a miss now walks up to 8 ways.

    The two PRs' own A/Bs measured savings of the same size, on different PCs:

    • this PR: −22.67 % (−0.289 ms);
    • #3303 (its switch flipped within each run on this PC): −20 % (−0.357 ms).

    That fits the recheck carrying this PR's gain too.

  2. Choose one recheck. This PR (fast_still_valid) and #3303 (pick_recheck) both replace answer_handles + the compare + still_valid. #3303 reads each handle once, reads a plain bank 2 word in place, and applies still_valid's own rule when a handle differs. Whichever PR lands second has to drop its own recheck.

    They differ in upkeep:

    • This PR keeps a second copy of bank 2's map (c2_decode_slot) and of still_valid's type rule (fast_still_valid).
    • #3303 makes driver_bank_word read through one map (driver_bank2_slot) and calls still_valid's rule itself. Its =check mode compared both ways on over 7 M rechecks in play, with 0 differences.

    I haven't timed the two rechecks against each other. Doing that over the same main would settle which to keep.

  3. If c2_decode_slot stays, test it at every bank 2 offset. test_still_valid_parity reads a few fixed offsets (0x20, 0x38, 0x48, 0x120, 0x130, 0x170, 0x2a8, 0x5a0, 0x5c8), none at a range's end. If a boundary in driver_bank_word moved (0x168, 0x568, 0x968), the test would still pass. Better still, read through one map: #3303's driver_bank2_slot, if that lands first.

Questions

  • Was the windows+nvidia farm result on aece3ff (+13 % median frame time at Market) ever explained? The later run on 30ef7ca passed, so it may have been that PC. The Deck report from the later run (maximum frame time 101 → 891 ms) is still open in your own list.

Testing: So far:

  • your in-run A/B on an RTX 4060 (+1.79 % fps, −22.67 % programs_ms);
  • omgitsgela's Deck runs (−24 % programs_ms, measured together with #2958);
  • HumanBean's RX 580 A/B (−0.46 % fps, within the spread);
  • two farm runs.

Still owed:

  • the whole change against its base at a player's settings (L1 in BeanBot's review);
  • CI, which hasn't run on dc4bbc2e;
  • a rebase onto main;
  • pr status lists 4 to fix in the description: two Still-to-test lines don't say who runs them, and two boxes are unticked.

Overlaps and merge order:

  • #3303: the same recheck. Choose one; the other rebases without its own.
  • #795 (mine, WIP and unmoved since 2026-11-15): keeps the fast path across texture registrations. It would rebase over whichever lands.
  • #2946 and #2952 conflict with this PR, as omgitsgela noted.
**Verdict: Comment.** The code reads right: `fast_still_valid` gives `still_valid`'s answer in every case I checked. But on my PC the part of this PR that saves time is the recheck, which my https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3303 replaces too. The 8 ways and the uniform rule, ported over #3303, saved nothing measurable. The two rechecks can't both land, so one should be chosen before either merges. (I wrote #3303, so weigh what follows with that in mind.) For a player, this makes choosing each draw's shader variant cheaper on the render thread: about a quarter of `programs_ms`, 0.3 ms a frame at Market, a percent or two of fps where the render thread is the limit. It has three pieces: - the recheck (`fast_still_valid` over `fast_answers`); - 8 most-recent ways in place of 2; - a c2-only pick kept past a uniform buffer update. Your A/B flips all three together, so it can't say which one carries the gain. **Reviewed:** dc4bbc2e against its merge base with main, a98cf28a. - Read in full, in `gpu/vk/vk_shader.cpp`: `still_valid`, `fast_still_valid`, `fast_c2_word`, `c2_decode_slot`, `populate_fast_answers`, `answer_stage_mask`, and `program_for`'s fast path and `keep`. - Read where those depend on it: `driver_bank_word` (`vk_bank.cpp`), `descriptor_handle`, `canonical_answer`. - Read in `tests/test_vk_prog_fast.py`: `test_still_valid_parity` and the source cuts. The rest of that file was only skimmed. - Not read: `prog_fast.h` (the stage-signature cache), the wiring in `vk_replay.cpp`, `vk_draw.cpp` and `vk_progcache.cpp`, and the other tests' edits. - Nothing of this branch was built or run. - What I measured instead: a port of the 8 ways, the uniform rule and the cached mask onto #3303 (main de091ae29 plus #3303 at a4d4e380a). It keeps #3303's recheck and leaves out this PR's recheck, the mesh routing and the stage-signature cache. **Fixed in this review:** nothing. **Checked and fine:** - `c2_decode_slot` agrees with bank 2 in `driver_bank_word`: - the four ranges (0x20, 0x120, 0x168, 0x568) and the alignment check; - 0 for any other offset; - the 0xA00 bound holds, since the last range ends at 0x968; - `fast_c2_word`'s truncation is `lo()`. - The shift and the second word match `descriptor_handle`. A `c2_only` answer needs `nvn_stage < kNvnStages`, as `driver_bank_word` does. - `canon_uint_image`, `type_fixed` (with the Rect and Buffer exceptions) and `strip_int` follow `canonical_answer`, including the strict mode under `RX_VK_CAPTURE=0`. - `fast_still_valid` checks each answer's type at every recheck instead of trusting an equal handle. So it is at least as strict as the compare with `pk.handles`: a slot registered again with another type is caught. - `populate_fast_answers` runs before `ready` is published, on the translation path and on both cache-read paths. - The curve-hook change drops all 8 ways. **Suggestions** 1. **Show that the ways and the uniform rule pay on their own, or drop them.** On my PC they didn't. Setup: Ryzen 9 3900X, RTX 3080, Windows 11; Market (child), 3440x1440 output at 67 % render, uncapped, threaded rendering on. The port above, with `RX_VK_PROG_FAST` flipped every 3 s within each run (`HOS_AB`; `=0` is #3303 alone). 2 runs of 60 s. | | ways and rule on | `RX_VK_PROG_FAST=0` (#3303 alone) | |---|---|---| | fps | 63.7 | 63.9 (95 % interval of the difference −3.06 % to +2.38 %) | | `programs_ms`, run 1 / run 2 | 0.994 / 1.103 | 1.000 / 0.934 | The pick counters explain it. Of 13.0 M picks (both sides), 9.8 M kept their last program. Only 455,888 of those came from ways 3 to 8, and only 42,083 were kept past a uniform update. Both counters grow only while the switch is on, so that is about 7 % and 0.6 % of that half. Each of those hits saves a `picks` lookup and a recheck that #3303 already makes cheap, while a miss now walks up to 8 ways. The two PRs' own A/Bs measured savings of the same size, on different PCs: - this PR: −22.67 % (−0.289 ms); - #3303 (its switch flipped within each run on this PC): −20 % (−0.357 ms). That fits the recheck carrying this PR's gain too. 2. **Choose one recheck.** This PR (`fast_still_valid`) and #3303 (`pick_recheck`) both replace `answer_handles` + the compare + `still_valid`. #3303 reads each handle once, reads a plain bank 2 word in place, and applies `still_valid`'s own rule when a handle differs. Whichever PR lands second has to drop its own recheck. They differ in upkeep: - This PR keeps a second copy of bank 2's map (`c2_decode_slot`) and of `still_valid`'s type rule (`fast_still_valid`). - #3303 makes `driver_bank_word` read through one map (`driver_bank2_slot`) and calls `still_valid`'s rule itself. Its `=check` mode compared both ways on over 7 M rechecks in play, with 0 differences. I haven't timed the two rechecks against each other. Doing that over the same main would settle which to keep. 3. **If `c2_decode_slot` stays, test it at every bank 2 offset.** `test_still_valid_parity` reads a few fixed offsets (0x20, 0x38, 0x48, 0x120, 0x130, 0x170, 0x2a8, 0x5a0, 0x5c8), none at a range's end. If a boundary in `driver_bank_word` moved (0x168, 0x568, 0x968), the test would still pass. Better still, read through one map: #3303's `driver_bank2_slot`, if that lands first. **Questions** - Was the windows+nvidia farm result on aece3ff (+13 % median frame time at Market) ever explained? The later run on 30ef7ca passed, so it may have been that PC. The Deck report from the later run (maximum frame time 101 → 891 ms) is still open in your own list. **Testing:** So far: - your in-run A/B on an RTX 4060 (+1.79 % fps, −22.67 % `programs_ms`); - omgitsgela's Deck runs (−24 % `programs_ms`, measured together with https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2958); - HumanBean's RX 580 A/B (−0.46 % fps, within the spread); - two farm runs. Still owed: - the whole change against its base at a player's settings (L1 in BeanBot's review); - CI, which hasn't run on dc4bbc2e; - a rebase onto main; - `pr status` lists 4 to fix in the description: two Still-to-test lines don't say who runs them, and two boxes are unticked. **Overlaps and merge order:** - https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3303: the same recheck. Choose one; the other rebases without its own. - https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/795 (mine, WIP and unmoved since 2026-11-15): keeps the fast path across texture registrations. It would rebase over whichever lands. - https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2946 and https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2952 conflict with this PR, as omgitsgela noted.
@ -1214,0 +1286,4 @@
return mask;
}
namespace {
void c2_decode_slot(uint32_t offset, uint8_t& src, uint8_t& slot) {
Member

A second copy of bank 2's map in driver_bank_word (vk_bank.cpp). It agrees today (checked), but the parity test reads only a few fixed offsets, none at a range's end: suggestion 3.

A second copy of bank 2's map in driver_bank_word (vk_bank.cpp). It agrees today (checked), but the parity test reads only a few fixed offsets, none at a range's end: suggestion 3.
@ -2385,26 +2524,55 @@ const Program* program_for(const NvnState& s, ProgramKind kind, const uint8_t co
if ((f.amask >> k & 1) && f.tex_gen[k] != s.tex_gen[k]) by_tex = false;
if (by_tex) fbind = bind;
}
const uint64_t fub = (fast && f.amask != ~0u) ? ub : f.ub;
Member

In my port of the ways and this rule over #3303 (switch flipped in-run, Market, 3900X/3080): 42,083 picks kept past a uniform update and 455,888 from ways 3 to 8, out of about 6.5 M with the switch on; fps and programs_ms the same either way. Suggestion 1.

In my port of the ways and this rule over #3303 (switch flipped in-run, Market, 3900X/3080): 42,083 picks kept past a uniform update and 455,888 from ways 3 to 8, out of about 6.5 M with the switch on; fps and programs_ms the same either way. Suggestion 1.
Some checks failed
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Failing after 7s
This pull request has changes conflicting with the target branch.
  • gpu/vk/vk_draw.cpp
  • tests/draw_stream_visibility_test.cpp
  • tests/fsr_uniform_ownership_test.cpp
  • tests/loaded_modules_drop_test.cpp
  • tests/recording_admission_test.cpp
Some workflows are waiting to be reviewed.
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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