WIP: perf(vk): the game's fragments-only barriers wait in the fragment stages (RX_VK_GAME_BARRIER) #2290

Closed
TrashPanda wants to merge 4 commits from TrashPanda/Longshot:perf/game-barrier-flags into main
Member

Summary

Every nvnCommandBufferBarrier of the game's ended the render pass and recorded a full barrier (all commands to all
commands), whatever its NVN bits said; the bits were only counted. 56-66 of them a frame in Kokiri Forest, Hyrule Field and
the Market carry only ORDER_FRAGMENTS and INVALIDATE_TEXTURE (0x12, 67-77 a frame; 0x2, 0x4, 0x6, 0x10, 0x14 and 0x16
are treated the same way): on the console, later fragment work waits for earlier fragment work, and later geometry work
does not wait.

Such a barrier still ends the pass, and now records the barrier a draw pass after draw passes already starts with
(pass_start_barrier): every earlier write, from every stage, made visible to the fragment-side stages; the next pass start
then records no second one. It stays the full barrier when the bits hold anything else (ORDER_PRIMITIVES,
ORDER_INDIRECT_DATA, INVALIDATE_SHADER, INVALIDATE_TEXTURE_DESCRIPTOR, INVALIDATE_ZCULL, an unknown bit or no bit),
when anything but draw passes was recorded since the last full barrier (a dispatch, a copy, a fill, a barrier on another
command buffer), and when indirect mesh draws after it are converted there (RX_VK_MESH_CONV=2: their copies follow a full
barrier as before). A dispatch after it keeps its own full barrier. RX_VK_GAME_BARRIER=0 gives every barrier of the game's
the full barrier again; it is read at each recording's start, so HOS_AB can alternate it.

Result: about 50-60 fewer full barriers a frame (RTX: 328.9 to 278.6 recorded in Kokiri Forest, 400.5 to 346.6 in Hyrule
Field, 382.0 to 319.9 in the Market), 0.1-0.75 ms less GPU time a frame, +1.9 % fps in Hyrule Field on an RTX 4070 Ti and
gains within the spread elsewhere (Measurements).

Read first: gpu/vk/game_barrier.h (the bits' rule and where each bit's meaning comes from), game_fragment_barrier and
pass_start_barrier in gpu/vk/vk_texture.cpp, NOP_BARRIER and mesh_conv_at_barrier in gpu/vk/vk_replay.cpp.

What the bits mean, and what this relied on: the names in gpu/render/nvn_api.h (NVNbarrierBits); the Maxwell methods
they become, named in suyu's gpu/third_party/suyu/video_core/maxwell_3d_regs.h (wait_for_idle 0x110, fragment_barrier
0xDE0, tiled_cache_barrier 0xF7C, invalidate_texture_data_cache 0xF74, the shader cache invalidation); and the
bit-to-method mapping of the open-source deko3d driver (maxwell/gpu_base.cpp), whose method numbers are those registers'
(0x44, 0x378, 0x3DF, 0x3DD, in words).

Whether anything the game does needs more than that was counted in the game rather than assumed: RX_VK_GAME_BARRIER_CENSUS=1
(diag, off) follows each command buffer from its last full barrier and checks every draw's non-fragment stages (textures,
storage images, uniform and storage buffers by guest address, global memory), its vertex, index and indirect fetches, and
non-fragment stores against what was written before a fragments-only barrier of the game's. Every replay op that records
other GPU work (copies, clears, buffer fills, event signals, dispatches, the mesh conversion and the mesh fallback's records)
already starts with a full barrier, which is never left out after this one; so draws were the only exposure.

Prior work: none narrows the game's barriers by their bits (searched: nvnCommandBufferBarrier, ORDER_FRAGMENTS,
INVALIDATE_TEXTURE, RX_VK_GAME_BARRIER, "game's barrier", "fragment stage"). Related: #2072 (dispatch after dispatch,
RX_VK_DISPATCH_BARRIER) works alongside it: after any dispatch this barrier is full, which also pays #2072's owed
barrier; expect plain text conflicts in vk_texture.cpp and vk_replay.cpp. Hookshot's
https://git.notrexed.dev/Hookshot/Hookshot/pulls/2559 (closed) went the other way: it kept the game's barriers full and
dropped our own between passes and dispatches. The pass start's barrier after non-draw work is claimed in the team room
(2026-11-21): same function, another case.

Testing

Tested: Linux 7.0, RTX 4070 Ti (NVIDIA 595.99.02) at 2560x1440, and the AMD Ryzen 7 9800X3D's iGPU (RADV, Mesa
26.0.8) at 1280x720 (RX_VK_DEVICE=1 HOS_OUTPUT_RES=1280x720 RX_VK_AUTO_TUNE=0), in Kokiri Forest, Hyrule Field and the
Market:

  • the census, 60 s in each scene on each GPU: every "after a fragments-only barrier of the game's" count 0 (textures,
    storage-buffer memory, fetches, global memory, non-fragment stores). 84-89 such barriers per 120 presents do follow a draw
    that stored to memory, but nothing reads it before the next full barrier;
  • synchronization validation (RX_VK_VALIDATION=1, VK_KHRONOS_VALIDATION_VALIDATE_SYNC=true, core validation off, the
    shader-accesses heuristic on, 30 s), Kokiri Forest and the Market, RTX, on main and here: the same four kinds of
    messages on both sides, all main's own (a depth attachment's store against sampling in its pass, vertex sampling after
    vkCmdClearAttachments with only pass starts between, sampling after a colour write in one pass); no new kind;
  • logdiff of the problem lines against main: nothing new or gone on either GPU; scene shots of the same spots match;
  • tests/test_game_barrier.py (new): the bits' rule for every combination, and the barriers recorded (fragments-only
    after draw passes, after a dispatch, a copy or another command buffer's barrier, two in a row, before a dispatch, before
    indirect mesh draws to convert, the switch and the A/B both ways), its ten broken copies failing, one of them main's
    (every barrier full); test_pass_barrier.py, test_mesh_conv.py and test_hos_ab.py updated for the moved text;
  • the whole suite (tests/run_all.py, through tools' suite.py compare against main @ a2dc5385): 906 passed, 22
    failed, 26 skipped against 904/22/26; no check fails here only. The 22 fail on main too: nx2/test_import_windows,
    test_close_waits_for_save, test_compile_zero_byte, test_damaged_rom_files, test_dev_packs, test_draw_stream_visibility,
    test_fs_save_commit, test_fsr_uniform_ownership, test_guest_copies, test_hold_toggle, test_lower_atomg_cas,
    test_menu_i18n, test_menu_keys, test_menu_slider_ends, test_pads_after_menu, test_recording_admission,
    test_sim_turf_pools, test_sim_turf_settings, test_switch_table, test_thinlto_tls, test_tls_objects, test_vibration_menu.

Still to test:

  • Windows, NVIDIA and AMD discrete (RDNA 2-4) and Intel Arc: the three scenes with RX_VK_GAME_BARRIER_CENSUS=1, expecting
    every "after a fragments-only barrier" count at 0, and no flicker (@Beanstalk)
  • the measurements again on 67ba729d (this branch's base now), or a note that nothing between changes the barriers (by hand)

Measurements

Verdict: a small gain. RTX 4070 Ti: +1.9 % fps in Hyrule Field (every After run above every Before run), +0.4 % in
Kokiri Forest and +0.7 % in the Market (within the spread); GPU time 0.10-0.20 ms a frame lower in every one of the 9 run
pairs. AMD iGPU: +0.4 % / +1.7 % / +0.5 % fps (within the spread), GPU time lower in 8 of 9 pairs (median -0.10 to -0.75 ms).
The switch ships on.

Setup: Linux 7.0; RTX 4070 Ti (NVIDIA 595.99.02), 2560x1440, the runtime's options (Quality preset 6, Render resolution
row 1), V-Sync off, uncapped (HOS_FPS_MAX=1000); AMD Ryzen 7 9800X3D iGPU (RADV, Mesa 26.0.8), 1280x720, auto-tune off.
Each run: tools' gamerun.py --mode timing (the queue's timed mode, alone on the GPU: checked for every run from the
queue's history), the repository's kokiri-start save, the Debug tab's teleport, 60 s standing; the frame trace's last 55 s
(less 2 s); 3 runs a side, interleaved (main first in odd rounds), the median. The RTX's first Kokiri Forest pair ran beside
CPU test suites (Before: 105.7 fps, p99 48 ms) and was replaced by a fourth pair; every other run had the GPU and the CPU to
itself. The After runs set RX_VK_OCC_EMPTY=0, so
they differ from main only by this change and the census code (off). GPU time: the log's GPU time line, median of the
last four.

Before: main @ a2dc5385 After: perf/game-barrier-flags @ ce5266d2 (RX_VK_OCC_EMPTY=0) Δ
RTX Kokiri Forest fps (runs) 136.4 (136.4, 137.0, 135.4) 136.9 (136.9, 139.5, 136.1) +0.4 %
RTX Kokiri Forest median / p99 frame time 7.32 / 8.05 ms 7.27 / 8.18 ms -0.05 ms
RTX Hyrule Field fps (runs) 126.7 (127.5, 126.7, 126.6) 129.1 (129.1, 128.6, 129.7) +1.9 %
RTX Hyrule Field median / p99 frame time 7.86 / 8.69 ms 7.72 / 8.53 ms -0.14 ms
RTX Market fps (runs) 123.4 (123.7, 122.7, 123.4) 124.3 (123.7, 124.7, 124.3) +0.7 %
RTX Market median / p99 frame time 7.98 / 9.52 ms 7.92 / 9.55 ms -0.06 ms
RTX GPU time a frame (Forest / Field / Market) 6.20 / 6.50 / 5.80 ms 6.00 / 6.40 / 5.65 ms -0.20 / -0.10 / -0.15 ms
AMD Kokiri Forest fps (runs) 22.6 (22.5, 22.6, 22.7) 22.7 (22.6, 22.8, 22.7) +0.4 %
AMD Hyrule Field fps (runs) 23.9 (23.8, 23.9, 23.9) 24.3 (23.9, 24.3, 24.3) +1.7 %
AMD Market fps (runs) 18.5 (18.5, 18.5, 18.7) 18.6 (18.6, 18.6, 18.8) +0.5 %
AMD median frame time (Forest / Field / Market) 44.02 / 41.80 / 51.97 ms 43.78 / 41.06 / 51.81 ms -0.24 / -0.74 / -0.16 ms
AMD GPU time a frame (Forest / Field / Market) 41.90 / 40.10 / 49.40 ms 41.60 / 39.35 / 49.30 ms -0.30 / -0.75 / -0.10 ms
full barriers recorded a frame, RTX (Forest / Field / Market) 328.9 / 400.5 / 382.0 278.6 / 346.6 / 319.9

With RX_VK_PASS_TIMING=1 (one run a side; each timestamp waits for the work before it, so spans show a barrier's own cost,
not the overlap it allows): the game's full-barrier spans a frame on the RTX fall from 105.5 / 108.5 / 119.8 (0.272 /
0.285 / 0.312 ms) to 50.5 / 51.5 / 54.7 (0.120 / 0.131 / 0.132 ms); all barrier spans 0.464 / 0.583 / 0.560 ms to
0.349 / 0.485 / 0.424 ms. On the AMD iGPU full barriers fall from 480 / 489 to 427 / 427 a frame (Forest / Market).

The RTX frame is not GPU-bound here (6 ms of GPU work in a 7-8 ms frame), so its fps gain is the GPU's shorter waits showing
through the frame wait; the iGPU is GPU-bound throughout.

Log lines (branch, Hyrule Field, RTX):

vk: a frame: 346.6 full barriers recorded, 146.0 left out (nothing recorded since the one before), 15.2 pass starts ordered in their fragment stages only (draw passes after draw passes)
vk: a frame: 58.0 of the game's barriers ordered in the fragment stages only (RX_VK_GAME_BARRIER: NVN bits ORDER_FRAGMENTS, _TILED, INVALIDATE_TEXTURE alone, after draw passes alone), 51.9 pass starts left out right after one
vk: a frame: the game's barriers by their NVN flags: 0x1: 2.0; 0x8: 3.0; 0x9: 1.0; 0x11: 29.0; 0x12: 68.5; 0x13: 2.0; 0x21: 4.0; 0x28: 16.0; 0x92: 3.0; 0x97: 1.0;
vk: game barrier census (120 presents; ...): after a fragments-only barrier of the game's, no full barrier since, what was written before it read by: non-fragment stages, textures 0 [0], storage buffers' memory 0 [0]; vertex, index or indirect fetches 0 [0]; global memory or fetches after a global store 0 [0]; non-fragment stores after one 0 [0]; ...

Risks

A vertex, task or mesh stage, or a vertex/index/indirect fetch, that reads what a pass wrote before such a barrier with no
full barrier between would read it unordered. The console's own driver waits for idle before a texture invalidate, so the
game could rely on more than the bits say; the census found no such read in the six scene and GPU pairs measured, and the
validation layer no new hazard in two scenes, but other areas (dungeons, cutscenes) are unmeasured. RX_VK_GAME_BARRIER=0
restores the full barrier at once; nothing changes on disk.

