perf(vk): sparse mirrors' block 256 KB on RADV (RX_VK_SPARSE_BLOCK_KB) #3114

Open
decohered wants to merge 3 commits from decohered/Longshot:perf/sparse-block-256k into main
Contributor

Summary

On my Steam Machine the sparse mirrors would hitch on every area change -- and it was due to the size of their blocks.

  • RADV gives sparse buffers a 4 KB alignment, and the mirrors used it as their block: about 240,000 blocks for 938 MB, each its own VMA allocation and bind range
  • On GFX11, RADV maps each range twice (its null-PRT emulation), and the kernel walks a memory block's mapping list to remove one
  • An area change bound and unbound about 100,000 blocks in 10 s, with frames of 400-720 ms

It's a switch now -- if you don't touch it, you get 256 KB on RADV and the driver's own alignment everywhere else, as before. RADV is the only driver I tested this on so it's the only one that changes.

  • RX_VK_SPARSE_BLOCK_KB is rounded up to a power of two, at least the driver's alignment, and never goes over 8 MiB, so #2998's unbind cut still lands on block edges; 0 is the driver's own block
  • Blocks are allocated block-aligned, so each one maps as one fragment
  • The log's vk: sparse binds: line now splits the binds' time into making the ranges, the queue's lock, the held batch's flush and the bind call

Start with sparse_block_for in gpu/vk/vk_vma.cpp, then tests/test_sparse_block.py.

Testing

Tested: I've played on this a lot: one 132-minute session with 64 KB blocks and one of 54 minutes with 256 KB, on builds of my own branch where the block was the only difference.

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

  • tests/test_sparse_block.py passes with clang++ and g++ 16.2.0: 256 KB on RADV, the driver's own block elsewhere, asked sizes rounded up to a power of two, at least the driver's alignment, 8 MiB at most; after review (3319b91af) the code before it fails the test on an asked 100 KB

  • tests/test_sparse_bind_ranges.py, tests/test_sparse_mirror.py and tests/test_sparse_spare.py pass

  • The renderer builds whole at 3319b91af on Linux.

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

    The 16

    byte_compile_tracked, f2i_immediate, global_load_16, native_suatom, test_check_cache, test_checks_container, test_cloth_kernels, test_dav1d_av1, test_game_module_imports, test_lifter, test_lifter_semantics, test_native_zstd, test_run_all_junit, test_thinlto_tls, test_ui_renderer, test_utf8_paths

Still to test:

  • Steam Deck (RADV): play through a few zone changes with sparse mirrors on, expecting no bind failures and less time in the vk: sparse binds: line than main (@Beanstalk play through a few zone changes on a Steam Deck, this PR against main, and compare the log's sparse binds line)

Measurements

Verdict: On RADV, 256 KB blocks spent 38 ms a minute in sparse binds against 320 with 64 KB, and had frames of 100 ms or more 0.07 times a minute against 0.39, with the mirrors holding about the same memory.

Baseline: both columns are builds of my own branch @ 6cb6989ef (not on the forge), one session each on the Steam Machine, differing only in RX_VK_SPARSE_BLOCK_KB. Main binds RADV's 4 KB block, which the Summary's figures describe.

Before, RX_VK_SPARSE_BLOCK_KB=64: my branch @ 6cb6989ef After, RX_VK_SPARSE_BLOCK_KB=256: my branch @ 6cb6989ef
Session 132 min 54 min
Time in sparse binds a minute 320 ms 38 ms
Time a bind call 1.71 ms 0.41 ms
Ranges bound a minute 2,138 560
Frames of 100 ms or more a minute 0.39 0.07
Mirrors' memory, median 1,108 MB 1,081 MB

Risks

The downside is that a larger block can have a little bit of memory that a mirror doesn't need, though I didn't notice it in my sessions. Only RADV changes by default, and RX_VK_SPARSE_BLOCK_KB=0 reverts to the driver's block size.

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.
  • 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 On my Steam Machine the sparse mirrors would hitch on every area change -- and it was due to the size of their blocks. - RADV gives sparse buffers a 4 KB alignment, and the mirrors used it as their block: about 240,000 blocks for 938 MB, each its own VMA allocation and bind range - On GFX11, RADV maps each range twice (its null-PRT emulation), and the kernel walks a memory block's mapping list to remove one - An area change bound and unbound about 100,000 blocks in 10 s, with frames of 400-720 ms It's a switch now -- if you don't touch it, you get 256 KB on RADV and the driver's own alignment everywhere else, as before. RADV is the only driver I tested this on so it's the only one that changes. - `RX_VK_SPARSE_BLOCK_KB` is rounded up to a power of two, at least the driver's alignment, and never goes over 8 MiB, so #2998's unbind cut still lands on block edges; `0` is the driver's own block - Blocks are allocated block-aligned, so each one maps as one fragment - The log's `vk: sparse binds:` line now splits the binds' time into making the ranges, the queue's lock, the held batch's flush and the bind call Start with `sparse_block_for` in `gpu/vk/vk_vma.cpp`, then `tests/test_sparse_block.py`. ## Testing **Tested:** I've played on this a lot: one 132-minute session with 64 KB blocks and one of 54 minutes with 256 KB, on builds of my own branch where the block was the only difference. - Steam Machine: Navi 33 8 GB, SteamOS 3.10.1, kernel 7.3.1-valve3, RADV steamos-26.05.20 - `tests/test_sparse_block.py` passes with clang++ and g++ 16.2.0: 256 KB on RADV, the driver's own block elsewhere, asked sizes rounded up to a power of two, at least the driver's alignment, 8 MiB at most; after review (3319b91af) the code before it fails the test on an asked 100 KB - `tests/test_sparse_bind_ranges.py`, `tests/test_sparse_mirror.py` and `tests/test_sparse_spare.py` pass - The renderer builds whole at 3319b91af on Linux. - `mise run test` on Linux at 0bc26a2c8: 863 pass, 12 skip (Windows only or a device it needs), 16 fail. The same 16 fail on main @ 76092c5e5 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 16</summary> byte_compile_tracked, f2i_immediate, global_load_16, native_suatom, test_check_cache, test_checks_container, test_cloth_kernels, test_dav1d_av1, test_game_module_imports, test_lifter, test_lifter_semantics, test_native_zstd, test_run_all_junit, test_thinlto_tls, test_ui_renderer, test_utf8_paths </details> **Still to test:** - Steam Deck (RADV): play through a few zone changes with sparse mirrors on, expecting no bind failures and less time in the `vk: sparse binds:` line than main (@Beanstalk play through a few zone changes on a Steam Deck, this PR against main, and compare the log's sparse binds line) ## Measurements **Verdict:** On RADV, 256 KB blocks spent 38 ms a minute in sparse binds against 320 with 64 KB, and had frames of 100 ms or more 0.07 times a minute against 0.39, with the mirrors holding about the same memory. Baseline: both columns are builds of my own branch @ 6cb6989ef (not on the forge), one session each on the Steam Machine, differing only in `RX_VK_SPARSE_BLOCK_KB`. Main binds RADV's 4 KB block, which the Summary's figures describe. | | Before, RX_VK_SPARSE_BLOCK_KB=64: my branch @ 6cb6989ef | After, RX_VK_SPARSE_BLOCK_KB=256: my branch @ 6cb6989ef | |---|---|---| | Session | 132 min | 54 min | | Time in sparse binds a minute | 320 ms | 38 ms | | Time a bind call | 1.71 ms | 0.41 ms | | Ranges bound a minute | 2,138 | 560 | | Frames of 100 ms or more a minute | 0.39 | 0.07 | | Mirrors' memory, median | 1,108 MB | 1,081 MB | ## Risks The downside is that a larger block can have a little bit of memory that a mirror doesn't need, though I didn't notice it in my sessions. Only RADV changes by default, and `RX_VK_SPARSE_BLOCK_KB=0` reverts to the driver's block size. ## 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] 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)
RADV gives sparse buffers a 4 KB alignment, and the mirrors' block was that
alignment: ~240,000 blocks for 938 MB on a Steam Machine, each its own VMA
allocation and bind range. On GFX11 RADV maps each range twice (the null-PRT
emulation), the kernel's removal of a mapping walks its memory block's
mapping list, and a 4 KB mapping takes 4 KB page-table fragments; an area
change bound and unbound ~100,000 blocks in 10 s, with 400-720 ms frames.
The block is now RX_VK_SPARSE_BLOCK_KB (64) rounded up to a multiple of the
driver's alignment (0: the driver's own), allocated block-aligned, so a block
maps as one 64 KB fragment.

