WIP: perf(vk): a whole push's words made in one pass, into vectors sized once #3304

Draft
dyst wants to merge 1 commit from dyst/Longshot:perf/vk-push-words-once into main
Member

Summary

The lean descriptor path (bind_descriptors_lean, RX_VK_DRAW_OVERHEAD_LEAN, on by default) remembers what it pushed as
words, so that the next draws of a program push only the writes that changed. A program change pushes every write, and
the render thread made that push's words with words_append: a push_back for each word and one for each write's offset,
each with its capacity check, ~2.7 % of the render thread's replay of a Market frame.

words_build (gpu/vk/draw_key.h) counts the words first (words_of: words_append's own rule, which
words_same_store now takes too, so the three cannot disagree), sizes the two vectors once and writes through a pointer:
the same words and offsets. RX_VK_DRAW_OVERHEAD_LEAN=check (2) makes words_append's too, compares them (a new
words_build entry beside its other checks) and keeps those on a difference. bind_descriptors (=0, and compute
dispatches) is unchanged.

On the render thread's replay of one Market frame (2,226 draws, 8.74 ms) it takes 0.201 ms off (95 % interval
0.139-0.280 ms, about 2.3 %). In play at Market, against main: the render thread's command phase, where the push
runs, is 0.15 ms a frame less (both of this change's runs below both of main's); fps +1.1 %, from two runs a side of two
builds, too few for an interval (Measurements).

Overlaps siantm's #2946 (RX_VK_MESH_FAST), whose descriptor part
resizes once inside words_append and words_same_store, as part of a larger change. This one is that step alone, for
the lean path's full push, held to words_append by its check mode and a test; whichever lands second rebases over the
other.