Found on the way, not changed here: main already lets a vertex stage sample a target written since the last full
barrier with only relaxed pass starts between (the census's "pass starts alone" class, 360 per 120 presents: programs
f8c237d19f90b5fb, ddd080229f785e4d, 37837d2e5833bc1c reading R32F targets #207/#208/#211 after a vkCmdClearAttachments;
the validation layer's 600-1,150 vertex-read-after-clear messages per 30 s). That is pass_start_barrier's rule, a
separate question.

The method comes from reading Rekarina's notes (another PC port of this game), re-implemented here; no code was taken.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. (one topic; rebased by the coordinator onto 67ba729d)
  • 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). (tests/run_all.py through suite.py: 22 failures, all on main too, named)
  • Measured against main, or Measurements says why there is nothing to measure. (measured against a2dc5385; not again on 67ba729d)
  • 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. (docs/dev/reference/threads.md)
  • 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"). (RTX 40 on Linux only)
  • 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 Every `nvnCommandBufferBarrier` of the game's ended the render pass and recorded a full barrier (all commands to all commands), whatever its NVN bits said; the bits were only counted. 56-66 of them a frame in Kokiri Forest, Hyrule Field and the Market carry only `ORDER_FRAGMENTS` and `INVALIDATE_TEXTURE` (0x12, 67-77 a frame; 0x2, 0x4, 0x6, 0x10, 0x14 and 0x16 are treated the same way): on the console, later fragment work waits for earlier fragment work, and later geometry work does not wait. Such a barrier still ends the pass, and now records the barrier a draw pass after draw passes already starts with (`pass_start_barrier`): every earlier write, from every stage, made visible to the fragment-side stages; the next pass start then records no second one. It stays the full barrier when the bits hold anything else (`ORDER_PRIMITIVES`, `ORDER_INDIRECT_DATA`, `INVALIDATE_SHADER`, `INVALIDATE_TEXTURE_DESCRIPTOR`, `INVALIDATE_ZCULL`, an unknown bit or no bit), when anything but draw passes was recorded since the last full barrier (a dispatch, a copy, a fill, a barrier on another command buffer), and when indirect mesh draws after it are converted there (`RX_VK_MESH_CONV=2`: their copies follow a full barrier as before). A dispatch after it keeps its own full barrier. `RX_VK_GAME_BARRIER=0` gives every barrier of the game's the full barrier again; it is read at each recording's start, so `HOS_AB` can alternate it. Result: about 50-60 fewer full barriers a frame (RTX: 328.9 to 278.6 recorded in Kokiri Forest, 400.5 to 346.6 in Hyrule Field, 382.0 to 319.9 in the Market), 0.1-0.75 ms less GPU time a frame, +1.9 % fps in Hyrule Field on an RTX 4070 Ti and gains within the spread elsewhere (Measurements). Read first: `gpu/vk/game_barrier.h` (the bits' rule and where each bit's meaning comes from), `game_fragment_barrier` and `pass_start_barrier` in `gpu/vk/vk_texture.cpp`, `NOP_BARRIER` and `mesh_conv_at_barrier` in `gpu/vk/vk_replay.cpp`. What the bits mean, and what this relied on: the names in `gpu/render/nvn_api.h` (`NVNbarrierBits`); the Maxwell methods they become, named in suyu's `gpu/third_party/suyu/video_core/maxwell_3d_regs.h` (`wait_for_idle` 0x110, `fragment_barrier` 0xDE0, `tiled_cache_barrier` 0xF7C, `invalidate_texture_data_cache` 0xF74, the shader cache invalidation); and the bit-to-method mapping of the open-source deko3d driver (`maxwell/gpu_base.cpp`), whose method numbers are those registers' (0x44, 0x378, 0x3DF, 0x3DD, in words). Whether anything the game does needs more than that was counted in the game rather than assumed: `RX_VK_GAME_BARRIER_CENSUS=1` (diag, off) follows each command buffer from its last full barrier and checks every draw's non-fragment stages (textures, storage images, uniform and storage buffers by guest address, global memory), its vertex, index and indirect fetches, and non-fragment stores against what was written before a fragments-only barrier of the game's. Every replay op that records other GPU work (copies, clears, buffer fills, event signals, dispatches, the mesh conversion and the mesh fallback's records) already starts with a full barrier, which is never left out after this one; so draws were the only exposure. Prior work: none narrows the game's barriers by their bits (searched: nvnCommandBufferBarrier, ORDER_FRAGMENTS, INVALIDATE_TEXTURE, RX_VK_GAME_BARRIER, "game's barrier", "fragment stage"). Related: #2072 (dispatch after dispatch, `RX_VK_DISPATCH_BARRIER`) works alongside it: after any dispatch this barrier is full, which also pays #2072's owed barrier; expect plain text conflicts in `vk_texture.cpp` and `vk_replay.cpp`. Hookshot's https://git.notrexed.dev/Hookshot/Hookshot/pulls/2559 (closed) went the other way: it kept the game's barriers full and dropped our own between passes and dispatches. The pass start's barrier after non-draw work is claimed in the team room (2026-11-21): same function, another case. ## Testing **Tested:** Linux 7.0, RTX 4070 Ti (NVIDIA 595.99.02) at 2560x1440, and the AMD Ryzen 7 9800X3D's iGPU (RADV, Mesa 26.0.8) at 1280x720 (`RX_VK_DEVICE=1 HOS_OUTPUT_RES=1280x720 RX_VK_AUTO_TUNE=0`), in Kokiri Forest, Hyrule Field and the Market: - the census, 60 s in each scene on each GPU: every "after a fragments-only barrier of the game's" count 0 (textures, storage-buffer memory, fetches, global memory, non-fragment stores). 84-89 such barriers per 120 presents do follow a draw that stored to memory, but nothing reads it before the next full barrier; - synchronization validation (`RX_VK_VALIDATION=1`, `VK_KHRONOS_VALIDATION_VALIDATE_SYNC=true`, core validation off, the shader-accesses heuristic on, 30 s), Kokiri Forest and the Market, RTX, on `main` and here: the same four kinds of messages on both sides, all `main`'s own (a depth attachment's store against sampling in its pass, vertex sampling after `vkCmdClearAttachments` with only pass starts between, sampling after a colour write in one pass); no new kind; - `logdiff` of the problem lines against `main`: nothing new or gone on either GPU; scene shots of the same spots match; - `tests/test_game_barrier.py` (new): the bits' rule for every combination, and the barriers recorded (fragments-only after draw passes, after a dispatch, a copy or another command buffer's barrier, two in a row, before a dispatch, before indirect mesh draws to convert, the switch and the A/B both ways), its ten broken copies failing, one of them `main`'s (every barrier full); `test_pass_barrier.py`, `test_mesh_conv.py` and `test_hos_ab.py` updated for the moved text; - the whole suite (`tests/run_all.py`, through tools' `suite.py compare` against `main` @ a2dc5385): 906 passed, 22 failed, 26 skipped against 904/22/26; no check fails here only. The 22 fail on `main` too: nx2/test_import_windows, test_close_waits_for_save, test_compile_zero_byte, test_damaged_rom_files, test_dev_packs, test_draw_stream_visibility, test_fs_save_commit, test_fsr_uniform_ownership, test_guest_copies, test_hold_toggle, test_lower_atomg_cas, test_menu_i18n, test_menu_keys, test_menu_slider_ends, test_pads_after_menu, test_recording_admission, test_sim_turf_pools, test_sim_turf_settings, test_switch_table, test_thinlto_tls, test_tls_objects, test_vibration_menu. **Still to test:** - Windows, NVIDIA and AMD discrete (RDNA 2-4) and Intel Arc: the three scenes with `RX_VK_GAME_BARRIER_CENSUS=1`, expecting every "after a fragments-only barrier" count at 0, and no flicker (@Beanstalk) - the measurements again on 67ba729d (this branch's base now), or a note that nothing between changes the barriers (by hand) ## Measurements **Verdict:** a small gain. RTX 4070 Ti: +1.9 % fps in Hyrule Field (every After run above every Before run), +0.4 % in Kokiri Forest and +0.7 % in the Market (within the spread); GPU time 0.10-0.20 ms a frame lower in every one of the 9 run pairs. AMD iGPU: +0.4 % / +1.7 % / +0.5 % fps (within the spread), GPU time lower in 8 of 9 pairs (median -0.10 to -0.75 ms). The switch ships on. Setup: Linux 7.0; RTX 4070 Ti (NVIDIA 595.99.02), 2560x1440, the runtime's options (Quality preset 6, Render resolution row 1), V-Sync off, uncapped (`HOS_FPS_MAX=1000`); AMD Ryzen 7 9800X3D iGPU (RADV, Mesa 26.0.8), 1280x720, auto-tune off. Each run: tools' `gamerun.py --mode timing` (the queue's timed mode, alone on the GPU: checked for every run from the queue's history), the repository's kokiri-start save, the Debug tab's teleport, 60 s standing; the frame trace's last 55 s (less 2 s); 3 runs a side, interleaved (main first in odd rounds), the median. The RTX's first Kokiri Forest pair ran beside CPU test suites (Before: 105.7 fps, p99 48 ms) and was replaced by a fourth pair; every other run had the GPU and the CPU to itself. The After runs set `RX_VK_OCC_EMPTY=0`, so they differ from `main` only by this change and the census code (off). GPU time: the log's `GPU time` line, median of the last four. | | Before: main @ a2dc5385 | After: perf/game-barrier-flags @ ce5266d2 (RX_VK_OCC_EMPTY=0) | Δ | |---|---|---|---| | RTX Kokiri Forest fps (runs) | 136.4 (136.4, 137.0, 135.4) | 136.9 (136.9, 139.5, 136.1) | +0.4 % | | RTX Kokiri Forest median / p99 frame time | 7.32 / 8.05 ms | 7.27 / 8.18 ms | -0.05 ms | | RTX Hyrule Field fps (runs) | 126.7 (127.5, 126.7, 126.6) | 129.1 (129.1, 128.6, 129.7) | +1.9 % | | RTX Hyrule Field median / p99 frame time | 7.86 / 8.69 ms | 7.72 / 8.53 ms | -0.14 ms | | RTX Market fps (runs) | 123.4 (123.7, 122.7, 123.4) | 124.3 (123.7, 124.7, 124.3) | +0.7 % | | RTX Market median / p99 frame time | 7.98 / 9.52 ms | 7.92 / 9.55 ms | -0.06 ms | | RTX GPU time a frame (Forest / Field / Market) | 6.20 / 6.50 / 5.80 ms | 6.00 / 6.40 / 5.65 ms | -0.20 / -0.10 / -0.15 ms | | AMD Kokiri Forest fps (runs) | 22.6 (22.5, 22.6, 22.7) | 22.7 (22.6, 22.8, 22.7) | +0.4 % | | AMD Hyrule Field fps (runs) | 23.9 (23.8, 23.9, 23.9) | 24.3 (23.9, 24.3, 24.3) | +1.7 % | | AMD Market fps (runs) | 18.5 (18.5, 18.5, 18.7) | 18.6 (18.6, 18.6, 18.8) | +0.5 % | | AMD median frame time (Forest / Field / Market) | 44.02 / 41.80 / 51.97 ms | 43.78 / 41.06 / 51.81 ms | -0.24 / -0.74 / -0.16 ms | | AMD GPU time a frame (Forest / Field / Market) | 41.90 / 40.10 / 49.40 ms | 41.60 / 39.35 / 49.30 ms | -0.30 / -0.75 / -0.10 ms | | full barriers recorded a frame, RTX (Forest / Field / Market) | 328.9 / 400.5 / 382.0 | 278.6 / 346.6 / 319.9 | | With `RX_VK_PASS_TIMING=1` (one run a side; each timestamp waits for the work before it, so spans show a barrier's own cost, not the overlap it allows): the game's full-barrier spans a frame on the RTX fall from 105.5 / 108.5 / 119.8 (0.272 / 0.285 / 0.312 ms) to 50.5 / 51.5 / 54.7 (0.120 / 0.131 / 0.132 ms); all barrier spans 0.464 / 0.583 / 0.560 ms to 0.349 / 0.485 / 0.424 ms. On the AMD iGPU full barriers fall from 480 / 489 to 427 / 427 a frame (Forest / Market). The RTX frame is not GPU-bound here (6 ms of GPU work in a 7-8 ms frame), so its fps gain is the GPU's shorter waits showing through the frame wait; the iGPU is GPU-bound throughout. Log lines (branch, Hyrule Field, RTX): ``` vk: a frame: 346.6 full barriers recorded, 146.0 left out (nothing recorded since the one before), 15.2 pass starts ordered in their fragment stages only (draw passes after draw passes) vk: a frame: 58.0 of the game's barriers ordered in the fragment stages only (RX_VK_GAME_BARRIER: NVN bits ORDER_FRAGMENTS, _TILED, INVALIDATE_TEXTURE alone, after draw passes alone), 51.9 pass starts left out right after one vk: a frame: the game's barriers by their NVN flags: 0x1: 2.0; 0x8: 3.0; 0x9: 1.0; 0x11: 29.0; 0x12: 68.5; 0x13: 2.0; 0x21: 4.0; 0x28: 16.0; 0x92: 3.0; 0x97: 1.0; vk: game barrier census (120 presents; ...): after a fragments-only barrier of the game's, no full barrier since, what was written before it read by: non-fragment stages, textures 0 [0], storage buffers' memory 0 [0]; vertex, index or indirect fetches 0 [0]; global memory or fetches after a global store 0 [0]; non-fragment stores after one 0 [0]; ... ``` ## Risks A vertex, task or mesh stage, or a vertex/index/indirect fetch, that reads what a pass wrote before such a barrier with no full barrier between would read it unordered. The console's own driver waits for idle before a texture invalidate, so the game could rely on more than the bits say; the census found no such read in the six scene and GPU pairs measured, and the validation layer no new hazard in two scenes, but other areas (dungeons, cutscenes) are unmeasured. `RX_VK_GAME_BARRIER=0` restores the full barrier at once; nothing changes on disk. Found on the way, not changed here: `main` already lets a vertex stage sample a target written since the last full barrier with only relaxed pass starts between (the census's "pass starts alone" class, 360 per 120 presents: programs f8c237d19f90b5fb, ddd080229f785e4d, 37837d2e5833bc1c reading R32F targets #207/#208/#211 after a `vkCmdClearAttachments`; the validation layer's 600-1,150 vertex-read-after-clear messages per 30 s). That is `pass_start_barrier`'s rule, a separate question. The method comes from reading Rekarina's notes (another PC port of this game), re-implemented here; no code was taken. ## Checklist ### Ready for review - [ ] One topic, on current `main`; the title is a Conventional Commit. (one topic; rebased by the coordinator onto 67ba729d) - [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). (`tests/run_all.py` through `suite.py`: 22 failures, all on `main` too, named) - [ ] Measured against `main`, or Measurements says why there is nothing to measure. (measured against a2dc5385; not again on 67ba729d) - [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. (docs/dev/reference/threads.md) - [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"). (RTX 40 on Linux only) - [ ] 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 barrier of the game's whose NVN bits are only ORDER_FRAGMENTS, ORDER_FRAGMENTS_TILED and
INVALIDATE_TEXTURE (gpu/vk/game_barrier.h) still ends the pass, and now records the barrier a
pass start after draw passes records (every earlier write to the fragment-side stages) where
only draw passes came since the last full barrier on its command buffer; the next pass start
then records none. Any other bit, no bit, other work since, or indirect mesh draws the scan
converts there: the full barrier, as before. Read at each recording's start (HOS_AB may flip
it); RX_VK_GAME_BARRIER=0 restores every barrier full.

WIP: not yet measured or run in the game.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 057f839db1afd84909883948c0746957fb123d35)
Follows one command buffer from its last full barrier: the targets its passes wrote and whether a
draw stored to memory; at each draw, the textures and images its non-fragment stages read that a
pass wrote since, and its non-fragment memory reads and vertex fetches after a draw that stored to
memory. Each counted by whether one of the game's fragment-stage barriers lies between (left
unordered by RX_VK_GAME_BARRIER) or only pass starts after draw passes (main's own). Off unless set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit f11452fb2c63069158efdaad368d47e562ae81f1)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 2bec6d7b4932c9e7c4499e1248812a9e537d97e1)
diag(vk): the game barrier census checks guest memory ranges, storage images and fetches, not just that a draw stored
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 5s
beanstalk/windows+nvidia 1/1 fail
beanstalk/windows+amd+dgpu 1/1 fail
beanstalk/approval approved by HumanBean (reviewed)
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
beanstalk/windows+intel 1/1 fail
beanstalk/linux+nvidia 1/1 fail
beanstalk/linux+radv 1/1 fail
beanstalk/linux+intel 2/1 fail
beanstalk/igpu 2/1 fail
959870ac26
What a draw's non-fragment stages read (uniform and storage buffers by guest address, textures,
storage images) and what it fetches (vertex buffers, index buffer, indirect arguments) is checked
against the storage buffers' ranges, storage images and targets written before a fragments-only
barrier of the game's; global-memory stores, whose ranges are unknown, are counted apart. The
first cases of each kind are logged by program.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit faf2cef096b512122b392403f907b1615f89b48c)
Author
Member