The log's new "vk: sparse binds:" line splits the binds' time into the
queue's lock (the recorder settled first), the held batch's flush and the
bind call, with the ranges sent, the blocks new mirrors bound and the blocks
grown again after a release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
perf(vk): sparse mirrors' block 256 KB on RADV, the driver's own elsewhere (RX_VK_SPARSE_BLOCK_KB)
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
0bc26a2c83
On a Steam Machine (RADV, Navi 33) a 132-minute session with 64 KB blocks
spent 320 ms a minute in the sparse binds (1.71 ms a call, 2,138 ranges a
minute) and had frames of 100 ms or more 0.39 times a minute; a 54-minute
session with 256 KB spent 38 ms a minute (0.41 ms a call, 560 ranges a
minute), 0.07 times a minute, the mirrors holding about the same memory
(1,108 MB against 1,081, medians).

Only RADV was measured, so the default is RADV's: another driver keeps its
own alignment, as before, unless the switch asks for a block.
RX_VK_SPARSE_BLOCK_KB=64 gives the previous block, 0 the driver's own.

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

Possibly related, for context:

  • PR #2002 WIP: perf(vk): a sparse mirror's block span by shifts for a power-of-two block — Open sparse-mirror block-span optimization in adjacent code
  • issue #585 Idea: sparse mirrors cost 1-4 ms of GPU a frame on an RX 5600 XT; whole mirrors are faster until their budget fills (runs wanted on other 6 GB cards) — Open sparse-mirror performance discussion; distinct GPU-frame-cost symptom
Possibly related, for context: - PR #2002 WIP: perf(vk): a sparse mirror's block span by shifts for a power-of-two block — Open sparse-mirror block-span optimization in adjacent code - issue #585 Idea: sparse mirrors cost 1-4 ms of GPU a frame on an RX 5600 XT; whole mirrors are faster until their budget fills (runs wanted on other 6 GB cards) — Open sparse-mirror performance discussion; distinct GPU-frame-cost symptom
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The override can pass a non-power-of-two alignment to VMA, and the new timing log attributes range preparation to queue-lock contention. The claimed performance gain also needs a controlled comparison with main and a Steam Deck run.

The change uses larger sparse-mirror blocks by default on RADV to reduce allocations and bind ranges. It also adds an override and bind timing counters; arbitrary override values need safer alignment handling.

Blocking (1): must change before merging.

  1. L1 gpu/vk/vk_vma.cpp:775: The override can produce an alignment that is not a power of two, which is then passed to VMA as a VkMemoryRequirements alignment. (more on the line) Do: Round the requested block to a valid power-of-two alignment, retain the driver's minimum, and test the resulting allocation contract.

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

  • L2 gpu/vk/vk_memory.cpp:4676: The reported queue-lock time includes all range preparation before the lock is attempted. (more on the line) Do: Take a timestamp immediately before acquiring present_mu and use it for lock wait; report preparation separately if it is useful.

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

  • L3: The gain and default have not been measured against main under comparable conditions. When: The reported 64 KB and 256 KB sessions differ in duration and were each run once on an unpublished branch; main uses 4 KB. Area and workload differences can account for part of the reported bind and hitch rates. Do: Compare main at the stated base with this head at its default on the same representative area and settings, with at least two interleaved runs each; report bind time, frame times, 1% lows and memory.
  • L4: The new RADV default has not been tested on Steam Deck. When: Steam Deck uses RADV and therefore receives the larger blocks; the reported game sessions cover only Navi 33, leaving its bind behavior and memory cost on the Deck unknown. Do: Run the requested area transitions on Steam Deck against main and this head, checking bind failures, frame times and mirror memory.

