Game: Steam Deck (v3.2.0): RX_VK_LOAD=start and RX_VK_RECORDER=thread are clear wins that Auto leaves off #2480

Open
opened 2026-11-24 20:25:36 +00:00 by NeoLoger · 4 comments
Contributor

What happens

On the Steam Deck, two switches that Auto leaves off are the biggest measured wins I have found on v3.2.0: RX_VK_LOAD=start (most of the in-play stutter) and RX_VK_RECORDER=thread (+13 % fps). What remains after both is the per-draw CPU cost of the submit in busy scenes; numbers below for whoever works on it (#2210 looks like the right place).

Setup: Steam Deck LCD, SteamOS, RADV (VANGOGH), output 1280x800. Build: v3.2.0 with #2235 and #2308 merged in (the log shows c6e39c03), plus a local patch that only removes the network features. RX_VK_BATCH=0 in every run.

1. RX_VK_LOAD: Auto picks create on the Deck, and every session builds pipelines in play

The pipeline cache works: every session's play file says ... from the driver's cache, 0 compiled. But with create, every session creates the pipeline objects again when they are first drawn, in bursts of 100+ when entering an area or turning the camera (one 1.1 s frame: 103 new pipelines, 72 new programs). The same route, two sessions, gameplay frames only (longshot_frames.csv):

RX_VK_LOAD = Auto (create) RX_VK_LOAD=start
pipelines created in slow frames (whole session) 1,190 16
average fps 29.4 32.1
frames >= 50 ms 10.7 % 6.7 %
frames >= 100 ms 19 9
p99 frame 95.5 ms 77.7 ms

The cost of start: noted pipelines: 37807 of 37808 pipelines in 10 s before the title.

2. RX_VK_RECORDER=thread: +13 % on the Deck, but Auto keeps it off below 6 cores

kAutoRecorderOnlyCores = 6 (#2334) keeps the recorder off on the Deck's 4 cores / 8 threads. A fixed-scene bench, 6 runs interleaved, same build:

normal (Auto) RX_VK_RECORDER=thread
average fps 28.8 / 29.2 / 29.5 32.2 / 33.0 / 33.0
1 % low fps 21.1 / 22.1 / 22.5 24.5 / 25.6 / 23.8
median frame 34.3 / 33.3 / 34.0 ms 30.8 / 30.3 / 30.4 ms
CPU clock (median) 2.42-2.50 GHz 2.25-2.42 GHz

It wins every pair, at the same or lower clock. This replaces what I wrote on #2334 earlier: that test ran on nightly-680, where the frame was still bound by the game's job graph. With #2235 the game threads got cheaper and the single render thread became the limit, which the recorder now splits.

3. What is left: the submit's per-draw cost in busy scenes

The frame rate follows the draw count closely (both sessions, 120-present windows):

draws a frame fps
200-600 48.0
600-1,200 33.8
1,200-1,800 28.1
1,800-2,400 22.2
2,400+ 20.5

The slow frames with RX_VK_LOAD=start (471 between 40 and 300 ms): median 2,429 draws. Submit took 33.1 ms of it: draw 20.4, descriptors 8.4, commands 5.7, programs 3.7. 191 of them also had texture uploads. GPU time is 17.9 ms a frame (pass timing), so the GPU is not the limit. Light scenes reach 60 fps.

Suggestion

On the Deck, or on any integrated GPU with 4 cores, Auto could pick RX_VK_LOAD=start and the recorder thread. That's the maintainers' call. The numbers are above and the logs are attached.

Logs

Assisted-by: Claude

### What happens On the Steam Deck, two switches that Auto leaves off are the biggest measured wins I have found on v3.2.0: `RX_VK_LOAD=start` (most of the in-play stutter) and `RX_VK_RECORDER=thread` (+13 % fps). What remains after both is the per-draw CPU cost of the submit in busy scenes; numbers below for whoever works on it (#2210 looks like the right place). **Setup:** Steam Deck LCD, SteamOS, RADV (VANGOGH), output 1280x800. Build: v3.2.0 with #2235 and #2308 merged in (the log shows `c6e39c03`), plus a local patch that only removes the network features. `RX_VK_BATCH=0` in every run. ### 1. `RX_VK_LOAD`: Auto picks `create` on the Deck, and every session builds pipelines in play The pipeline cache works: every session's play file says `... from the driver's cache, 0 compiled`. But with `create`, every session creates the pipeline objects again when they are first drawn, in bursts of 100+ when entering an area or turning the camera (one 1.1 s frame: `103 new pipelines, 72 new programs`). The same route, two sessions, gameplay frames only (`longshot_frames.csv`): | | `RX_VK_LOAD` = Auto (create) | `RX_VK_LOAD=start` | |---|---|---| | pipelines created in slow frames (whole session) | 1,190 | 16 | | average fps | 29.4 | 32.1 | | frames >= 50 ms | 10.7 % | 6.7 % | | frames >= 100 ms | 19 | 9 | | p99 frame | 95.5 ms | 77.7 ms | The cost of `start`: `noted pipelines: 37807 of 37808 pipelines in 10 s` before the title. ### 2. `RX_VK_RECORDER=thread`: +13 % on the Deck, but Auto keeps it off below 6 cores `kAutoRecorderOnlyCores = 6` (#2334) keeps the recorder off on the Deck's 4 cores / 8 threads. A fixed-scene bench, 6 runs interleaved, same build: | | normal (Auto) | `RX_VK_RECORDER=thread` | |---|---|---| | average fps | 28.8 / 29.2 / 29.5 | 32.2 / 33.0 / 33.0 | | 1 % low fps | 21.1 / 22.1 / 22.5 | 24.5 / 25.6 / 23.8 | | median frame | 34.3 / 33.3 / 34.0 ms | 30.8 / 30.3 / 30.4 ms | | CPU clock (median) | 2.42-2.50 GHz | 2.25-2.42 GHz | It wins every pair, at the same or lower clock. This replaces what I wrote on #2334 earlier: that test ran on nightly-680, where the frame was still bound by the game's job graph. With #2235 the game threads got cheaper and the single render thread became the limit, which the recorder now splits. ### 3. What is left: the submit's per-draw cost in busy scenes The frame rate follows the draw count closely (both sessions, 120-present windows): | draws a frame | fps | |---|---| | 200-600 | 48.0 | | 600-1,200 | 33.8 | | 1,200-1,800 | 28.1 | | 1,800-2,400 | 22.2 | | 2,400+ | 20.5 | The slow frames with `RX_VK_LOAD=start` (471 between 40 and 300 ms): median 2,429 draws. Submit took 33.1 ms of it: draw 20.4, descriptors 8.4, commands 5.7, programs 3.7. 191 of them also had texture uploads. GPU time is 17.9 ms a frame (pass timing), so the GPU is not the limit. Light scenes reach 60 fps. ### Suggestion On the Deck, or on any integrated GPU with 4 cores, Auto could pick `RX_VK_LOAD=start` and the recorder thread. That's the maintainers' call. The numbers are above and the logs are attached. ### Logs - [`deck-v320-play-load-create-longshot_log.txt`](https://git.magicbean.dev/attachments/4bf681bc-845d-4117-8da2-229ae1adf082): gameplay, Auto load mode - [`deck-v320-play-load-start-longshot_log.txt`](https://git.magicbean.dev/attachments/7401601c-c1f6-457f-84c7-0c57aa933c28): the same route with `RX_VK_LOAD=start` - [`deck-v320-recorder-bench.txt`](https://git.magicbean.dev/attachments/d88cef25-05cc-461c-9b38-d78622c78721): the 6 bench runs (summary rows plus clocks) Assisted-by: Claude
Member

Possibly related, for context:

  • issue #402 Deck: the frame is CPU-bound in the submission path, not GPU-bound (16 fps at 50% internal, GPU-bound wait 0.4 ms) — Same Deck CPU submission-path performance, with later context on recorder behavior
  • issue #549 Idea: cut the per-draw cost of the compute fallback (the Market at 2,300 draws: GPU 22.7 ms plus 19 ms of replay submit on an RX 5600 XT) — Related per-draw submit cost in draw-heavy scenes
  • PR #2334 perf(vk): +18.0% 1% low / +5.6% FPS in Market on 6+ core non-mirrored / integrated GPUs via Auto recorder thread — Merged recorder Auto policy; this issue adds Deck-specific measurements after it
Possibly related, for context: - issue #402 Deck: the frame is CPU-bound in the submission path, not GPU-bound (16 fps at 50% internal, GPU-bound wait 0.4 ms) — Same Deck CPU submission-path performance, with later context on recorder behavior - issue #549 Idea: cut the per-draw cost of the compute fallback (the Market at 2,300 draws: GPU 22.7 ms plus 19 ms of replay submit on an RX 5600 XT) — Related per-draw submit cost in draw-heavy scenes - PR #2334 perf(vk): +18.0% 1% low / +5.6% FPS in Market on 6+ core non-mirrored / integrated GPUs via Auto recorder thread — Merged recorder Auto policy; this issue adds Deck-specific measurements after it
Author
Contributor

A correction to section 1 above, the RX_VK_LOAD table. That before/after comparison is confounded, and I can't tell how much of the difference the switch made.

The "Auto (create)" session was the first gameplay session after a bench, and its log says program cache /game/cache/longshot_programs.bin: its programs are in another shader store (..., this one ...): prepared again and 0 program keys kept. Our bench ran the game with a fresh home folder (an empty ~/.cache/longshot/shaders/) against the install's own cache/, so each bench run rewrote longshot_programs.bin for its throwaway shader store. The next real session then started with no programs, whatever RX_VK_LOAD said. A later session on a new build, with RX_VK_LOAD=start set, after another bench, shows the same: precompile: 0 programs, 37646 graphics ... in 1.7 s, then about 1,200 pipelines created during play.

So:

  • The comparison in section 1 mixes RX_VK_LOAD=start with a cold program cache. A clean comparison needs two sessions that both report N program keys kept with N > 0. I'll redo it that way before suggesting any Auto change for this switch.
  • Section 2 (the recorder thread, +13 %) is unaffected: it comes from an interleaved fixed-scene bench, where every run started under the same conditions.
  • Possibly useful to others: anything that runs the game with another HOME against the same install (bench scripts, a second account) silently empties the program cache for the next normal start. The log line above is how to spot it.

Assisted-by: Claude

A correction to section 1 above, the `RX_VK_LOAD` table. That before/after comparison is confounded, and I can't tell how much of the difference the switch made. The "Auto (create)" session was the first gameplay session after a bench, and its log says `program cache /game/cache/longshot_programs.bin: its programs are in another shader store (..., this one ...): prepared again` and `0 program keys kept`. Our bench ran the game with a fresh home folder (an empty `~/.cache/longshot/shaders/`) against the install's own `cache/`, so each bench run rewrote `longshot_programs.bin` for its throwaway shader store. The next real session then started with no programs, whatever `RX_VK_LOAD` said. A later session on a new build, with `RX_VK_LOAD=start` set, after another bench, shows the same: `precompile: 0 programs, 37646 graphics ...` in 1.7 s, then about 1,200 pipelines created during play. So: - The comparison in section 1 mixes `RX_VK_LOAD=start` with a cold program cache. A clean comparison needs two sessions that both report `N program keys kept` with N > 0. I'll redo it that way before suggesting any Auto change for this switch. - Section 2 (the recorder thread, +13 %) is unaffected: it comes from an interleaved fixed-scene bench, where every run started under the same conditions. - Possibly useful to others: anything that runs the game with another `HOME` against the same install (bench scripts, a second account) silently empties the program cache for the next normal start. The log line above is how to spot it. Assisted-by: Claude
Author
Contributor

A Steam Deck finding on RX_VK_GPU_CLOCK: in our renderer-limited setup at 1280x800, standard was faster and steadier than the default peak hold. That is the opposite of the playbook's measured default, so here are the conditions and numbers.

Why it can differ from the playbook's figure. The peak hold was measured where the GPU was the limit (gpu_clock.h: GPU 99 % busy in Kokiri Forest, 13.9 against 11.7 fps with automatic clocks). In our runs the GPU was never the limit: the frame trace puts the render thread on the critical path 100 % of the time and the GPU at 0 %. The package sits at its ~12 W either way. With the GPU held at 1300 MHz, the CPU cores averaged about 2.2 GHz. With standard (1100 MHz in play), they averaged about 2.63 GHz, and the render thread's replay time fell by about 15 %.

Bench (fixed busy scene, ~2,510 draws a frame, interleaved, 3 runs a side, same build and env otherwise):

peak (default) standard difference, 95 % interval
CPU clock, mean of 8 logical CPUs 2,287 MHz 2,636 MHz
replay submit (ms a frame) 19.83 16.94 -2.89 [-3.77, -2.01]
replay draw (ms a frame) 12.87 10.61 -2.26 [-2.87, -1.65]
average fps 32.38 33.22 +0.84 [-0.00, +1.69]
frame time p90 / p99 35.4 / 38.8 ms 32.1 / 36.0 ms
frames >= 50 ms 5 of 5,827 0 of 5,979

In free play (same route and save, one ~3-minute session per arm, warm program cache), the two standard sessions also ran at ~2.5 GHz against 2.07 GHz. Render time was 18-19 ms against 20.9 ms, and frames >= 50 ms were 3.1-3.5 % against 5.8 %. The GPU stayed off the critical path at 1100 MHz. Those two sessions each carried one more switch (texture ahead / upload budget 4), so take them as supporting only. The per-run table is attached: deck-gpu-clock-ab.txt.

Limits of this: only the LCD Deck was tested, only at 1280x800 output, and with the recorder thread on. At a higher render scale, where the GPU is the limit, the playbook's measurement may well still hold. Automatic clocks (RX_VK_GPU_CLOCK=0) were not in this A/B. If useful, I can run peak / standard / 0 at a GPU-bound setting on the same Deck so the default can be chosen per limiter.

Setup: the build is v3.2.0 + #2235 + #2308 (play-profile build) + #2210 + #2436 + #2439, with PR switches at their defaults. Env on both arms: RX_VK_BATCH=0 RX_VK_RECORDER=thread RX_VK_LOAD=start, HOS_OUTPUT_RES=1280x800, uncapped. Each run's log names its arm ("peak power state held" / "standard power state held (RX_VK_GPU_CLOCK=standard)").

Assisted-by: Claude

A Steam Deck finding on `RX_VK_GPU_CLOCK`: in our renderer-limited setup at 1280x800, `standard` was faster and steadier than the default peak hold. That is the opposite of the playbook's measured default, so here are the conditions and numbers. **Why it can differ from the playbook's figure.** The peak hold was measured where the GPU was the limit (`gpu_clock.h`: GPU 99 % busy in Kokiri Forest, 13.9 against 11.7 fps with automatic clocks). In our runs the GPU was never the limit: the frame trace puts the render thread on the critical path 100 % of the time and the GPU at 0 %. The package sits at its ~12 W either way. With the GPU held at 1300 MHz, the CPU cores averaged about 2.2 GHz. With `standard` (1100 MHz in play), they averaged about 2.63 GHz, and the render thread's replay time fell by about 15 %. **Bench** (fixed busy scene, ~2,510 draws a frame, interleaved, 3 runs a side, same build and env otherwise): | | peak (default) | `standard` | difference, 95 % interval | |---|---|---|---| | CPU clock, mean of 8 logical CPUs | 2,287 MHz | 2,636 MHz | | | replay `submit` (ms a frame) | 19.83 | 16.94 | -2.89 [-3.77, -2.01] | | replay `draw` (ms a frame) | 12.87 | 10.61 | -2.26 [-2.87, -1.65] | | average fps | 32.38 | 33.22 | +0.84 [-0.00, +1.69] | | frame time p90 / p99 | 35.4 / 38.8 ms | 32.1 / 36.0 ms | | | frames >= 50 ms | 5 of 5,827 | 0 of 5,979 | | In free play (same route and save, one ~3-minute session per arm, warm program cache), the two `standard` sessions also ran at ~2.5 GHz against 2.07 GHz. Render time was 18-19 ms against 20.9 ms, and frames >= 50 ms were 3.1-3.5 % against 5.8 %. The GPU stayed off the critical path at 1100 MHz. Those two sessions each carried one more switch (texture ahead / upload budget 4), so take them as supporting only. The per-run table is attached: [deck-gpu-clock-ab.txt](https://git.magicbean.dev/attachments/ea1a29f9-46fe-4cbf-8e22-a60157d603a2). **Limits of this:** only the LCD Deck was tested, only at 1280x800 output, and with the recorder thread on. At a higher render scale, where the GPU is the limit, the playbook's measurement may well still hold. Automatic clocks (`RX_VK_GPU_CLOCK=0`) were not in this A/B. If useful, I can run peak / standard / 0 at a GPU-bound setting on the same Deck so the default can be chosen per limiter. Setup: the build is v3.2.0 + #2235 + #2308 (play-profile build) + #2210 + #2436 + #2439, with PR switches at their defaults. Env on both arms: `RX_VK_BATCH=0 RX_VK_RECORDER=thread RX_VK_LOAD=start`, `HOS_OUTPUT_RES=1280x800`, uncapped. Each run's log names its arm ("peak power state held" / "standard power state held (RX_VK_GPU_CLOCK=standard)"). Assisted-by: Claude

A clean RX_VK_LOAD comparison on a desktop, as asked in the correction above: every session below reports 47796 program keys kept, so none of them started with a cold program cache.

Setup: Windows 11 23H2 (22631), NVIDIA GeForce GTX 1070 (Pascal, no mesh shaders), driver 582.78 (0x91938000), i7-9700K (8 cores, no SMT), 32 GB, SATA SSD (Crucial BX500), 1920x1080, default options, Compile shaders: All. Build: main @ be69a66f. The shader store passed explicitly (LONGSHOT_SHADER_STORE) so the game and its preparation agree on it. Each run starts from a fresh profile holding one save and walks the same route, then quits.

Kokiri Forest (the repository's kokiri-start save, saved again after the opening dialogue; down the cobblestone path to the Deku Tree tunnel). Order C1, D1, C2, D2; C = Auto (create), D = RX_VK_LOAD=start:

C1 D1 C2 D2
pipelines created in play 6,228 0 6,234 0
program loads at create: median / p99 / worst 0.66 / 10.1 / 26.1 ms - 0.59 / 7.0 / 20.7 ms -
worst slow submit 400.5 ms 440.5 ms 325.6 ms 400.2 ms
slow submit >= 100 ms 6 6 6 6
present intervals > 40 ms 16 21 17 18

start cost before the title: precompile: 34463 programs, 37686 graphics and 4961 compute pipelines, 2305 mesh fallback programs in 8.3 s and 6.6 s.

On this PC and route, start removes the in-play pipeline creation entirely, but the worst frames don't move: they are dominated by texture work (uploads 250-370 ms of them, the 1365x1365x1 x90 ASTC terrain arrays, which #2330 addresses), not by pipelines. Creating ~6,200 pipelines from the driver's cache costs about 1.1 s in all on this card, spread thinly.

Hyrule Field (the castle-gate save, out over the drawbridge, ~1 min in the Field). A = Auto (create) on main. Note that my E side here is main + #2330 + RX_VK_LOAD=start, so the frame counts mix both changes and don't isolate this switch:

A1 A2 E1 E2
pipelines created in play 9,715 10,236 0 0
program loads at create: median / p99 / worst 0.62 / 7.3 / 293 ms 1.45 / 307 / 2,592 ms - -
present intervals > 40 ms 198 166 90 51

What is specific to the switch is A2: with the program cache warm (47796 program keys kept), the loads at create still went slow in that session (p99 307 ms, worst 2.6 s), with two 448 and 524 ms submits that are almost all programs (programs 519.0, programs 417.6), and the log said first uses waited for loads for 611 ms in this session (the longest 247 ms). A1, the same route on the same build just before, had p99 7.3 ms. I can't tell from two runs why A2 was slow (the OS file cache after runs of other game folders, or the DRAM-less SSD), but it is the case start rules out: with it there are no loads at create to wait on.

Reading: on a desktop with a warm program cache, start reliably removes in-play pipeline creation and the occasional slow program load, for 6.5-8.5 s before the title. It doesn't by itself remove the zone-entry peaks here, which are texture work. The player found Hyrule Field with E clearly better than A ("A unplayable, E much better"), but that includes #2330.

Logs stay on my PC (game-derived). I can rerun Hyrule with start alone if a clean single-switch comparison there is useful.

A clean `RX_VK_LOAD` comparison on a desktop, as asked in the correction above: every session below reports `47796 program keys kept`, so none of them started with a cold program cache. **Setup:** Windows 11 23H2 (22631), NVIDIA GeForce GTX 1070 (Pascal, no mesh shaders), driver 582.78 (`0x91938000`), i7-9700K (8 cores, no SMT), 32 GB, SATA SSD (Crucial BX500), 1920x1080, default options, Compile shaders: All. Build: `main @ be69a66f`. The shader store passed explicitly (`LONGSHOT_SHADER_STORE`) so the game and its preparation agree on it. Each run starts from a fresh profile holding one save and walks the same route, then quits. **Kokiri Forest** (the repository's `kokiri-start` save, saved again after the opening dialogue; down the cobblestone path to the Deku Tree tunnel). Order C1, D1, C2, D2; C = Auto (`create`), D = `RX_VK_LOAD=start`: | | C1 | D1 | C2 | D2 | |---|---:|---:|---:|---:| | pipelines created in play | 6,228 | **0** | 6,234 | **0** | | program loads at create: median / p99 / worst | 0.66 / 10.1 / 26.1 ms | - | 0.59 / 7.0 / 20.7 ms | - | | worst `slow submit` | 400.5 ms | 440.5 ms | 325.6 ms | 400.2 ms | | `slow submit` >= 100 ms | 6 | 6 | 6 | 6 | | present intervals > 40 ms | 16 | 21 | 17 | 18 | `start` cost before the title: `precompile: 34463 programs, 37686 graphics and 4961 compute pipelines, 2305 mesh fallback programs` in 8.3 s and 6.6 s. On this PC and route, `start` removes the in-play pipeline creation entirely, but the worst frames don't move: they are dominated by texture work (`uploads` 250-370 ms of them, the `1365x1365x1 x90` ASTC terrain arrays, which #2330 addresses), not by pipelines. Creating ~6,200 pipelines from the driver's cache costs about 1.1 s in all on this card, spread thinly. **Hyrule Field** (the `castle-gate` save, out over the drawbridge, ~1 min in the Field). A = Auto (`create`) on `main`. Note that my E side here is `main` + #2330 + `RX_VK_LOAD=start`, so the frame counts mix both changes and **don't isolate this switch**: | | A1 | A2 | E1 | E2 | |---|---:|---:|---:|---:| | pipelines created in play | 9,715 | 10,236 | **0** | **0** | | program loads at create: median / p99 / worst | 0.62 / 7.3 / 293 ms | **1.45 / 307 / 2,592 ms** | - | - | | present intervals > 40 ms | 198 | 166 | 90 | 51 | What is specific to the switch is A2: with the program cache warm (`47796 program keys kept`), the loads at create still went slow in that session (p99 307 ms, worst 2.6 s), with two 448 and 524 ms submits that are almost all `programs` (`programs 519.0`, `programs 417.6`), and the log said `first uses waited for loads for 611 ms in this session (the longest 247 ms)`. A1, the same route on the same build just before, had p99 7.3 ms. I can't tell from two runs why A2 was slow (the OS file cache after runs of other game folders, or the DRAM-less SSD), but it is the case `start` rules out: with it there are no loads at create to wait on. **Reading:** on a desktop with a warm program cache, `start` reliably removes in-play pipeline creation and the occasional slow program load, for 6.5-8.5 s before the title. It doesn't by itself remove the zone-entry peaks here, which are texture work. The player found Hyrule Field with E clearly better than A ("A unplayable, E much better"), but that includes #2330. Logs stay on my PC (game-derived). I can rerun Hyrule with `start` alone if a clean single-switch comparison there is useful.
Sign in to join this conversation.
No milestone
No project
No assignees
3 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#2480
No description provided.