perf(vk): capture buffers ready before their copy, in an arena of mapped blocks (RX_VK_CAP_READY, RX_VK_CAP_ARENA_MB) #3156

Merged
HumanBean merged 6 commits from decohered/Longshot:perf/capture-ready into main 2026-12-05 18:44:01 +00:00
Contributor

Summary

The worst problems I ran into on my Steam Machine were due to the capture threads faulting in new buffers one page at a time, and each fault waiting on the same VM lock that submissions and binds wait on.

  • On a Steam Machine, 15 minutes of play took 731,837 such faults, 580,265 by the capture copy threads and 98,564 by the game's main thread, all in capture buffers; frames of 189-427 ms held 37,000-81,000 of them
  • A perf record of two hitches of 680 and 406 ms put 81% on the capture threads in libc's copy, in fresh buffers of 222, 146, 135 and about 30 MB

Now the buffers are ready before the copy operation even begins.

  • A spare made ahead has its pages touched on the worker that made it (RX_VK_CAP_PREFAULT)
  • With the arena off, a capture of 32 MB or more that had to make its buffer starts a spare of its class for the next one, 256 MB included once a capture has needed it
  • On Linux, a buffer made at a capture is touched by the thread that made it, spares under 32 MB get 32 places of their own beside the 12 large ones, and a large capture takes a larger spare before it makes a buffer (RX_VK_CAP_READY, off on Windows)
  • The capture arena: blocks of 256 MB of host-cached memory, 768 MB by default on Linux where the spares may hold 768 MB, made and mapped once off the game's threads; a capture's buffer is bound inside a block in 64 KB steps, so no memory object is made, freed, mapped or unmapped per arena capture (RX_VK_CAP_ARENA_MB, 0 for none)
  • Under memory pressure the arena gives back its blocks that hold no capture's buffer, as the spares are held to 32 MB then; a block given back isn't made again, and the captures past what's left use the spares and buffers of their own, as before
  • The log's vk: capture buffers (600 presents) line counts what was made, taken and let go, the arena's use, and what it gave back
  • vmaDestroyPool drains the recorder first, as vmaFreeMemory does

Start with cap_buf_get and cap_buf_free in gpu/vk/vk_memory.cpp and the arena in gpu/vk/vk_vma.cpp, then tests/test_capture_buffers_ready.py.

Testing

Tested: These have been in every build I've played on my Steam Machine since, and the captures come almost entirely from the arena now: in a 132-minute session, 2,574,612 capture buffers came from it and only 9 were made on their own.

  • Steam Machine: Navi 33 8 GB, 16 GB of RAM, SteamOS 3.10.1, kernel 7.3.1-valve3, RADV steamos-26.05.20

  • A 54-minute session: 1,070,623 capture buffers from the arena, 1 made on its own

  • tests/test_capture_buffers_ready.py, tests/test_capture_spare_admission.py, tests/test_capture_spare_reuse.py, tests/test_cap_free_async.py, tests/test_recorder_sync.py and tests/test_memory_priority.py pass with clang++ and g++ 16.2.0

  • After review (a5a08d0f8), tests/test_capture_buffers_ready.py also checks that an arena buffer retired under memory pressure has the arena give back its empty blocks, and one retired without pressure doesn't

  • The game builds whole at a5a08d0f8 on Linux.

  • mise run test on Linux at 742b45e8f: 863 pass, 13 skip (Windows only or a device it needs), 19 fail. The same 19 fail on main @ 299ed5b70 with the same tools (the toolchain from nixpkgs; mise's pinned one isn't set up here), so none come from this change.

    The 19

    byte_compile_tracked, f2i_immediate, global_load_16, native_suatom, test_check_cache, test_checks_container, test_cloth_kernels, test_dav1d_av1, test_fsr_uniform_ownership, test_game_module_imports, test_lifter, test_lifter_semantics, test_linux_pressure, test_loaded_modules_drop, test_native_zstd, test_program_cache_cleanup, test_program_cache_one_variant, test_thinlto_tls, test_ui_renderer

Still to test:

  • Steam Deck: play through a few zone changes, expecting nearly every capture buffer from the arena in the log's vk: capture buffers line (@Beanstalk play through a few zone changes on a Steam Deck and report the vk: capture buffers lines)
  • Windows: a scene load, expecting no change in behaviour (@Beanstalk load a few scenes on a Windows PC, this PR against main, and compare the frame times at the loads)

Measurements

Verdict: In the sessions that pushed under 1 GB to swap, the game's major faults fell from 581-624 a second on builds without these to 0-14 with them (median 2), and in a 132-minute session the arena served 2,574,612 capture buffers with only 9 made on their own.

Baseline: before is a build of my branch on nightly-805 (6b928cb4) without the ready buffers and the arena, perf-recorded over 15 minutes of play; after is my branch @ 6cb6989ef with them, counted from the game's log over a 132-minute session. Both on the Steam Machine. The fault rates come from a watcher that read the game process's major-fault count every 10 s through every session there: before, the sessions on builds without the ready buffers and the arena; after, those on builds with them; sessions that pushed 1 GB or more to swap are left out on both sides.

Before: my branch without these @ 6b928cb4 After: my branch with these @ 6cb6989ef
Capture buffers served from the arena none (no arena) 2,574,612 in 132 min
Capture buffers made with memory of their own every one not taken from a spare 9 in 132 min
Page faults in capture buffers 731,837 in 15 min (perf record) not measured
Major faults a second in the game process (sessions under 1 GB swapped) 581-624 (3 sessions, 69 min) 0-14, median 2 (5 sessions, 264 min)

Risks

Yeah, it's up to 768MB on Linux. The spares could already be that big though, and now the empty blocks get reclaimed when memory is low.

  • RX_VK_CAP_ARENA_MB=0: no arena; the captures use the spares and buffers of their own
  • RX_VK_CAP_READY=0: a buffer made at a capture isn't touched where it's made, the spares' places and the larger-spare rule are main's, and the arena is off unless RX_VK_CAP_ARENA_MB asks for it
  • RX_VK_CAP_PREFAULT=0: a spare made ahead isn't touched
  • With all three at 0 the capture buffers are main's, except that a capture of 32 MB or more that made its buffer still starts a spare of its class for the next one, 256 MB included (no switch)
  • On Windows only the spare made ahead and the touched pages apply

Checklist

Ready for review

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

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Docs updated.
  • 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 worst problems I ran into on my Steam Machine were due to the capture threads faulting in new buffers one page at a time, and each fault waiting on the same VM lock that submissions and binds wait on. - On a Steam Machine, 15 minutes of play took 731,837 such faults, 580,265 by the capture copy threads and 98,564 by the game's main thread, all in capture buffers; frames of 189-427 ms held 37,000-81,000 of them - A perf record of two hitches of 680 and 406 ms put 81% on the capture threads in libc's copy, in fresh buffers of 222, 146, 135 and about 30 MB Now the buffers are ready before the copy operation even begins. - A spare made ahead has its pages touched on the worker that made it (`RX_VK_CAP_PREFAULT`) - With the arena off, a capture of 32 MB or more that had to make its buffer starts a spare of its class for the next one, 256 MB included once a capture has needed it - On Linux, a buffer made at a capture is touched by the thread that made it, spares under 32 MB get 32 places of their own beside the 12 large ones, and a large capture takes a larger spare before it makes a buffer (`RX_VK_CAP_READY`, off on Windows) - The capture arena: blocks of 256 MB of host-cached memory, 768 MB by default on Linux where the spares may hold 768 MB, made and mapped once off the game's threads; a capture's buffer is bound inside a block in 64 KB steps, so no memory object is made, freed, mapped or unmapped per arena capture (`RX_VK_CAP_ARENA_MB`, 0 for none) - Under memory pressure the arena gives back its blocks that hold no capture's buffer, as the spares are held to 32 MB then; a block given back isn't made again, and the captures past what's left use the spares and buffers of their own, as before - The log's `vk: capture buffers (600 presents)` line counts what was made, taken and let go, the arena's use, and what it gave back - `vmaDestroyPool` drains the recorder first, as `vmaFreeMemory` does Start with `cap_buf_get` and `cap_buf_free` in `gpu/vk/vk_memory.cpp` and the arena in `gpu/vk/vk_vma.cpp`, then `tests/test_capture_buffers_ready.py`. ## Testing **Tested:** These have been in every build I've played on my Steam Machine since, and the captures come almost entirely from the arena now: in a 132-minute session, 2,574,612 capture buffers came from it and only 9 were made on their own. - Steam Machine: Navi 33 8 GB, 16 GB of RAM, SteamOS 3.10.1, kernel 7.3.1-valve3, RADV steamos-26.05.20 - A 54-minute session: 1,070,623 capture buffers from the arena, 1 made on its own - `tests/test_capture_buffers_ready.py`, `tests/test_capture_spare_admission.py`, `tests/test_capture_spare_reuse.py`, `tests/test_cap_free_async.py`, `tests/test_recorder_sync.py` and `tests/test_memory_priority.py` pass with clang++ and g++ 16.2.0 - After review (a5a08d0f8), `tests/test_capture_buffers_ready.py` also checks that an arena buffer retired under memory pressure has the arena give back its empty blocks, and one retired without pressure doesn't - The game builds whole at a5a08d0f8 on Linux. - `mise run test` on Linux at 742b45e8f: 863 pass, 13 skip (Windows only or a device it needs), 19 fail. The same 19 fail on main @ 299ed5b70 with the same tools (the toolchain from nixpkgs; mise's pinned one isn't set up here), so none come from this change. <details><summary>The 19</summary> byte_compile_tracked, f2i_immediate, global_load_16, native_suatom, test_check_cache, test_checks_container, test_cloth_kernels, test_dav1d_av1, test_fsr_uniform_ownership, test_game_module_imports, test_lifter, test_lifter_semantics, test_linux_pressure, test_loaded_modules_drop, test_native_zstd, test_program_cache_cleanup, test_program_cache_one_variant, test_thinlto_tls, test_ui_renderer </details> **Still to test:** - Steam Deck: play through a few zone changes, expecting nearly every capture buffer from the arena in the log's `vk: capture buffers` line (@Beanstalk play through a few zone changes on a Steam Deck and report the vk: capture buffers lines) - Windows: a scene load, expecting no change in behaviour (@Beanstalk load a few scenes on a Windows PC, this PR against main, and compare the frame times at the loads) ## Measurements **Verdict:** In the sessions that pushed under 1 GB to swap, the game's major faults fell from 581-624 a second on builds without these to 0-14 with them (median 2), and in a 132-minute session the arena served 2,574,612 capture buffers with only 9 made on their own. Baseline: before is a build of my branch on nightly-805 (6b928cb4) without the ready buffers and the arena, perf-recorded over 15 minutes of play; after is my branch @ 6cb6989ef with them, counted from the game's log over a 132-minute session. Both on the Steam Machine. The fault rates come from a watcher that read the game process's major-fault count every 10 s through every session there: before, the sessions on builds without the ready buffers and the arena; after, those on builds with them; sessions that pushed 1 GB or more to swap are left out on both sides. | | Before: my branch without these @ 6b928cb4 | After: my branch with these @ 6cb6989ef | |---|---|---| | Capture buffers served from the arena | none (no arena) | 2,574,612 in 132 min | | Capture buffers made with memory of their own | every one not taken from a spare | 9 in 132 min | | Page faults in capture buffers | 731,837 in 15 min (perf record) | not measured | | Major faults a second in the game process (sessions under 1 GB swapped) | 581-624 (3 sessions, 69 min) | 0-14, median 2 (5 sessions, 264 min) | ## Risks Yeah, it's up to 768MB on Linux. The spares could already be that big though, and now the empty blocks get reclaimed when memory is low. - `RX_VK_CAP_ARENA_MB=0`: no arena; the captures use the spares and buffers of their own - `RX_VK_CAP_READY=0`: a buffer made at a capture isn't touched where it's made, the spares' places and the larger-spare rule are main's, and the arena is off unless `RX_VK_CAP_ARENA_MB` asks for it - `RX_VK_CAP_PREFAULT=0`: a spare made ahead isn't touched - With all three at 0 the capture buffers are main's, except that a capture of 32 MB or more that made its buffer still starts a spare of its class for the next one, 256 MB included (no switch) - On Windows only the spare made ahead and the touched pages apply ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Docs updated. - [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)