@fix can do L1 and L2.

Checks: Still running: 11 checks.

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

Does it help: Unproven. One 132-minute session at 64 KB reported 320 ms/minute in sparse binds and one 54-minute session at 256 KB reported 38 ms/minute, but neither was the PR against main, and the sessions were not repeated on the same route.

Other systems: The default changes RADV sparse mirrors, including Steam Deck; the override affects other Vulkan drivers too. The bind timing instrumentation runs on every driver using sparse mirrors. The author reports a Linux renderer build and RADV play, but Steam Deck and controlled main-versus-PR results remain outstanding.

Switches: RX_VK_SPARSE_BLOCK_KB is new: unset selects 256 KB on RADV and driver alignment elsewhere; 0 selects driver alignment. Its table row is present. The RADV default needs controlled measurements, and arbitrary values must produce a valid allocation alignment.

Reviewed: 0bc26a2c83 against 76092c5e5a: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the complete diff and commits, both changed tests, sparse_mirror.h, and the sparse allocation, bind, growth, release and logging paths. Skimmed the remainder of the large changed renderer files and switch table; did not read them in full. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).

Checked and fine:

  • Both commits record AI assistance.
  • The diff contains no game-derived files, generated outputs or third-party changes.
  • The new switch has a switches.def row, and its test clears the switch from the inherited environment.
  • The added counters in the examined sparse paths are protected by pools_mu.

Testing: No code or tests were run, as requested. The author reports Linux game sessions, sparse tests and a renderer build; CI is still running.

Overlaps and merge order: Not checked; network access was unavailable.


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