Read first: gpu/vk/draw_key.h (words_of, words_build, words_same_store), gpu/vk/vk_draw.cpp
(bind_descriptors_lean's full push).

Testing

Tested: Windows 11 (22631), Ryzen 9 3900X, RTX 3080 (NVIDIA 621.47). This change over main de091ae29, packed over the
3b3ea2cb3 base, with RX_VK_DRAW_OVERHEAD_LEAN=check: Continue, then a teleport to Market, Hyrule Field and Kakariko,
45 s of play in each, threaded rendering on: 165.8 million, 60.5 million and 98.6 million lean checks, words_build's among
them, 0 mismatches. The A/B in Measurements ran 2 more runs of play with this change (and 2 of main).

  • tests/test_push_state.py: draw_key.h's own functions: words_build gives words_append's words and offsets over
    every kind of write, those the draws make today and those they don't (several images or texel views, a write with no
    descriptor pointer, one with two), into vectors that held a longer push, a shorter one and none; words_of and
    words_same_store agree with them on each.
  • tests/test_vk_draw_overhead_lean.py: the lean path's full push and its =check (the comparison, the note, the
    fallback) held to their text.
  • Twelve broken versions of the change (each descriptor kind's index and bound, words_of's rule and order, the offsets,
    the =check lines) each make one of the two fail (checked).
  • A second agent reviewed the change cold; its points (the writes the tests did not cover, the =check lines not held)
    are in.
  • tests/run_all.py --strict (Windows, llvm-mingw) on this head, 3155cef9d: 884 passed, 17 failed, 55 skipped. 15 of
    them fail on main 0b284cc76 run the same way on this PC (884 passed, 17 failed there: these 15, and
    test_run_all_output and test_seed_reader, which pass here). Ten lack a tool this PC doesn't have under --strict
    (glslang, spirv-val, llvm-mc, zstandard: test_fixed_share_upscale_shader, test_framegen_hdr,
    test_fsr3fi_hud_layer, test_fsr3fi_hudless_colour, test_fsr4_tune, test_gfx_effects, test_lifter,
    test_native_zstd, test_rt_refl_lamps, test_temporal_present_bandwidth); five fail on main here for reasons of
    their own (test_dev_update, test_float_add_subgroup, test_helpers_extract, test_longshot_ctl,
    test_rt_light_grid). The other two pass on their own, three runs out of three: test_ci_source_times (its
    temporary folder still locked at its cleanup, WinError 32) and test_sync_watch_event (its gpu_wait case's timing
    with 24 checks at once; it reads only vk_replay.cpp, which this doesn't touch). This change's run before its rebase
    (over 0b284cc76) failed only the 15: 886 passed.

Still to test:

  • Linux (Steam Deck): play Market a minute with RX_VK_DRAW_OVERHEAD_LEAN=check, expecting vk: draw_overhead_lean check: N checks, ... 0 mismatches lines and no difference in the picture (@Beanstalk play Market for a minute on the
    Steam Deck with RX_VK_DRAW_OVERHEAD_LEAN=check and report the "draw_overhead_lean check" lines)

Measurements

Setup: Windows 11 (22631), Ryzen 9 3900X, RTX 3080 (NVIDIA 621.47); Market, child (crowded): Continue, then a
teleport; window 1720x720, output 3440x1440, render resolution 67 %, quality Custom, frame generation off, V-Sync off,
uncapped (HOS_FPS_MAX=1000), threaded rendering on; the frame trace (RX_VK_FRAME_TRACE=1), 40 s in each run after a
warm-up until no frame waits for a pipeline. dev.py ab --scene market --runs 2 --a-runtime <main's> --runtime <this change's> --separate, four runs interleaved (main, this, main, this), each a timing job of the PC's queue.

Baseline: two builds packed over the same base (3b3ea2cb3): main de091ae29, and this change over it (7e4f8f7d8, with a
test-only commit since dropped, as main's #3294 made the same fix). RX_VK_DRAW_OVERHEAD_LEAN=0 turns the whole lean
path off, so it can't stand for main; hence two builds in separate runs. The head is the same renderer code rebased onto
a2b7abf9e; the six commits between touch no file under gpu/.

The render thread's phases are the frame trace's columns, the mean a frame over each run's frames; fps and frame times
are dev.py ab's per run (its write-up refuses two builds of different versions), the mean of the two.

Before: main @ de091ae29 After: this PR @ 7e4f8f7d8 Δ
cmds_ms (commands: the push) 2.964 ms (2.938, 2.989) 2.816 ms (2.839, 2.794) −0.147 ms (−5 %)
draw_ms (the draw translation, all of it) 8.685 ms (8.554, 8.817) 8.632 ms (8.646, 8.619) −0.053 ms
desc_ms (descriptors) 2.921 ms 2.961 ms +0.040 ms
programs_ms (program_for) 1.581 ms 1.601 ms +0.020 ms
fps 59.25 (58.9, 59.6) 59.9 (59.9, 59.9) +1.1 %
median frame time 16.55 ms (16.68, 16.42) 16.37 ms (16.44, 16.30) −0.18 ms
p99 frame time 24.42 ms (24.19, 24.64) 23.98 ms (23.45, 24.50) −0.44 ms
1 % low 40.95 fps (41.3, 40.6) 41.7 fps (42.6, 40.8) +0.75 fps

Verdict: the phase the push is timed in is 0.15 ms a frame less, both of this change's runs below both of main's;
the whole draw translation's −0.05 ms is inside its run-to-run spread (main's two runs differ by 0.26 ms). fps is up
1.1 %, both of this change's runs above both of main's, but that is more than the render thread's saving explains (the
present waits for the render thread under 0.01 ms a frame, wait_render_ms): with two builds in separate runs, two a
side, read it as no loss, not as a measured gain.

Risks

  • A push whose words differ from words_append's would make the next draws push too little or too much; the test holds
    the two to each other over every write kind, and =check found no mismatch in play. RX_VK_DRAW_OVERHEAD_LEAN=0 turns
    the whole lean path off (bind_descriptors, as before it); a revert is enough.
  • Nothing changes in saves, settings.toml or the caches.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A check under tests/ that reads changed source is updated, not weakened: tests/test_push_state.py and
    tests/test_vk_draw_overhead_lean.py take words_of / words_build and the new =check entry.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: built and run. Linux: CI's build)
  • 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.

🤖 Generated with Claude Code