Tested in game: Linux 7.0, RTX 4070 Ti (NVIDIA 595.99.02) and AMD Raphael iGPU (RADV, Mesa 26.0.8) at 1280x720: Kokiri Forest, Hyrule Field and the Market. Census (RX_VK_GAME_BARRIER_CENSUS=1) 0 reads/fetches/stores after a fragments-only barrier in all 3 scenes on both GPUs; sync validation in Kokiri Forest and the Market: no new hazard kind; logdiff 0 new problem lines. Timing rounds still running. Runs made on the original branch at main a2dc5385; this head is the same commits cherry-picked onto current main, compiled, its checks pass, not yet run in the game.

Tested in game: Linux 7.0, RTX 4070 Ti (NVIDIA 595.99.02) and AMD Raphael iGPU (RADV, Mesa 26.0.8) at 1280x720: Kokiri Forest, Hyrule Field and the Market. Census (RX_VK_GAME_BARRIER_CENSUS=1) 0 reads/fetches/stores after a fragments-only barrier in all 3 scenes on both GPUs; sync validation in Kokiri Forest and the Market: no new hazard kind; logdiff 0 new problem lines. Timing rounds still running. Runs made on the original branch at main a2dc5385; this head is the same commits cherry-picked onto current main, compiled, its checks pass, not yet run in the game.
Owner
@review
Owner

@beanstalk

@beanstalk
Member

Beanstalk test farm · ❌ failed on windows+nvidia, windows+amd+dgpu, windows+intel and 4 more

Commit 959870a · approved by HumanBean (reviewed) · dashboard

⚠️ Note: The census adds PR-only diagnostic overhead, so its frame-time and GPU-time comparisons are not clean performance measurements; use the separate performance scenario for that judgment.
⚠️ Note: Census report availability is unjudged in the performance scenario, where the diagnostic is intentionally off; the census checks reported hazard details but cannot prove all possible synchronization hazards absent.
⚠️ Note: Stationary screenshots can catch picture differences but cannot reliably detect intermittent flicker; the small claimed gains may be indistinguishable from farm noise.

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

The farm failed the PR on all seven targets: Windows NVIDIA, AMD discrete and Intel; Linux NVIDIA, RADV and Intel; and integrated GPUs. In normal performance runs, Linux NVIDIA Forest frame time p99 rose 15.766 → 18.577 ms (+17.8%), Linux RADV Market GPU time rose 19.27 → 23.87 ms (+23.9%), and the 760M integrated GPU's Field frame time p99 rose 364.813 → 4852.628 ms (+1230.2%); screenshot mismatches also failed on Windows NVIDIA and the 760M. Census runs, with diagnostics enabled only on the PR, also showed regressions, including 890M Market frame time p99 32.016 → 41.576 ms (+29.9%); Windows AMD and Intel each crashed twice on both sides, while Linux Intel recorded one baseline and two PR…

Done (started 2026-11-23 00:02 UTC, last report 2026-11-24 19:33 UTC). Comment @Beanstalk to run it again.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
windows+nvidia ❌ fail (an outlier) 2 1 2 9.7 → 9.7 (+0%) — none
windows+amd+dgpu ❌ fail (an outlier) 2 1 2 19.9 → 22.4 (+13%) — 4 PR runs
windows+intel ❌ fail 2 1 2 — — 4 PR runs
linux+nvidia ❌ fail (an outlier) 2 1 2 18.9 → 14.6 (−22%) — none
linux+radv ❌ fail (an outlier) 2 1 2 35.0 → 38.1 (+9%) — none
linux+intel ❌ fail (an outlier) 2 1 2 34.6 → 44.3 (+28%) — 2 PR runs
igpu ❌ fail (an outlier) 2 1 2 196.1 → 2439.8 (+1144%) — none

Why it failed

  • windows+nvidia: performance screenshot.max_diff: 0.0 → 0.9; limit 0.2
  • windows+nvidia: census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) market.frametime_1pct_low_ms.max_delta_pct: 24.8 → 29.1 (+17.5%); limit 15.0
  • windows+amd+dgpu: performance crash: 2 PR runs crashed
  • windows+amd+dgpu: census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) crash: 2 PR runs crashed
  • windows+intel: performance crash: 2 PR runs crashed
  • windows+intel: census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) crash: 2 PR runs crashed
  • linux+nvidia: performance forest.frametime_p99_ms.max_delta_pct: 15.8 → 18.6 (+17.8%); limit 15.0
  • linux+nvidia: performance forest.frametime_1pct_low_ms.max_delta_pct: 16.7 → 20.6 (+23.0%); limit 15.0
  • and 12 more, in the reports

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.

  • windows+nvidia, report 2: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • windows+amd+dgpu, report 2: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • windows+intel, report 2: the main base failed (exit 1): Windows doesn't let programs look inside C:\, a folder above the builder's own compiler, so it can't start. Move Longshot's folder out of it (for example to C:\Longshot) and start Longshot from there.
  • linux+nvidia, report 1: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • linux+radv, report 1: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
What was tested

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

On Windows NVIDIA, AMD discrete and Intel GPUs, and on Linux NVIDIA, RADV, Intel and integrated GPUs, compare the PR with main in Kokiri Forest, Hyrule Field and the Market. Two starts per side measure 30 seconds per scene for performance, and two further starts run the PR's barrier census for 20 seconds per scene. The plan checks frame times, GPU time, stationary pictures, census hazard messages and crashes; a significant regression, picture mismatch, reported hazard or crash fails the PR. The census run enables its diagnostic switch only on the PR, while the performance run uses normal defaults.

  • Where: windows+nvidia (1-2 reports), windows+amd+dgpu (1-2 reports), windows+intel (1-2 reports), linux+nvidia (1-2 reports), linux+radv (1-2 reports), linux+intel (1-2 reports), igpu (1-2 reports).
  • Matrix: 1 cell, each on main and the PR: RX_VK_GAME_BARRIER_CENSUS 1 (PR only).
  • performance: from the repository's save kokiri-start (settings frame_rate_cap=6), then teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 30 s (after 5 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 5 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 30 s (after 5 s warm-up); 2 runs on each side.
  • census: from the repository's save kokiri-start, then teleport to Kokiri Forest, measure forest for 20 s (after 5 s warm-up), teleport to Hyrule Field, measure field for 20 s (after 5 s warm-up), teleport to Market, measure market for 20 s (after 5 s warm-up); 2 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, GPU time per pass, the game's log (an expected line that never appears: could not be judged).
  • The PR fails if: it crashes; or a picture differs from main by more than 20%; or GPU time a frame is more than 15% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or expected log lines missing is above 0; or frame time (worst 1%) is more than 15% above main.
  • Time: about 53 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `windows+nvidia`, for the PR description