A capture whose buffer was made at once (no spare of its class) left nothing made ahead for the next capture of that size: only a
spare taken was replaced, and the 256 MB class was never made ahead at all. On a Steam Machine (RADV, 16 GB) a scene load's capture
took a fresh 222 MB buffer, its pages faulting in on the capture's copy in a frame of 400-680 ms. Now a capture of 32 MB or more
that made its buffer starts a spare of its class, and 256 MB is a class made ahead, but only so: once a capture has needed it, so
a session that never loads such a scene keeps no 256 MB spare. The spares' limits hold (768 MB, 12 buffers, three workers, none
under memory pressure), and the spares made ahead have their pages touched (RX_VK_CAP_PREFAULT).

test_capture_spare_reuse: a 200 MB capture with no spare starts a 256 MB one, an 8 MB one none; the class index of 256 MB.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
On Linux the driver maps a host-visible buffer's pages into the process only as they are first touched, a fault each: a spare
capture buffer made ahead (cap_spare_make) still cost the first capture that took it those faults, on the threads the frame
waits for. On a Steam Machine (Navi 33, RADV, 16 GB) two hitches of 680 and 406 ms each came with ~100,000 major faults in 10 s;
a perf record of them put 81% on the capture threads in libc's copy, in regions of 222, 146, 135 and ~30 MB: fresh capture
buffers of a scene load's capture. One read a page on the worker maps it (writable, a shared mapping), so the copy faults on
none of them. RX_VK_CAP_PREFAULT=0 leaves the pages to fault in on first use, as before.

test_capture_spare_reuse: its fake environment has the switch off (its buffers have no pages to touch).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
On Linux a host-visible buffer's pages enter the process only as they are
first touched, a fault each through TTM under the process's one VM
reservation, which every submission, bind, buffer creation and the other
copy threads' faults also take; a fault that finds it busy is retried. On a
Steam Machine 15 minutes of play took 731,837 such faults, 580,265 by the
capture copy threads and 98,564 by the game's main thread, all in capture
buffers, and frames of 189-427 ms held 37,000-81,000 of them.

With RX_VK_CAP_READY (on on Linux, off on Windows): a buffer made at a
capture is touched by the thread that made it before the copy writes it;
spares under 32 MB keep 32 places of their own beside the 12 large ones,
within the same byte limits, instead of being destroyed and made again; a
capture of 32 MB or more takes a larger spare before it makes a buffer; the
first capture's four classes are all made ahead. The spare and free threads
are named. A "vk: capture buffers (600 presents)" line counts buffers made
at a capture (and their touch time), made ahead, taken from the spares, let
go, and the spares held.