## Summary The lean descriptor path (`bind_descriptors_lean`, `RX_VK_DRAW_OVERHEAD_LEAN`, on by default) remembers what it pushed as words, so that the next draws of a program push only the writes that changed. A program change pushes every write, and the render thread made that push's words with `words_append`: a `push_back` for each word and one for each write's offset, each with its capacity check, ~2.7 % of the render thread's replay of a Market frame. `words_build` (`gpu/vk/draw_key.h`) counts the words first (`words_of`: `words_append`'s own rule, which `words_same_store` now takes too, so the three cannot disagree), sizes the two vectors once and writes through a pointer: the same words and offsets. `RX_VK_DRAW_OVERHEAD_LEAN=check` (2) makes `words_append`'s too, compares them (a new `words_build` entry beside its other checks) and keeps those on a difference. `bind_descriptors` (`=0`, and compute dispatches) is unchanged. On the render thread's replay of one Market frame (2,226 draws, 8.74 ms) it takes 0.201 ms off (95 % interval 0.139-0.280 ms, about 2.3 %). In play at Market, against main: the render thread's command phase, where the push runs, is 0.15 ms a frame less (both of this change's runs below both of main's); fps +1.1 %, from two runs a side of two builds, too few for an interval (Measurements). Overlaps siantm's https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/2946 (`RX_VK_MESH_FAST`), whose descriptor part resizes once inside `words_append` and `words_same_store`, as part of a larger change. This one is that step alone, for the lean path's full push, held to `words_append` by its check mode and a test; whichever lands second rebases over the other. Read first: `gpu/vk/draw_key.h` (`words_of`, `words_build`, `words_same_store`), `gpu/vk/vk_draw.cpp` (`bind_descriptors_lean`'s full push). ## Testing **Tested:** Windows 11 (22631), Ryzen 9 3900X, RTX 3080 (NVIDIA 621.47). This change over main de091ae29, packed over the 3b3ea2cb3 base, with `RX_VK_DRAW_OVERHEAD_LEAN=check`: Continue, then a teleport to Market, Hyrule Field and Kakariko, 45 s of play in each, threaded rendering on: 165.8 million, 60.5 million and 98.6 million lean checks, words_build's among them, **0 mismatches**. The A/B in Measurements ran 2 more runs of play with this change (and 2 of main). - `tests/test_push_state.py`: `draw_key.h`'s own functions: `words_build` gives `words_append`'s words and offsets over every kind of write, those the draws make today and those they don't (several images or texel views, a write with no descriptor pointer, one with two), into vectors that held a longer push, a shorter one and none; `words_of` and `words_same_store` agree with them on each. - `tests/test_vk_draw_overhead_lean.py`: the lean path's full push and its `=check` (the comparison, the note, the fallback) held to their text. - Twelve broken versions of the change (each descriptor kind's index and bound, `words_of`'s rule and order, the offsets, the `=check` lines) each make one of the two fail (checked). - A second agent reviewed the change cold; its points (the writes the tests did not cover, the `=check` lines not held) are in. - `tests/run_all.py --strict` (Windows, llvm-mingw) on this head, 3155cef9d: 884 passed, 17 failed, 55 skipped. 15 of them fail on main 0b284cc76 run the same way on this PC (884 passed, 17 failed there: these 15, and `test_run_all_output` and `test_seed_reader`, which pass here). Ten lack a tool this PC doesn't have under `--strict` (glslang, spirv-val, llvm-mc, zstandard: `test_fixed_share_upscale_shader`, `test_framegen_hdr`, `test_fsr3fi_hud_layer`, `test_fsr3fi_hudless_colour`, `test_fsr4_tune`, `test_gfx_effects`, `test_lifter`, `test_native_zstd`, `test_rt_refl_lamps`, `test_temporal_present_bandwidth`); five fail on main here for reasons of their own (`test_dev_update`, `test_float_add_subgroup`, `test_helpers_extract`, `test_longshot_ctl`, `test_rt_light_grid`). The other two pass on their own, three runs out of three: `test_ci_source_times` (its temporary folder still locked at its cleanup, WinError 32) and `test_sync_watch_event` (its `gpu_wait` case's timing with 24 checks at once; it reads only `vk_replay.cpp`, which this doesn't touch). This change's run before its rebase (over 0b284cc76) failed only the 15: 886 passed. **Still to test:** - Linux (Steam Deck): play Market a minute with `RX_VK_DRAW_OVERHEAD_LEAN=check`, expecting `vk: draw_overhead_lean check: N checks, ... 0 mismatches` lines and no difference in the picture (@Beanstalk play Market for a minute on the Steam Deck with RX_VK_DRAW_OVERHEAD_LEAN=check and report the "draw_overhead_lean check" lines) ## Measurements **Setup:** Windows 11 (22631), Ryzen 9 3900X, RTX 3080 (NVIDIA 621.47); Market, child (crowded): Continue, then a teleport; window 1720x720, output 3440x1440, render resolution 67 %, quality Custom, frame generation off, V-Sync off, uncapped (`HOS_FPS_MAX=1000`), threaded rendering on; the frame trace (`RX_VK_FRAME_TRACE=1`), 40 s in each run after a warm-up until no frame waits for a pipeline. `dev.py ab --scene market --runs 2 --a-runtime <main's> --runtime <this change's> --separate`, four runs interleaved (main, this, main, this), each a timing job of the PC's queue. **Baseline:** two builds packed over the same base (3b3ea2cb3): main de091ae29, and this change over it (7e4f8f7d8, with a test-only commit since dropped, as main's #3294 made the same fix). `RX_VK_DRAW_OVERHEAD_LEAN=0` turns the whole lean path off, so it can't stand for main; hence two builds in separate runs. The head is the same renderer code rebased onto a2b7abf9e; the six commits between touch no file under `gpu/`. The render thread's phases are the frame trace's columns, the mean a frame over each run's frames; fps and frame times are `dev.py ab`'s per run (its write-up refuses two builds of different versions), the mean of the two. | | Before: main @ de091ae29 | After: this PR @ 7e4f8f7d8 | Δ | |---|---|---|---| | `cmds_ms` (commands: the push) | 2.964 ms (2.938, 2.989) | 2.816 ms (2.839, 2.794) | **−0.147 ms (−5 %)** | | `draw_ms` (the draw translation, all of it) | 8.685 ms (8.554, 8.817) | 8.632 ms (8.646, 8.619) | −0.053 ms | | `desc_ms` (descriptors) | 2.921 ms | 2.961 ms | +0.040 ms | | `programs_ms` (`program_for`) | 1.581 ms | 1.601 ms | +0.020 ms | | fps | 59.25 (58.9, 59.6) | 59.9 (59.9, 59.9) | +1.1 % | | median frame time | 16.55 ms (16.68, 16.42) | 16.37 ms (16.44, 16.30) | −0.18 ms | | p99 frame time | 24.42 ms (24.19, 24.64) | 23.98 ms (23.45, 24.50) | −0.44 ms | | 1 % low | 40.95 fps (41.3, 40.6) | 41.7 fps (42.6, 40.8) | +0.75 fps | **Verdict:** the phase the push is timed in is 0.15 ms a frame less, both of this change's runs below both of main's; the whole draw translation's −0.05 ms is inside its run-to-run spread (main's two runs differ by 0.26 ms). fps is up 1.1 %, both of this change's runs above both of main's, but that is more than the render thread's saving explains (the present waits for the render thread under 0.01 ms a frame, `wait_render_ms`): with two builds in separate runs, two a side, read it as no loss, not as a measured gain. ## Risks - A push whose words differ from `words_append`'s would make the next draws push too little or too much; the test holds the two to each other over every write kind, and `=check` found no mismatch in play. `RX_VK_DRAW_OVERHEAD_LEAN=0` turns the whole lean path off (bind_descriptors, as before it); a revert is enough. - Nothing changes in saves, `settings.toml` or the caches. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A check under `tests/` that reads changed source is updated, not weakened: `tests/test_push_state.py` and `tests/test_vk_draw_overhead_lean.py` take `words_of` / `words_build` and the new `=check` entry. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. (Windows: built and run. Linux: CI's build) - [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. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
perf(vk): a whole push's words made in one pass, into vectors sized once
Some checks reported errors
PR description / Title and description (pull_request_target) Waiting to run
CI / What the change needs (pull_request) Waiting to run
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Waiting to run
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 approved by dyst (reviewed)
beanstalk/steamdeck 0/1 pass, 2 error
3155cef9d1
bind_descriptors_lean (RX_VK_DRAW_OVERHEAD_LEAN's path, on by default) remembers what it pushed as words, so that the next draws
of a program push only the writes that changed. A program change pushes every write, and its words were made with
words_append, a push_back a word and one an offset. words_build (draw_key.h) counts them first (words_of: words_append's own
rule, which words_same_store now takes too), sizes the two vectors once and writes through a pointer: the same words and
offsets. On the render thread's replay of a Market frame (2,226 draws, 8.74 ms) it took 0.201 ms off (95 % interval
0.139-0.280 ms), about 2.3 %.