Verdict: fail on windows+nvidia (2 reports): performance screenshot.max_diff; census market.frametime_1pct_low_ms.max_delta_pct (+17.5%) failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 67ba729 After: this PR @ 959870a
performance · field · GPU time a frame (ms) 6.8 6.7 (−1%)
performance · forest · GPU time a frame (ms) 5.6 5.4 (−3%)
performance · market · GPU time a frame (ms) 6.1 6.1 (−0%)
performance · field · frame time (p99) (ms) 9.7 9.7 (+0%)
performance · forest · frame time (p99) (ms) 10.2 9.8 (−5%)
performance · market · frame time (p99) (ms) 15.5 15.5 (+0%)
performance · forbidden log lines 0.0 0.0
performance · expected log lines missing 1.0 1.0 (+0%)
performance · field · frame time (worst 1%) (ms) 10.4 10.2 (−2%)
performance · forest · frame time (worst 1%) (ms) 10.9 10.7 (−1%)
performance · market · frame time (worst 1%) (ms) 17.6 19.5 (+11%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · GPU time a frame (ms) 7.8 7.7 (−1%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · GPU time a frame (ms) 6.7 6.7 (−0%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · GPU time a frame (ms) 7.1 7.0 (−3%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (p99) (ms) 18.6 18.6 (+0%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (p99) (ms) 18.5 18.4 (−1%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (p99) (ms) 20.2 20.7 (+2%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forbidden log lines 0.0 0.0
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (worst 1%) (ms) 19.6 19.2 (−2%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (worst 1%) (ms) 19.1 19.1 (+0%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (worst 1%) (ms) 23.8 26.2 (+10%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_GAME_BARRIER_CENSUS switch the PR adds (set on the PR side only) 1 not in main the PR's default census, main without it → the PR with 1: 7.8 → 7.7 (−1%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+nvidia (2 reports): `performance screenshot.max_diff`; `census market.frametime_1pct_low_ms.max_delta_pct (+17.5%)` failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM`  
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 67ba729 | After: this PR @ 959870a |
|---|---|---|
| performance · field · GPU time a frame (ms) | 6.8 | 6.7 (−1%) |
| performance · forest · GPU time a frame (ms) | 5.6 | 5.4 (−3%) |
| performance · market · GPU time a frame (ms) | 6.1 | 6.1 (−0%) |
| performance · field · frame time (p99) (ms) | 9.7 | 9.7 (+0%) |
| performance · forest · frame time (p99) (ms) | 10.2 | 9.8 (−5%) |
| performance · market · frame time (p99) (ms) | 15.5 | 15.5 (+0%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| performance · expected log lines missing | 1.0 | 1.0 (+0%) |
| performance · field · frame time (worst 1%) (ms) | 10.4 | 10.2 (−2%) |
| performance · forest · frame time (worst 1%) (ms) | 10.9 | 10.7 (−1%) |
| performance · market · frame time (worst 1%) (ms) | 17.6 | 19.5 (+11%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 7.8 | 7.7 (−1%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 6.7 | 6.7 (−0%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 7.1 | 7.0 (−3%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 18.6 | 18.6 (+0%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 18.5 | 18.4 (−1%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 20.2 | 20.7 (+2%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.6 | 19.2 (−2%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.1 | 19.1 (+0%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 23.8 | 26.2 (+10%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 7.8 → 7.7 (−1%) | no clear effect |
Measurements on `windows+amd+dgpu`, for the PR description

Verdict: fail on windows+amd+dgpu (2 reports): performance crash; census crash failed.

Hardware: 1: windows+amd+amd-proprietary+dgpu AMD Radeon RX 6600 XT, 2.0.353 AMD Ryzen 5 3600 6-Core Processor, 16 GB RAM; 2: windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 67ba729 After: this PR @ 959870a
performance · forest · GPU time a frame (ms) 7.9 7.5 (−5%)
performance · field · GPU time a frame (ms) 5.1 5.0 (−2%)
performance · market · GPU time a frame (ms) 6.3 5.9 (−6%)
performance · forest · frame time (p99) (ms) 19.8 22.3 (+13%)
performance · field · frame time (p99) (ms) 11.1 10.8 (−3%)
performance · market · frame time (p99) (ms) 20.8 18.9 (−9%)
performance · forbidden log lines 0.0 0.0
performance · expected log lines missing 1.0 1.0 (+0%)
performance · forest · frame time (worst 1%) (ms) 26.9 38.1 (+41%)
performance · field · frame time (worst 1%) (ms) 11.6 12.0 (+3%)
performance · market · frame time (worst 1%) (ms) 33.5 22.1 (−34%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · GPU time a frame (ms) 9.3 8.6 (−7%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · GPU time a frame (ms) 6.6 6.5 (−3%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · GPU time a frame (ms) 7.0 6.7 (−3%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (p99) (ms) 29.9 27.1 (−9%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (p99) (ms) 18.7 19.3 (+3%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (p99) (ms) 28.4 24.5 (−14%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forbidden log lines 0.0 0.0
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (worst 1%) (ms) 46.0 42.0 (−9%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (worst 1%) (ms) 19.8 21.2 (+7%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (worst 1%) (ms) 43.1 36.7 (−15%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_GAME_BARRIER_CENSUS switch the PR adds (set on the PR side only) 1 not in main the PR's default census, main without it → the PR with 1: 9.3 → 8.6 (−7%) helps

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+amd+dgpu (2 reports): `performance crash`; `census crash` failed.

Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 6600 XT, 2.0.353` `AMD Ryzen 5 3600 6-Core Processor, 16 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`  
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 67ba729 | After: this PR @ 959870a |
|---|---|---|
| performance · forest · GPU time a frame (ms) | 7.9 | 7.5 (−5%) |
| performance · field · GPU time a frame (ms) | 5.1 | 5.0 (−2%) |
| performance · market · GPU time a frame (ms) | 6.3 | 5.9 (−6%) |
| performance · forest · frame time (p99) (ms) | 19.8 | 22.3 (+13%) |
| performance · field · frame time (p99) (ms) | 11.1 | 10.8 (−3%) |
| performance · market · frame time (p99) (ms) | 20.8 | 18.9 (−9%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| performance · expected log lines missing | 1.0 | 1.0 (+0%) |
| performance · forest · frame time (worst 1%) (ms) | 26.9 | 38.1 (+41%) |
| performance · field · frame time (worst 1%) (ms) | 11.6 | 12.0 (+3%) |
| performance · market · frame time (worst 1%) (ms) | 33.5 | 22.1 (−34%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 9.3 | 8.6 (−7%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 6.6 | 6.5 (−3%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 7.0 | 6.7 (−3%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 29.9 | 27.1 (−9%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 18.7 | 19.3 (+3%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 28.4 | 24.5 (−14%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 46.0 | 42.0 (−9%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.8 | 21.2 (+7%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 43.1 | 36.7 (−15%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 9.3 → 8.6 (−7%) | helps |
Measurements on `windows+intel`, for the PR description

Verdict: fail on windows+intel (2 reports): performance crash; census crash failed.

Hardware: 1: windows+intel+intel-proprietary+dgpu Intel(R) Arc(TM) B580 Graphics, 0.406.983 12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM; 2: windows+intel+intel-proprietary+dgpu Intel(R) Arc(TM) B580 Graphics, 0.406.983 AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 67ba729 After: this PR @ 959870a
performance · forbidden log lines 0.0 0.0
performance · expected log lines missing 1.0 1.0 (+0%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forbidden log lines 0.0 0.0
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_GAME_BARRIER_CENSUS switch the PR adds (set on the PR side only) 1 not in main the PR's default census, main without it → the PR with 1: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+intel (2 reports): `performance crash`; `census crash` failed.

Hardware: 1: windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM`; 2: windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM`  
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 67ba729 | After: this PR @ 959870a |
|---|---|---|
| performance · forbidden log lines | 0.0 | 0.0 |
| performance · expected log lines missing | 1.0 | 1.0 (+0%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: not measured | untested |
Measurements on `linux+nvidia`, for the PR description

Verdict: fail on linux+nvidia (2 reports): performance forest.frametime_p99_ms.max_delta_pct (+17.8%); performance forest.frametime_1pct_low_ms.max_delta_pct (+23.0%); census field.frametime_p99_ms.max_delta_pct (+16.7%) failed.

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM; 2: linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3080 Ti, 620.73.4 AMD Ryzen 5 5600X 6-Core Processor, 32 GB RAM
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 67ba729 After: this PR @ 959870a
performance · field · GPU time a frame (ms) 10.6 6.5 (−38%)
performance · forest · GPU time a frame (ms) 8.3 5.5 (−34%)
performance · market · GPU time a frame (ms) 9.6 6.2 (−35%)
performance · field · frame time (p99) (ms) 18.9 14.6 (−22%)
performance · forest · frame time (p99) (ms) 32.4 15.6 (−52%)
performance · market · frame time (p99) (ms) 26.5 20.0 (−25%)
performance · forbidden log lines 0.0 0.0
performance · expected log lines missing 1.0 1.0 (+0%)
performance · field · frame time (worst 1%) (ms) 20.9 16.8 (−19%)
performance · forest · frame time (worst 1%) (ms) 44.5 17.1 (−62%)
performance · market · frame time (worst 1%) (ms) 34.1 24.8 (−28%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · GPU time a frame (ms) 7.6 7.7 (+1%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · GPU time a frame (ms) 6.5 6.5 (+0%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · GPU time a frame (ms) 7.4 7.5 (+1%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (p99) (ms) 21.1 22.2 (+5%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (p99) (ms) 19.5 19.5 (−0%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (p99) (ms) 24.4 23.3 (−5%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forbidden log lines 0.0 0.0
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (worst 1%) (ms) 24.5 24.7 (+1%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (worst 1%) (ms) 20.5 21.8 (+6%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (worst 1%) (ms) 31.6 30.2 (−4%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_GAME_BARRIER_CENSUS switch the PR adds (set on the PR side only) 1 not in main the PR's default census, main without it → the PR with 1: 7.6 → 7.7 (+1%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+nvidia (2 reports): `performance forest.frametime_p99_ms.max_delta_pct (+17.8%)`; `performance forest.frametime_1pct_low_ms.max_delta_pct (+23.0%)`; `census field.frametime_p99_ms.max_delta_pct (+16.7%)` failed.

Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 620.73.4` `AMD Ryzen 5 5600X 6-Core Processor, 32 GB RAM`  
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 67ba729 | After: this PR @ 959870a |
|---|---|---|
| performance · field · GPU time a frame (ms) | 10.6 | 6.5 (−38%) |
| performance · forest · GPU time a frame (ms) | 8.3 | 5.5 (−34%) |
| performance · market · GPU time a frame (ms) | 9.6 | 6.2 (−35%) |
| performance · field · frame time (p99) (ms) | 18.9 | 14.6 (−22%) |
| performance · forest · frame time (p99) (ms) | 32.4 | 15.6 (−52%) |
| performance · market · frame time (p99) (ms) | 26.5 | 20.0 (−25%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| performance · expected log lines missing | 1.0 | 1.0 (+0%) |
| performance · field · frame time (worst 1%) (ms) | 20.9 | 16.8 (−19%) |
| performance · forest · frame time (worst 1%) (ms) | 44.5 | 17.1 (−62%) |
| performance · market · frame time (worst 1%) (ms) | 34.1 | 24.8 (−28%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 7.6 | 7.7 (+1%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 6.5 | 6.5 (+0%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 7.4 | 7.5 (+1%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 21.1 | 22.2 (+5%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 19.5 | 19.5 (−0%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 24.4 | 23.3 (−5%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 24.5 | 24.7 (+1%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 20.5 | 21.8 (+6%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 31.6 | 30.2 (−4%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 7.6 → 7.7 (+1%) | no clear effect |
Measurements on `linux+radv`, for the PR description

Verdict: fail on linux+radv (2 reports): performance market.gpu_total_ms.max_delta_pct (+23.9%) failed.

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.0.8 AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+dgpu AMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7 AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 67ba729 After: this PR @ 959870a
performance · field · GPU time a frame (ms) 14.9 14.7 (−1%)
performance · forest · GPU time a frame (ms) 13.6 13.8 (+2%)
performance · market · GPU time a frame (ms) 15.0 17.2 (+14%)
performance · field · frame time (p99) (ms) 35.0 38.1 (+9%)
performance · forest · frame time (p99) (ms) 26.5 25.0 (−6%)
performance · market · frame time (p99) (ms) 35.1 34.4 (−2%)
performance · forbidden log lines 0.0 0.0
performance · expected log lines missing 1.0 1.0 (+0%)
performance · field · frame time (worst 1%) (ms) 40.0 43.8 (+9%)
performance · forest · frame time (worst 1%) (ms) 31.7 29.5 (−7%)
performance · market · frame time (worst 1%) (ms) 43.3 41.3 (−5%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · GPU time a frame (ms) 15.7 15.5 (−1%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · GPU time a frame (ms) 13.5 13.6 (+1%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · GPU time a frame (ms) 15.1 15.1 (−0%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (p99) (ms) 37.4 40.7 (+9%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (p99) (ms) 25.1 26.7 (+6%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (p99) (ms) 36.8 38.8 (+5%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forbidden log lines 0.0 0.0
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (worst 1%) (ms) 41.4 45.7 (+10%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (worst 1%) (ms) 27.5 29.8 (+8%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (worst 1%) (ms) 43.8 46.5 (+6%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_GAME_BARRIER_CENSUS switch the PR adds (set on the PR side only) 1 not in main the PR's default census, main without it → the PR with 1: 15.7 → 15.5 (−1%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+radv (2 reports): `performance market.gpu_total_ms.max_delta_pct (+23.9%)` failed.

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM`  
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 67ba729 | After: this PR @ 959870a |
|---|---|---|
| performance · field · GPU time a frame (ms) | 14.9 | 14.7 (−1%) |
| performance · forest · GPU time a frame (ms) | 13.6 | 13.8 (+2%) |
| performance · market · GPU time a frame (ms) | 15.0 | 17.2 (+14%) |
| performance · field · frame time (p99) (ms) | 35.0 | 38.1 (+9%) |
| performance · forest · frame time (p99) (ms) | 26.5 | 25.0 (−6%) |
| performance · market · frame time (p99) (ms) | 35.1 | 34.4 (−2%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| performance · expected log lines missing | 1.0 | 1.0 (+0%) |
| performance · field · frame time (worst 1%) (ms) | 40.0 | 43.8 (+9%) |
| performance · forest · frame time (worst 1%) (ms) | 31.7 | 29.5 (−7%) |
| performance · market · frame time (worst 1%) (ms) | 43.3 | 41.3 (−5%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 15.7 | 15.5 (−1%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 13.5 | 13.6 (+1%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 15.1 | 15.1 (−0%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 37.4 | 40.7 (+9%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 25.1 | 26.7 (+6%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 36.8 | 38.8 (+5%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 41.4 | 45.7 (+10%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 27.5 | 29.8 (+8%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 43.8 | 46.5 (+6%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 15.7 → 15.5 (−1%) | no clear effect |
Measurements on `linux+intel`, for the PR description

Verdict: fail on linux+intel (2 reports): performance crash; census forest.frametime_1pct_low_ms.max_delta_pct (+17.1%) failed.

Hardware: 1: linux+intel+anv+dgpu Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7 13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM; 2: linux+intel+anv+dgpu Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4 AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 67ba729 After: this PR @ 959870a
performance · field · GPU time a frame (ms) 18.0 16.0 (−11%)
performance · forest · GPU time a frame (ms) 15.9 14.9 (−6%)
performance · market · GPU time a frame (ms) 17.4 19.3 (+11%)
performance · field · frame time (p99) (ms) 57.4 26.1 (−54%)
performance · forest · frame time (p99) (ms) 33.8 43.3 (+28%)
performance · market · frame time (p99) (ms) 117.9 54.6 (−54%)
performance · forbidden log lines 0.0 0.0
performance · expected log lines missing 1.0 1.0 (+0%)
performance · field · frame time (worst 1%) (ms) 65.7 31.8 (−52%)
performance · forest · frame time (worst 1%) (ms) 48.3 65.6 (+36%)
performance · market · frame time (worst 1%) (ms) 150.7 66.2 (−56%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · GPU time a frame (ms) 33.0 19.1 (−42%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · GPU time a frame (ms) 19.1 19.6 (+3%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · GPU time a frame (ms) 15.4 15.2 (−1%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (p99) (ms) 71.0 68.4 (−4%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (p99) (ms) 157.4 155.8 (−1%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (p99) (ms) 144.0 116.9 (−19%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forbidden log lines 0.0 0.0
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (worst 1%) (ms) 71.7 70.5 (−2%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (worst 1%) (ms) 192.4 207.2 (+8%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (worst 1%) (ms) 150.8 125.9 (−17%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_GAME_BARRIER_CENSUS switch the PR adds (set on the PR side only) 1 not in main the PR's default census, main without it → the PR with 1: 33.0 → 19.1 (−42%) helps

As Markdown for the PR description:

## Measurements

**Verdict:** fail on linux+intel (2 reports): `performance crash`; `census forest.frametime_1pct_low_ms.max_delta_pct (+17.1%)` failed.

Hardware: 1: linux+intel+anv+dgpu `Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7` `13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM`; 2: linux+intel+anv+dgpu `Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4` `AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM`  
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 67ba729 | After: this PR @ 959870a |
|---|---|---|
| performance · field · GPU time a frame (ms) | 18.0 | 16.0 (−11%) |
| performance · forest · GPU time a frame (ms) | 15.9 | 14.9 (−6%) |
| performance · market · GPU time a frame (ms) | 17.4 | 19.3 (+11%) |
| performance · field · frame time (p99) (ms) | 57.4 | 26.1 (−54%) |
| performance · forest · frame time (p99) (ms) | 33.8 | 43.3 (+28%) |
| performance · market · frame time (p99) (ms) | 117.9 | 54.6 (−54%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| performance · expected log lines missing | 1.0 | 1.0 (+0%) |
| performance · field · frame time (worst 1%) (ms) | 65.7 | 31.8 (−52%) |
| performance · forest · frame time (worst 1%) (ms) | 48.3 | 65.6 (+36%) |
| performance · market · frame time (worst 1%) (ms) | 150.7 | 66.2 (−56%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 33.0 | 19.1 (−42%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 19.1 | 19.6 (+3%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 15.4 | 15.2 (−1%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 71.0 | 68.4 (−4%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 157.4 | 155.8 (−1%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 144.0 | 116.9 (−19%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 71.7 | 70.5 (−2%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 192.4 | 207.2 (+8%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 150.8 | 125.9 (−17%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 33.0 → 19.1 (−42%) | helps |
Measurements on `igpu`, for the PR description

Verdict: fail on igpu (2 reports): census market.frametime_p99_ms.max_delta_pct (+29.9%); census market.frametime_1pct_low_ms.max_delta_pct (+53.7%); performance screenshot.max_diff failed.

Hardware: 1: linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM; 2: linux+amd+radv+igpu AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8 AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 67ba729 After: this PR @ 959870a
performance · field · GPU time a frame (ms) 22.3 31.5 (+42%)
performance · forest · GPU time a frame (ms) 11.8 19.0 (+61%)
performance · market · GPU time a frame (ms) 31.5 21.9 (−31%)
performance · field · frame time (p99) (ms) 196.1 2,440 (+1144%)
performance · forest · frame time (p99) (ms) 43.8 59.4 (+36%)
performance · market · frame time (p99) (ms) 200.2 197.3 (−1%)
performance · forbidden log lines 0.0 0.0
performance · expected log lines missing 1.0 1.0 (+0%)
performance · field · frame time (worst 1%) (ms) 399.5 2,481 (+521%)
performance · forest · frame time (worst 1%) (ms) 61.6 134.7 (+119%)
performance · market · frame time (worst 1%) (ms) 965.1 249.0 (−74%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · GPU time a frame (ms) 13.6 13.7 (+0%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · GPU time a frame (ms) 15.4 19.6 (+28%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · GPU time a frame (ms) 10.5 19.3 (+84%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (p99) (ms) 2,413 2,224 (−8%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (p99) (ms) 2,679 166.0 (−94%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (p99) (ms) 189.3 194.9 (+3%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forbidden log lines 0.0 0.0
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · field · frame time (worst 1%) (ms) 2,544 2,778 (+9%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · forest · frame time (worst 1%) (ms) 2,837 234.8 (−92%)
census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only) · market · frame time (worst 1%) (ms) 426.2 265.1 (−38%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (GPU time a frame) Helps / doesn't help / untested
RX_VK_GAME_BARRIER_CENSUS switch the PR adds (set on the PR side only) 1 not in main the PR's default census, main without it → the PR with 1: 13.6 → 13.7 (+0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** fail on igpu (2 reports): `census market.frametime_p99_ms.max_delta_pct (+29.9%)`; `census market.frametime_1pct_low_ms.max_delta_pct (+53.7%)`; `performance screenshot.max_diff` failed.

Hardware: 1: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM`  
Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 67ba729 | After: this PR @ 959870a |
|---|---|---|
| performance · field · GPU time a frame (ms) | 22.3 | 31.5 (+42%) |
| performance · forest · GPU time a frame (ms) | 11.8 | 19.0 (+61%) |
| performance · market · GPU time a frame (ms) | 31.5 | 21.9 (−31%) |
| performance · field · frame time (p99) (ms) | 196.1 | 2,440 (+1144%) |
| performance · forest · frame time (p99) (ms) | 43.8 | 59.4 (+36%) |
| performance · market · frame time (p99) (ms) | 200.2 | 197.3 (−1%) |
| performance · forbidden log lines | 0.0 | 0.0 |
| performance · expected log lines missing | 1.0 | 1.0 (+0%) |
| performance · field · frame time (worst 1%) (ms) | 399.5 | 2,481 (+521%) |
| performance · forest · frame time (worst 1%) (ms) | 61.6 | 134.7 (+119%) |
| performance · market · frame time (worst 1%) (ms) | 965.1 | 249.0 (−74%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 13.6 | 13.7 (+0%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 15.4 | 19.6 (+28%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 10.5 | 19.3 (+84%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 2,413 | 2,224 (−8%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 2,679 | 166.0 (−94%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 189.3 | 194.9 (+3%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 2,544 | 2,778 (+9%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 2,837 | 234.8 (−92%) |
| census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 426.2 | 265.1 (−38%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 13.6 → 13.7 (+0%) | no clear effect |
The testers' hardware
Target Report Ran on
windows+nvidia 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
windows+nvidia 2 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3090, 621.1.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
windows+amd+dgpu 1 windows+amd+amd-proprietary+dgpu AMD Radeon RX 6600 XT, 2.0.353 AMD Ryzen 5 3600 6-Core Processor, 16 GB RAM
windows+amd+dgpu 2 windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
windows+intel 1 windows+intel+intel-proprietary+dgpu Intel(R) Arc(TM) B580 Graphics, 0.406.983 12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM
windows+intel 2 windows+intel+intel-proprietary+dgpu Intel(R) Arc(TM) B580 Graphics, 0.406.983 AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM
linux+nvidia 1 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4 AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM
linux+nvidia 2 linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3080 Ti, 620.73.4 AMD Ryzen 5 5600X 6-Core Processor, 32 GB RAM
linux+radv 1 linux+amd+radv+dgpu AMD Radeon RX 9070 (RADV GFX1201), 26.0.8 AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM
linux+radv 2 linux+amd+radv+dgpu AMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7 AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM
linux+intel 1 linux+intel+anv+dgpu Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7 13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM
linux+intel 2 linux+intel+anv+dgpu Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4 AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM
igpu 1 linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
igpu 2 linux+amd+radv+igpu AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8 AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM
Run by hand on PCs that don't match their target (not counted)
Target Ran on Result
linux+intel off target (ran on linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070, 620.73.4) fail
<!-- beanstalk:sticky --> ### Beanstalk test farm · ❌ failed on windows+nvidia, windows+amd+dgpu, windows+intel and 4 more Commit `959870a` · approved by HumanBean (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2290) ⚠️ **Note:** The census adds PR-only diagnostic overhead, so its frame-time and GPU-time comparisons are not clean performance measurements; use the separate performance scenario for that judgment. ⚠️ **Note:** Census report availability is unjudged in the performance scenario, where the diagnostic is intentionally off; the census checks reported hazard details but cannot prove all possible synchronization hazards absent. ⚠️ **Note:** Stationary screenshots can catch picture differences but cannot reliably detect intermittent flicker; the small claimed gains may be indistinguishable from farm noise. > **Summary**, written by AI (`gpt-6.1-terra`) from the numbers below: > > The farm failed the PR on all seven targets: Windows NVIDIA, AMD discrete and Intel; Linux NVIDIA, RADV and Intel; and integrated GPUs. In normal performance runs, Linux NVIDIA Forest frame time p99 rose 15.766 → 18.577 ms (+17.8%), Linux RADV Market GPU time rose 19.27 → 23.87 ms (+23.9%), and the 760M integrated GPU's Field frame time p99 rose 364.813 → 4852.628 ms (+1230.2%); screenshot mismatches also failed on Windows NVIDIA and the 760M. Census runs, with diagnostics enabled only on the PR, also showed regressions, including 890M Market frame time p99 32.016 → 41.576 ms (+29.9%); Windows AMD and Intel each crashed twice on both sides, while Linux Intel recorded one baseline and two PR… Done (started 2026-11-23 00:02 UTC, last report 2026-11-24 19:33 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_9cc6d4d046a66a2a) [2](https://beanstalk.magicbean.dev/reports/rp_c2d4b2a08ad9606e) | 9.7 → 9.7 (+0%) | — | none | | `windows+amd+dgpu` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_abfac2ac9d6fb817) [2](https://beanstalk.magicbean.dev/reports/rp_f5205b32de15603e) | 19.9 → 22.4 (+13%) | — | 4 PR runs | | `windows+intel` | ❌ fail | 2 [1](https://beanstalk.magicbean.dev/reports/rp_810b84e552c70462) [2](https://beanstalk.magicbean.dev/reports/rp_271ad14f77fe0bd7) | — | — | 4 PR runs | | `linux+nvidia` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_1a1443433329094a) [2](https://beanstalk.magicbean.dev/reports/rp_97b0b36de39b35d2) | 18.9 → 14.6 (−22%) | — | none | | `linux+radv` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_0ec7f609621fa34d) [2](https://beanstalk.magicbean.dev/reports/rp_ba0ba2d1bb06daeb) | 35.0 → 38.1 (+9%) | — | none | | `linux+intel` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_3771b0cc57a7d596) [2](https://beanstalk.magicbean.dev/reports/rp_66c47ed0bd765f53) | 34.6 → 44.3 (+28%) | — | 2 PR runs | | `igpu` | ❌ fail (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_765a87408ed7e3a7) [2](https://beanstalk.magicbean.dev/reports/rp_937eafc6375b35ff) | 196.1 → 2439.8 (+1144%) | — | none | **Why it failed** - `windows+nvidia`: `performance` `screenshot.max_diff`: `0.0 → 0.9; limit 0.2` - `windows+nvidia`: `census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` `market.frametime_1pct_low_ms.max_delta_pct`: `24.8 → 29.1 (+17.5%); limit 15.0` - `windows+amd+dgpu`: `performance` `crash`: `2 PR runs crashed` - `windows+amd+dgpu`: `census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` `crash`: `2 PR runs crashed` - `windows+intel`: `performance` `crash`: `2 PR runs crashed` - `windows+intel`: `census · RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` `crash`: `2 PR runs crashed` - `linux+nvidia`: `performance` `forest.frametime_p99_ms.max_delta_pct`: `15.8 → 18.6 (+17.8%); limit 15.0` - `linux+nvidia`: `performance` `forest.frametime_1pct_low_ms.max_delta_pct`: `16.7 → 20.6 (+23.0%); limit 15.0` - and 12 more, in the reports **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. - `windows+nvidia`, [report 2](https://beanstalk.magicbean.dev/reports/rp_c2d4b2a08ad9606e): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `windows+amd+dgpu`, [report 2](https://beanstalk.magicbean.dev/reports/rp_f5205b32de15603e): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `windows+intel`, [report 2](https://beanstalk.magicbean.dev/reports/rp_271ad14f77fe0bd7): `the main base failed (exit 1): Windows doesn't let programs look inside C:\, a folder above the builder's own compiler, so it can't start. Move Longshot's folder out of it (for example to C:\Longshot) and start Longshot from there.` - `linux+nvidia`, [report 1](https://beanstalk.magicbean.dev/reports/rp_1a1443433329094a): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `linux+radv`, [report 1](https://beanstalk.magicbean.dev/reports/rp_0ec7f609621fa34d): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) On Windows NVIDIA, AMD discrete and Intel GPUs, and on Linux NVIDIA, RADV, Intel and integrated GPUs, compare the PR with main in Kokiri Forest, Hyrule Field and the Market. Two starts per side measure 30 seconds per scene for performance, and two further starts run the PR's barrier census for 20 seconds per scene. The plan checks frame times, GPU time, stationary pictures, census hazard messages and crashes; a significant regression, picture mismatch, reported hazard or crash fails the PR. The census run enables its diagnostic switch only on the PR, while the performance run uses normal defaults. - **Where:** windows+nvidia (1-2 reports), windows+amd+dgpu (1-2 reports), windows+intel (1-2 reports), linux+nvidia (1-2 reports), linux+radv (1-2 reports), linux+intel (1-2 reports), igpu (1-2 reports). - **Matrix:** 1 cell, each on main and the PR: RX_VK_GAME_BARRIER_CENSUS `1` (PR only). - **performance:** from the repository's save `kokiri-start` (settings frame_rate_cap=6), then teleport to Kokiri Forest, take the picture forest to compare with main, measure forest for 30 s (after 5 s warm-up), teleport to Hyrule Field, take the picture field to compare with main, measure field for 30 s (after 5 s warm-up), teleport to Market, take the picture market to compare with main, measure market for 30 s (after 5 s warm-up); 2 runs on each side. - **census:** from the repository's save `kokiri-start`, then teleport to Kokiri Forest, measure forest for 20 s (after 5 s warm-up), teleport to Hyrule Field, measure field for 20 s (after 5 s warm-up), teleport to Market, measure market for 20 s (after 5 s warm-up); 2 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, GPU time per pass, the game's log (an expected line that never appears: could not be judged). - **The PR fails if:** it crashes; or a picture differs from main by more than 20%; or GPU time a frame is more than 15% above main; or frame time (p99) is more than 15% above main; or forbidden log lines is above 0; or expected log lines missing is above 0; or frame time (worst 1%) is more than 15% above main. - **Time:** about 53 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia`, for the PR description</summary> **Verdict:** fail on windows+nvidia (2 reports): `performance screenshot.max_diff`; `census market.frametime_1pct_low_ms.max_delta_pct (+17.5%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 6.8 | 6.7 (−1%) | | performance · forest · GPU time a frame (ms) | 5.6 | 5.4 (−3%) | | performance · market · GPU time a frame (ms) | 6.1 | 6.1 (−0%) | | performance · field · frame time (p99) (ms) | 9.7 | 9.7 (+0%) | | performance · forest · frame time (p99) (ms) | 10.2 | 9.8 (−5%) | | performance · market · frame time (p99) (ms) | 15.5 | 15.5 (+0%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 10.4 | 10.2 (−2%) | | performance · forest · frame time (worst 1%) (ms) | 10.9 | 10.7 (−1%) | | performance · market · frame time (worst 1%) (ms) | 17.6 | 19.5 (+11%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 7.8 | 7.7 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 6.7 | 6.7 (−0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 7.1 | 7.0 (−3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 18.6 | 18.6 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 18.5 | 18.4 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 20.2 | 20.7 (+2%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.6 | 19.2 (−2%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.1 | 19.1 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 23.8 | 26.2 (+10%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 7.8 → 7.7 (−1%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+nvidia (2 reports): `performance screenshot.max_diff`; `census market.frametime_1pct_low_ms.max_delta_pct (+17.5%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 6.8 | 6.7 (−1%) | | performance · forest · GPU time a frame (ms) | 5.6 | 5.4 (−3%) | | performance · market · GPU time a frame (ms) | 6.1 | 6.1 (−0%) | | performance · field · frame time (p99) (ms) | 9.7 | 9.7 (+0%) | | performance · forest · frame time (p99) (ms) | 10.2 | 9.8 (−5%) | | performance · market · frame time (p99) (ms) | 15.5 | 15.5 (+0%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 10.4 | 10.2 (−2%) | | performance · forest · frame time (worst 1%) (ms) | 10.9 | 10.7 (−1%) | | performance · market · frame time (worst 1%) (ms) | 17.6 | 19.5 (+11%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 7.8 | 7.7 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 6.7 | 6.7 (−0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 7.1 | 7.0 (−3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 18.6 | 18.6 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 18.5 | 18.4 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 20.2 | 20.7 (+2%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.6 | 19.2 (−2%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 19.1 | 19.1 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 23.8 | 26.2 (+10%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 7.8 → 7.7 (−1%) | no clear effect | ``` </details> <details><summary>Measurements on `windows+amd+dgpu`, for the PR description</summary> **Verdict:** fail on windows+amd+dgpu (2 reports): `performance crash`; `census crash` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 6600 XT, 2.0.353` `AMD Ryzen 5 3600 6-Core Processor, 16 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · forest · GPU time a frame (ms) | 7.9 | 7.5 (−5%) | | performance · field · GPU time a frame (ms) | 5.1 | 5.0 (−2%) | | performance · market · GPU time a frame (ms) | 6.3 | 5.9 (−6%) | | performance · forest · frame time (p99) (ms) | 19.8 | 22.3 (+13%) | | performance · field · frame time (p99) (ms) | 11.1 | 10.8 (−3%) | | performance · market · frame time (p99) (ms) | 20.8 | 18.9 (−9%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · forest · frame time (worst 1%) (ms) | 26.9 | 38.1 (+41%) | | performance · field · frame time (worst 1%) (ms) | 11.6 | 12.0 (+3%) | | performance · market · frame time (worst 1%) (ms) | 33.5 | 22.1 (−34%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 9.3 | 8.6 (−7%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 6.6 | 6.5 (−3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 7.0 | 6.7 (−3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 29.9 | 27.1 (−9%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 18.7 | 19.3 (+3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 28.4 | 24.5 (−14%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 46.0 | 42.0 (−9%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.8 | 21.2 (+7%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 43.1 | 36.7 (−15%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 9.3 → 8.6 (−7%) | helps | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+amd+dgpu (2 reports): `performance crash`; `census crash` failed. Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 6600 XT, 2.0.353` `AMD Ryzen 5 3600 6-Core Processor, 16 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · forest · GPU time a frame (ms) | 7.9 | 7.5 (−5%) | | performance · field · GPU time a frame (ms) | 5.1 | 5.0 (−2%) | | performance · market · GPU time a frame (ms) | 6.3 | 5.9 (−6%) | | performance · forest · frame time (p99) (ms) | 19.8 | 22.3 (+13%) | | performance · field · frame time (p99) (ms) | 11.1 | 10.8 (−3%) | | performance · market · frame time (p99) (ms) | 20.8 | 18.9 (−9%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · forest · frame time (worst 1%) (ms) | 26.9 | 38.1 (+41%) | | performance · field · frame time (worst 1%) (ms) | 11.6 | 12.0 (+3%) | | performance · market · frame time (worst 1%) (ms) | 33.5 | 22.1 (−34%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 9.3 | 8.6 (−7%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 6.6 | 6.5 (−3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 7.0 | 6.7 (−3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 29.9 | 27.1 (−9%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 18.7 | 19.3 (+3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 28.4 | 24.5 (−14%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 46.0 | 42.0 (−9%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 19.8 | 21.2 (+7%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 43.1 | 36.7 (−15%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 9.3 → 8.6 (−7%) | helps | ``` </details> <details><summary>Measurements on `windows+intel`, for the PR description</summary> **Verdict:** fail on windows+intel (2 reports): `performance crash`; `census crash` failed. Hardware: 1: windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM`; 2: windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+intel (2 reports): `performance crash`; `census crash` failed. Hardware: 1: windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM`; 2: windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: not measured | untested | ``` </details> <details><summary>Measurements on `linux+nvidia`, for the PR description</summary> **Verdict:** fail on linux+nvidia (2 reports): `performance forest.frametime_p99_ms.max_delta_pct (+17.8%)`; `performance forest.frametime_1pct_low_ms.max_delta_pct (+23.0%)`; `census field.frametime_p99_ms.max_delta_pct (+16.7%)` failed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 620.73.4` `AMD Ryzen 5 5600X 6-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 10.6 | 6.5 (−38%) | | performance · forest · GPU time a frame (ms) | 8.3 | 5.5 (−34%) | | performance · market · GPU time a frame (ms) | 9.6 | 6.2 (−35%) | | performance · field · frame time (p99) (ms) | 18.9 | 14.6 (−22%) | | performance · forest · frame time (p99) (ms) | 32.4 | 15.6 (−52%) | | performance · market · frame time (p99) (ms) | 26.5 | 20.0 (−25%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 20.9 | 16.8 (−19%) | | performance · forest · frame time (worst 1%) (ms) | 44.5 | 17.1 (−62%) | | performance · market · frame time (worst 1%) (ms) | 34.1 | 24.8 (−28%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 7.6 | 7.7 (+1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 6.5 | 6.5 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 7.4 | 7.5 (+1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 21.1 | 22.2 (+5%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 19.5 | 19.5 (−0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 24.4 | 23.3 (−5%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 24.5 | 24.7 (+1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 20.5 | 21.8 (+6%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 31.6 | 30.2 (−4%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 7.6 → 7.7 (+1%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+nvidia (2 reports): `performance forest.frametime_p99_ms.max_delta_pct (+17.8%)`; `performance forest.frametime_1pct_low_ms.max_delta_pct (+23.0%)`; `census field.frametime_p99_ms.max_delta_pct (+16.7%)` failed. Hardware: 1: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM`; 2: linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 620.73.4` `AMD Ryzen 5 5600X 6-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 10.6 | 6.5 (−38%) | | performance · forest · GPU time a frame (ms) | 8.3 | 5.5 (−34%) | | performance · market · GPU time a frame (ms) | 9.6 | 6.2 (−35%) | | performance · field · frame time (p99) (ms) | 18.9 | 14.6 (−22%) | | performance · forest · frame time (p99) (ms) | 32.4 | 15.6 (−52%) | | performance · market · frame time (p99) (ms) | 26.5 | 20.0 (−25%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 20.9 | 16.8 (−19%) | | performance · forest · frame time (worst 1%) (ms) | 44.5 | 17.1 (−62%) | | performance · market · frame time (worst 1%) (ms) | 34.1 | 24.8 (−28%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 7.6 | 7.7 (+1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 6.5 | 6.5 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 7.4 | 7.5 (+1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 21.1 | 22.2 (+5%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 19.5 | 19.5 (−0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 24.4 | 23.3 (−5%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 24.5 | 24.7 (+1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 20.5 | 21.8 (+6%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 31.6 | 30.2 (−4%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 7.6 → 7.7 (+1%) | no clear effect | ``` </details> <details><summary>Measurements on `linux+radv`, for the PR description</summary> **Verdict:** fail on linux+radv (2 reports): `performance market.gpu_total_ms.max_delta_pct (+23.9%)` failed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 14.9 | 14.7 (−1%) | | performance · forest · GPU time a frame (ms) | 13.6 | 13.8 (+2%) | | performance · market · GPU time a frame (ms) | 15.0 | 17.2 (+14%) | | performance · field · frame time (p99) (ms) | 35.0 | 38.1 (+9%) | | performance · forest · frame time (p99) (ms) | 26.5 | 25.0 (−6%) | | performance · market · frame time (p99) (ms) | 35.1 | 34.4 (−2%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 40.0 | 43.8 (+9%) | | performance · forest · frame time (worst 1%) (ms) | 31.7 | 29.5 (−7%) | | performance · market · frame time (worst 1%) (ms) | 43.3 | 41.3 (−5%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 15.7 | 15.5 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 13.5 | 13.6 (+1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 15.1 | 15.1 (−0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 37.4 | 40.7 (+9%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 25.1 | 26.7 (+6%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 36.8 | 38.8 (+5%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 41.4 | 45.7 (+10%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 27.5 | 29.8 (+8%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 43.8 | 46.5 (+6%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 15.7 → 15.5 (−1%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+radv (2 reports): `performance market.gpu_total_ms.max_delta_pct (+23.9%)` failed. Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+dgpu `AMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 14.9 | 14.7 (−1%) | | performance · forest · GPU time a frame (ms) | 13.6 | 13.8 (+2%) | | performance · market · GPU time a frame (ms) | 15.0 | 17.2 (+14%) | | performance · field · frame time (p99) (ms) | 35.0 | 38.1 (+9%) | | performance · forest · frame time (p99) (ms) | 26.5 | 25.0 (−6%) | | performance · market · frame time (p99) (ms) | 35.1 | 34.4 (−2%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 40.0 | 43.8 (+9%) | | performance · forest · frame time (worst 1%) (ms) | 31.7 | 29.5 (−7%) | | performance · market · frame time (worst 1%) (ms) | 43.3 | 41.3 (−5%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 15.7 | 15.5 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 13.5 | 13.6 (+1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 15.1 | 15.1 (−0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 37.4 | 40.7 (+9%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 25.1 | 26.7 (+6%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 36.8 | 38.8 (+5%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 41.4 | 45.7 (+10%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 27.5 | 29.8 (+8%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 43.8 | 46.5 (+6%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 15.7 → 15.5 (−1%) | no clear effect | ``` </details> <details><summary>Measurements on `linux+intel`, for the PR description</summary> **Verdict:** fail on linux+intel (2 reports): `performance crash`; `census forest.frametime_1pct_low_ms.max_delta_pct (+17.1%)` failed. Hardware: 1: linux+intel+anv+dgpu `Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7` `13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM`; 2: linux+intel+anv+dgpu `Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4` `AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 18.0 | 16.0 (−11%) | | performance · forest · GPU time a frame (ms) | 15.9 | 14.9 (−6%) | | performance · market · GPU time a frame (ms) | 17.4 | 19.3 (+11%) | | performance · field · frame time (p99) (ms) | 57.4 | 26.1 (−54%) | | performance · forest · frame time (p99) (ms) | 33.8 | 43.3 (+28%) | | performance · market · frame time (p99) (ms) | 117.9 | 54.6 (−54%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 65.7 | 31.8 (−52%) | | performance · forest · frame time (worst 1%) (ms) | 48.3 | 65.6 (+36%) | | performance · market · frame time (worst 1%) (ms) | 150.7 | 66.2 (−56%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 33.0 | 19.1 (−42%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 19.1 | 19.6 (+3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 15.4 | 15.2 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 71.0 | 68.4 (−4%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 157.4 | 155.8 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 144.0 | 116.9 (−19%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 71.7 | 70.5 (−2%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 192.4 | 207.2 (+8%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 150.8 | 125.9 (−17%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 33.0 → 19.1 (−42%) | helps | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on linux+intel (2 reports): `performance crash`; `census forest.frametime_1pct_low_ms.max_delta_pct (+17.1%)` failed. Hardware: 1: linux+intel+anv+dgpu `Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7` `13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM`; 2: linux+intel+anv+dgpu `Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4` `AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 18.0 | 16.0 (−11%) | | performance · forest · GPU time a frame (ms) | 15.9 | 14.9 (−6%) | | performance · market · GPU time a frame (ms) | 17.4 | 19.3 (+11%) | | performance · field · frame time (p99) (ms) | 57.4 | 26.1 (−54%) | | performance · forest · frame time (p99) (ms) | 33.8 | 43.3 (+28%) | | performance · market · frame time (p99) (ms) | 117.9 | 54.6 (−54%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 65.7 | 31.8 (−52%) | | performance · forest · frame time (worst 1%) (ms) | 48.3 | 65.6 (+36%) | | performance · market · frame time (worst 1%) (ms) | 150.7 | 66.2 (−56%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 33.0 | 19.1 (−42%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 19.1 | 19.6 (+3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 15.4 | 15.2 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 71.0 | 68.4 (−4%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 157.4 | 155.8 (−1%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 144.0 | 116.9 (−19%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 71.7 | 70.5 (−2%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 192.4 | 207.2 (+8%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 150.8 | 125.9 (−17%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 33.0 → 19.1 (−42%) | helps | ``` </details> <details><summary>Measurements on `igpu`, for the PR description</summary> **Verdict:** fail on igpu (2 reports): `census market.frametime_p99_ms.max_delta_pct (+29.9%)`; `census market.frametime_1pct_low_ms.max_delta_pct (+53.7%)`; `performance screenshot.max_diff` failed. Hardware: 1: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 22.3 | 31.5 (+42%) | | performance · forest · GPU time a frame (ms) | 11.8 | 19.0 (+61%) | | performance · market · GPU time a frame (ms) | 31.5 | 21.9 (−31%) | | performance · field · frame time (p99) (ms) | 196.1 | 2,440 (+1144%) | | performance · forest · frame time (p99) (ms) | 43.8 | 59.4 (+36%) | | performance · market · frame time (p99) (ms) | 200.2 | 197.3 (−1%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 399.5 | 2,481 (+521%) | | performance · forest · frame time (worst 1%) (ms) | 61.6 | 134.7 (+119%) | | performance · market · frame time (worst 1%) (ms) | 965.1 | 249.0 (−74%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 13.6 | 13.7 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 15.4 | 19.6 (+28%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 10.5 | 19.3 (+84%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 2,413 | 2,224 (−8%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 2,679 | 166.0 (−94%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 189.3 | 194.9 (+3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 2,544 | 2,778 (+9%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 2,837 | 234.8 (−92%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 426.2 | 265.1 (−38%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 13.6 → 13.7 (+0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on igpu (2 reports): `census market.frametime_p99_ms.max_delta_pct (+29.9%)`; `census market.frametime_1pct_low_ms.max_delta_pct (+53.7%)`; `performance screenshot.max_diff` failed. Hardware: 1: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` Scene: performance, from the repository's save kokiri-start (frame_rate_cap=6); census, from the repository's save kokiri-start; 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); performance: 2 game starts a side, forest 30 s after 5 s warm-up, field 30 s after 5 s warm-up, market 30 s after 5 s warm-up; census: 2 game starts a side, forest 20 s after 5 s warm-up, field 20 s after 5 s warm-up, market 20 s after 5 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 67ba729 | After: this PR @ 959870a | |---|---|---| | performance · field · GPU time a frame (ms) | 22.3 | 31.5 (+42%) | | performance · forest · GPU time a frame (ms) | 11.8 | 19.0 (+61%) | | performance · market · GPU time a frame (ms) | 31.5 | 21.9 (−31%) | | performance · field · frame time (p99) (ms) | 196.1 | 2,440 (+1144%) | | performance · forest · frame time (p99) (ms) | 43.8 | 59.4 (+36%) | | performance · market · frame time (p99) (ms) | 200.2 | 197.3 (−1%) | | performance · forbidden log lines | 0.0 | 0.0 | | performance · expected log lines missing | 1.0 | 1.0 (+0%) | | performance · field · frame time (worst 1%) (ms) | 399.5 | 2,481 (+521%) | | performance · forest · frame time (worst 1%) (ms) | 61.6 | 134.7 (+119%) | | performance · market · frame time (worst 1%) (ms) | 965.1 | 249.0 (−74%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · GPU time a frame (ms) | 13.6 | 13.7 (+0%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · GPU time a frame (ms) | 15.4 | 19.6 (+28%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · GPU time a frame (ms) | 10.5 | 19.3 (+84%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (p99) (ms) | 2,413 | 2,224 (−8%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (p99) (ms) | 2,679 | 166.0 (−94%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (p99) (ms) | 189.3 | 194.9 (+3%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forbidden log lines | 0.0 | 0.0 | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · field · frame time (worst 1%) (ms) | 2,544 | 2,778 (+9%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · forest · frame time (worst 1%) (ms) | 2,837 | 234.8 (−92%) | | census · `RX_VK_GAME_BARRIER_CENSUS=1 (PR only)` · market · frame time (worst 1%) (ms) | 426.2 | 265.1 (−38%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (GPU time a frame) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_GAME_BARRIER_CENSUS` | switch the PR adds (set on the PR side only) | `1` | not in main | the PR's default | census, main without it → the PR with 1: 13.6 → 13.7 (+0%) | no clear effect | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_9cc6d4d046a66a2a) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `windows+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_c2d4b2a08ad9606e) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3090, 621.1.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` | | `windows+amd+dgpu` | [1](https://beanstalk.magicbean.dev/reports/rp_abfac2ac9d6fb817) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 6600 XT, 2.0.353` `AMD Ryzen 5 3600 6-Core Processor, 16 GB RAM` | | `windows+amd+dgpu` | [2](https://beanstalk.magicbean.dev/reports/rp_f5205b32de15603e) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | | `windows+intel` | [1](https://beanstalk.magicbean.dev/reports/rp_810b84e552c70462) | windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `12th Gen Intel(R) Core(TM) i9-12900K, 32 GB RAM` | | `windows+intel` | [2](https://beanstalk.magicbean.dev/reports/rp_271ad14f77fe0bd7) | windows+intel+intel-proprietary+dgpu `Intel(R) Arc(TM) B580 Graphics, 0.406.983` `AMD Ryzen 5 9600X 6-Core Processor, 16 GB RAM` | | `linux+nvidia` | [1](https://beanstalk.magicbean.dev/reports/rp_1a1443433329094a) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4` `AMD Ryzen 5 9600X 6-Core Processor, 32 GB RAM` | | `linux+nvidia` | [2](https://beanstalk.magicbean.dev/reports/rp_97b0b36de39b35d2) | linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 620.73.4` `AMD Ryzen 5 5600X 6-Core Processor, 32 GB RAM` | | `linux+radv` | [1](https://beanstalk.magicbean.dev/reports/rp_0ec7f609621fa34d) | linux+amd+radv+dgpu `AMD Radeon RX 9070 (RADV GFX1201), 26.0.8` `AMD Ryzen 7 5800X 8-Core Processor, 32 GB RAM` | | `linux+radv` | [2](https://beanstalk.magicbean.dev/reports/rp_ba0ba2d1bb06daeb) | linux+amd+radv+dgpu `AMD Radeon RX 580 Series (RADV POLARIS10), 26.2.7` `AMD Ryzen 5 5500F 6-Core Processor, 32 GB RAM` | | `linux+intel` | [1](https://beanstalk.magicbean.dev/reports/rp_3771b0cc57a7d596) | linux+intel+anv+dgpu `Intel(R) Arc(tm) A770 Graphics (DG2), 26.2.7` `13th Gen Intel(R) Core(TM) i5-13600K, 32 GB RAM` | | `linux+intel` | [2](https://beanstalk.magicbean.dev/reports/rp_66c47ed0bd765f53) | linux+intel+anv+dgpu `Intel(R) Arc(tm) B580 Graphics (BMG G21), 26.2.4` `AMD Ryzen 7 9700X 8-Core Processor, 32 GB RAM` | | `igpu` | [1](https://beanstalk.magicbean.dev/reports/rp_765a87408ed7e3a7) | linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` | | `igpu` | [2](https://beanstalk.magicbean.dev/reports/rp_937eafc6375b35ff) | linux+amd+radv+igpu `AMD Radeon 760M Graphics (RADV PHOENIX), 26.0.8` `AMD Ryzen 5 230 w/ Radeon 760M Graphics, 16 GB RAM` | </details> <details><summary>Run by hand on PCs that don't match their target (not counted)</summary> | Target | Ran on | Result | | --- | --- | --- | | linux+intel | off target (ran on linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070, 620.73.4`) | [fail](https://beanstalk.magicbean.dev/reports/rp_26be64440faf0ef2) | </details>
BeanBot left a comment

Recommendation: Request changes. The census can report zero while missing dependencies that the new barrier leaves unordered, so its results cannot yet support enabling the change across the game. The claimed performance gain also needs measurement on the current base and head.

The change replaces some full game barriers with fragment-stage barriers to let geometry run sooner, and adds a diagnostic census. Earlier measurements show a small gain in one scene, but the diagnostic has false-negative cases and the current head has not been measured in game.

Blocking (2): must change before merging.

  1. L1 gpu/vk/vk_texture.cpp:3262: The census replaces a texture's earlier write when the same texture becomes a target again, before checking the draw's reads. (more on the line) Do: Retain writes from both sides of the game barrier until a full barrier, and check the draw's reads against the earlier writes before recording its target writes.
  2. L2 gpu/vk/vk_texture.cpp:3316: The census does not compare unknown-range global reads with known storage-buffer writes, or known buffer reads with unknown-range global writes. (more on the line) Do: Conservatively count unknown-range reads against prior known writes and unknown-range writes against all later known buffer reads, until a full barrier.

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

  • L3 tests/test_game_barrier.py:382: The fixture inherits the barrier-deduplication switch from the environment even though its expected command sequences assume deduplication is enabled. (more on the line) Do: Remove RX_VK_BARRIER_DEDUPE_OFF from the child environment along with the other switches controlled by the fixture.

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

  • L4: The performance result predates both the current merge base and this head. When: The reported 1.9% Hyrule Field gain was measured on a different base and branch head, so it does not establish the effect of the code that would merge. Do: Repeat interleaved measurements against 67ba729d on the current head, including average and 1% low fps and median and p99 frame times in the measured scenes.
  • L5: The narrowed synchronization needs game validation on the other affected tier-one systems and in more game areas. When: A non-fragment read or store dependent on an earlier draw in an untested dungeon or cutscene can run before that draw completes; the current three outdoor scenes and Linux runs cannot rule it out. Do: After correcting the census, run it and check for rendering errors on Windows and Linux NVIDIA and discrete AMD, including Steam Deck and representative dungeons and cutscenes. (@fix does its part first: Keep the affected barriers full until the corrected census and game runs establish where narrowing is safe.)

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

Checks: Still running: 10 checks.

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

Does it help: Unproven on this head. Earlier Linux RTX 4070 Ti runs reported 126.7 to 129.1 fps in Hyrule Field and 0.10–0.20 ms lower GPU time across three scenes; the other fps changes were within the reported spread. Those runs compared a2dc5385 with ce5266d2, not this PR's base and head.

Other systems: The barrier changes draw synchronization on all Vulkan GPUs and both operating systems, including mesh and fallback paths. The supplied game runs cover Linux NVIDIA and an AMD iGPU in three outdoor scenes; Windows, discrete AMD, Steam Deck, Intel and other game areas remain untested. Dispatches, copies and mesh conversions retain full barriers in the reviewed paths.

Switches: RX_VK_GAME_BARRIER is a default-on kill switch; its default needs the corrected census and broader validation. RX_VK_GAME_BARRIER_CENSUS is a default-off diagnostic switch. Both have switch-table rows.

Reviewed: 959870ac26 against 67ba729d21: Read the repository's AGENTS.md, CONTRIBUTING.md, PR template and standards, the complete diff and commit messages, and the changed barrier and census paths with their immediate draw callers. Skimmed the test fixture and thread documentation; the large changed renderer files and existing test files were not read in full. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review).

Checked and fine:

  • The new switches have entries in gpu/vk/switches.def.
  • The four commits carry AI-assistance trailers.
  • The reviewed replay path retains full barriers for non-fragment bit combinations and for mesh conversion batches.

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

Overlaps and merge order: #2072 is reported to touch the same dispatch and pass-barrier paths; its merge order and conflict resolution need checking. The reported pass-start work also overlaps vk_texture.cpp.


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

**Recommendation: Request changes.** The census can report zero while missing dependencies that the new barrier leaves unordered, so its results cannot yet support enabling the change across the game. The claimed performance gain also needs measurement on the current base and head. The change replaces some full game barriers with fragment-stage barriers to let geometry run sooner, and adds a diagnostic census. Earlier measurements show a small gain in one scene, but the diagnostic has false-negative cases and the current head has not been measured in game. **Blocking (2)**: must change before merging. 1. **L1** `gpu/vk/vk_texture.cpp:3262`: The census replaces a texture's earlier write when the same texture becomes a target again, before checking the draw's reads. (more on the line) **Do:** Retain writes from both sides of the game barrier until a full barrier, and check the draw's reads against the earlier writes before recording its target writes. 2. **L2** `gpu/vk/vk_texture.cpp:3316`: The census does not compare unknown-range global reads with known storage-buffer writes, or known buffer reads with unknown-range global writes. (more on the line) **Do:** Conservatively count unknown-range reads against prior known writes and unknown-range writes against all later known buffer reads, until a full barrier. **Should fix (1)**: not blocking, but worth doing before merging. - **L3** `tests/test_game_barrier.py:382`: The fixture inherits the barrier-deduplication switch from the environment even though its expected command sequences assume deduplication is enabled. (more on the line) **Do:** Remove RX_VK_BARRIER_DEDUPE_OFF from the child environment along with the other switches controlled by the fixture. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L4**: The performance result predates both the current merge base and this head. *When:* The reported 1.9% Hyrule Field gain was measured on a different base and branch head, so it does not establish the effect of the code that would merge. **Do:** Repeat interleaved measurements against 67ba729d on the current head, including average and 1% low fps and median and p99 frame times in the measured scenes. - **L5**: The narrowed synchronization needs game validation on the other affected tier-one systems and in more game areas. *When:* A non-fragment read or store dependent on an earlier draw in an untested dungeon or cutscene can run before that draw completes; the current three outdoor scenes and Linux runs cannot rule it out. **Do:** After correcting the census, run it and check for rendering errors on Windows and Linux NVIDIA and discrete AMD, including Steam Deck and representative dungeons and cutscenes. *(`@fix` does its part first: Keep the affected barriers full until the corrected census and game runs establish where narrowing is safe.)* `@fix` can do L1, L2, L3 and L5. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven on this head. Earlier Linux RTX 4070 Ti runs reported 126.7 to 129.1 fps in Hyrule Field and 0.10–0.20 ms lower GPU time across three scenes; the other fps changes were within the reported spread. Those runs compared a2dc5385 with ce5266d2, not this PR's base and head. **Other systems:** The barrier changes draw synchronization on all Vulkan GPUs and both operating systems, including mesh and fallback paths. The supplied game runs cover Linux NVIDIA and an AMD iGPU in three outdoor scenes; Windows, discrete AMD, Steam Deck, Intel and other game areas remain untested. Dispatches, copies and mesh conversions retain full barriers in the reviewed paths. **Switches:** RX_VK_GAME_BARRIER is a default-on kill switch; its default needs the corrected census and broader validation. RX_VK_GAME_BARRIER_CENSUS is a default-off diagnostic switch. Both have switch-table rows. **Reviewed:** 959870ac26f8 against 67ba729d215b: Read the repository's AGENTS.md, CONTRIBUTING.md, PR template and standards, the complete diff and commit messages, and the changed barrier and census paths with their immediate draw callers. Skimmed the test fixture and thread documentation; the large changed renderer files and existing test files were not read in full. docs/review-checklist.md and ../Tooling/AGENTS.md were absent.; nothing run (a code review). **Checked and fine:** - The new switches have entries in gpu/vk/switches.def. - The four commits carry AI-assistance trailers. - The reviewed replay path retains full barriers for non-fragment bit combinations and for mesh conversion batches. **Testing:** Read-only review; no tests, builds or project scripts were run. The supplied CI checks are still running. **Overlaps and merge order:** #2072 is reported to touch the same dispatch and pass-barrier paths; its merge order and conflict resolution need checking. The reported pass-start work also overlaps vk_texture.cpp. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -3148,0 +3259,4 @@
}
/// The written range [lo, hi) overlaps, if any (the latest such write)
const CensusRange* census_overlap(uint64_t lo, uint64_t hi) {
const CensusRange* found = nullptr;
Member

L1 (blocking): The census replaces a texture's earlier write when the same texture becomes a target again, before checking the draw's reads.

When: A pass writes a texture, a fragments-only game barrier follows, and a later pass binds that texture as a target while a non-fragment stage reads it. begin_pass records the new target write before game_barrier_census_draw checks the read, so the earlier serial is lost and the hazard is counted as a pass-only read instead of a game-barrier read.

Do: Retain writes from both sides of the game barrier until a full barrier, and check the draw's reads against the earlier writes before recording its target writes.

**L1** (blocking): The census replaces a texture's earlier write when the same texture becomes a target again, before checking the draw's reads. *When:* A pass writes a texture, a fragments-only game barrier follows, and a later pass binds that texture as a target while a non-fragment stage reads it. begin_pass records the new target write before game_barrier_census_draw checks the read, so the earlier serial is lost and the hazard is counted as a pass-only read instead of a game-barrier read. **Do:** Retain writes from both sides of the game barrier until a full barrier, and check the draw's reads against the earlier writes before recording its target writes.
@ -3148,0 +3313,4 @@
game ? "a vertex, index or indirect fetch of memory a storage buffer wrote before a fragments-only barrier"
: "a vertex, index or indirect fetch of memory a storage buffer wrote since the last full barrier",
d.prog, nullptr, r->prog, d.fetch[i], d.fetch[i + 1]);
}
Member

L2 (blocking): The census does not compare unknown-range global reads with known storage-buffer writes, or known buffer reads with unknown-range global writes.

When: If a draw writes a storage buffer before a fragments-only barrier and a later vertex shader reads the same address through global memory, geometry_global_read is true but census_global is false, so the game-barrier count remains zero. The reverse direction is also missed for a later uniform or storage-buffer read.

Do: Conservatively count unknown-range reads against prior known writes and unknown-range writes against all later known buffer reads, until a full barrier.

**L2** (blocking): The census does not compare unknown-range global reads with known storage-buffer writes, or known buffer reads with unknown-range global writes. *When:* If a draw writes a storage buffer before a fragments-only barrier and a later vertex shader reads the same address through global memory, geometry_global_read is true but census_global is false, so the game-barrier count remains zero. The reverse direction is also missed for a later uniform or storage-buffer read. **Do:** Conservatively count unknown-range reads against prior known writes and unknown-range writes against all later known buffer reads, until a full barrier.
@ -0,0 +379,4 @@
def run(exe, env_extra, mode):
env = {k: v for k, v in os.environ.items() if k not in ("RX_VK_GAME_BARRIER", "RX_VK_PASS_BARRIER")}
env.update(env_extra)
return subprocess.run([str(exe), mode], capture_output=True, text=True, timeout=60, env=env)
Member

L3 (should fix): The fixture inherits the barrier-deduplication switch from the environment even though its expected command sequences assume deduplication is enabled.

When: With RX_VK_BARRIER_DEDUPE_OFF=1 in the developer's environment, the extracted full_barrier records extra barriers and the fixture fails despite unchanged correct code.

Do: Remove RX_VK_BARRIER_DEDUPE_OFF from the child environment along with the other switches controlled by the fixture.

**L3** (should fix): The fixture inherits the barrier-deduplication switch from the environment even though its expected command sequences assume deduplication is enabled. *When:* With RX_VK_BARRIER_DEDUPE_OFF=1 in the developer's environment, the extracted full_barrier records extra barriers and the fixture fails despite unchanged correct code. **Do:** Remove RX_VK_BARRIER_DEDUPE_OFF from the child environment along with the other switches controlled by the fixture.
First-time contributor

Intel Arc B580 on Bazzite: https://beanstalk.magicbean.dev/reports/rp_66c47ed0bd765f53


This report disagrees with its peers.

census forest.frametime_max_ms: +73.8% against peers' +3.9%
census forest.hitch_count: +0.0% against peers' -61.8%
census market.frametime_1pct_low_ms: +7.2% against peers' -22.8%
census market.frametime_max_ms: +39.9% against peers' -17.8%
census market.hitch_count: -18.9% against peers' +42.4%
census run_frametime_max_ms: -7.2% against peers' +200.2%
performance forest.frametime_1pct_low_ms: -1.1% against peers' +51.9%
performance forest.frametime_max_ms: +3.5% against peers' +80.1%
performance forest.frametime_p99_ms: -1.6% against peers' +44.8%
performance forest.hitch_count: +0.0% against peers' +573.3%
performance forest.stutter_count: +0.0% against peers' +821.4%
performance run_hitch_count: -3.1% against peers' -79.6%
Intel Arc B580 on Bazzite: https://beanstalk.magicbean.dev/reports/rp_66c47ed0bd765f53 ``` This report disagrees with its peers. census forest.frametime_max_ms: +73.8% against peers' +3.9% census forest.hitch_count: +0.0% against peers' -61.8% census market.frametime_1pct_low_ms: +7.2% against peers' -22.8% census market.frametime_max_ms: +39.9% against peers' -17.8% census market.hitch_count: -18.9% against peers' +42.4% census run_frametime_max_ms: -7.2% against peers' +200.2% performance forest.frametime_1pct_low_ms: -1.1% against peers' +51.9% performance forest.frametime_max_ms: +3.5% against peers' +80.1% performance forest.frametime_p99_ms: -1.6% against peers' +44.8% performance forest.hitch_count: +0.0% against peers' +573.3% performance forest.stutter_count: +0.0% against peers' +821.4% performance run_hitch_count: -3.1% against peers' -79.6% ```
Author
Member

Closing: the Test Farm failed this on all seven targets (higher 99th-percentile frame times on Linux NVIDIA and RADV, crashes on Windows AMD and Intel, screenshot mismatches), and the gain it claimed did not show. Not worth carrying as it stands. Thanks to everyone who ran it.

Closing: the Test Farm failed this on all seven targets (higher 99th-percentile frame times on Linux NVIDIA and RADV, crashes on Windows AMD and Intel, screenshot mismatches), and the gain it claimed did not show. Not worth carrying as it stands. Thanks to everyone who ran it.
TrashPanda closed this pull request 2026-11-25 13:51:36 +00:00
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 5s
beanstalk/windows+nvidia 1/1 fail
beanstalk/windows+amd+dgpu 1/1 fail
beanstalk/approval approved by HumanBean (reviewed)
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been cancelled
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
beanstalk/windows+intel 1/1 fail
beanstalk/linux+nvidia 1/1 fail
beanstalk/linux+radv 1/1 fail
beanstalk/linux+intel 2/1 fail
beanstalk/igpu 2/1 fail

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
5 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!2290
No description provided.