**Recommendation: Request changes.** The override can pass a non-power-of-two alignment to VMA, and the new timing log attributes range preparation to queue-lock contention. The claimed performance gain also needs a controlled comparison with main and a Steam Deck run. The change uses larger sparse-mirror blocks by default on RADV to reduce allocations and bind ranges. It also adds an override and bind timing counters; arbitrary override values need safer alignment handling. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/vk_vma.cpp:775`: The override can produce an alignment that is not a power of two, which is then passed to VMA as a VkMemoryRequirements alignment. (more on the line) **Do:** Round the requested block to a valid power-of-two alignment, retain the driver's minimum, and test the resulting allocation contract. **Should fix (1)**: not blocking, but worth doing before merging. - **L2** `gpu/vk/vk_memory.cpp:4676`: The reported queue-lock time includes all range preparation before the lock is attempted. (more on the line) **Do:** Take a timestamp immediately before acquiring present_mu and use it for lock wait; report preparation separately if it is useful. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The gain and default have not been measured against main under comparable conditions. *When:* The reported 64 KB and 256 KB sessions differ in duration and were each run once on an unpublished branch; main uses 4 KB. Area and workload differences can account for part of the reported bind and hitch rates. **Do:** Compare main at the stated base with this head at its default on the same representative area and settings, with at least two interleaved runs each; report bind time, frame times, 1% lows and memory. - **L4**: The new RADV default has not been tested on Steam Deck. *When:* Steam Deck uses RADV and therefore receives the larger blocks; the reported game sessions cover only Navi 33, leaving its bind behavior and memory cost on the Deck unknown. **Do:** Run the requested area transitions on Steam Deck against main and this head, checking bind failures, frame times and mirror memory. `@fix` can do L1 and L2. **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. One 132-minute session at 64 KB reported 320 ms/minute in sparse binds and one 54-minute session at 256 KB reported 38 ms/minute, but neither was the PR against main, and the sessions were not repeated on the same route. **Other systems:** The default changes RADV sparse mirrors, including Steam Deck; the override affects other Vulkan drivers too. The bind timing instrumentation runs on every driver using sparse mirrors. The author reports a Linux renderer build and RADV play, but Steam Deck and controlled main-versus-PR results remain outstanding. **Switches:** RX_VK_SPARSE_BLOCK_KB is new: unset selects 256 KB on RADV and driver alignment elsewhere; 0 selects driver alignment. Its table row is present. The RADV default needs controlled measurements, and arbitrary values must produce a valid allocation alignment. **Reviewed:** 0bc26a2c83b6 against 76092c5e5a3b: Read AGENTS.md, CONTRIBUTING.md, the PR template, relevant standards, the complete diff and commits, both changed tests, sparse_mirror.h, and the sparse allocation, bind, growth, release and logging paths. Skimmed the remainder of the large changed renderer files and switch table; did not read them in full. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review). **Checked and fine:** - Both commits record AI assistance. - The diff contains no game-derived files, generated outputs or third-party changes. - The new switch has a switches.def row, and its test clears the switch from the inherited environment. - The added counters in the examined sparse paths are protected by pools_mu. **Testing:** No code or tests were run, as requested. The author reports Linux game sessions, sparse tests and a renderer build; CI is still running. **Overlaps and merge order:** Not checked; network access was unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -4663,0 +4673,4 @@
const auto t_end = std::chrono::steady_clock::now();
const double all = ms(t_end - t0).count();
st_sparse_bind_ms += all;
st_sparse_lock_ms += ms(t_locked - t0).count();
Member

L2 (should fix): The reported queue-lock time includes all range preparation before the lock is attempted.

When: For a bind with many ranges, t0 is taken before the merge, cut and vector allocations, while t_locked is taken after acquiring present_mu. Their difference attributes that CPU work to waiting for the queue lock, so the new diagnostic identifies the wrong source of time.

Do: Take a timestamp immediately before acquiring present_mu and use it for lock wait; report preparation separately if it is useful.

**L2** (should fix): The reported queue-lock time includes all range preparation before the lock is attempted. *When:* For a bind with many ranges, t0 is taken before the merge, cut and vector allocations, while t_locked is taken after acquiring present_mu. Their difference attributes that CPU work to waiting for the queue lock, so the new diagnostic identifies the wrong source of time. **Do:** Take a timestamp immediately before acquiring present_mu and use it for lock wait; report preparation separately if it is useful.
@ -758,0 +772,4 @@
return std::min<uint64_t>((uint64_t)kb << 10, 8ull << 20);
}();
const uint64_t a = std::max<uint64_t>(driver_alignment, 1);
const uint64_t b = (std::max(asked, a) + a - 1) / a * a;
Member

L1 (blocking): The override can produce an alignment that is not a power of two, which is then passed to VMA as a VkMemoryRequirements alignment.

When: With RX_VK_SPARSE_BLOCK_KB=100 and RADV's 4 KB alignment, this returns 102400 bytes. alloc_sparse_block passes that value as r.alignment to vmaAllocateMemory, whose allocation alignment must be a power of two; allocations can assert or be aligned incorrectly.

Do: Round the requested block to a valid power-of-two alignment, retain the driver's minimum, and test the resulting allocation contract.

**L1** (blocking): The override can produce an alignment that is not a power of two, which is then passed to VMA as a VkMemoryRequirements alignment. *When:* With RX_VK_SPARSE_BLOCK_KB=100 and RADV's 4 KB alignment, this returns 102400 bytes. alloc_sparse_block passes that value as r.alignment to vmaAllocateMemory, whose allocation alignment must be a power of two; allocations can assert or be aligned incorrectly. **Do:** Round the requested block to a valid power-of-two alignment, retain the driver's minimum, and test the resulting allocation contract.
Author
Contributor

That one was my mistake -- both are fixed in 3319b91af.

Now, an asked block size will be rounded up to the next power of two, and will never be less than the driver's alignment. So if you ask for 100 KB, you'll get 128 KB. RADV will still get 256 KB by default. I added 100, 300, and 3 KB to the test and the old code fails it.

The log was slightly misleading as well. The lock's time starts right before the lock now, and making the ranges is a separate number.

That one was my mistake -- both are fixed in 3319b91af. Now, an asked block size will be rounded up to the next power of two, and will never be less than the driver's alignment. So if you ask for 100 KB, you'll get 128 KB. RADV will still get 256 KB by default. I added 100, 300, and 3 KB to the test and the old code fails it. The log was slightly misleading as well. The lock's time starts right before the lock now, and making the ranges is a separate number.
fix(vk): the sparse block is a power of two, and the binds' lock time starts at the lock (#3114 review)
Some checks reported errors
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 2 error
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/igpu 0/1 pass, 2 error
3319b91af8
Review of #3114 (BeanBot, L1-L2). RX_VK_SPARSE_BLOCK_KB=100 gave a block of
100 KB, which goes to VMA as an alignment, and an alignment must be a power
of two: the block is now the asked size rounded up to a power of two, at
least the driver's alignment (itself a power of two, so the block stays a
multiple of it). 256 KB, RADV's default, is unchanged.

The "vk: sparse binds:" line counted the ranges' making as the wait for the
queue's lock: the lock's time now starts just before the lock is taken, and
the ranges' making has its own figure.

test_sparse_block: 100 KB asked gives 128 KB, 300 KB gives 512 KB, 3 KB the
driver's 64 KB.

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

@Beanstalk
@review

@Beanstalk @review
Member

Beanstalk test farm · ⚠️ couldn't be judged on linux+radv, steamdeck, windows+amd and 3 more

Commit 3319b91 · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The sparse-bind timing line is new, so its captured total cannot be compared directly with main by this plan; it is unjudged if sparse mirrors or the diagnostic line are not reached.
⚠️ Note: VRAM peak is a whole-GPU proxy, not mirror-only memory; the short scripted route cannot reproduce the reported long-session bind and hitch rates.
⚠️ Note: The override’s rounding and block-size extremes are not exercised; the plan tests the shipped default against main.

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

The change could not be judged on linux+radv, Steam Deck, windows+amd, NVIDIA, Intel or iGPU. Every report hit the same baseline tools.lock error before the game ran: the SDL URLs on line 32 were not Longshot’s store URLs. No performance or other scenario measurements are available.

Done (started 06:50 UTC, last report 15:06 UTC). Comment @Beanstalk to run it again.

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

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

  • 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
  • steamdeck, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • steamdeck, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • windows+amd, report 1: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • windows+amd, report 2: main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's
  • 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
  • and 4 more, in the reports
What was tested

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

The plan compares main and the PR across several area changes through Hyrule Field, Market and Kakariko, with three interleaved starts per side and 20-second warmed measurements in each area. It records frame times, transition hitches and load times, VRAM, pictures, and the PR’s sparse-bind timing log. Crashes, sparse-bind failures, substantial timing or memory regressions, and large picture differences fail the PR. The Steam Deck target will wait for a tester to come online. No tester online now matches steamdeck: that target waits for one.

  • Where: linux+radv (1-2 reports), steamdeck (1-2 reports), windows+amd (1-2 reports), nvidia (1-2 reports), intel (1-2 reports), igpu (1-2 reports).
  • area-transitions: 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, VRAM use, the game's log (an expected line that never appears: could not be judged), numbers from the game's log.
  • The PR fails if: it crashes; or a picture differs from main by more than 30%; or peak VRAM is more than 20% above main; or longest load is more than 20% above main; or frame time (p99) is more than 20% above main; or forbidden log lines is above 0; or worst frame time in the whole run is more than 50% above main; or frame time (worst 1%) is more than 20% above main.
  • Time: about 40 min of game runs per tester (6 game starts), plus the two builds.
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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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: could not be judged on steamdeck (2 reports).

Hardware: 1: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM; 2: linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
Scene: area-transitions, 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); area-transitions: 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 steamdeck (2 reports).

Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`  
Scene: area-transitions, 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); area-transitions: 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+amd`, for the PR description

Verdict: could not be judged on windows+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: windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
Scene: area-transitions, 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); area-transitions: 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+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: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM`  
Scene: area-transitions, 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); area-transitions: 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 `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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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.
The testers' hardware
Target Report Ran on
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
steamdeck 1 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
steamdeck 2 linux+amd+radv+igpu+handheld AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99 AMD Custom APU 0405, 16 GB RAM
windows+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
windows+amd 2 windows+amd+amd-proprietary+dgpu+window+fsr4 AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM
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
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
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
<!-- beanstalk:sticky --> ### Beanstalk test farm · ⚠️ couldn't be judged on linux+radv, steamdeck, windows+amd and 3 more Commit `3319b91` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/3114) ⚠️ **Note:** The sparse-bind timing line is new, so its captured total cannot be compared directly with main by this plan; it is unjudged if sparse mirrors or the diagnostic line are not reached. ⚠️ **Note:** VRAM peak is a whole-GPU proxy, not mirror-only memory; the short scripted route cannot reproduce the reported long-session bind and hitch rates. ⚠️ **Note:** The override’s rounding and block-size extremes are not exercised; the plan tests the shipped default against main. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The change could not be judged on linux+radv, Steam Deck, windows+amd, NVIDIA, Intel or iGPU. Every report hit the same baseline tools.lock error before the game ran: the SDL URLs on line 32 were not Longshot’s store URLs. No performance or other scenario measurements are available. Done (started 06:50 UTC, last report 15:06 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `linux+radv` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_1e205fa333028055) [2](https://beanstalk.magicbean.dev/reports/rp_f09eaf3b2203f9bb) | — | — | none | | `steamdeck` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_27621da230d91664) [2](https://beanstalk.magicbean.dev/reports/rp_5f3eef4c0f77851c) | — | — | none | | `windows+amd` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_504c6970a79bdb20) [2](https://beanstalk.magicbean.dev/reports/rp_ef974f082f1b1a67) | — | — | none | | `nvidia` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_56bfe0700e584916) [2](https://beanstalk.magicbean.dev/reports/rp_577e3126feed2c1a) | — | — | none | | `intel` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_5d7e80a70d3b5d22) [2](https://beanstalk.magicbean.dev/reports/rp_bb822f25311237b5) | — | — | none | | `igpu` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_fec3d6e4c469a950) [2](https://beanstalk.magicbean.dev/reports/rp_033947e3af905316) | — | — | 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. - `linux+radv`, [report 1](https://beanstalk.magicbean.dev/reports/rp_1e205fa333028055): `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_f09eaf3b2203f9bb): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `steamdeck`, [report 1](https://beanstalk.magicbean.dev/reports/rp_27621da230d91664): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `steamdeck`, [report 2](https://beanstalk.magicbean.dev/reports/rp_5f3eef4c0f77851c): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `windows+amd`, [report 1](https://beanstalk.magicbean.dev/reports/rp_504c6970a79bdb20): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `windows+amd`, [report 2](https://beanstalk.magicbean.dev/reports/rp_ef974f082f1b1a67): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - `nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_56bfe0700e584916): `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_577e3126feed2c1a): `main's tools.lock: tools.lock line 32 (sdl): its first URLs are not Longshot's store's` - and 4 more, in the reports <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The plan compares main and the PR across several area changes through Hyrule Field, Market and Kakariko, with three interleaved starts per side and 20-second warmed measurements in each area. It records frame times, transition hitches and load times, VRAM, pictures, and the PR’s sparse-bind timing log. Crashes, sparse-bind failures, substantial timing or memory regressions, and large picture differences fail the PR. The Steam Deck target will wait for a tester to come online. No tester online now matches steamdeck: that target waits for one. - **Where:** linux+radv (1-2 reports), steamdeck (1-2 reports), windows+amd (1-2 reports), nvidia (1-2 reports), intel (1-2 reports), igpu (1-2 reports). - **area-transitions:** 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, VRAM use, the game's log (an expected line that never appears: could not be judged), numbers from the game's log. - **The PR fails if:** it crashes; or a picture differs from main by more than 30%; or peak VRAM is more than 20% above main; or longest load is more than 20% above main; or frame time (p99) is more than 20% above main; or forbidden log lines is above 0; or worst frame time in the whole run is more than 50% above main; or frame time (worst 1%) is more than 20% above main. - **Time:** about 40 min of game runs per tester (6 game starts), plus the two builds. </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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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:** could not be judged on steamdeck (2 reports). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: area-transitions, 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); area-transitions: 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 steamdeck (2 reports). Hardware: 1: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM`; 2: linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` Scene: area-transitions, 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); area-transitions: 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+amd`, for the PR description</summary> **Verdict:** could not be judged on windows+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: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` Scene: area-transitions, 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); area-transitions: 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+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: windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` Scene: area-transitions, 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); area-transitions: 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 `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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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: area-transitions, 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); area-transitions: 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>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_1e205fa333028055) | 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_f09eaf3b2203f9bb) | 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` | | `steamdeck` | [1](https://beanstalk.magicbean.dev/reports/rp_27621da230d91664) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | | `steamdeck` | [2](https://beanstalk.magicbean.dev/reports/rp_5f3eef4c0f77851c) | linux+amd+radv+igpu+handheld `AMD Custom GPU 0405 (RADV VANGOGH), 26.1.99` `AMD Custom APU 0405, 16 GB RAM` | | `windows+amd` | [1](https://beanstalk.magicbean.dev/reports/rp_504c6970a79bdb20) | 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+amd` | [2](https://beanstalk.magicbean.dev/reports/rp_ef974f082f1b1a67) | windows+amd+amd-proprietary+dgpu+window+fsr4 `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 9 7950X 16-Core Processor, 128 GB RAM` | | `nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_56bfe0700e584916) | 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_577e3126feed2c1a) | 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` | | `intel` | [1](https://beanstalk.magicbean.dev/reports/rp_5d7e80a70d3b5d22) | 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_bb822f25311237b5) | 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` | | `igpu` | [1](https://beanstalk.magicbean.dev/reports/rp_fec3d6e4c469a950) | 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_033947e3af905316) | 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` | </details>
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The alignment and timing fixes address the code findings. The performance gain against main and the RADV default on Steam Deck still need comparable runs. Recommend approval; not approved on the forge.

The change uses larger sparse mirror blocks by default on RADV to reduce bind work and separates range preparation from queue-lock timing. It adds an override and instrumentation, with a potential memory cost from larger blocks.

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

  • L3: The gain and default have not been measured against main under comparable conditions. When: The reported 64 KB and 256 KB sessions differ in duration and were each run once on an unpublished branch; main uses 4 KB. Area and workload differences can account for part of the reported bind and hitch rates. Do: Compare main at the stated base with this head at its default on the same representative area and settings, with at least two interleaved runs each; report bind time, frame times, 1% lows and memory.
  • L4: The new RADV default has not been tested on Steam Deck. When: Steam Deck uses RADV and therefore receives the larger blocks; the reported game sessions cover only Navi 33, leaving its bind behavior and memory cost on the Deck unknown. Do: Run the requested area transitions on Steam Deck against main and this head, checking bind failures, frame times and mirror memory.

Since the last review (on 0bc26a2c83)
Resolved: L1 (The override can produce an alignment that is not a power of two, which is then passed to…); L2 (The reported queue-lock time includes all range preparation before the lock is attempted.)
Still open: L3 (The gain and default have not been measured against main under comparable conditions.); L4 (The new RADV default has not been tested on Steam Deck.)

Checks: Still running: 11 checks.

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

Does it help: Unproven against main. The author's single sessions on a Steam Machine reported 38 ms of sparse binds per minute with 256 KB blocks versus 320 ms with 64 KB, and 0.07 versus 0.39 frames of at least 100 ms per minute; neither session used main's 4 KB default or a matched route.

Other systems: The default changes RADV sparse buffers, including Steam Deck; a Deck run remains outstanding. Other drivers retain their alignment by default, although the override can change their blocks too. The author reports a Linux renderer build and game-free checks; Windows renderer CI is still running.

Switches: RX_VK_SPARSE_BLOCK_KB is new: unset defaults to 256 KB on RADV and the driver's alignment elsewhere; 0 selects the driver's alignment. The RADV default still needs comparable measurement and a Deck run.

Reviewed: 3319b91af8 against 76092c5e5a: Read the diff, commit list, repository guidance, sparse block calculation, allocation and bind paths, and the sparse block test. Skimmed the larger changed renderer files and bind-range test; the full changed renderer files were not read.; nothing run (a code review).

Checked and fine:

  • The new test cases cover 100 KB and 300 KB overrides and an override below the driver alignment.
  • The timing log includes the new preparation counter.

Testing: No commands from the project were run. The author reports Linux renderer and sparse tests passing; CI is still running.

Overlaps and merge order: Not checked; network unavailable.


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

**Recommendation: Approve.** The code is ready: only testing is left. The alignment and timing fixes address the code findings. The performance gain against main and the RADV default on Steam Deck still need comparable runs. Recommend approval; not approved on the forge. The change uses larger sparse mirror blocks by default on RADV to reduce bind work and separates range preparation from queue-lock timing. It adds an override and instrumentation, with a potential memory cost from larger blocks. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The gain and default have not been measured against main under comparable conditions. *When:* The reported 64 KB and 256 KB sessions differ in duration and were each run once on an unpublished branch; main uses 4 KB. Area and workload differences can account for part of the reported bind and hitch rates. **Do:** Compare main at the stated base with this head at its default on the same representative area and settings, with at least two interleaved runs each; report bind time, frame times, 1% lows and memory. - **L4**: The new RADV default has not been tested on Steam Deck. *When:* Steam Deck uses RADV and therefore receives the larger blocks; the reported game sessions cover only Navi 33, leaving its bind behavior and memory cost on the Deck unknown. **Do:** Run the requested area transitions on Steam Deck against main and this head, checking bind failures, frame times and mirror memory. **Since the last review** (on 0bc26a2c83b6) Resolved: L1 (The override can produce an alignment that is not a power of two, which is then passed to…); L2 (The reported queue-lock time includes all range preparation before the lock is attempted.) Still open: L3 (The gain and default have not been measured against main under comparable conditions.); L4 (The new RADV default has not been tested on Steam Deck.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against main. The author's single sessions on a Steam Machine reported 38 ms of sparse binds per minute with 256 KB blocks versus 320 ms with 64 KB, and 0.07 versus 0.39 frames of at least 100 ms per minute; neither session used main's 4 KB default or a matched route. **Other systems:** The default changes RADV sparse buffers, including Steam Deck; a Deck run remains outstanding. Other drivers retain their alignment by default, although the override can change their blocks too. The author reports a Linux renderer build and game-free checks; Windows renderer CI is still running. **Switches:** RX_VK_SPARSE_BLOCK_KB is new: unset defaults to 256 KB on RADV and the driver's alignment elsewhere; 0 selects the driver's alignment. The RADV default still needs comparable measurement and a Deck run. **Reviewed:** 3319b91af82f against 76092c5e5a3b: Read the diff, commit list, repository guidance, sparse block calculation, allocation and bind paths, and the sparse block test. Skimmed the larger changed renderer files and bind-range test; the full changed renderer files were not read.; nothing run (a code review). **Checked and fine:** - The new test cases cover 100 KB and 300 KB overrides and an override below the driver alignment. - The timing log includes the new preparation counter. **Testing:** No commands from the project were run. The author reports Linux renderer and sparse tests passing; CI is still running. **Overlaps and merge order:** Not checked; network unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Owner

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

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

Metric A (main) B (PR)
Average FPS, each capture 60.44 / 61.66 / 59.26 60.29 / 61.26 / 59.78
Average FPS, median 60.44 60.29
1% low FPS (1000 ÷ p99), median 51.57 49.81
Median frame time 16.53 ms 16.54 ms
p99 frame time, median 19.39 ms 20.08 ms
Frames of 50 ms or more, each capture 0 / 0 / 1 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: sparse binds: log line:

A1: (no such line)
B1: vk: sparse binds: 448 calls, 120.6 ms (the ranges made 0.4, the queue's lock 56.5, the held batch's flush 0.0, the bind 63.7; the longest 55.7); 1734 ranges (the most in a call 93); blocks bound by new mirrors 9805, grown again after a release 478
A2: (no such line)
B2: vk: sparse binds: 490 calls, 90.2 ms (the ranges made 0.4, the queue's lock 5.1, the held batch's flush 0.0, the bind 84.7; the longest 3.9); 1949 ranges (the most in a call 112); blocks bound by new mirrors 10851, grown again after a release 560
A3: (no such line)
B3: vk: sparse binds: 246 calls, 43.6 ms (the ranges made 0.2, the queue's lock 2.7, the held batch's flush 0.0, the bind 40.7; the longest 3.4); 1074 ranges (the most in a call 97); blocks bound by new mirrors 8572, grown again after a release 212
Time a frame (each capture) A B
Renderer's CPU thread (replay, submit) 9.32 / 9.32 / 9.46 ms 9.41 / 9.27 / 9.23 ms
GPU time 12.20 / 12.20 / 12.40 ms 12.20 / 12.20 / 12.40 ms

On this RX 580 the driver's own sparse block is 64 KB (not the 4 KB of your Steam Machine), so the PR changes 64 KB to 256 KB here. main has no sparse binds line, so the two sides are compared on each run's last vk: sparse mirrors: line (cumulative for the run: boot, teleport to the Market, then the standing capture):

A (main), each run B (PR), each run
Binds 183 / 179 / 282 448 / 490 / 246
Time in binds 104.5 / 110.5 / 58.0 ms 120.6 / 90.2 / 43.6 ms
Mirrors' memory in use 860 / 881 / 903 MB 902 / 912 / 912 MB

Bind time overlaps between the sides; the PR's mirrors held a little more memory (about 10 to 40 MB). This is a single teleport and a still scene, not the repeated area changes the PR is about, so it says nothing either way about those hitches.

AMD Lab Market A/B: `main` `ee9e1ed76` (A) against PR head `3319b91af82f` merged onto it (B), two builds. **Within the run-to-run spread.** Median average FPS changed by **-0.24%**. | Metric | A (`main`) | B (PR) | |---|---:|---:| | Average FPS, each capture | 60.44 / 61.66 / 59.26 | 60.29 / 61.26 / 59.78 | | Average FPS, median | 60.44 | 60.29 | | 1% low FPS (1000 ÷ p99), median | 51.57 | 49.81 | | Median frame time | 16.53 ms | 16.54 ms | | p99 frame time, median | 19.39 ms | 20.08 ms | | Frames of 50 ms or more, each capture | 0 / 0 / 1 | 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: sparse binds:` log line: ``` A1: (no such line) B1: vk: sparse binds: 448 calls, 120.6 ms (the ranges made 0.4, the queue's lock 56.5, the held batch's flush 0.0, the bind 63.7; the longest 55.7); 1734 ranges (the most in a call 93); blocks bound by new mirrors 9805, grown again after a release 478 A2: (no such line) B2: vk: sparse binds: 490 calls, 90.2 ms (the ranges made 0.4, the queue's lock 5.1, the held batch's flush 0.0, the bind 84.7; the longest 3.9); 1949 ranges (the most in a call 112); blocks bound by new mirrors 10851, grown again after a release 560 A3: (no such line) B3: vk: sparse binds: 246 calls, 43.6 ms (the ranges made 0.2, the queue's lock 2.7, the held batch's flush 0.0, the bind 40.7; the longest 3.4); 1074 ranges (the most in a call 97); blocks bound by new mirrors 8572, grown again after a release 212 ``` | Time a frame (each capture) | A | B | |---|---:|---:| | Renderer's CPU thread (replay, submit) | 9.32 / 9.32 / 9.46 ms | 9.41 / 9.27 / 9.23 ms | | GPU time | 12.20 / 12.20 / 12.40 ms | 12.20 / 12.20 / 12.40 ms | On this RX 580 the driver's own sparse block is 64 KB (not the 4 KB of your Steam Machine), so the PR changes 64 KB to 256 KB here. `main` has no `sparse binds` line, so the two sides are compared on each run's last `vk: sparse mirrors:` line (cumulative for the run: boot, teleport to the Market, then the standing capture): | | A (`main`), each run | B (PR), each run | |---|---|---| | Binds | 183 / 179 / 282 | 448 / 490 / 246 | | Time in binds | 104.5 / 110.5 / 58.0 ms | 120.6 / 90.2 / 43.6 ms | | Mirrors' memory in use | 860 / 881 / 903 MB | 902 / 912 / 912 MB | Bind time overlaps between the sides; the PR's mirrors held a little more memory (about 10 to 40 MB). This is a single teleport and a still scene, not the repeated area changes the PR is about, so it says nothing either way about those hitches.
Owner

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

No change to be seen, on a busy PC. By default this PR changes nothing on NVIDIA (the block stays the driver's), so this is a check for side effects.

Pair A (main) fps B (PR) fps A p99 B p99
1 119.4 117.8 11.48 ms 12.37 ms
2 123.1 100.3 (other work on the PC: CPU stalls 25%) 10.52 ms 45.11 ms
3 121.4 120.1 10.88 ms 10.86 ms

In the two undisturbed pairs B was 1.3% and 1.1% lower. An earlier set of three pairs, disturbed by the same other work, went both ways (A 125.5 / 90.6 / 109.3, B 120.7 / 125.5 / 110.7), so a gap of about 1% is below what this PC resolved tonight.

Time a frame (each capture, the set above) A B
Renderer's CPU thread (replay, submit) 7.01 / 6.79 / 6.84 ms 6.92 / 7.04 / 6.99 ms
GPU time 5.10 / 5.10 / 5.10 ms 5.10 / 5.10 / 5.10 ms

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.

Local (RTX 3090) Market A/B: `main` `ee9e1ed76` (A) against PR head `3319b91af82f` merged onto it (B), two builds. **No change to be seen, on a busy PC.** By default this PR changes nothing on NVIDIA (the block stays the driver's), so this is a check for side effects. | Pair | A (`main`) fps | B (PR) fps | A p99 | B p99 | |---|---:|---:|---:|---:| | 1 | 119.4 | 117.8 | 11.48 ms | 12.37 ms | | 2 | 123.1 | 100.3 (other work on the PC: CPU stalls 25%) | 10.52 ms | 45.11 ms | | 3 | 121.4 | 120.1 | 10.88 ms | 10.86 ms | In the two undisturbed pairs B was 1.3% and 1.1% lower. An earlier set of three pairs, disturbed by the same other work, went both ways (A 125.5 / 90.6 / 109.3, B 120.7 / 125.5 / 110.7), so a gap of about 1% is below what this PC resolved tonight. | Time a frame (each capture, the set above) | A | B | |---|---:|---:| | Renderer's CPU thread (replay, submit) | 7.01 / 6.79 / 6.84 ms | 6.92 / 7.04 / 6.99 ms | | GPU time | 5.10 / 5.10 / 5.10 ms | 5.10 / 5.10 / 5.10 ms | 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.
Owner

AMD lab A/B/A/B: main 7bc53f841 (A) against this PR's head 3319b91af 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.

No clear gain on this GPU, and no clear loss. The RX 580 is not the case the PR describes: here RADV's own alignment is 64 KB, not 4 KB (log: sparse mirrors' block: 256 KB (the driver's alignment 64 KB ...)), so this compares 64 KB blocks with 256 KB.

In the measured 90 s A1 B1 A2 B2
Area changes 8 8 8 8
Frames of 50 ms or more 42 46 35 46
Frames of 100 ms or more 18 21 16 22
Time spent in frames of 50 ms or more 5.2 s 5.8 s 4.8 s 6.4 s
Worst frame 366 ms 631 ms 593 ms 377 ms
Median of the 12-50 ms frames 15.53 ms 15.26 ms 15.03 ms 15.18 ms
Major page faults 9176 12425 14643 13544
Whole run, the last vk: sparse mirrors: line A1 B1 A2 B2
Binds 3119 3040 3476 2943
Time in binds 1421 ms 1583 ms 1838 ms 888 ms
Blocks given memory later 16533 8617 41970 9607
Blocks given back 63905 18887 76153 19282
MB with memory 1076 980 1168 1052
  • Fewer blocks are handled with 256 KB (they are 4 times larger, so the counts are not like for like), but the number of binds and the time in them overlap between the two sides.
  • Hitch time and frames of 100 ms or more were higher on B in both pairs. Two pairs with this much spread are not enough to call that a regression.
  • 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. (158 / 134 / 119 / 108 in run order). B1 and B2 were flagged noisy (memory stalls 1.3 %).
  • No bind failures and no Vulkan errors in the logs.

Not covered: the 4 KB-alignment case (Steam Deck, Steam Machine), where the PR expects its gain.

**AMD lab A/B/A/B:** `main` `7bc53f841` (A) against this PR's head `3319b91af` 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. **No clear gain on this GPU, and no clear loss.** The RX 580 is not the case the PR describes: here RADV's own alignment is 64 KB, not 4 KB (log: `sparse mirrors' block: 256 KB (the driver's alignment 64 KB ...)`), so this compares 64 KB blocks with 256 KB. | In the measured 90 s | A1 | B1 | A2 | B2 | |---|---:|---:|---:|---:| | Area changes | 8 | 8 | 8 | 8 | | Frames of 50 ms or more | 42 | 46 | 35 | 46 | | Frames of 100 ms or more | 18 | 21 | 16 | 22 | | Time spent in frames of 50 ms or more | 5.2 s | 5.8 s | 4.8 s | 6.4 s | | Worst frame | 366 ms | 631 ms | 593 ms | 377 ms | | Median of the 12-50 ms frames | 15.53 ms | 15.26 ms | 15.03 ms | 15.18 ms | | Major page faults | 9176 | 12425 | 14643 | 13544 | | Whole run, the last `vk: sparse mirrors:` line | A1 | B1 | A2 | B2 | |---|---:|---:|---:|---:| | Binds | 3119 | 3040 | 3476 | 2943 | | Time in binds | 1421 ms | 1583 ms | 1838 ms | 888 ms | | Blocks given memory later | 16533 | 8617 | 41970 | 9607 | | Blocks given back | 63905 | 18887 | 76153 | 19282 | | MB with memory | 1076 | 980 | 1168 | 1052 | - Fewer blocks are handled with 256 KB (they are 4 times larger, so the counts are not like for like), but the number of binds and the time in them overlap between the two sides. - Hitch time and frames of 100 ms or more were higher on B in both pairs. Two pairs with this much spread are not enough to call that a regression. - 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. (158 / 134 / 119 / 108 in run order). B1 and B2 were flagged noisy (memory stalls 1.3 %). - No bind failures and no Vulkan errors in the logs. Not covered: the 4 KB-alignment case (Steam Deck, Steam Machine), where the PR expects its gain.
Some checks reported errors
CI / What the change needs (pull_request) Blocked by required conditions
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Blocked by required conditions
CI / Third-party parts and guide screenshots (pull_request) Blocked by required conditions
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Blocked by required conditions
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Blocked by required conditions
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Blocked by required conditions
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Blocked by required conditions
CI / Website build and checks (pull_request) Blocked by required conditions
PR description / Title and description (pull_request_target) Successful in 5s
beanstalk/approval approved by HumanBean (reviewed)
beanstalk/linux+radv 0/1 pass, 2 error
beanstalk/steamdeck 0/1 pass, 2 error
beanstalk/windows+amd 0/1 pass, 2 error
beanstalk/nvidia 0/1 pass, 2 error
beanstalk/intel 0/1 pass, 2 error
beanstalk/igpu 0/1 pass, 2 error
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
Some workflows are waiting to be reviewed.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/sparse-block-256k:decohered-perf/sparse-block-256k'
git switch 'decohered-perf/sparse-block-256k'
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!3114
No description provided.