=check (RX_VK_DRAW_OVERHEAD_LEAN=2) makes words_append's too and compares them, keeping those on a difference.
bind_descriptors (=0, and compute dispatches) is unchanged. tests/test_push_state.py holds words_build to words_append over
every kind of write, those the draws make today and those they don't (several images or texel views, no descriptor pointer,
two pointers); test_vk_draw_overhead_lean.py holds the lean path and its =check to their text.

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

Tested in game: Windows 11 (22631), Ryzen 9 3900X, RTX 3080 (NVIDIA 621.47), threaded rendering on. This change over main de091ae29 with RX_VK_DRAW_OVERHEAD_LEAN=check: Continue, then a teleport to Market, Hyrule Field and Kakariko, 45 s of play in each, each run played to its end: 165.8 million, 60.5 million and 98.6 million lean checks, words_build's among them, 0 mismatches. Then 4 runs of 40 s at Market against main, interleaved (Measurements): the phase the push runs in 0.15 ms a frame less on the render thread.

Tested in game: Windows 11 (22631), Ryzen 9 3900X, RTX 3080 (NVIDIA 621.47), threaded rendering on. This change over main de091ae29 with RX_VK_DRAW_OVERHEAD_LEAN=check: Continue, then a teleport to Market, Hyrule Field and Kakariko, 45 s of play in each, each run played to its end: 165.8 million, 60.5 million and 98.6 million lean checks, words_build's among them, 0 mismatches. Then 4 runs of 40 s at Market against main, interleaved (Measurements): the phase the push runs in 0.15 ms a frame less on the render thread.
Author
Member