On main (after #2281, spares admitted by displacing the most represented size class): cap_buf_free keeps #2281's
admission, its place test now cap_spare_place. Where a place is what is short with RX_VK_CAP_READY on, the spare displaced is
one of the returned buffer's own kind (under 32 MB or not), so a small return cannot let every large spare go; where the bytes
are short it is any spare, as on main; with the switch off the rule is main's unchanged. The displaced array holds 44 (the
spares can be 12 + 32; #2281's 12 would be overrun), and each displaced buffer is counted let go.
test_capture_spare_admission (main's) gets stand-ins for the switch's helpers, runs main's scenarios with it off, and adds
three with it on; test_capture_buffers_ready includes <array>.

docs/dev/reference/architecture.md's paragraph on the capture spares (#2281's) says the places by size.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
perf(vk): the capture buffers made inside fixed, mapped blocks, the capture arena (RX_VK_CAP_ARENA_MB)
Some checks reported errors
PR description / Title and description (pull_request_target) Successful in 7s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/amd 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/windows 0/1 pass, 2 error
beanstalk/igpu 0/1 pass, 2 error
beanstalk/steamdeck 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
742b45e8f1
With RX_VK_CAP_READY a capture buffer's pages are mapped before its copy,
but buffers are still made and destroyed as captures come and go, and on
Linux each memory object made or freed, mapped or unmapped takes the
process's one VM reservation that the copies' faults, submissions and binds
also take.

The capture arena is blocks of 256 MB of host-cached memory (768 MB by
default on Linux with RX_VK_CAP_READY, where the spares may hold 768 MB),
each a VMA pool of one block, made once on a thread of its own at the first
capture, kept mapped by a small allocation pinned in it and its pages
touched there. A capture's buffer is then a buffer bound inside a block, in
64 KB steps: its own allocation and offset, flushed and read as before, made
and destroyed with no memory object made or freed and nothing mapped. A
retired one goes back to its block; no spares are made ahead while the
arena is on. A capture with no room there takes a spare or a buffer of its
own, as before. The capture buffers' log line counts the arena's buffers
and its use. RX_VK_CAP_ARENA_MB=0: none.

On main (after #2281): the arena's buffers go back to it first in cap_buf_free, before the spares' admission (#2281's,
with the places by size). test_capture_spare_admission (main's) runs with stand-ins for no arena.

The arena's pool and its allocations' create infos name the memory priority of the other buffers (memory_tiers().rest),
which tests/test_memory_priority.py asks of every create info in vk_vma.cpp: it failed on this commit as first written.
docs/dev/reference/architecture.md says an arena's buffer is no spare.

vmaDestroyPool (a block given up when its pinned allocation fails) drains the
recorder first, as vmaFreeMemory does: it is in RX_REC_BOUNDARIES and
vk_work.h, which tests/test_recorder_sync.py asks of every destroy.

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

Possibly related, for context:

  • PR #1599 WIP: perf(vk): retain and refill capture buffers by size class — Open overlapping capture spare-buffer reuse/refill work
Possibly related, for context: - PR #1599 WIP: perf(vk): retain and refill capture buffers by size class — Open overlapping capture spare-buffer reuse/refill work
Owner

@Beanstalk
@review

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

Commit 742b45e · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The farm does not measure capture-thread page faults, so it cannot directly verify the claimed fault reduction.
⚠️ Note: Arena and inline capture counts are reported when the 600-present log line appears; the plan cannot automatically judge their ratio or reproduce the author’s long-session totals.

Started at 06:50 UTC.

Estimate: done in about 22 h, from the queue and the testers online now.

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

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

  • nvidia, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • nvidia, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • amd, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • amd, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • intel, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • intel, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • linux+radv, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • linux+radv, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • and 5 more, in the reports
What was tested

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

The plan compares capture-buffer performance and scene loads against main across NVIDIA, AMD, Intel, RADV, integrated GPUs and Windows, with an additional Steam Deck target that will wait for an online tester. Three starts per side visit Hyrule Field, Market and Kakariko Village, measuring uncapped frame times, load times and process memory while recording capture-buffer arena counts and still-scene pictures. Each tester’s game runs take approximately 40 minutes. A crash, a material frame-time or load-time regression, or a substantial picture difference fails the pull request. No tester online now matches steamdeck: that target waits for one.

  • Where: nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), linux+radv (1-2 reports), windows (1-2 reports), igpu (1-2 reports), steamdeck (1-2 reports).
  • scene-changes: from the repository's save kokiri-start (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0), then teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 10 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 20 s (after 10 s warm-up), teleport to Kakariko Village, take the picture kakariko to compare with main, measure kakariko for 20 s (after 10 s warm-up); 3 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, load times, memory and CPU time, numbers from the game's log.
  • The PR fails if: it crashes; or a picture differs from main by more than 30%; or longest load is more than 30% above main; or frame time (p99) is more than 20% above main; or worst frame time in the whole run is more than 40% above main.
  • Time: about 40 min of game runs per tester (6 game starts), plus the two builds.
Measurements on `nvidia`, for the PR description

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

Hardware: 1: 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; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 3070, 621.35.0 AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 nvidia (2 reports).

Hardware: 1: 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`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM`  
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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.
Measurements on `amd`, for the PR description

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

Hardware: 1: windows+amd+amd-proprietary+dgpu+window AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 amd (2 reports).

Hardware: 1: windows+amd+amd-proprietary+dgpu+window `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`  
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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.
Measurements on `intel`, for the PR description

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

Hardware: 1: 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; 2: 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
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 intel (2 reports).

Hardware: 1: 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`; 2: 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`  
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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.
Measurements on `linux+radv`, for the PR description

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

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM; 2: 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
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 linux+radv (2 reports).

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: 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`  
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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.
Measurements on `windows`, for the PR description

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

Hardware: 1: windows+amd+amd-proprietary+dgpu+window AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 3070, 621.35.0 AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 windows (2 reports).

Hardware: 1: windows+amd+amd-proprietary+dgpu+window `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM`  
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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.
Measurements on `igpu`, for the PR description

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

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+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: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 igpu (2 reports).

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+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: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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.
Measurements on `steamdeck`, for the PR description

Verdict: queued on steamdeck (1 report).

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 steamdeck (1 report).

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`  
Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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
nvidia 1 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
nvidia 2 windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 3070, 621.35.0 AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM
amd 1 windows+amd+amd-proprietary+dgpu+window AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
amd 2 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
intel 1 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
intel 2 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
linux+radv 1 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
linux+radv 2 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
windows 1 windows+amd+amd-proprietary+dgpu+window AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
windows 2 windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess NVIDIA GeForce RTX 3070, 621.35.0 AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM
igpu 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
igpu 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
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>742b45e</code> (the newer results are in a comment below)</summary> Commit `742b45e` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/3156) ⚠️ **Note:** The farm does not measure capture-thread page faults, so it cannot directly verify the claimed fault reduction. ⚠️ **Note:** Arena and inline capture counts are reported when the 600-present log line appears; the plan cannot automatically judge their ratio or reproduce the author’s long-session totals. Started at 06:50 UTC. **Estimate:** done in about 22 h, from the queue and the testers online now. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `nvidia` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_8c09eb82e3693bef) [2](https://beanstalk.magicbean.dev/reports/rp_727916ff2c000af9) | — | — | none | | `amd` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_78c2e5eb6d915342) [2](https://beanstalk.magicbean.dev/reports/rp_f0c4f2acce1801d4) | — | — | none | | `intel` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_01c67c1186b6509d) [2](https://beanstalk.magicbean.dev/reports/rp_04b0ff2adda219b1) | — | — | none | | `linux+radv` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_4674d230ab327400) [2](https://beanstalk.magicbean.dev/reports/rp_f0eb96d52e70d781) | — | — | none | | `windows` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_8b228ca2234d5ad9) [2](https://beanstalk.magicbean.dev/reports/rp_fc2f9c6c75291233) | — | — | none | | `igpu` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_544e8534d7715659) [2](https://beanstalk.magicbean.dev/reports/rp_1084cd3566cc9b6d) | — | — | none | | `steamdeck` | ⏳ queued | 1 [1](https://beanstalk.magicbean.dev/reports/rp_ed956600cab2a36c) | — | — | none | **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_8c09eb82e3693bef): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_727916ff2c000af9): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `amd`, [report 1](https://beanstalk.magicbean.dev/reports/rp_78c2e5eb6d915342): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_f0c4f2acce1801d4): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `intel`, [report 1](https://beanstalk.magicbean.dev/reports/rp_01c67c1186b6509d): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `intel`, [report 2](https://beanstalk.magicbean.dev/reports/rp_04b0ff2adda219b1): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `linux+radv`, [report 1](https://beanstalk.magicbean.dev/reports/rp_4674d230ab327400): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `linux+radv`, [report 2](https://beanstalk.magicbean.dev/reports/rp_f0eb96d52e70d781): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - and 5 more, in the reports <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The plan compares capture-buffer performance and scene loads against main across NVIDIA, AMD, Intel, RADV, integrated GPUs and Windows, with an additional Steam Deck target that will wait for an online tester. Three starts per side visit Hyrule Field, Market and Kakariko Village, measuring uncapped frame times, load times and process memory while recording capture-buffer arena counts and still-scene pictures. Each tester’s game runs take approximately 40 minutes. A crash, a material frame-time or load-time regression, or a substantial picture difference fails the pull request. No tester online now matches steamdeck: that target waits for one. - **Where:** nvidia (1-2 reports), amd (1-2 reports), intel (1-2 reports), linux+radv (1-2 reports), windows (1-2 reports), igpu (1-2 reports), steamdeck (1-2 reports). - **scene-changes:** from the repository's save `kokiri-start` (settings vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0; switches `HOS_OUTPUT_RES=1280x720`, `RX_VK_AUTO_TUNE=0`), then teleport to Hyrule Field, take the picture field to compare with main, measure field for 20 s (after 10 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 20 s (after 10 s warm-up), teleport to Kakariko Village, take the picture kakariko to compare with main, measure kakariko for 20 s (after 10 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, load times, memory and CPU time, numbers from the game's log. - **The PR fails if:** it crashes; or a picture differs from main by more than 30%; or longest load is more than 30% above main; or frame time (p99) is more than 20% above main; or worst frame time in the whole run is more than 40% above main. - **Time:** about 40 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `nvidia`, for the PR description</summary> **Verdict:** could not be judged on nvidia (2 reports). Hardware: 1: 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`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 nvidia (2 reports). Hardware: 1: 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`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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>Measurements on `amd`, for the PR description</summary> **Verdict:** could not be judged on amd (2 reports). Hardware: 1: windows+amd+amd-proprietary+dgpu+window `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 amd (2 reports). Hardware: 1: windows+amd+amd-proprietary+dgpu+window `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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>Measurements on `intel`, for the PR description</summary> **Verdict:** could not be judged on intel (2 reports). Hardware: 1: 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`; 2: 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` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 intel (2 reports). Hardware: 1: 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`; 2: 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` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** could not be judged on linux+radv (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: 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` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 linux+radv (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: 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` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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>Measurements on `windows`, for the PR description</summary> **Verdict:** could not be judged on windows (2 reports). Hardware: 1: windows+amd+amd-proprietary+dgpu+window `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 windows (2 reports). Hardware: 1: windows+amd+amd-proprietary+dgpu+window `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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>Measurements on `igpu`, for the PR description</summary> **Verdict:** could not be judged on igpu (2 reports). 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+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: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 igpu (2 reports). 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+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: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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>Measurements on `steamdeck`, for the PR description</summary> **Verdict:** queued on steamdeck (1 report). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 steamdeck (1 report). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: scene-changes, from the repository's save kokiri-start (vsync=2, resolution=1, frame_rate_cap=6, quality_preset=0, HOS_OUTPUT_RES=1280x720, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); scene-changes: 3 game starts a side, field 20 s after 10 s warm-up, market 20 s after 10 s warm-up, kakariko 20 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 | | --- | --- | --- | | `nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_8c09eb82e3693bef) | 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` | | `nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_727916ff2c000af9) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM` | | `amd` | [1](https://beanstalk.magicbean.dev/reports/rp_78c2e5eb6d915342) | windows+amd+amd-proprietary+dgpu+window `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | | `amd` | [2](https://beanstalk.magicbean.dev/reports/rp_f0c4f2acce1801d4) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_01c67c1186b6509d) | 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` | | `intel` | [2](https://beanstalk.magicbean.dev/reports/rp_04b0ff2adda219b1) | 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` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_4674d230ab327400) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.3.1` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_f0eb96d52e70d781) | 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` | | `windows` | [1](https://beanstalk.magicbean.dev/reports/rp_8b228ca2234d5ad9) | windows+amd+amd-proprietary+dgpu+window `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | | `windows` | [2](https://beanstalk.magicbean.dev/reports/rp_fc2f9c6c75291233) | windows+nvidia+nvidia-proprietary+dgpu+window+dlss+xess `NVIDIA GeForce RTX 3070, 621.35.0` `AMD Ryzen 5 5600X3D 6-Core Processor, 32 GB RAM` | | `igpu` | [1](https://beanstalk.magicbean.dev/reports/rp_544e8534d7715659) | 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` | | `igpu` | [2](https://beanstalk.magicbean.dev/reports/rp_1084cd3566cc9b6d) | 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_ed956600cab2a36c) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | </details> </details>
Owner

Can you add VRAM and FPS numbers?

Can you add VRAM and FPS numbers?
BeanBot requested changes 2026-12-04 06:47:14 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The arena retains up to 768 MiB even when Linux reports memory pressure, bypassing the existing capture-spare reclamation path. Its effect on frame times and total memory use against main is also unmeasured.

The change prepares capture buffers before copying and normally suballocates them from mapped blocks, aiming to reduce allocation and page-fault stalls. It adds persistent memory use and changes capture allocation and retirement on both platforms.

Blocking (1): must change before merging.

  1. L1 gpu/vk/vk_vma.cpp:767: Arena blocks remain allocated and mapped for the whole process, including under memory pressure. (more on the line) Do: Make unused arena blocks reclaimable under the existing memory-pressure policy, with safe lifetime handling for active allocations, or choose a pressure-aware bounded design that does not retain those blocks.

Nits (1): optional.

  • L2: The Risks section says each new switch individually restores the old behavior, but each controls only part of the change. When: For example, RX_VK_CAP_READY=0 leaves spare prefaulting and the new 256 MiB prewarm behavior enabled; RX_VK_CAP_ARENA_MB=0 still leaves the ready and prefault paths enabled. Do: Describe what each switch disables and give the combined settings needed to reproduce the earlier capture-buffer behavior.

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

  • L3 gpu/vk/vk_memory.cpp:1724: The reported arena hit count does not establish that the change reduces player-visible stalls or what it costs in memory. (more on the line) Do: Run interleaved base-versus-head comparisons in the same scene and settings, reporting average and 1% low FPS, median and tail frame times, capture faults, RAM and VRAM, including scene loads and the target Steam Machine. (@fix does its part first: Make the arena reclaimable under pressure to reduce the persistent memory cost.)
  • L4 gpu/vk/vk_memory.cpp:1630: The changed allocation and prefault paths still need coverage on the other supported systems they affect. (more on the line) Do: Complete the requested Steam Deck and Windows scene-load comparisons, and test the affected Tier 1 GPU and driver configurations with frame-time and memory observations. (@fix does its part first: Keep unmeasured platform-specific behavior disabled by default until its cost is known.)

@fix can do L1, L2, L3 and L4.

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

  • tests/test_capture_buffers_ready.py:78: Is there a concrete failure in the production arena logic that this test misses?

Checks: Still running: 11 checks.

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

Does it help: Unproven. The PR reports 2,574,612 arena allocations and 9 standalone allocations in 132 minutes, but provides no comparable frame-time, page-fault, RAM, or VRAM measurements against base 299ed5b704. The reported 731,837 faults are from a different branch and session, with no after figure.

Other systems: Linux memory-pressure handling cannot reclaim unused arena blocks. Windows also gets prefaulted spares and new prewarming behavior, despite the arena and ready switch defaulting off there. Vulkan drivers and GPUs can differ in memory allocation and mapping costs; Steam Deck and Windows runs are still outstanding.

Switches: RX_VK_CAP_READY defaults on on Linux and off on Windows; RX_VK_CAP_ARENA_MB defaults to 768 on Linux when ready is enabled and the spare allowance is at least 768 MiB, otherwise 0; RX_VK_CAP_PREFAULT defaults on on both platforms. All have switch-table rows. The defaults are not supported by comparative performance and memory measurements, and the arena default does not respond to memory pressure.

Reviewed: 742b45e8f1 against 299ed5b704: Read the repository rules, PR template, standards, diff, commits, capture-buffer allocation and retirement paths, arena implementation, recorder boundary, memory-pressure and accounting paths, and the new test. Skimmed the remaining changed tests and surrounding renderer code. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. The larger changed code files were not read in full.; nothing run (a code review).

Checked and fine:

  • The arena vector is published with release/acquire synchronization before readers access it.
  • Arena allocations are returned only through the capture-buffer retirement path.
  • The changed switch names have rows in switches.def.
  • The commits record AI assistance, and the diff contains no game-derived files or generated binaries.

Testing: No commands from the project, builds, or tests were run, as requested. The author reports a Linux game build and the listed tests passing; CI is still running.

Overlaps and merge order: Unknown; the network is closed.


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

**Recommendation: Request changes.** The arena retains up to 768 MiB even when Linux reports memory pressure, bypassing the existing capture-spare reclamation path. Its effect on frame times and total memory use against main is also unmeasured. The change prepares capture buffers before copying and normally suballocates them from mapped blocks, aiming to reduce allocation and page-fault stalls. It adds persistent memory use and changes capture allocation and retirement on both platforms. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/vk_vma.cpp:767`: Arena blocks remain allocated and mapped for the whole process, including under memory pressure. (more on the line) **Do:** Make unused arena blocks reclaimable under the existing memory-pressure policy, with safe lifetime handling for active allocations, or choose a pressure-aware bounded design that does not retain those blocks. **Nits (1)**: optional. - **L2**: The Risks section says each new switch individually restores the old behavior, but each controls only part of the change. *When:* For example, RX_VK_CAP_READY=0 leaves spare prefaulting and the new 256 MiB prewarm behavior enabled; RX_VK_CAP_ARENA_MB=0 still leaves the ready and prefault paths enabled. **Do:** Describe what each switch disables and give the combined settings needed to reproduce the earlier capture-buffer behavior. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3** `gpu/vk/vk_memory.cpp:1724`: The reported arena hit count does not establish that the change reduces player-visible stalls or what it costs in memory. (more on the line) **Do:** Run interleaved base-versus-head comparisons in the same scene and settings, reporting average and 1% low FPS, median and tail frame times, capture faults, RAM and VRAM, including scene loads and the target Steam Machine. *(`@fix` does its part first: Make the arena reclaimable under pressure to reduce the persistent memory cost.)* - **L4** `gpu/vk/vk_memory.cpp:1630`: The changed allocation and prefault paths still need coverage on the other supported systems they affect. (more on the line) **Do:** Complete the requested Steam Deck and Windows scene-load comparisons, and test the affected Tier 1 GPU and driver configurations with frame-time and memory observations. *(`@fix` does its part first: Keep unmeasured platform-specific behavior disabled by default until its cost is known.)* `@fix` can do L1, L2, L3 and L4. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `tests/test_capture_buffers_ready.py:78`: Is there a concrete failure in the production arena logic that this test misses? **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. The PR reports 2,574,612 arena allocations and 9 standalone allocations in 132 minutes, but provides no comparable frame-time, page-fault, RAM, or VRAM measurements against base 299ed5b704e5. The reported 731,837 faults are from a different branch and session, with no after figure. **Other systems:** Linux memory-pressure handling cannot reclaim unused arena blocks. Windows also gets prefaulted spares and new prewarming behavior, despite the arena and ready switch defaulting off there. Vulkan drivers and GPUs can differ in memory allocation and mapping costs; Steam Deck and Windows runs are still outstanding. **Switches:** RX_VK_CAP_READY defaults on on Linux and off on Windows; RX_VK_CAP_ARENA_MB defaults to 768 on Linux when ready is enabled and the spare allowance is at least 768 MiB, otherwise 0; RX_VK_CAP_PREFAULT defaults on on both platforms. All have switch-table rows. The defaults are not supported by comparative performance and memory measurements, and the arena default does not respond to memory pressure. **Reviewed:** 742b45e8f167 against 299ed5b704e5: Read the repository rules, PR template, standards, diff, commits, capture-buffer allocation and retirement paths, arena implementation, recorder boundary, memory-pressure and accounting paths, and the new test. Skimmed the remaining changed tests and surrounding renderer code. docs/review-checklist.md and ../Tooling/AGENTS.md were absent. The larger changed code files were not read in full.; nothing run (a code review). **Checked and fine:** - The arena vector is published with release/acquire synchronization before readers access it. - Arena allocations are returned only through the capture-buffer retirement path. - The changed switch names have rows in switches.def. - The commits record AI assistance, and the diff contains no game-derived files or generated binaries. **Testing:** No commands from the project, builds, or tests were run, as requested. The author reports a Linux game build and the listed tests passing; CI is still running. **Overlaps and merge order:** Unknown; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -1582,1 +1721,4 @@
}
});
}
bool cap_buf_get(uint64_t need, VkBuffer& buffer, VmaAllocation& alloc, void*& map, uint64_t& size) {
Member

L3 (should fix): The reported arena hit count does not establish that the change reduces player-visible stalls or what it costs in memory.

When: The before and after observations cover different revisions and durations, and the after run has no page-fault or frame-time measurement. The arena also touches and retains memory that the old path may not need.

Do: Run interleaved base-versus-head comparisons in the same scene and settings, reporting average and 1% low FPS, median and tail frame times, capture faults, RAM and VRAM, including scene loads and the target Steam Machine.

**L3** (should fix): The reported arena hit count does not establish that the change reduces player-visible stalls or what it costs in memory. *When:* The before and after observations cover different revisions and durations, and the after run has no page-fault or frame-time measurement. The arena also touches and retains memory that the old path may not need. **Do:** Run interleaved base-versus-head comparisons in the same scene and settings, reporting average and 1% low FPS, median and tail frame times, capture faults, RAM and VRAM, including scene loads and the target Steam Machine.
@ -1536,2 +1627,4 @@
int cap_prewarm_index(uint64_t size) { return size <= (32ull << 20) ? 0 : size <= (64ull << 20) ? 1 : size <= (128ull << 20) ? 2 : size <= (192ull << 20) ? 3 : size <= (256ull << 20) ? 4 : -1; }
void cap_spare_make(uint64_t size, int index) {
SetThreadDescription(GetCurrentThread(), L"mkw_vk capture spare"); // (not the game's main thread's name, which it inherits)
VkBuffer b = VK_NULL_HANDLE;
Member

L4 (should fix): The changed allocation and prefault paths still need coverage on the other supported systems they affect.

When: Windows defaults to prefaulting newly prewarmed buffers and can create a 256 MiB spare; Linux drivers and Steam Deck may have different mapping, memory-pressure and timing behavior from the tested RADV machine.

Do: Complete the requested Steam Deck and Windows scene-load comparisons, and test the affected Tier 1 GPU and driver configurations with frame-time and memory observations.

**L4** (should fix): The changed allocation and prefault paths still need coverage on the other supported systems they affect. *When:* Windows defaults to prefaulting newly prewarmed buffers and can create a 256 MiB spare; Linux drivers and Steam Deck may have different mapping, memory-pressure and timing behavior from the tested RADV machine. **Do:** Complete the requested Steam Deck and Windows scene-load comparisons, and test the affected Tier 1 GPU and driver configurations with frame-time and memory observations.
@ -715,0 +764,4 @@
a.memory = info.deviceMemory;
const auto t0 = std::chrono::steady_clock::now();
const volatile uint8_t* base = static_cast<const volatile uint8_t*>(info.pMappedData) - info.offset;
for (uint64_t off = 0; off < block && !stop->load(); off += 4096) (void)base[off]; // (its pages mapped, once)
Member

L1 (blocking): Arena blocks remain allocated and mapped for the whole process, including under memory pressure.

When: On a Linux system eligible for the default arena, the first capture commits and touches up to 768 MiB. Later, linux_pressure_shortfall() trims cap_free, but retired arena allocations return to their pools instead, so even completely unused arena blocks cannot be reclaimed and compete with the game and other applications for RAM.

Do: Make unused arena blocks reclaimable under the existing memory-pressure policy, with safe lifetime handling for active allocations, or choose a pressure-aware bounded design that does not retain those blocks.

**L1** (blocking): Arena blocks remain allocated and mapped for the whole process, including under memory pressure. *When:* On a Linux system eligible for the default arena, the first capture commits and touches up to 768 MiB. Later, linux_pressure_shortfall() trims cap_free, but retired arena allocations return to their pools instead, so even completely unused arena blocks cannot be reclaimed and compete with the game and other applications for RAM. **Do:** Make unused arena blocks reclaimable under the existing memory-pressure policy, with safe lifetime handling for active allocations, or choose a pressure-aware bounded design that does not retain those blocks.
Owner

AMD Lab Market A/B: main ee9e1ed76 (A) against PR head 742b45e8f167 merged onto it (B), two builds.

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

Metric A (main) B (PR)
Average FPS, each capture 60.53 / 60.95 / 59.44 60.26 / 60.22 / 60.32
Average FPS, median 60.53 60.26
1% low FPS (1000 ÷ p99), median 50.79 50.92
Median frame time 16.47 ms 16.56 ms
p99 frame time, median 19.69 ms 19.64 ms
Frames of 50 ms or more, each capture 0 / 0 / 0 0 / 0 / 0

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

Each run's last vk: capture buffers log line:

A1: (no such line)
B1: vk: capture buffers (600 presents): 2501 in the arena and 2501 back to it (3 blocks, 43 of 768 MB in use); 0 made at a capture (0 MB; their pages touched there in 0.0 ms, the longest 0.0), 0 made ahead (0 MB), 0 from the spares, 0 let go (0 MB); spares 0 under 32 MB (0 MB), 1 larger (32 MB) (RX_VK_CAP_READY on, RX_VK_CAP_ARENA_MB 768)
A2: (no such line)
B2: vk: capture buffers (600 presents): 2417 in the arena and 2417 back to it (3 blocks, 41 of 768 MB in use); 0 made at a capture (0 MB; their pages touched there in 0.0 ms, the longest 0.0), 0 made ahead (0 MB), 0 from the spares, 0 let go (0 MB); spares 0 under 32 MB (0 MB), 1 larger (32 MB) (RX_VK_CAP_READY on, RX_VK_CAP_ARENA_MB 768)
A3: (no such line)
B3: vk: capture buffers (600 presents): 2430 in the arena and 2431 back to it (3 blocks, 41 of 768 MB in use); 0 made at a capture (0 MB; their pages touched there in 0.0 ms, the longest 0.0), 0 made ahead (0 MB), 0 from the spares, 0 let go (0 MB); spares 0 under 32 MB (0 MB), 1 larger (32 MB) (RX_VK_CAP_READY on, RX_VK_CAP_ARENA_MB 768)
Time a frame (each capture) A B
Renderer's CPU thread (replay, submit) 9.36 / 9.47 / 9.57 ms 9.57 / 9.66 / 9.59 ms
GPU time 12.20 / 12.20 / 12.20 ms 12.20 / 12.20 / 12.20 ms

The arena works on this PC (RX 580, 8 GB): every buffer in these lines came from it and none was made at a capture, with about 41 to 43 of its 768 MB in use. main has no such line to compare. The renderer's CPU thread was slightly higher with the PR (median 9.59 against 9.47 ms, ranges overlapping), too small to read much into. This is a standing scene after one teleport, not the repeated zone changes where the PR expects its gain.

AMD Lab Market A/B: `main` `ee9e1ed76` (A) against PR head `742b45e8f167` merged onto it (B), two builds. **Within the run-to-run spread.** Median average FPS changed by **-0.44%**. | Metric | A (`main`) | B (PR) | |---|---:|---:| | Average FPS, each capture | 60.53 / 60.95 / 59.44 | 60.26 / 60.22 / 60.32 | | Average FPS, median | 60.53 | 60.26 | | 1% low FPS (1000 ÷ p99), median | 50.79 | 50.92 | | Median frame time | 16.47 ms | 16.56 ms | | p99 frame time, median | 19.69 ms | 19.64 ms | | Frames of 50 ms or more, each capture | 0 / 0 / 0 | 0 / 0 / 0 | Market (child), headless Linux 7.3.3-1-cachyos, Core i7-9700K, Radeon RX 580 with Mesa RADV 3:26.2.6-1, 1280x720 output at 33% render scale, uncapped with V-Sync and frame generation off. Three alternating pairs, 60 seconds per capture after warm-up, each a timing job of the queue. Each run's last `vk: capture buffers` log line: ``` A1: (no such line) B1: vk: capture buffers (600 presents): 2501 in the arena and 2501 back to it (3 blocks, 43 of 768 MB in use); 0 made at a capture (0 MB; their pages touched there in 0.0 ms, the longest 0.0), 0 made ahead (0 MB), 0 from the spares, 0 let go (0 MB); spares 0 under 32 MB (0 MB), 1 larger (32 MB) (RX_VK_CAP_READY on, RX_VK_CAP_ARENA_MB 768) A2: (no such line) B2: vk: capture buffers (600 presents): 2417 in the arena and 2417 back to it (3 blocks, 41 of 768 MB in use); 0 made at a capture (0 MB; their pages touched there in 0.0 ms, the longest 0.0), 0 made ahead (0 MB), 0 from the spares, 0 let go (0 MB); spares 0 under 32 MB (0 MB), 1 larger (32 MB) (RX_VK_CAP_READY on, RX_VK_CAP_ARENA_MB 768) A3: (no such line) B3: vk: capture buffers (600 presents): 2430 in the arena and 2431 back to it (3 blocks, 41 of 768 MB in use); 0 made at a capture (0 MB; their pages touched there in 0.0 ms, the longest 0.0), 0 made ahead (0 MB), 0 from the spares, 0 let go (0 MB); spares 0 under 32 MB (0 MB), 1 larger (32 MB) (RX_VK_CAP_READY on, RX_VK_CAP_ARENA_MB 768) ``` | Time a frame (each capture) | A | B | |---|---:|---:| | Renderer's CPU thread (replay, submit) | 9.36 / 9.47 / 9.57 ms | 9.57 / 9.66 / 9.59 ms | | GPU time | 12.20 / 12.20 / 12.20 ms | 12.20 / 12.20 / 12.20 ms | The arena works on this PC (RX 580, 8 GB): every buffer in these lines came from it and none was made at a capture, with about 41 to 43 of its 768 MB in use. `main` has no such line to compare. The renderer's CPU thread was slightly higher with the PR (median 9.59 against 9.47 ms, ranges overlapping), too small to read much into. This is a standing scene after one teleport, not the repeated zone changes where the PR expects its gain.
Owner

Local (RTX 3090) Market A/B: main ee9e1ed76 (A) against PR head 742b45e8f167 merged onto it (B), two builds.

Within the run-to-run spread. Median average FPS changed by -0.4% (125.3 to 124.8).

Pair A (main) fps B (PR) fps A 1% low B 1% low A p99 B p99
1 115.4 110.9 79.7 65.2 12.55 ms 15.34 ms
2 126.2 126.7 106.8 106.2 9.36 ms 9.42 ms
3 125.3 124.8 104.3 100.8 9.59 ms 9.92 ms

Both sides of pair 1 ran about 10 fps under the others (this PC was busy with other work), and its B capture was the worse one; pairs 2 and 3 agree within 0.5 fps.

Time a frame (each capture) A B
Renderer's CPU thread (replay, submit) 7.16 / 6.53 / 6.46 ms 8.96 / 6.45 / 6.66 ms
GPU time 5.10 / 5.10 / 5.10 ms 5.10 / 5.10 / 5.10 ms

The arena is in use with the PR: in each B run's last vk: capture buffers line every buffer came from it and 0 were made at a capture (26 to 46 of 768 MB in use). main has no such line. This is a standing scene after one teleport, not the repeated zone changes where the PR expects its gain.

CPU-bound (GPU 5.1 ms of a frame of about 8 ms). Market (child), headless Linux 7.3.3-1-cachyos, Ryzen 9 7900X, GeForce RTX 3090 with NVIDIA driver 620.70.06, 1920x1080 output at 100% render scale, no upscaler, uncapped with V-Sync and frame generation off. 60 seconds per capture after warm-up, each a timing job of the queue. dev.py ab marked the set only for the two builds' version strings and an internal LONGSHOT_CRASH_BLOCK number differing between runs, neither of which is a setting under test.

Local (RTX 3090) Market A/B: `main` `ee9e1ed76` (A) against PR head `742b45e8f167` merged onto it (B), two builds. **Within the run-to-run spread.** Median average FPS changed by **-0.4%** (125.3 to 124.8). | Pair | A (`main`) fps | B (PR) fps | A 1% low | B 1% low | A p99 | B p99 | |---|---:|---:|---:|---:|---:|---:| | 1 | 115.4 | 110.9 | 79.7 | 65.2 | 12.55 ms | 15.34 ms | | 2 | 126.2 | 126.7 | 106.8 | 106.2 | 9.36 ms | 9.42 ms | | 3 | 125.3 | 124.8 | 104.3 | 100.8 | 9.59 ms | 9.92 ms | Both sides of pair 1 ran about 10 fps under the others (this PC was busy with other work), and its B capture was the worse one; pairs 2 and 3 agree within 0.5 fps. | Time a frame (each capture) | A | B | |---|---:|---:| | Renderer's CPU thread (replay, submit) | 7.16 / 6.53 / 6.46 ms | 8.96 / 6.45 / 6.66 ms | | GPU time | 5.10 / 5.10 / 5.10 ms | 5.10 / 5.10 / 5.10 ms | The arena is in use with the PR: in each B run's last `vk: capture buffers` line every buffer came from it and 0 were made at a capture (26 to 46 of 768 MB in use). `main` has no such line. This is a standing scene after one teleport, not the repeated zone changes where the PR expects its gain. CPU-bound (GPU 5.1 ms of a frame of about 8 ms). Market (child), headless Linux 7.3.3-1-cachyos, Ryzen 9 7900X, GeForce RTX 3090 with NVIDIA driver 620.70.06, 1920x1080 output at 100% render scale, no upscaler, uncapped with V-Sync and frame generation off. 60 seconds per capture after warm-up, each a timing job of the queue. `dev.py ab` marked the set only for the two builds' version strings and an internal `LONGSHOT_CRASH_BLOCK` number differing between runs, neither of which is a setting under test.
fix(vk): the capture arena gives back its blocks that hold no buffer under memory pressure (#3156 review)
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
a5a08d0f83
Review of #3156 (BeanBot, L1). The arena's blocks, up to 768 MB on Linux,
stayed made and mapped for the whole session, under memory pressure too,
while the spares are held to 32 MB then: a retired arena buffer went back to
its block, and an unused block was never let go.

Now an arena buffer retired while linux_pressure_shortfall() reports a
shortfall has the arena give back every block that holds no capture's buffer
(only the allocation that pins it): its memory freed and its pool destroyed
(cap_arena_give_back, vk_vma.cpp). A block still holding one stays until it
holds none. A block given back is not made again: the captures past what is
left take spares or buffers of their own, as before. The arena's block list
is under a mutex of its own now (a leaf), so a buffer made or looked up there
never meets a block being given back. The log's capture buffers line says
how much was given back.

test_capture_buffers_ready: an arena buffer retired with no pressure leaves
the blocks; one retired under pressure has the arena give back.

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

Beanstalk test farm

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

I corrected L1 in a5a08d0f8. I also have some numbers for you:

  • Under memory pressure the arena gives back every block that isn't holding a capture's buffer, when the spares are held to 32 MB, and doesn't make those blocks again
  • VRAM doesn't move: the arena is host memory, up to 768 MB of GTT
  • My Steam Machine has a watcher logging the game's major faults every 10 s. In the sessions that pushed under 1 GB to swap: 581-624 a second on builds without these (3 sessions, 69 min), 0-14 a second with them, a median of 2 (5 sessions, 264 min)

I think your A/B runs are the most accurate FPS numbers I've seen, and no change in a static scene is totally reasonable. The value add here is the fault storms at area changes.

I don't think there's a failure this doesn't cover. And the nit is reasonable: each switch only disables its own component, so I reworded Risks to reflect that.

I corrected L1 in a5a08d0f8. I also have some numbers for you: - Under memory pressure the arena gives back every block that isn't holding a capture's buffer, when the spares are held to 32 MB, and doesn't make those blocks again - VRAM doesn't move: the arena is host memory, up to 768 MB of GTT - My Steam Machine has a watcher logging the game's major faults every 10 s. In the sessions that pushed under 1 GB to swap: 581-624 a second on builds without these (3 sessions, 69 min), 0-14 a second with them, a median of 2 (5 sessions, 264 min) I think your A/B runs are the most accurate FPS numbers I've seen, and no change in a static scene is totally reasonable. The value add here is the fault storms at area changes. I don't think there's a failure this doesn't cover. And the nit is reasonable: each switch only disables its own component, so I reworded Risks to reflect that.
Owner

AMD lab A/B/A/B: main 7bc53f841 (A) against this PR's head a5a08d0f8 merged onto it (B). AMD lab PC: Linux 7.3.3-1-cachyos, Core i7-9700K, 15 GB RAM (zram swap), Radeon RX 580 with Mesa RADV 3:26.2.6-1. A/B/A/B, 90 s per run after a 15 s warm-up, each a timing job in the queue, headless, uncapped, V-Sync and frame generation off.

Scenario: area changes. After one untimed lap, teleports through Hyrule Field, Kakariko, Kokiri Forest, Lost Woods and the Market, 6 s apart plus loading. 1280x720 output, 33 % render scale.

Major faults nearly gone and less time in hitches, but the replay's memory sync costs about 0.4 ms more a frame. Both held in both pairs.

In the measured 90 s A1 B1 A2 B2
Area changes 8 9 8 9
Major page faults (game process) 12229 14 11379 17
Minor page faults 272k 471k 354k 230k
Frames of 50 ms or more 41 33 37 37
Frames of 100 ms or more 23 11 17 12
Time spent in frames of 50 ms or more 5.2 s 3.2 s 4.4 s 3.7 s
memsync_ms, mean of the 12-50 ms frames 0.65 1.05 0.63 1.08
memsync_ms, mean of the frames under 5 ms 0.44 0.99 0.49 1.04
memsync_ms, summed over the run 7.9 s 11.4 s 7.0 s 10.6 s
Median of the 12-50 ms frames 15.39 ms 15.60 ms 15.02 ms 15.91 ms
  • The arena is in use and nothing was made at a capture: vk: capture buffers (600 presents): 2415 in the arena and 2415 back to it (3 blocks, 33 of 768 MB in use, 0 MB given back under memory pressure so far); 0 made at a capture ... (B2: 2305, 86 of 768 MB).
  • The memory sync cost is worth a look before merge. The log's own a frame's replay time (ms): ... memory sync figure is higher on B too (0.67-0.97 ms in each B run's last five lines, 0.36-0.48 ms in A's). The memsync_ms mean of the 12-50 ms frames in #3114's runs, on the same lab PC just before these, was 0.59-0.62 ms on both of its sides, so the machine itself had not shifted. I did not find the cause.
  • Whole-run average fps is not a useful number here: loading screens run at hundreds of fps and dominate it, and it also fell over the session on both sides. A2 was flagged noisy (memory stalls 1.3 %).
  • No Vulkan errors in the logs.

Not covered: memory pressure (the arena gave nothing back here), Steam Deck, Windows. An earlier still-Market A/B here (on 742b45e8f) was within the run-to-run spread.

**AMD lab A/B/A/B:** `main` `7bc53f841` (A) against this PR's head `a5a08d0f8` merged onto it (B). AMD lab PC: Linux 7.3.3-1-cachyos, Core i7-9700K, 15 GB RAM (zram swap), Radeon RX 580 with Mesa RADV 3:26.2.6-1. A/B/A/B, 90 s per run after a 15 s warm-up, each a timing job in the queue, headless, uncapped, V-Sync and frame generation off. Scenario: area changes. After one untimed lap, teleports through Hyrule Field, Kakariko, Kokiri Forest, Lost Woods and the Market, 6 s apart plus loading. 1280x720 output, 33 % render scale. **Major faults nearly gone and less time in hitches, but the replay's memory sync costs about 0.4 ms more a frame.** Both held in both pairs. | In the measured 90 s | A1 | B1 | A2 | B2 | |---|---:|---:|---:|---:| | Area changes | 8 | 9 | 8 | 9 | | Major page faults (game process) | 12229 | 14 | 11379 | 17 | | Minor page faults | 272k | 471k | 354k | 230k | | Frames of 50 ms or more | 41 | 33 | 37 | 37 | | Frames of 100 ms or more | 23 | 11 | 17 | 12 | | Time spent in frames of 50 ms or more | 5.2 s | 3.2 s | 4.4 s | 3.7 s | | `memsync_ms`, mean of the 12-50 ms frames | 0.65 | **1.05** | 0.63 | **1.08** | | `memsync_ms`, mean of the frames under 5 ms | 0.44 | **0.99** | 0.49 | **1.04** | | `memsync_ms`, summed over the run | 7.9 s | **11.4 s** | 7.0 s | **10.6 s** | | Median of the 12-50 ms frames | 15.39 ms | 15.60 ms | 15.02 ms | 15.91 ms | - The arena is in use and nothing was made at a capture: `vk: capture buffers (600 presents): 2415 in the arena and 2415 back to it (3 blocks, 33 of 768 MB in use, 0 MB given back under memory pressure so far); 0 made at a capture ...` (B2: 2305, 86 of 768 MB). - The memory sync cost is worth a look before merge. The log's own `a frame's replay time (ms): ... memory sync` figure is higher on B too (0.67-0.97 ms in each B run's last five lines, 0.36-0.48 ms in A's). The `memsync_ms` mean of the 12-50 ms frames in #3114's runs, on the same lab PC just before these, was 0.59-0.62 ms on both of its sides, so the machine itself had not shifted. I did not find the cause. - Whole-run average fps is not a useful number here: loading screens run at hundreds of fps and dominate it, and it also fell over the session on both sides. A2 was flagged noisy (memory stalls 1.3 %). - No Vulkan errors in the logs. Not covered: memory pressure (the arena gave nothing back here), Steam Deck, Windows. An earlier still-Market A/B here (on `742b45e8f`) was within the run-to-run spread.
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The arena can still retain empty blocks throughout a memory-pressure event when no arena buffer is retired during that event. Area-change runs show fewer major faults and less time in long frames, but also about 0.4 ms more memory-sync time per frame.

The change prepares capture memory ahead of use and reuses mapped arena blocks to reduce allocation and page-fault stalls. It adds up to 768 MB of host memory by default on eligible Linux systems and more allocation and synchronization complexity.

Blocking (1): must change before merging.

  1. L1 gpu/vk/vk_vma.cpp:767: Empty arena blocks are reclaimed only when an arena buffer is retired during pressure. When: If all arena buffers retire before memory pressure begins, the pressure event has no reclamation call and the empty mapped blocks remain allocated until another arena buffer retires while pressure persists. Do: Invoke arena reclamation from the existing memory-pressure handling path as well as on arena-buffer retirement.

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

  • L3 gpu/vk/vk_memory.cpp:1724: The player-visible area-change results are now measured, but the host-memory cost against main remains unknown. When: The arena reserves up to 768 MB on eligible Linux systems; the reported arena usage does not show how much additional resident or committed memory the same workload uses compared with main. Do: Compare peak and steady host-memory use and swap activity against main over repeated matching area-change runs. (@fix does its part first: Make the arena reclaimable under pressure to reduce the persistent memory cost.)
  • L4 gpu/vk/vk_memory.cpp:1630: The changed allocation and prefault paths still need coverage on the other supported systems they affect. When: Windows defaults to prefaulting newly prewarmed buffers and can create a 256 MiB spare; Linux drivers and Steam Deck may have different mapping, memory-pressure and timing behavior from the tested RADV machine. Do: Complete the requested Steam Deck and Windows scene-load comparisons, and test the affected Tier 1 GPU and driver configurations with frame-time and memory observations. (@fix does its part first: Keep unmeasured platform-specific behavior disabled by default until its cost is known.)

@fix can do L1, L3 and L4.

Since the last review (on 742b45e8f1)
Resolved: L2 (The Risks section says each new switch individually restores the old behavior, but each co…)
Still open: L1 (Empty arena blocks are reclaimed only when an arena buffer is retired during pressure.); L3 (The player-visible area-change results are now measured, but the host-memory cost against…); L4 (The changed allocation and prefault paths still need coverage on the other supported syste…)

Checks: Still running: 10 checks.

Also noticed (2; not asked for, not blocking)
  • The AMD area-change runs report approximately 0.4 ms higher memory-sync time per frame; its cause and impact outside the tested workload remain uncertain.
  • The new test substitutes a stand-in for arena reclamation, so it checks the call from capture retirement rather than actual VMA pool destruction.
More: does it help, other systems, switches, what was read

Does it help: Yes, in the AMD lab area-change runs: major faults fell from 12,229 and 11,379 to 14 and 17, while time in frames of at least 50 ms fell from 5.2 and 4.4 seconds to 3.2 and 3.7 seconds. The same runs showed mean memory-sync time roughly 0.4 ms higher per frame; the memory cost has not been compared against main.

Other systems: The arena and ready-buffer paths affect Linux Vulkan drivers and memory budgets; the recorded AMD and NVIDIA Linux runs cover normal operation but not pressure reclamation in game. Windows still uses the prefaulted spare path and needs its requested scene-load comparison; Steam Deck remains untested.

Switches: RX_VK_CAP_PREFAULT defaults on; RX_VK_CAP_READY defaults on for Linux and off for Windows; RX_VK_CAP_ARENA_MB defaults to 768 MB on eligible Linux configurations and otherwise 0. The Linux defaults improve the measured area-change workload, but their memory and memory-sync costs still need evaluation. Rows are present in switches.def.

Reviewed: a5a08d0f83 against 299ed5b704: Read repository agent and contribution rules and the pull request template; docs/review-checklist.md is absent. Read the fix diff and the relevant arena, capture-free and pressure call sites; skimmed the changed test harness and switch rows. The full original diff and all changed code files were not read in full.; nothing run (a code review).

Checked and fine:

  • Arena allocation and reclamation serialize access to the pool list, and blocks with live capture allocations are retained.
  • The revised Risks text distinguishes the three switches.

Testing: No code or tests were run for this review. The author reports game-free tests and a Linux build; CI is still running. Recorded game runs and their limits are described above.

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


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

**Recommendation: Request changes.** The arena can still retain empty blocks throughout a memory-pressure event when no arena buffer is retired during that event. Area-change runs show fewer major faults and less time in long frames, but also about 0.4 ms more memory-sync time per frame. The change prepares capture memory ahead of use and reuses mapped arena blocks to reduce allocation and page-fault stalls. It adds up to 768 MB of host memory by default on eligible Linux systems and more allocation and synchronization complexity. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/vk_vma.cpp:767`: Empty arena blocks are reclaimed only when an arena buffer is retired during pressure. *When:* If all arena buffers retire before memory pressure begins, the pressure event has no reclamation call and the empty mapped blocks remain allocated until another arena buffer retires while pressure persists. **Do:** Invoke arena reclamation from the existing memory-pressure handling path as well as on arena-buffer retirement. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3** `gpu/vk/vk_memory.cpp:1724`: The player-visible area-change results are now measured, but the host-memory cost against main remains unknown. *When:* The arena reserves up to 768 MB on eligible Linux systems; the reported arena usage does not show how much additional resident or committed memory the same workload uses compared with main. **Do:** Compare peak and steady host-memory use and swap activity against main over repeated matching area-change runs. *(`@fix` does its part first: Make the arena reclaimable under pressure to reduce the persistent memory cost.)* - **L4** `gpu/vk/vk_memory.cpp:1630`: The changed allocation and prefault paths still need coverage on the other supported systems they affect. *When:* Windows defaults to prefaulting newly prewarmed buffers and can create a 256 MiB spare; Linux drivers and Steam Deck may have different mapping, memory-pressure and timing behavior from the tested RADV machine. **Do:** Complete the requested Steam Deck and Windows scene-load comparisons, and test the affected Tier 1 GPU and driver configurations with frame-time and memory observations. *(`@fix` does its part first: Keep unmeasured platform-specific behavior disabled by default until its cost is known.)* `@fix` can do L1, L3 and L4. **Since the last review** (on 742b45e8f167) Resolved: L2 (The Risks section says each new switch individually restores the old behavior, but each co…) Still open: L1 (Empty arena blocks are reclaimed only when an arena buffer is retired during pressure.); L3 (The player-visible area-change results are now measured, but the host-memory cost against…); L4 (The changed allocation and prefault paths still need coverage on the other supported syste…) **Checks:** Still running: 10 checks. <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The AMD area-change runs report approximately 0.4 ms higher memory-sync time per frame; its cause and impact outside the tested workload remain uncertain. - The new test substitutes a stand-in for arena reclamation, so it checks the call from capture retirement rather than actual VMA pool destruction. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes, in the AMD lab area-change runs: major faults fell from 12,229 and 11,379 to 14 and 17, while time in frames of at least 50 ms fell from 5.2 and 4.4 seconds to 3.2 and 3.7 seconds. The same runs showed mean memory-sync time roughly 0.4 ms higher per frame; the memory cost has not been compared against main. **Other systems:** The arena and ready-buffer paths affect Linux Vulkan drivers and memory budgets; the recorded AMD and NVIDIA Linux runs cover normal operation but not pressure reclamation in game. Windows still uses the prefaulted spare path and needs its requested scene-load comparison; Steam Deck remains untested. **Switches:** RX_VK_CAP_PREFAULT defaults on; RX_VK_CAP_READY defaults on for Linux and off for Windows; RX_VK_CAP_ARENA_MB defaults to 768 MB on eligible Linux configurations and otherwise 0. The Linux defaults improve the measured area-change workload, but their memory and memory-sync costs still need evaluation. Rows are present in switches.def. **Reviewed:** a5a08d0f834d against 299ed5b704e5: Read repository agent and contribution rules and the pull request template; docs/review-checklist.md is absent. Read the fix diff and the relevant arena, capture-free and pressure call sites; skimmed the changed test harness and switch rows. The full original diff and all changed code files were not read in full.; nothing run (a code review). **Checked and fine:** - Arena allocation and reclamation serialize access to the pool list, and blocks with live capture allocations are retained. - The revised Risks text distinguishes the three switches. **Testing:** No code or tests were run for this review. The author reports game-free tests and a Linux build; CI is still running. Recorded game runs and their limits are described above. **Overlaps and merge order:** Not checked; network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Owner
@fix
BeanBot force-pushed perf/capture-ready from a5a08d0f83
Some checks failed
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 2c439c1b60
Some checks are pending
beanstalk/approval not approved yet
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 8s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Waiting to run
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Waiting to run
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Waiting to run
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Waiting to run
CI / Website build and checks (pull_request) Waiting to run
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
2026-12-05 18:40:59 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The area-change A/B shows fewer major faults and less time in long hitches, but also about 0.4 ms more memory-sync time per frame. Comparable host-memory measurements and the requested Steam Deck and Windows runs remain outstanding. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is 2c439c1b60. I rebased it onto main (f5c97a608e). I edited its description to match the change.

Changed

  • Reclaim idle capture arena blocks: gpu/vk/vk_texture.cpp:7706 reclaims empty blocks on each pressure sample, including blocks idle before pressure began. Updated the source check; it was not run.

Changed in part (the rest is for the author)

  • Host-memory cost against main: gpu/vk/vk_memory.cpp:1976 connects pressure handling to arena reclamation. The author must still measure host-memory use against main under comparable workloads.

Left for the author

  • Steam Deck and Windows coverage: The author must run the requested Steam Deck and Windows scene-load comparisons and decide the defaults from those results. Disabling the new paths by default would undo the pull request’s intended behavior.

Nothing was built or run: the checks run again on the new head.

Capture buffers use prefaulted mapped arena blocks to reduce allocation and page-fault stalls. The fix also reclaims empty blocks during Linux memory-pressure samples; it retains the arena but adds persistent host-memory use and synchronization work.

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

  • L3 gpu/vk/vk_memory.cpp:1724: The player-visible area-change results are now measured, but the host-memory cost against main remains unknown. When: The arena reserves up to 768 MB on eligible Linux systems; the reported arena usage does not show how much additional resident or committed memory the same workload uses compared with main. Do: Compare peak and steady host-memory use and swap activity against main over repeated matching area-change runs.
  • L4 gpu/vk/vk_memory.cpp:1630: The changed allocation and prefault paths still need coverage on the other supported systems they affect. When: Windows defaults to prefaulting newly prewarmed buffers and can create a 256 MiB spare; Linux drivers and Steam Deck may have different mapping, memory-pressure and timing behavior from the tested RADV machine. Do: Complete the requested Steam Deck and Windows scene-load comparisons, and test the affected Tier 1 GPU and driver configurations with frame-time and memory observations.

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (4; not asked for, not blocking)
  • The AMD area-change runs show higher memory-sync time with the PR, and its cause remains unknown.
  • The pressure-sampling test checks source wiring; it does not exercise reclamation after pressure begins.
  • The area-change A/B reports a repeatable increase in memory-sync time whose cause is not identified.
  • The specified base-to-head diff contains many changes beyond the pull request's listed files.
More: does it help, other systems, switches, what was read

Does it help: Yes for the measured Linux area-change workload: major faults fell from 12,229 and 11,379 to 14 and 17, and time in frames of at least 50 ms fell from 5.2 and 4.4 seconds to 3.2 and 3.7 seconds in HumanBean's two A/B pairs. Mean memory-sync time for 12–50 ms frames rose from 0.63–0.65 ms to 1.05–1.08 ms; its cause remains unknown.

Other systems: The arena and ready path default on for Linux, including Steam Deck; Windows retains the prefaulted spare path by default. Steam Deck play, Windows scene loads and comparable host-memory use under pressure remain unmeasured.

Switches: RX_VK_CAP_PREFAULT defaults on; RX_VK_CAP_READY defaults on Linux and off Windows; RX_VK_CAP_ARENA_MB defaults to 768 MB when ready is on and otherwise 0, with a 2048 MB maximum. The rows are present in switches.def; the remaining platform and memory measurements are needed to judge the defaults fully.

Reviewed: 2c439c1b60 against f5c97a608e: Read AGENTS.md, CONTRIBUTING.md, the complete fix diff, tests/test_linux_pressure.py and the relevant arena, capture and pressure-handling sections. Skimmed the larger base diff and commit list; the specified base diff includes 1,058 files beyond the listed pull-request changes, so it was not read in full.; nothing run (a code review).

Checked and fine:

  • The pressure-sample call reaches arena reclamation, which skips blocks containing capture allocations and marks reclaimed blocks unavailable for reuse.
  • The fix preserves the arena and its capture-buffer allocation path.

Testing: No commands that build or run code were executed. The author reports Linux game and test runs; CI has not yet run on this head.

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


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

**Recommendation: Approve.** The code is ready: only testing is left. The area-change A/B shows fewer major faults and less time in long hitches, but also about 0.4 ms more memory-sync time per frame. Comparable host-memory measurements and the requested Steam Deck and Windows runs remain outstanding. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is 2c439c1b605c. I rebased it onto `main` (f5c97a608eb2). I edited its description to match the change. **Changed** - **Reclaim idle capture arena blocks**: [gpu/vk/vk_texture.cpp:7706](/work/longshot-3156-e38c2718f2/gpu/vk/vk_texture.cpp:7706) reclaims empty blocks on each pressure sample, including blocks idle before pressure began. Updated the source check; it was not run. **Changed in part (the rest is for the author)** - **Host-memory cost against main**: [gpu/vk/vk_memory.cpp:1976](/work/longshot-3156-e38c2718f2/gpu/vk/vk_memory.cpp:1976) connects pressure handling to arena reclamation. The author must still measure host-memory use against main under comparable workloads. **Left for the author** - **Steam Deck and Windows coverage**: The author must run the requested Steam Deck and Windows scene-load comparisons and decide the defaults from those results. Disabling the new paths by default would undo the pull request’s intended behavior. Nothing was built or run: the checks run again on the new head. Capture buffers use prefaulted mapped arena blocks to reduce allocation and page-fault stalls. The fix also reclaims empty blocks during Linux memory-pressure samples; it retains the arena but adds persistent host-memory use and synchronization work. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3** `gpu/vk/vk_memory.cpp:1724`: The player-visible area-change results are now measured, but the host-memory cost against main remains unknown. *When:* The arena reserves up to 768 MB on eligible Linux systems; the reported arena usage does not show how much additional resident or committed memory the same workload uses compared with main. **Do:** Compare peak and steady host-memory use and swap activity against main over repeated matching area-change runs. - **L4** `gpu/vk/vk_memory.cpp:1630`: The changed allocation and prefault paths still need coverage on the other supported systems they affect. *When:* Windows defaults to prefaulting newly prewarmed buffers and can create a 256 MiB spare; Linux drivers and Steam Deck may have different mapping, memory-pressure and timing behavior from the tested RADV machine. **Do:** Complete the requested Steam Deck and Windows scene-load comparisons, and test the affected Tier 1 GPU and driver configurations with frame-time and memory observations. **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (4; not asked for, not blocking)</summary> - The AMD area-change runs show higher memory-sync time with the PR, and its cause remains unknown. - The pressure-sampling test checks source wiring; it does not exercise reclamation after pressure begins. - The area-change A/B reports a repeatable increase in memory-sync time whose cause is not identified. - The specified base-to-head diff contains many changes beyond the pull request's listed files. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the measured Linux area-change workload: major faults fell from 12,229 and 11,379 to 14 and 17, and time in frames of at least 50 ms fell from 5.2 and 4.4 seconds to 3.2 and 3.7 seconds in HumanBean's two A/B pairs. Mean memory-sync time for 12–50 ms frames rose from 0.63–0.65 ms to 1.05–1.08 ms; its cause remains unknown. **Other systems:** The arena and ready path default on for Linux, including Steam Deck; Windows retains the prefaulted spare path by default. Steam Deck play, Windows scene loads and comparable host-memory use under pressure remain unmeasured. **Switches:** RX_VK_CAP_PREFAULT defaults on; RX_VK_CAP_READY defaults on Linux and off Windows; RX_VK_CAP_ARENA_MB defaults to 768 MB when ready is on and otherwise 0, with a 2048 MB maximum. The rows are present in switches.def; the remaining platform and memory measurements are needed to judge the defaults fully. **Reviewed:** 2c439c1b605c against f5c97a608eb2: Read AGENTS.md, CONTRIBUTING.md, the complete fix diff, tests/test_linux_pressure.py and the relevant arena, capture and pressure-handling sections. Skimmed the larger base diff and commit list; the specified base diff includes 1,058 files beyond the listed pull-request changes, so it was not read in full.; nothing run (a code review). **Checked and fine:** - The pressure-sample call reaches arena reclamation, which skips blocks containing capture allocations and marks reclaimed blocks unavailable for reuse. - The fix preserves the arena and its capture-buffer allocation path. **Testing:** No commands that build or run code were executed. The author reports Linux game and test runs; CI has not yet run on this head. **Overlaps and merge order:** Not checked; network access is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch perf/capture-ready 2026-12-05 18:44:01 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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!3156
No description provided.