@Beanstalk play Market for a minute on the Steam Deck with RX_VK_DRAW_OVERHEAD_LEAN=check and report the "draw_overhead_lean check" lines (expected: vk: draw_overhead_lean check: N checks, ... 0 mismatches), and whether the picture looks as on main.

@Beanstalk play Market for a minute on the Steam Deck with RX_VK_DRAW_OVERHEAD_LEAN=check and report the "draw_overhead_lean check" lines (expected: `vk: draw_overhead_lean check: N checks, ... 0 mismatches`), and whether the picture looks as on main.
Member

Beanstalk test farm · ⚠️ couldn't be judged on steamdeck

Commit 3155cef · approved by dyst (reviewed) · dashboard

⚠️ Note: The check count is reported from matching log lines; the plan also rejects any matching line with nonzero mismatches.
⚠️ Note: Check-mode overhead means these frame times do not establish the claimed default-path speed-up or isolate the render-thread command phase.

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

The change could not be judged on Steam Deck: both reports failed during baseline build or setup, before the game ran. One reported a main-base failure involving 11 shader cache files; the other reported an invalid URL in main's tools.lock, so there are no performance or picture-comparison results.

Done (started 02:57 UTC, last report 08:09 UTC). Comment @Beanstalk to run it again.

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

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

  • steamdeck, report 1: the main base failed (exit 1): 11 shader cache files from <data>/builder/bases/main-seed
  • steamdeck, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
What was tested

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

On Steam Deck, the PR and main will run Market in check mode for a 60-second measurement, with movement before the measurement and a stationary picture compared against main. The plan records the logged check counts and fails on a missing check line, nonzero mismatches, a crash, a substantial picture difference, or a frame-time regression over 15%. The runs are uncapped at 1280x720 to favor the CPU-side draw path.

  • Where: steamdeck (1-2 reports).
  • market-check: from the repository's save market-entrance (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_DRAW_OVERHEAD_LEAN=check), then teleport to Market, take the picture market to compare with main, move the stick, measure market-play for 60 s (after 10 s warm-up); 3 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, the game's log, numbers from the game's log.
  • The PR fails if: it crashes; or a picture differs from main by more than 20%; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or expected log lines missing is above 0.
  • Time: about 38 min of game runs per tester (6 game starts), plus the two builds.
Measurements on `steamdeck`, for the PR description

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

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM; 2: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
Scene: market-check, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_DRAW_OVERHEAD_LEAN=check); 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); market-check: 3 game starts a side, market-play 60 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

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

As Markdown for the PR description:

## Measurements

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

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`  
Scene: market-check, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_DRAW_OVERHEAD_LEAN=check); 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); market-check: 3 game starts a side, market-play 60 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

None: the plan varied no setting, switch or build option.
The testers' hardware
Target Report Ran on
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
steamdeck 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 12 GB RAM
<!-- beanstalk:sticky --> ### Beanstalk test farm · ⚠️ couldn't be judged on steamdeck Commit `3155cef` · approved by dyst (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/3304) ⚠️ **Note:** The check count is reported from matching log lines; the plan also rejects any matching line with nonzero mismatches. ⚠️ **Note:** Check-mode overhead means these frame times do not establish the claimed default-path speed-up or isolate the render-thread command phase. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change could not be judged on Steam Deck: both reports failed during baseline build or setup, before the game ran. One reported a main-base failure involving 11 shader cache files; the other reported an invalid URL in main's tools.lock, so there are no performance or picture-comparison results. Done (started 02:57 UTC, last report 08:09 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `steamdeck` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_28e6a353532ad836) [2](https://beanstalk.magicbean.dev/reports/rp_82e81e44a6fba14c) | — | — | 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. - `steamdeck`, [report 1](https://beanstalk.magicbean.dev/reports/rp_28e6a353532ad836): `the main base failed (exit 1): 11 shader cache files from <data>/builder/bases/main-seed` - `steamdeck`, [report 2](https://beanstalk.magicbean.dev/reports/rp_82e81e44a6fba14c): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) On Steam Deck, the PR and main will run Market in check mode for a 60-second measurement, with movement before the measurement and a stationary picture compared against main. The plan records the logged check counts and fails on a missing check line, nonzero mismatches, a crash, a substantial picture difference, or a frame-time regression over 15%. The runs are uncapped at 1280x720 to favor the CPU-side draw path. - **Where:** steamdeck (1-2 reports). - **market-check:** from the repository's save `market-entrance` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`, `RX_VK_DRAW_OVERHEAD_LEAN=check`), then teleport to Market, take the picture market to compare with main, move the stick, measure market-play for 60 s (after 10 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, the game's log, numbers from the game's log. - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or expected log lines missing is above 0. - **Time:** about 38 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** could not be judged on steamdeck (2 reports). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: market-check, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_DRAW_OVERHEAD_LEAN=check); 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); market-check: 3 game starts a side, market-play 60 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on steamdeck (2 reports). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` Scene: market-check, from the repository's save market-entrance (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0, RX_VK_DRAW_OVERHEAD_LEAN=check); 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); market-check: 3 game starts a side, market-play 60 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** None: the plan varied no setting, switch or build option. ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_28e6a353532ad836) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` | | `steamdeck` | [2](https://beanstalk.magicbean.dev/reports/rp_82e81e44a6fba14c) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 12 GB RAM` | </details>
Some checks reported errors
PR description / Title and description (pull_request_target) Waiting to run
CI / What the change needs (pull_request) Waiting to run
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Waiting to run
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 approved by dyst (reviewed)
beanstalk/steamdeck 0/1 pass, 2 error
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/vk-push-words-once:dyst-perf/vk-push-words-once'
git switch 'dyst-perf/vk-push-words-once'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!3304
No description provided.