WIP: perf(vk): RX_VK_RT_HOME=1 keeps the render thread on its own core on Windows, with a guard for another program holding it (off by default) #2240

Draft
klimovich008 wants to merge 18 commits from klimovich008/Longshot:perf/rt-home-v3 into main
Member

Summary

This brings back a switch that keeps the render thread on one core, after #1309 removed RX_VK_RT_STRICT_PIN. This time
it comes with a guard for #838's case (another program holding that core) and a farm plan. It is off by default, and
this PR proposes no default:
that is the team's call once the farm has run it.

What it does, in player words. On Windows, the renderer keeps one core free of the game's own threads for the render
thread (the "reserved core"). Today the thread prefers that core, but Windows may move it to any fast core. When it moves,
it often lands beside a busy game thread on the same physical core, and both run slower. RX_VK_RT_HOME=1 keeps the
render thread on its own core. When something else holds that core off it (#838's case: another program at high
priority on the same core), it lets the thread move again for a while:

  • 2 s at first, doubled for each hold within a minute, 30 s at most;
  • then it goes home again.

It does nothing on Linux, the Steam Deck or macOS, and on a CPU without SMT (two logical processors a core) it changes
nothing that matters.

The switch. RX_VK_RT_HOME (kind attempt):

  • unset (or 0): main's placement, exactly;
  • 1: home, with the guard;
  • strict: home with no guard. It is a measuring arm and the tests' negative control, never meant to be used.

RX_VK_RT_HOME_MS (kind tune, default 4, 1-1000) is the guard's threshold.

On a PC whose host keeps no core free for the render thread, 1 and strict say so at start ("the host keeps no core
free for the render thread on this PC, so it moves freely, as unset"), so a run there shows it compared the same
placement twice. Unset and 0 print nothing new.

How the guard decides it is being held. For each window between two presents (20 ms or more apart), it looks at two
things:

  1. whether the render thread lost time off the CPU outside its own waits. The time it spent ready but not woken from its
    job wait counts as lost;
  2. whether every processor of its core was taken by other threads for that long.

Each must reach RX_VK_RT_HOME_MS. For a window over 250 ms, each must reach max(RX_VK_RT_HOME_MS, half the window):

  • a long compile on the render thread fails fact 1;
  • a load where it blocked with a processor of its core free fails fact 2;
  • small losses over a long window don't add up to a hold;
  • a hold of most of the window does widen it.

It acts only once it has seen a hold happen, so about one stall frame gets through each time the thread goes back
home
(measured below).

Fact 2 is a lower bound (busy time minus what the thread and the waits account for), so it goes below zero when a
processor of the core was free for part of the window. The guard decides on that raw bound; the log lines (the
600-presents summary and the long-present line) show it as at least 0, so "its core taken by others" never reads
negative.

Read first: gpu/vk/rt_pin.h (the Guard, need), then in gpu/vk/vk_replay.cpp: rt_place, rt_home_frame, job_wait
and rt_ready_note. The present path's own waits are marked as the render thread's waits (FpsRtWait(-1)): the frame slot's
fence, presenter_wait_idle, image_free's fence and the blocking acquire. Also changed:

  • gpu/vk/vk_fps.cpp/.h: the render thread's waits by kind;
  • gpu/vk/switches.def: the two rows;
  • docs/dev/reference/threads.md;
  • the tests: tests/test_rt_pin.py (new) and tests/test_reserved_core_mask.py. The present-path fixtures now stub
    FpsRtWait.

Testing

Tested: Windows 11, Ryzen 7 5700X3D (8 cores, 16 threads), RX 9070 XT, AMD 26.11.2.

Round 3 (this head, main 0e32bc10 merged): the DLL built from the round's code (f65e5e69) over main 0e32bc10's base:

  • The standard test, Lost Woods (child) (the standard scene since 2026-11-23), RX_VK_RT_HOME=1 against unset, 3
    alternating pairs: +2.8 %, diagnostic (Measurements). Every 1 run was home through the window: 0 holds, 0 s wide;
    the longest wake from a job wait 0.17-1.00 ms against the 4 ms threshold; live mask 0xc000 with 1, 0xffff unset;
    no negative "taken by others" in any log. Unset on this build against main's own build (one run): the same placement
    lines and live mask, no new error-line kinds.
  • The merge of main 0e32bc10: #2275 (Streamline) reshaped the present's fence wait and acquire, two of the waits
    this PR marks. Both keep main's shape (copy_ready, its early return, the retired acquire semaphore,
    acquire_semaphore) with the wait inside FpsRtWait(-1); test_rt_pin's pins follow, and a removed or moved scope
    still fails them.
  • tests/test_rt_pin.py, with clang++ and g++: pass, 57 broken variants, each failing (new: a negative or
    absolute-value "taken by others" in either log line; on 61a86ea7 these checks fail).
  • The full run_all.py, this head against main 0e32bc10, with llvm-mingw clang (branch 880 passed / 25 failed / 53
    skipped, main 879 / 25 / 53) and MSYS2 gcc (874 / 31 against 872 / 32): nothing fails only on the branch; with gcc
    main's flaky test_longshot_ctl failed on main only. The present-path fixtures, test_reserved_core*, test_fps_stats,
    test_threaded_rendering and test_switch_table pass with both compilers. Linux syntax (WSL clang and gcc) ok on
    vk_replay.cpp and vk_fps.cpp.

The Test Farm on the previous head 61a86ea7 (Hyrule Field, 1 against 0 and unset on the PR's build):

  • The 6-core crashes were the PC: on Jackhamer24's Ryzen 5 3600 (RX 6600 XT, 16 GB) the switch-off side crashed 4
    of 4. A manual run, rn_31f9d7473c936025, main a2dc5385 against this PR with 1, 3 starts a side: main crashed 3 of 3
    too, and the PR 3 of 3 (the renderer's out-of-memory stop). The PC, not the switch.
  • The i5-12400's fail (-11.8 % fps) is one slow 1 run (27.73 fps; the other 1 run 40.36, above both 0 runs). It
    has the same signature as main's own slow run in the other scenario (18.87 fps, a 21-24 s frame, about 3,000 draws a
    frame against 2,374-2,473 in the six other runs): a scene-state freeze main's build also hit. Its log says the render
    thread was working, not held off: its jobs 85.72 of 89.56 ms a frame, the game waiting for room at 4 presents of 10 s
    each, the guard's most-lost window judged blocked (a processor of its core free), 2 small holds. Its "taken by others
    -17.8 ms" was that raw lower bound; the log now shows it as at least 0. One run a cell can't rule out more
    (whether being home slowed those long jobs on that CPU), so the farm is asked again with 3 starts a cell there.
  • The 8-core target couldn't be judged twice (p99 15.5 / 16.0 / 16.2); the 4C/8T target had no tester.

Round 2 (Hyrule Field, on main dd5ffe6a's base with main a2dc5385 merged; pack exe 4a697611, DLL 0dae9922):

  • The standard test as it was then (Hyrule Field turning), RX_VK_RT_HOME=1 against unset, 3 alternating pairs, in
    two sessions: see Measurements, "Round 2, Hyrule Field".

    • In every 1 run the thread is at home through the window: 0 holds, 0 s wide, and 0 holds in windows over 250 ms.
    • The live affinity mask was 0xc000 with 1 and 0xffff unset.
    • The longest wake from a job wait was 0.59-0.68 ms, against the 4 ms threshold.
  • Long holds made on purpose (both reserved processors at priority 15, 270 ms in every 2,700 ms):

    arm frames over 250 ms, per run
    strict 7, 8, 7
    1 0, 0, 0
    unset 0, 0, 0

    These are the implementer's three rounds; the checker's one round gave strict 7, 1 0 and unset 0. Each widen came in a
    272-280 ms window where the thread lost about 190-270 ms with its core taken 180-270 ms, over the half-window bar.

  • The short stall (35 ms in every 250 ms, 3 rounds), frames over 40 ms:

    arm per run
    strict 81, 80, 81
    1 2, 2, 2
    unset 1, 2, 1

    1 stays within unset + 1. The extra one is the first stall after a return home, caught at that present.

  • Unset and 0 against main's own build: the same two placement lines, the same live mask (0xffff, ideal 15), and no
    new error-line kinds. 0 adds its one line ("free to move, as unset").

  • tests/test_rt_pin.py (round 2), with clang++ and g++:

    • 54 broken variants, each failing;
    • the windows over 250 ms (a 1.5 s compile, an 800 ms block, 300 ms holds again and again with the stays doubling);
    • the RX_VK_RT_HOME_MS boundaries (1000 fires on a 1 s hold and not on 999 ms; 250);
    • each marked wait pinned to its call.
  • The cost off: one bool test at each job hand-over (1.5 ns), and one thread-local read in each marked wait. No clock
    is read with the switch off.

Still to test:

  • Windows PCs with SMT CPUs: the i5-12400 / hybrid Intel, 4C/8T and 6C/12T targets, RX_VK_RT_HOME=1 against unset
    on this PR's build, 3 starts a cell, uncapped, Hyrule Field and Lost Woods. Expected: fps up or level, and no more
    long frames; on the i5-12400, whether the slow 1 run comes back more often than on unset (@Beanstalk, request
    below).
  • Real 4-core, 8-thread CPUs in particular: on this PC held to 4 cores the gain was much larger (report-only, below)
    (@Beanstalk).
  • #838's real case (Intel's PresentMon service on an i5-13600K holding the core): with 1, about one stall frame per
    return home, not every stall (by hand, or the farm if such a tester appears).
  • SMT off: expected to change nothing (by hand).

Measurements

Verdict: on this PC, in today's standard test (Lost Woods, child), +2.8 % fps with RX_VK_RT_HOME=1, labelled
diagnostic (under 5 % with 3 pairs); the replay's submit is 16 % shorter in every 1 run, and there is no stutter
in either arm. The gain is smaller than in Hyrule Field (below) because the Lost Woods frame is CPU-bound elsewhere (CPU
55 ms a frame against Hyrule's 41-43; the submit 4.7 ms against 8.6), so the render thread's share, which this speeds
up, is smaller. The two scenes are separate results and are not joined.

Baseline: this PR's build with RX_VK_RT_HOME unset (main's placement).

Round 3, Lost Woods (child): this head, over main 0e32bc10.

Setup: Windows 11, Ryzen 7 5700X3D, RX 9070 XT, AMD 26.11.2. Lost Woods as child (the profile save, then the teleport),
fast rotation, 16:9, RX_VK_ASYNC=1, uncapped (HOS_FPS_MAX=240, cap 0, vsync 0), the fixed light GPU load beside the
game, 20 s window. 3 alternating pairs, all admitted, no replacements, medians. DLL f65e5e69 over main 0e32bc10's base
(exe b658e14b).

Before: this PR @ 3cb7b05d, RX_VK_RT_HOME unset After: this PR @ 3cb7b05d, RX_VK_RT_HOME=1
fps, median (runs) 85.49 (85.89, 85.49, 84.59) 87.89 (+2.8 %) (85.59, 87.89, 89.39)
CPU ms a frame 55.62 54.76
p99 frame time, ms 14.61 14.47
worst frame, ms (max) 18.4 18.1
frames over 50 / 100 / 250 ms 0 / 0 / 0 0 / 0 / 0
clock 1.000 1.000
the replay's submit, ms a frame 4.74 3.96 (-16 %)
where the render thread ran 0xffff (may move) 0xc000 (its core), 0 holds

The pairs: -0.3 %, +2.8 %, +5.7 %. The implementer's single pair on the same code gave +2.6 % (85.14 -> 87.34).

Round 2, Hyrule Field: the previous head 61a86ea7, over main dd5ffe6a's base with main a2dc5385 merged.

Not comparable with Lost Woods. On this PC, +8.1 % fps with RX_VK_RT_HOME=1, p99 16.4 -> 14.5 ms (the checker's
session). Every pair gained (+7.4, +8.5, +7.8 %). The implementer's session on the same build gave +8.5 % (89.64 ->
97.29, p99 16.96 -> 14.43).

Setup:

  • Windows 11, Ryzen 7 5700X3D, RX 9070 XT, AMD 26.11.2. Hyrule Field turning, 16:9, RX_VK_ASYNC=1.
  • Uncapped: HOS_FPS_MAX=240 with the options file's cap 0 and vsync 0. At about 97 fps that is in effect the farm's
    frame_rate_cap=6, vsync=2.
  • A fixed light GPU load beside the game. 3 alternating pairs, no warm-ups, no replacements, no run rejected, medians.
Before: this PR @ 61a86ea7, RX_VK_RT_HOME unset After: this PR @ 61a86ea7, RX_VK_RT_HOME=1
fps, median (runs) 89.89 (90.49, 89.89, 89.84) 97.19 (97.19, 97.54, 96.89)
CPU ms 43.21 41.22
p99 frame time, ms 16.36 14.49
worst frame, ms (runs) 43.0, 50.5, 53.1 41.7, 80.3, 52.3
frames over 50 / 100 / 250 ms, per run 0/0/0, 1/0/0, 1/0/0 0/0/0, 1/0/0, 1/0/0
clock 1.000 1.000
the replay's submit, ms a frame 8.55 7.37
where the render thread ran 0xffff (may move) 0xc000 (its core), 0 holds
  • The worst frames are all the end of the load, 0.09-0.17 s into the window, in every run of both arms.
    • The window's first 0.35 s takes the same time in each arm (unset 346-351 ms, 1 345-353 ms). With 1 it came as one
      long frame more often.
    • There were 0 holds and 0 affinity calls in the 1 runs, and nothing over 100 ms anywhere.
  • Report only, not the claim: one pair held to 4 cores with SMT (--affinity 0xff), on the build before this round.
    That is a mask of an 8-core CPU, not a 4-core CPU. It gave 65.04 -> 82.34 fps (+26.6 %), one run a side.
  • The round before this one measured +6.2-6.7 % on main dd5ffe6a. That was another base, and those numbers are not joined
    with these.

Risks

  • About one stall frame per return home gets through where another program holds the render thread's core (#838's
    case). The guard sees a hold only once it has happened. Unset doesn't have this.
  • A false widen costs one stay (2 s, at most 30 s, on unset's placement), never the session. These limits can cause
    one:
    • Long windows are judged from the marked waits only. A block of over 250 ms in an unmarked wait (the recorder
      hand-off, a lock, replay_mu, a shader worker, the GPU, frame generation's set wait), with both processors of the core
      busy with others meanwhile, can widen it for one stay.
    • Two clocks: the wake is timed on steady_clock (QPC), the waits on fps_clock (the TSC, scaled once at its
      first call). A calibration preempted during its loop mis-scales the waits. Follow-up: compare fps_clock's rate with
      the guard's own 1 s calibration, and give up (rt_home_off) when they disagree by more than 2 %.
    • The time read: a delay (a DPC burst) between the idle-count read and __rdtsc() makes phantom busy time.
    • A notifier preempted while it still holds the queue's lock after stamping the wake, or other threads taking the
      core's two processors one after the other while the thread is held off long enough.
  • A hold inside a marked wait is not seen: it can hide a hold, never make one. In one long-hold window the checker saw
    it let one frame through; the next burst widened it.
  • Where it could cost: on 4 cores the reserved core is a quarter of the CPU. What keeping the render thread there does
    to the game's other three cores is measured only on the mask above.
  • Not touched: RX_VK_ASYNC=0's pin (ReplayPin), host/ and the shader-cache stamp files (no re-prepare). Hybrid
    CPUs never keep the thread on an efficiency core. A process affinity mask is respected (#1776).
  • An explicit RX_VK_RT_HOME=0 adds one start-up line naming the value. Unset gives exactly main's lines.
  • Main's #2275 present path: merged (main 0e32bc10). The fence wait and the acquire keep main's statements and
    control flow, with the wait inside FpsRtWait(-1); outside the guard's own code the branch differs from main in
    those two lines only.
  • To turn it off: unset the switch. It is off by default, so a player notices nothing after updating.

Checklist

Ready for review

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

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary This brings back a switch that keeps the render thread on one core, after #1309 removed `RX_VK_RT_STRICT_PIN`. This time it comes with a guard for #838's case (another program holding that core) and a farm plan. **It is off by default, and this PR proposes no default:** that is the team's call once the farm has run it. **What it does, in player words.** On Windows, the renderer keeps one core free of the game's own threads for the render thread (the "reserved core"). Today the thread prefers that core, but Windows may move it to any fast core. When it moves, it often lands beside a busy game thread on the same physical core, and both run slower. `RX_VK_RT_HOME=1` keeps the render thread on its own core. When something else holds that core off it (#838's case: another program at high priority on the same core), it lets the thread move again for a while: - 2 s at first, doubled for each hold within a minute, 30 s at most; - then it goes home again. It does nothing on Linux, the Steam Deck or macOS, and on a CPU without SMT (two logical processors a core) it changes nothing that matters. **The switch.** `RX_VK_RT_HOME` (kind `attempt`): - unset (or `0`): main's placement, exactly; - `1`: home, with the guard; - `strict`: home with no guard. It is a measuring arm and the tests' negative control, never meant to be used. `RX_VK_RT_HOME_MS` (kind `tune`, default 4, 1-1000) is the guard's threshold. On a PC whose host keeps no core free for the render thread, `1` and `strict` say so at start ("the host keeps no core free for the render thread on this PC, so it moves freely, as unset"), so a run there shows it compared the same placement twice. Unset and `0` print nothing new. **How the guard decides it is being held.** For each window between two presents (20 ms or more apart), it looks at two things: 1. whether the render thread lost time off the CPU outside its own waits. The time it spent ready but not woken from its job wait counts as lost; 2. whether every processor of its core was taken by other threads for that long. Each must reach `RX_VK_RT_HOME_MS`. For a window over 250 ms, each must reach `max(RX_VK_RT_HOME_MS, half the window)`: - a long compile on the render thread fails fact 1; - a load where it blocked with a processor of its core free fails fact 2; - small losses over a long window don't add up to a hold; - a hold of most of the window does widen it. It acts only once it has seen a hold happen, so **about one stall frame gets through each time the thread goes back home** (measured below). Fact 2 is a lower bound (busy time minus what the thread and the waits account for), so it goes below zero when a processor of the core was free for part of the window. The guard decides on that raw bound; the log lines (the 600-presents summary and the long-present line) show it as at least 0, so "its core taken by others" never reads negative. Read first: `gpu/vk/rt_pin.h` (the Guard, `need`), then in `gpu/vk/vk_replay.cpp`: `rt_place`, `rt_home_frame`, `job_wait` and `rt_ready_note`. The present path's own waits are marked as the render thread's waits (`FpsRtWait(-1)`): the frame slot's fence, `presenter_wait_idle`, `image_free`'s fence and the blocking acquire. Also changed: - `gpu/vk/vk_fps.cpp`/`.h`: the render thread's waits by kind; - `gpu/vk/switches.def`: the two rows; - `docs/dev/reference/threads.md`; - the tests: `tests/test_rt_pin.py` (new) and `tests/test_reserved_core_mask.py`. The present-path fixtures now stub `FpsRtWait`. ## Testing **Tested:** Windows 11, Ryzen 7 5700X3D (8 cores, 16 threads), RX 9070 XT, AMD 26.11.2. **Round 3 (this head, main 0e32bc10 merged):** the DLL built from the round's code (`f65e5e69`) over main 0e32bc10's base: - **The standard test, Lost Woods (child)** (the standard scene since 2026-11-23), `RX_VK_RT_HOME=1` against unset, 3 alternating pairs: +2.8 %, diagnostic (Measurements). Every `1` run was home through the window: 0 holds, 0 s wide; the longest wake from a job wait 0.17-1.00 ms against the 4 ms threshold; live mask 0xc000 with `1`, 0xffff unset; no negative "taken by others" in any log. Unset on this build against main's own build (one run): the same placement lines and live mask, no new error-line kinds. - **The merge of main 0e32bc10:** #2275 (Streamline) reshaped the present's fence wait and acquire, two of the waits this PR marks. Both keep main's shape (`copy_ready`, its early return, the retired acquire semaphore, `acquire_semaphore`) with the wait inside `FpsRtWait(-1)`; `test_rt_pin`'s pins follow, and a removed or moved scope still fails them. - **`tests/test_rt_pin.py`**, with clang++ and g++: pass, 57 broken variants, each failing (new: a negative or absolute-value "taken by others" in either log line; on 61a86ea7 these checks fail). - **The full `run_all.py`**, this head against main 0e32bc10, with llvm-mingw clang (branch 880 passed / 25 failed / 53 skipped, main 879 / 25 / 53) and MSYS2 gcc (874 / 31 against 872 / 32): nothing fails only on the branch; with gcc main's flaky `test_longshot_ctl` failed on main only. The present-path fixtures, `test_reserved_core*`, `test_fps_stats`, `test_threaded_rendering` and `test_switch_table` pass with both compilers. Linux syntax (WSL clang and gcc) ok on `vk_replay.cpp` and `vk_fps.cpp`. **The Test Farm on the previous head 61a86ea7** (Hyrule Field, `1` against `0` and unset on the PR's build): - **The 6-core crashes were the PC:** on Jackhamer24's Ryzen 5 3600 (RX 6600 XT, 16 GB) the switch-off side crashed 4 of 4. A manual run, rn_31f9d7473c936025, main a2dc5385 against this PR with `1`, 3 starts a side: main crashed 3 of 3 too, and the PR 3 of 3 (the renderer's out-of-memory stop). The PC, not the switch. - **The i5-12400's fail (-11.8 % fps) is one slow `1` run** (27.73 fps; the other `1` run 40.36, above both `0` runs). It has the same signature as main's own slow run in the other scenario (18.87 fps, a 21-24 s frame, about 3,000 draws a frame against 2,374-2,473 in the six other runs): a scene-state freeze main's build also hit. Its log says the render thread was working, not held off: its jobs 85.72 of 89.56 ms a frame, the game waiting for room at 4 presents of 10 s each, the guard's most-lost window judged blocked (a processor of its core free), 2 small holds. Its "taken by others -17.8 ms" was that raw lower bound; the log now shows it as at least 0. **One run a cell can't rule out more** (whether being home slowed those long jobs on that CPU), so the farm is asked again with 3 starts a cell there. - The 8-core target couldn't be judged twice (p99 15.5 / 16.0 / 16.2); the 4C/8T target had no tester. **Round 2 (Hyrule Field, on main dd5ffe6a's base with main a2dc5385 merged; pack exe 4a697611, DLL 0dae9922):** - **The standard test as it was then** (Hyrule Field turning), `RX_VK_RT_HOME=1` against unset, 3 alternating pairs, in two sessions: see Measurements, "Round 2, Hyrule Field". - In every `1` run the thread is at home through the window: 0 holds, 0 s wide, and 0 holds in windows over 250 ms. - The live affinity mask was 0xc000 with `1` and 0xffff unset. - The longest wake from a job wait was 0.59-0.68 ms, against the 4 ms threshold. - **Long holds made on purpose** (both reserved processors at priority 15, 270 ms in every 2,700 ms): | arm | frames over 250 ms, per run | |---|---| | strict | 7, 8, 7 | | `1` | 0, 0, 0 | | unset | 0, 0, 0 | These are the implementer's three rounds; the checker's one round gave strict 7, `1` 0 and unset 0. Each widen came in a 272-280 ms window where the thread lost about 190-270 ms with its core taken 180-270 ms, over the half-window bar. - **The short stall** (35 ms in every 250 ms, 3 rounds), frames over 40 ms: | arm | per run | |---|---| | strict | 81, 80, 81 | | `1` | 2, 2, 2 | | unset | 1, 2, 1 | `1` stays within unset + 1. The extra one is the first stall after a return home, caught at that present. - **Unset and `0` against main's own build:** the same two placement lines, the same live mask (0xffff, ideal 15), and no new error-line kinds. `0` adds its one line ("free to move, as unset"). - **`tests/test_rt_pin.py`** (round 2), with clang++ and g++: - 54 broken variants, each failing; - the windows over 250 ms (a 1.5 s compile, an 800 ms block, 300 ms holds again and again with the stays doubling); - the `RX_VK_RT_HOME_MS` boundaries (1000 fires on a 1 s hold and not on 999 ms; 250); - each marked wait pinned to its call. - **The cost off:** one bool test at each job hand-over (1.5 ns), and one thread-local read in each marked wait. No clock is read with the switch off. **Still to test:** - Windows PCs with SMT CPUs: the i5-12400 / hybrid Intel, 4C/8T and 6C/12T targets, `RX_VK_RT_HOME=1` against unset on this PR's build, **3 starts a cell**, uncapped, Hyrule Field and Lost Woods. Expected: fps up or level, and no more long frames; on the i5-12400, whether the slow `1` run comes back more often than on unset (`@Beanstalk`, request below). - Real 4-core, 8-thread CPUs in particular: on this PC held to 4 cores the gain was much larger (report-only, below) (`@Beanstalk`). - #838's real case (Intel's PresentMon service on an i5-13600K holding the core): with `1`, about one stall frame per return home, not every stall (by hand, or the farm if such a tester appears). - SMT off: expected to change nothing (by hand). ## Measurements **Verdict:** on this PC, in today's standard test (Lost Woods, child), +2.8 % fps with `RX_VK_RT_HOME=1`, labelled **diagnostic** (under 5 % with 3 pairs); the replay's submit is 16 % shorter in every `1` run, and there is no stutter in either arm. The gain is smaller than in Hyrule Field (below) because the Lost Woods frame is CPU-bound elsewhere (CPU 55 ms a frame against Hyrule's 41-43; the submit 4.7 ms against 8.6), so the render thread's share, which this speeds up, is smaller. The two scenes are separate results and are not joined. Baseline: this PR's build with `RX_VK_RT_HOME` unset (main's placement). **Round 3, Lost Woods (child): this head, over main 0e32bc10.** Setup: Windows 11, Ryzen 7 5700X3D, RX 9070 XT, AMD 26.11.2. Lost Woods as child (the profile save, then the teleport), fast rotation, 16:9, `RX_VK_ASYNC=1`, uncapped (`HOS_FPS_MAX=240`, cap 0, vsync 0), the fixed light GPU load beside the game, 20 s window. 3 alternating pairs, all admitted, no replacements, medians. DLL `f65e5e69` over main 0e32bc10's base (exe `b658e14b`). | | Before: this PR @ 3cb7b05d, `RX_VK_RT_HOME` unset | After: this PR @ 3cb7b05d, `RX_VK_RT_HOME=1` | |---|---|---| | fps, median (runs) | 85.49 (85.89, 85.49, 84.59) | **87.89 (+2.8 %)** (85.59, 87.89, 89.39) | | CPU ms a frame | 55.62 | 54.76 | | p99 frame time, ms | 14.61 | 14.47 | | worst frame, ms (max) | 18.4 | 18.1 | | frames over 50 / 100 / 250 ms | 0 / 0 / 0 | 0 / 0 / 0 | | clock | 1.000 | 1.000 | | the replay's submit, ms a frame | 4.74 | 3.96 (-16 %) | | where the render thread ran | 0xffff (may move) | 0xc000 (its core), 0 holds | The pairs: -0.3 %, +2.8 %, +5.7 %. The implementer's single pair on the same code gave +2.6 % (85.14 -> 87.34). **Round 2, Hyrule Field: the previous head 61a86ea7, over main dd5ffe6a's base with main a2dc5385 merged.** Not comparable with Lost Woods. On this PC, +8.1 % fps with `RX_VK_RT_HOME=1`, p99 16.4 -> 14.5 ms (the checker's session). Every pair gained (+7.4, +8.5, +7.8 %). The implementer's session on the same build gave +8.5 % (89.64 -> 97.29, p99 16.96 -> 14.43). Setup: - Windows 11, Ryzen 7 5700X3D, RX 9070 XT, AMD 26.11.2. Hyrule Field turning, 16:9, `RX_VK_ASYNC=1`. - Uncapped: `HOS_FPS_MAX=240` with the options file's cap 0 and vsync 0. At about 97 fps that is in effect the farm's `frame_rate_cap=6`, `vsync=2`. - A fixed light GPU load beside the game. 3 alternating pairs, no warm-ups, no replacements, no run rejected, medians. | | Before: this PR @ 61a86ea7, `RX_VK_RT_HOME` unset | After: this PR @ 61a86ea7, `RX_VK_RT_HOME=1` | |---|---|---| | fps, median (runs) | 89.89 (90.49, 89.89, 89.84) | 97.19 (97.19, 97.54, 96.89) | | CPU ms | 43.21 | 41.22 | | p99 frame time, ms | 16.36 | 14.49 | | worst frame, ms (runs) | 43.0, 50.5, 53.1 | 41.7, 80.3, 52.3 | | frames over 50 / 100 / 250 ms, per run | 0/0/0, 1/0/0, 1/0/0 | 0/0/0, 1/0/0, 1/0/0 | | clock | 1.000 | 1.000 | | the replay's submit, ms a frame | 8.55 | 7.37 | | where the render thread ran | 0xffff (may move) | 0xc000 (its core), 0 holds | - **The worst frames are all the end of the load,** 0.09-0.17 s into the window, in every run of both arms. - The window's first 0.35 s takes the same time in each arm (unset 346-351 ms, `1` 345-353 ms). With `1` it came as one long frame more often. - There were 0 holds and 0 affinity calls in the `1` runs, and nothing over 100 ms anywhere. - **Report only, not the claim:** one pair held to 4 cores with SMT (`--affinity 0xff`), on the build before this round. That is a mask of an 8-core CPU, not a 4-core CPU. It gave 65.04 -> 82.34 fps (+26.6 %), one run a side. - The round before this one measured +6.2-6.7 % on main dd5ffe6a. That was another base, and those numbers are not joined with these. ## Risks - **About one stall frame per return home gets through** where another program holds the render thread's core (#838's case). The guard sees a hold only once it has happened. Unset doesn't have this. - **A false widen costs one stay** (2 s, at most 30 s, on unset's placement), never the session. These limits can cause one: - **Long windows are judged from the marked waits only.** A block of over 250 ms in an unmarked wait (the recorder hand-off, a lock, `replay_mu`, a shader worker, the GPU, frame generation's set wait), with both processors of the core busy with others meanwhile, can widen it for one stay. - **Two clocks:** the wake is timed on `steady_clock` (QPC), the waits on `fps_clock` (the TSC, scaled once at its first call). A calibration preempted during its loop mis-scales the waits. Follow-up: compare `fps_clock`'s rate with the guard's own 1 s calibration, and give up (`rt_home_off`) when they disagree by more than 2 %. - **The time read:** a delay (a DPC burst) between the idle-count read and `__rdtsc()` makes phantom busy time. - **A notifier preempted while it still holds the queue's lock** after stamping the wake, or other threads taking the core's two processors one after the other while the thread is held off long enough. - **A hold inside a marked wait is not seen:** it can hide a hold, never make one. In one long-hold window the checker saw it let one frame through; the next burst widened it. - **Where it could cost:** on 4 cores the reserved core is a quarter of the CPU. What keeping the render thread there does to the game's other three cores is measured only on the mask above. - **Not touched:** `RX_VK_ASYNC=0`'s pin (`ReplayPin`), host/ and the shader-cache stamp files (no re-prepare). Hybrid CPUs never keep the thread on an efficiency core. A process affinity mask is respected (#1776). - **An explicit `RX_VK_RT_HOME=0`** adds one start-up line naming the value. Unset gives exactly main's lines. - **Main's #2275 present path:** merged (main 0e32bc10). The fence wait and the acquire keep main's statements and control flow, with the wait inside `FpsRtWait(-1)`; outside the guard's own code the branch differs from main in those two lines only. - **To turn it off:** unset the switch. It is off by default, so a player notices nothing after updating. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
core of the fastest kind, because kept to the reserved core alone another program's priority-15 thread held it off for
30-40 ms at a time. RX_VK_RT_HOME=1 keeps it home with a guard read at its presents, at most every 20 ms: when, since the
last reading (250 ms at most), it lost RX_VK_RT_HOME_MS (4) off the CPU outside its own waits (QueryThreadCycleTime,
FpsRtWait) and other threads used its core's logical processors at least as long (QueryIdleProcessorCycleTimeEx), it was
held off, and it moves as unset for 2 s, doubled for each hold within a minute at home, 30 s at most. Blocked in the driver
or on a lock, its core is idle: not a hold. strict keeps it there with no guard, for measuring. Unset or 0: exactly as
before (the masks and the log lines). Elsewhere than on Windows nothing changes.

The placement and the guard's rule are in gpu/vk/rt_pin.h (rt_place and rt_home_frame in vk_replay.cpp, the guard run from
bh_shown at the render thread's presents), tested game-free in tests/test_rt_pin.py over made-up CPUs with a fake clock,
cycle counts and idle counts, with twelve broken variants that must fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the gpt-6.2-sol review of the commit before. The render thread waiting for the recorder thread while the recorder ran on
its core's second processor read as held: the processors' busy time summed was as long as what it lost. Fact 2 is now the
least time every processor of its core it could run on was taken by other threads together (busy - cpu - (n - 1) x gone),
over the processors Windows has not parked (GetSystemCpuSetInformation, read only when fact 1 holds), and at least
RX_VK_RT_HOME_MS. The window's length is taken from the same TSC readings as the idle counts. An affinity call that fails
(the process's affinity narrowed since the start) gives the guard up, free to move as unset. Kept to a core alone (1 or
strict) refuses a reserved core that is not all of the fastest kind (an efficiency core the host may reserve under a
launcher's mask).

tests/test_rt_pin.py: the recorder's wait, a parked processor, an efficiency core reserved, a refused affinity call, and the
real FpsRtWait, fps_rt_wait_sum and fps_rt_waited cut from vk_fps.cpp; seven more broken variants that must fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the gpt-6.2-sol review's second round. Fact 2's bound now takes the render thread's own waits out (its core taken during
a wait was no hold), and a processor Windows reports parked counts as parked only when it was idle the whole window. When an
affinity call is refused (the process's affinity narrowed since the start), the guard lets the thread move within the
process's affinity now, or says it could not. A refused placement says so instead of claiming a pin. The CPU-set buffer grows
to what Windows asks for.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
From the gpt-6.2-sol review's third round: a process affinity narrowed at run time to the core and processors outside the
wide mask left the thread at home; an unreadable process affinity (threads in several groups) skipped the widening. The start
line names the rule as it is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The job's step 3 (a priority-15 stall on the reserved core, 35 ms in every 250 ms) let several stalls through after each
return home: windows of a normal frame and the held one (about 55 ms) added the normal frame's idle sibling to fact 2's bound
(35 ms lost, the bound at -2.5 and 1.7 ms). The held frame judged alone reads about 25 ms. A sample at every present costs
~15 us; it is taken only for Guard::kFineNs after a window that lost RX_VK_RT_HOME_MS and after going home from a hold, so a
PC with no holds keeps the 20 ms samples outside its loads.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A hold that starts while the render thread waits for a job was counted as waiting (FpsRtWait), so the guard missed it: the
thread is ready from the moment a job it may take is handed over, but the wait's clock runs until it gets the CPU back.
job_wait (the render thread's job wait, moved out of replay_thread_main unchanged) now, with the guard on, takes the moment
the job could go while it waited (stamped once under q_mu by enqueue, gate_need_value or wait_queue_empty, or by the frame
gate's deadline, never before its own timed wait let it wake) and sums the time from then to the job's start; the guard
takes that out of its waits, in fact 1's lost time and fact 2's bound. A job handed over while the thread ran counts
nothing. Going home now takes the readings, so the first window at home is judged (11-21's stalls came one after each
return home). The log says, for the first 16 presents at home more than 40 ms after the one before, the window's time on
the CPU, its waits by kind, its wake delay, the facts and what the guard did, and the longest wake in the 600-presents line.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The gpt-6.2-sol review of the range (round 1): a stopped queue's wait whose deadline had gone by while the thread ran
backdated the gate deadline's stamp (the floor is now never before it went to sleep); the three places stamp as the last
thing before they let q_mu go, after their notify; going home takes the readings before the affinity call, so a hold the
move itself meets falls in the first window; the long present's line is said after the guard's affinity call, and says when
the move was refused. The fixture's mutex and queue now fail when the queue is touched without q_mu, and the tests cover a
stay longer than the fine sampling's 10 s and a hold met by the move home. The long-present lines are 16 a 600 presents.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
In 11-22's step 3 (a priority-15 stall on both reserved processors, 35 ms in every 250 ms), the stall after a return home
held the render thread in its job wait: it woke 32.9 ms late, fact 1 counted 34.1 ms lost, but fact 2's bound, the overlap
of the core's processors over a 62 ms window with 16.5 ms of waits of its own, came to -7.2 ms and the frame got through.
With a wake delay that long the thread was known to be ready and not running; what fact 2 must still rule out is Windows
being slow with the core free, which each processor's own busy time (less the thread's CPU time and its other waits) shows.
Without such a wake the rule is as before (a recorder on one processor and another thread on the other, one after the
other, is still no hold).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Six broken copies of cd0558d3 passed the test: any wake (or 1 ms) enabling the rule, a 10 ms wake needed, the most busy
processor or the processors' sum in place of the least busy, and the thread's CPU time or its other waits left in. Four
cases in the fine sampling now settle them: a 3.9 ms wake with each processor busy in turn (no hold); a 35 ms wake with one
processor taken and the other free (no hold); a 5 ms wake with the core taken only while it waited for work (no hold); and
11-22's step-3 window with a 5 ms wake (a hold). Each copy is a broken variant of the test that must fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
vk_replay.cpp's include block: main moved vk_work.h after its new
mma_layout.h; rt_pin.h and the guard's clock block stay before them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test(vk): test_rt_pin's queue fixture stubs cxx_escape::spawn_needed, which main's #2170 made enqueue's way to start the render thread
Some checks reported errors
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
PR description / Description follows the template (pull_request_target) Successful in 10s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 11s
CI / Workflow lint (actionlint) (pull_request) Successful in 12s
Website / Website on Cloudflare (pull_request_target) Has been skipped
Third-party parts / As their notes say (pull_request) Successful in 14s
CI / Website build and checks (pull_request) Failing after 27s
beanstalk/approval approved by HumanBean, klimovich008 (double-reviewed)
beanstalk/windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k 1/1 fail
beanstalk/windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k 0/1 pass, 2 error
beanstalk/windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k 0/1 pass, 0 running, 2 queued
beanstalk/windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k 0/1 pass, 0 running, 2 queued
5867310bc8
The fixture cuts enqueue from vk_replay.cpp; since #2170 it starts the
render thread with cxx_escape::spawn_needed instead of std::thread. The
stub starts the fixture's empty replay_thread_main as std::thread did.

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

Tested in game: Windows 11, Ryzen 7 5700X3D (8C/16T), RX 9070 XT, AMD 26.11.2, the PR's renderer over main dd5ffe6a's build: Hyrule Field turning, uncapped (HOS_FPS_MAX=240), 3 alternating pairs of RX_VK_RT_HOME=1 against unset: 91.64 -> 97.79 fps, the thread at home through every window with 0 holds, live mask 0xc000 against 0xffff, clock 1.000. A stall made on purpose (both reserved processors at priority 15, 35 ms in every 250 ms), 3 rounds: frames over 40 ms strict 80/81/81, =1 2/2/2, unset -/0/1 (about one stall frame per return home gets through). Unset against main's own build: the same mask, the same placement lines, no new error lines. The merge with main a2dc5385 was built, not run. Not run: Intel, other AMD CPUs, 4- and 6-core CPUs, SMT off, #838's real stall.

Tested in game: Windows 11, Ryzen 7 5700X3D (8C/16T), RX 9070 XT, AMD 26.11.2, the PR's renderer over main dd5ffe6a's build: Hyrule Field turning, uncapped (HOS_FPS_MAX=240), 3 alternating pairs of RX_VK_RT_HOME=1 against unset: 91.64 -> 97.79 fps, the thread at home through every window with 0 holds, live mask 0xc000 against 0xffff, clock 1.000. A stall made on purpose (both reserved processors at priority 15, 35 ms in every 250 ms), 3 rounds: frames over 40 ms strict 80/81/81, =1 2/2/2, unset -/0/1 (about one stall frame per return home gets through). Unset against main's own build: the same mask, the same placement lines, no new error lines. The merge with main a2dc5385 was built, not run. Not run: Intel, other AMD CPUs, 4- and 6-core CPUs, SMT off, #838's real stall.
Author
Member

@Beanstalk the PR's own build only, its switch against itself: baseline ref = pr, [matrix.pr_only] RX_VK_RT_HOME = ["0", "1"], and pass.compare RX_VK_RT_HOME = "1" against "0" on the pr side (unset is the same as 0: main's placement). It is off by default and does anything only on Windows CPUs with SMT, so every target is Windows.

Targets, each with 1-2 reports. Windows with a CPU that has two logical processors a core, by model:

  • 4 cores / 8 threads: i7-6700K, i7-7700K, i7-6700, i7-7700, i3-10100, i3-12100, i3-13100, Ryzen 3 3300X;
  • 6 / 12: Ryzen 5 3600, 5600X, 5600, 7600X, Ryzen 5 7600, i5-10400, i5-11400, i7-8700K;
  • 8 / 16: Ryzen 7 3700X, 5700X, 5800X, 5800X3D, 7700X, 7800X3D, i9-9900K, i7-10700K;
  • hybrid Intel: i5-12600K, i5-13600K, i5-14600K, i7-12700K, i7-13700K, i5-12400.
    The 4-core ones matter most (on this PC a 4-core mask gained far more, report-only), but don't let the plan wait on them alone.

Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine.

Scenario: Hyrule Field (HyruleField_Child), measured 30 s, 3 game starts a cell (2 at least). Compare rules, pr side, RX_VK_RT_HOME=1 vs 0: fps_mean min_delta_pct = 3 (fails on a loss of more than 3 %) and frametime_p99_ms max_delta_pct = 10; crash = false. Hitch counts (run_hitch_count, run_frametime_max_ms) report-only.

Log on the =1 cells: "vk: RX_VK_RT_HOME=1: the render thread is kept to logical processors" expected (the thread really went home: on a PC where the placement does not apply it says "free to move, as unset" instead, and that cell compares nothing).

@Beanstalk the PR's own build only, its switch against itself: baseline ref = pr, [matrix.pr_only] RX_VK_RT_HOME = ["0", "1"], and [[pass.compare]] RX_VK_RT_HOME = "1" against "0" on the pr side (unset is the same as 0: main's placement). It is off by default and does anything only on Windows CPUs with SMT, so every target is Windows. Targets, each with 1-2 reports. Windows with a CPU that has two logical processors a core, by model: - 4 cores / 8 threads: i7-6700K, i7-7700K, i7-6700, i7-7700, i3-10100, i3-12100, i3-13100, Ryzen 3 3300X; - 6 / 12: Ryzen 5 3600, 5600X, 5600, 7600X, Ryzen 5 7600, i5-10400, i5-11400, i7-8700K; - 8 / 16: Ryzen 7 3700X, 5700X, 5800X, 5800X3D, 7700X, 7800X3D, i9-9900K, i7-10700K; - hybrid Intel: i5-12600K, i5-13600K, i5-14600K, i7-12700K, i7-13700K, i5-12400. The 4-core ones matter most (on this PC a 4-core mask gained far more, report-only), but don't let the plan wait on them alone. Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine. Scenario: Hyrule Field (HyruleField_Child), measured 30 s, 3 game starts a cell (2 at least). Compare rules, pr side, RX_VK_RT_HOME=1 vs 0: fps_mean min_delta_pct = 3 (fails on a loss of more than 3 %) and frametime_p99_ms max_delta_pct = 10; crash = false. Hitch counts (run_hitch_count, run_frametime_max_ms) report-only. Log on the =1 cells: "vk: RX_VK_RT_HOME=1: the render thread is kept to logical processors" expected (the thread really went home: on a PC where the placement does not apply it says "free to move, as unset" instead, and that cell compares nothing).
Member
Beanstalk test farm · an earlier run: commit 5867310 (the newer results are in a comment below)

Commit 5867310 · approved by HumanBean, klimovich008 (double-reviewed) · dashboard

⚠️ Note: Two starts per setting keep the plan within the farm’s time limit, but leave no spare usable start for the frame-time comparison.
⚠️ Note: The placement log is unjudged when absent, including in the 0 cell; the farm cannot suppress the performance comparison when placement is refused, so such results may compare identical placement.
⚠️ Note: The farm cannot inject the competing high-priority workload needed to test guard recovery under a deliberate core hold.

Started at 2026-11-22 10:54 UTC.

Target Result Reports VRAM peak (MB) Crashes
windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k") ⏳ queued 0 of 1 — —
windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k") ❌ fail 2 1 2 — 4 PR runs
windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k") ⚠️ couldn't be judged (an outlier) 2 1 2 — none
windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") ⏳ queued 0 of 1 — —

hyrule-field · frame time p99 (ms)

Target switch off RX_VK_RT_HOME=0 (reference) RX_VK_RT_HOME=1
windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k") — — —
windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k") 19.7 20.8 21.2 (+2%)
windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k") 18.5 18.4 18.1 (−2%)
windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") — — —

Why it failed

  • windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k: hyrule-field · RX_VK_RT_HOME=0 (PR only) crash: 2 PR runs crashed
  • windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k: hyrule-field · RX_VK_RT_HOME=1 (PR only) crash: 2 PR runs crashed

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+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k, report 2: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k, report 1: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k, report 2: 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 selected Windows SMT CPUs, this compares the PR’s render-thread placement switch with its off setting in Hyrule Field. Two starts per setting measure 30 seconds of uncapped gameplay, taking about 45 minutes per tester. A crash, an FPS loss over 3%, or a p99 frame-time increase over 10% fails the comparison; hitches are reported without a limit. Some requested CPU targets may wait for matching Windows testers. No tester online now matches windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k, windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k, windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k: those targets wait for one.

  • Where: windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k", 1-2 reports), windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k", 1-2 reports), windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k", 1-2 reports), windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k", 1-2 reports).
  • Against: the PR itself, switch on (RX_VK_RT_HOME) and off; main is not built or run.
  • Matrix: 2 cells, each with the switch on and off: RX_VK_RT_HOME 0 or 1 (PR only).
  • hyrule-field: from the repository's save castle-gate (settings vsync=2, frame_rate_cap=6, frame_generation=0), then teleport to Hyrule Field, measure field for 30 s (after 5 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run).
  • Measured: crashes, frame times, stutters and hitches, draws and frame rate, the game's log (an expected line that never appears: could not be judged).
  • The PR fails if: it crashes; or the PR's frame rate with RX_VK_RT_HOME=1 is more than 3% below RX_VK_RT_HOME=0; or the PR's frame time (p99) with RX_VK_RT_HOME=1 is more than 10% above RX_VK_RT_HOME=0; or expected log lines missing is above 0.
  • Time: about 45 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-`, for the PR description

Verdict: fail on windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (2 reports): hyrule-field crash failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070 Ti, 621.24.0 AMD Ryzen 5 5600X 6-Core Processor, 16 GB RAM; 2: windows+amd+amd-proprietary+dgpu AMD Radeon RX 9060 XT, 2.0.416 AMD Ryzen 5 5600 6-Core Processor, 32 GB RAM
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 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: this PR @ 5867310, switch off After: this PR @ 5867310, switch on
hyrule-field · RX_VK_RT_HOME=0 (PR only) · expected log lines missing 1.0 1.0 (+0%)
hyrule-field · RX_VK_RT_HOME=0 (PR only) · field · frame time (p99) (ms) 19.7 20.8 (+6%)
hyrule-field · RX_VK_RT_HOME=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
hyrule-field · RX_VK_RT_HOME=1 (PR only) · field · frame time (p99) (ms) 17.7 21.2 (+20%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_RT_HOME switch the PR adds (set on the PR side only) 0, 1 off (the switch's default) the PR's default hyrule-field, main without it → the PR with 0: 19.7 → 20.8 (+6%) doesn't help

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (2 reports): `hyrule-field crash` failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070 Ti, 621.24.0` `AMD Ryzen 5 5600X 6-Core Processor, 16 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9060 XT, 2.0.416` `AMD Ryzen 5 5600 6-Core Processor, 32 GB RAM`  
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 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: this PR @ 5867310, switch off | After: this PR @ 5867310, switch on |
|---|---|---|
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) |
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 19.7 | 20.8 (+6%) |
| hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 17.7 | 21.2 (+20%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 19.7 → 20.8 (+6%) | doesn't help |
Measurements on `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700`, for the PR description

Verdict: could not be judged on windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070 Ti, 621.24.0 AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 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: this PR @ 5867310, switch off After: this PR @ 5867310, switch on
hyrule-field · RX_VK_RT_HOME=0 (PR only) · expected log lines missing 1.0 1.0 (+0%)
hyrule-field · RX_VK_RT_HOME=0 (PR only) · field · frame time (p99) (ms) 18.5 18.4 (−0%)
hyrule-field · RX_VK_RT_HOME=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
hyrule-field · RX_VK_RT_HOME=1 (PR only) · field · frame time (p99) (ms) 18.7 18.1 (−3%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_RT_HOME switch the PR adds (set on the PR side only) 0, 1 off (the switch's default) the PR's default hyrule-field, main without it → the PR with 0: 18.5 → 18.4 (−0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070 Ti, 621.24.0` `AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM`  
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 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: this PR @ 5867310, switch off | After: this PR @ 5867310, switch on |
|---|---|---|
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) |
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 18.5 | 18.4 (−0%) |
| hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 18.7 | 18.1 (−3%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 18.5 → 18.4 (−0%) | no clear effect |
The testers' hardware
Target Report Ran on
windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070 Ti, 621.24.0 AMD Ryzen 5 5600X 6-Core Processor, 16 GB RAM
windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k 2 windows+amd+amd-proprietary+dgpu AMD Radeon RX 9060 XT, 2.0.416 AMD Ryzen 5 5600 6-Core Processor, 32 GB RAM
windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5070 Ti, 621.24.0 AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM
windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k 2 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
Run by hand on PCs that don't match their target (not counted)
Target Ran on Result
windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k off target (ran on linux+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070 Ti, 620.70.6) error
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>5867310</code> (the newer results are in a comment below)</summary> Commit `5867310` · approved by HumanBean, klimovich008 (double-reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2240) ⚠️ **Note:** Two starts per setting keep the plan within the farm’s time limit, but leave no spare usable start for the frame-time comparison. ⚠️ **Note:** The placement log is unjudged when absent, including in the 0 cell; the farm cannot suppress the performance comparison when placement is refused, so such results may compare identical placement. ⚠️ **Note:** The farm cannot inject the competing high-priority workload needed to test guard recovery under a deliberate core hold. Started at 2026-11-22 10:54 UTC. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k` (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k") | ⏳ queued | 0 of 1 | — | — | | `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k` (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k") | ❌ fail | 2 [1](https://beanstalk.magicbean.dev/reports/rp_0579c120f0bacfb8) [2](https://beanstalk.magicbean.dev/reports/rp_52d60a63cb4e37dc) | — | 4 PR runs | | `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k` (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k") | ⚠️ couldn't be judged (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_5833d16e69fa162c) [2](https://beanstalk.magicbean.dev/reports/rp_bf7696a22e41af26) | — | none | | `windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k` (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") | ⏳ queued | 0 of 1 | — | — | **`hyrule-field`** · frame time p99 (ms) | Target | switch off | `RX_VK_RT_HOME=0` (reference) | `RX_VK_RT_HOME=1` | | --- | --- | --- | --- | | `windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k` (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k") | — | — | — | | `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k` (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k") | 19.7 | 20.8 | 21.2 (+2%) | | `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k` (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k") | 18.5 | 18.4 | 18.1 (−2%) | | `windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k` (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") | — | — | — | **Why it failed** - `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k`: `hyrule-field · RX_VK_RT_HOME=0 (PR only)` `crash`: `2 PR runs crashed` - `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k`: `hyrule-field · RX_VK_RT_HOME=1 (PR only)` `crash`: `2 PR runs crashed` **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+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k`, [report 2](https://beanstalk.magicbean.dev/reports/rp_52d60a63cb4e37dc): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k`, [report 1](https://beanstalk.magicbean.dev/reports/rp_5833d16e69fa162c): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k`, [report 2](https://beanstalk.magicbean.dev/reports/rp_bf7696a22e41af26): `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 selected Windows SMT CPUs, this compares the PR’s render-thread placement switch with its off setting in Hyrule Field. Two starts per setting measure 30 seconds of uncapped gameplay, taking about 45 minutes per tester. A crash, an FPS loss over 3%, or a p99 frame-time increase over 10% fails the comparison; hitches are reported without a limit. Some requested CPU targets may wait for matching Windows testers. No tester online now matches windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k, windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k, windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k: those targets wait for one. - **Where:** windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k", 1-2 reports), windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k", 1-2 reports), windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k", 1-2 reports), windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k", 1-2 reports). - **Against:** the PR itself, switch on (`RX_VK_RT_HOME`) and off; main is not built or run. - **Matrix:** 2 cells, each with the switch on and off: RX_VK_RT_HOME `0` or `1` (PR only). - **hyrule-field:** from the repository's save `castle-gate` (settings vsync=2, frame_rate_cap=6, frame_generation=0), then teleport to Hyrule Field, measure field for 30 s (after 5 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run). - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate, the game's log (an expected line that never appears: could not be judged). - **The PR fails if:** it crashes; or the PR's frame rate with RX_VK_RT_HOME=1 is more than 3% below RX_VK_RT_HOME=0; or the PR's frame time (p99) with RX_VK_RT_HOME=1 is more than 10% above RX_VK_RT_HOME=0; or expected log lines missing is above 0. - **Time:** about 45 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-`, for the PR description</summary> **Verdict:** fail on windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (2 reports): `hyrule-field crash` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070 Ti, 621.24.0` `AMD Ryzen 5 5600X 6-Core Processor, 16 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9060 XT, 2.0.416` `AMD Ryzen 5 5600 6-Core Processor, 32 GB RAM` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 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: this PR @ 5867310, switch off | After: this PR @ 5867310, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 19.7 | 20.8 (+6%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 17.7 | 21.2 (+20%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 19.7 → 20.8 (+6%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (2 reports): `hyrule-field crash` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070 Ti, 621.24.0` `AMD Ryzen 5 5600X 6-Core Processor, 16 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9060 XT, 2.0.416` `AMD Ryzen 5 5600 6-Core Processor, 32 GB RAM` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 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: this PR @ 5867310, switch off | After: this PR @ 5867310, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 19.7 | 20.8 (+6%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 17.7 | 21.2 (+20%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 19.7 → 20.8 (+6%) | doesn't help | ``` </details> <details><summary>Measurements on `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700`, for the PR description</summary> **Verdict:** could not be judged on windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070 Ti, 621.24.0` `AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 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: this PR @ 5867310, switch off | After: this PR @ 5867310, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 18.5 | 18.4 (−0%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 18.7 | 18.1 (−3%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 18.5 → 18.4 (−0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070 Ti, 621.24.0` `AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 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: this PR @ 5867310, switch off | After: this PR @ 5867310, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 18.5 | 18.4 (−0%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 18.7 | 18.1 (−3%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 18.5 → 18.4 (−0%) | no clear effect | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k` | [1](https://beanstalk.magicbean.dev/reports/rp_0579c120f0bacfb8) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070 Ti, 621.24.0` `AMD Ryzen 5 5600X 6-Core Processor, 16 GB RAM` | | `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k` | [2](https://beanstalk.magicbean.dev/reports/rp_52d60a63cb4e37dc) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9060 XT, 2.0.416` `AMD Ryzen 5 5600 6-Core Processor, 32 GB RAM` | | `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k` | [1](https://beanstalk.magicbean.dev/reports/rp_5833d16e69fa162c) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5070 Ti, 621.24.0` `AMD Ryzen 7 5800X3D 8-Core Processor, 64 GB RAM` | | `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k` | [2](https://beanstalk.magicbean.dev/reports/rp_bf7696a22e41af26) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` | </details> <details><summary>Run by hand on PCs that don't match their target (not counted)</summary> | Target | Ran on | Result | | --- | --- | --- | | windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k | off target (ran on linux+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti, 620.70.6`) | [error](https://beanstalk.magicbean.dev/reports/rp_0d79d6333c333bb4) | </details> </details>
dazemc left a comment

Read of 5867310b on main a2dc5385 (WIP). The switch and the guard's code are coherent, and the test is real; the perf claim is not at this head or current main.

Perf claim. The Measurements are at 608775b2 on main dd5ffe6a; the head 5867310b is the merge onto a2dc5385, and the Windows build at the head was not run in the game ("the numbers below are from the PR's code before the merge"). The vk_replay.cpp change from 608775b2 is only the merge's cxx_escape::spawn_needed and include order, so the guard's timing code is the same — but the measured scene changed with #2174's Hyrule Field simulated turf, and the baseline main moved. The +6.7 % (91.64 → 97.79 fps) is evidence for 608775b2 on dd5ffe6a, not for this head. What is missing: the standard test run at 5867310b on a2dc5385 (or the farm's) with the mask, ideal processor and guard lines, and the same for the Still-to-test cases (4/6/8 SMT cores, Intel/AMD/hybrid, #838, SMT off).

Switch, default and off path. Good: RX_VK_RT_HOME is off by default; unset/0 is main's Free placement; 1 is home + guard; strict is home with no guard (the measuring arm, never for players); RX_VK_RT_HOME_MS is 4. Unset keeps main's lines, mask and ideal processor; the additions are the rt_ready_note bool tests, gate_ready's gate_open re-check and rt_home_frame's early return (the 1.5 ns claim), and explicit 0/unknown values log. Linux/macOS keep the reserved core as before and say the switch does nothing. test_switch_table fails on main's RX_VK_GRASS_DISTANCE order (named in the body).

Threading and lifetime. No race found. The wake stamp (rt_wake_on, rt_ready_set, rt_ready_at, rt_wake_floor) is written and read under q_mu by enqueue, gate_need_value, wait_queue_empty and job_wait; rt_home, rt_home_on, rt_woke and fps_rt_waited are the render thread's alone; the parked buffer is only read there; the affinity calls are on the render thread; rt_home_off covers a clock/read/affinity failure. The acknowledged false-hold paths (the present's fence/acquire waits not marked, the fps_clock vs steady_clock calibration, the DPC between the idle read and __rdtsc, a notifier preempted while holding q_mu) are real but bounded: a hold costs one stay, never the session.

Test. Strong: test_rt_pin (the placement and unset against main's mask/ideal/lines, the guard through the real queue code, the stall cases, 47 broken variants) and test_reserved_core_mask. Here at 5867310b, test_rt_pin, test_reserved_core_mask, test_fps_stats, test_perf_pipe_waits and test_threaded_rendering pass on Linux. The Windows API paths (SetThreadAffinityMask, QueryThreadCycleTime, the idle counts, __rdtsc) are not exercised game-free on Linux, and the head's Windows build was not run; the farm is what covers them.

WIP. Not "no test" — the test is there. Missing before ready: the head/current-main in-game run and measurement, the farm's other CPUs, and the team's default decision. No approval or claim.

**Read of `5867310b` on `main` `a2dc5385` (WIP).** The switch and the guard's code are coherent, and the test is real; the perf claim is **not** at this head or current main. **Perf claim.** The Measurements are at `608775b2` on main `dd5ffe6a`; the head `5867310b` is the merge onto `a2dc5385`, and the Windows build at the head was **not run in the game** ("the numbers below are from the PR's code before the merge"). The `vk_replay.cpp` change from `608775b2` is only the merge's `cxx_escape::spawn_needed` and include order, so the guard's timing code is the same — but the measured scene changed with #2174's Hyrule Field simulated turf, and the baseline main moved. The +6.7 % (91.64 → 97.79 fps) is evidence for `608775b2` on `dd5ffe6a`, not for this head. **What is missing:** the standard test run at `5867310b` on `a2dc5385` (or the farm's) with the mask, ideal processor and guard lines, and the same for the Still-to-test cases (4/6/8 SMT cores, Intel/AMD/hybrid, #838, SMT off). **Switch, default and off path.** Good: `RX_VK_RT_HOME` is off by default; unset/0 is main's Free placement; `1` is home + guard; `strict` is home with no guard (the measuring arm, never for players); `RX_VK_RT_HOME_MS` is 4. Unset keeps main's lines, mask and ideal processor; the additions are the `rt_ready_note` bool tests, `gate_ready`'s `gate_open` re-check and `rt_home_frame`'s early return (the 1.5 ns claim), and explicit 0/unknown values log. Linux/macOS keep the reserved core as before and say the switch does nothing. `test_switch_table` fails on main's `RX_VK_GRASS_DISTANCE` order (named in the body). **Threading and lifetime.** No race found. The wake stamp (`rt_wake_on`, `rt_ready_set`, `rt_ready_at`, `rt_wake_floor`) is written and read under `q_mu` by `enqueue`, `gate_need_value`, `wait_queue_empty` and `job_wait`; `rt_home`, `rt_home_on`, `rt_woke` and `fps_rt_waited` are the render thread's alone; the parked buffer is only read there; the affinity calls are on the render thread; `rt_home_off` covers a clock/read/affinity failure. The acknowledged false-hold paths (the present's fence/acquire waits not marked, the `fps_clock` vs `steady_clock` calibration, the DPC between the idle read and `__rdtsc`, a notifier preempted while holding `q_mu`) are real but bounded: a hold costs one stay, never the session. **Test.** Strong: `test_rt_pin` (the placement and unset against main's mask/ideal/lines, the guard through the real queue code, the stall cases, 47 broken variants) and `test_reserved_core_mask`. Here at `5867310b`, `test_rt_pin`, `test_reserved_core_mask`, `test_fps_stats`, `test_perf_pipe_waits` and `test_threaded_rendering` pass on Linux. The Windows API paths (`SetThreadAffinityMask`, `QueryThreadCycleTime`, the idle counts, `__rdtsc`) are not exercised game-free on Linux, and the head's Windows build was not run; the farm is what covers them. **WIP.** Not "no test" — the test is there. Missing before ready: the head/current-main in-game run and measurement, the farm's other CPUs, and the team's default decision. No approval or claim.
Author
Member

@Beanstalk run a2dc5385 #2240 on tester-mekyon, windows+nvidia+dgpu
Main against this PR's head, both with no switch at all (RX_VK_RT_HOME unset on both sides), to see whether main crashes the same way on that PC. On this PR's round, rp_0579c120f0bacfb8 (Ryzen 5 5600X, RTX 5070 Ti, 621.24) crashed or hung in all 8 PR runs, in both cells, RX_VK_RT_HOME=0 included, with one log ending in an exception inside NVIDIA's shader compiler (nvgpucomp64.dll). Main was built there but never run.

Settings, both sides: frame_rate_cap = 6, vsync = 2, frame_generation = 0; headless. Scenario: from the save castle-gate, Hyrule Field (HyruleField_Child) measured 30 s, 3 game starts a side. Rules: crash = false on each side; everything else report-only. The second target (any Windows PC with an NVIDIA card) is for whether this is that PC alone.

@Beanstalk run a2dc5385 #2240 on tester-mekyon, windows+nvidia+dgpu Main against this PR's head, both with no switch at all (RX_VK_RT_HOME unset on both sides), to see whether main crashes the same way on that PC. On this PR's round, rp_0579c120f0bacfb8 (Ryzen 5 5600X, RTX 5070 Ti, 621.24) crashed or hung in all 8 PR runs, in both cells, RX_VK_RT_HOME=0 included, with one log ending in an exception inside NVIDIA's shader compiler (nvgpucomp64.dll). Main was built there but never run. Settings, both sides: frame_rate_cap = 6, vsync = 2, frame_generation = 0; headless. Scenario: from the save castle-gate, Hyrule Field (HyruleField_Child) measured 30 s, 3 game starts a side. Rules: crash = false on each side; everything else report-only. The second target (any Windows PC with an NVIDIA card) is for whether this is that PC alone.
Member

@klimovich008 that run was not started: there is no branch or tag a2dc5385 for the baseline.

@klimovich008 that run was not started: there is no branch or tag a2dc5385 for the baseline.
Author
Member

@Beanstalk run a2dc538590 #2240 on tester-mekyon, windows+nvidia+dgpu
Main against this PR's head, both with no switch at all (RX_VK_RT_HOME unset on both sides), to see whether main crashes the same way on that PC. On this PR's round, rp_0579c120f0bacfb8 (Ryzen 5 5600X, RTX 5070 Ti, 621.24) crashed or hung in all 8 PR runs, in both cells, RX_VK_RT_HOME=0 included, with one log ending in an exception inside NVIDIA's shader compiler (nvgpucomp64.dll). Main was built there but never run.

Settings, both sides: frame_rate_cap = 6, vsync = 2, frame_generation = 0; headless. Scenario: from the save castle-gate, Hyrule Field (HyruleField_Child) measured 30 s, 3 game starts a side. Rules: crash = false on each side; everything else report-only. The second target (any Windows PC with an NVIDIA card) is for whether this is that PC alone.

@Beanstalk run a2dc5385901812d183c4b7f0f9d48b295f17a510 #2240 on tester-mekyon, windows+nvidia+dgpu Main against this PR's head, both with no switch at all (RX_VK_RT_HOME unset on both sides), to see whether main crashes the same way on that PC. On this PR's round, rp_0579c120f0bacfb8 (Ryzen 5 5600X, RTX 5070 Ti, 621.24) crashed or hung in all 8 PR runs, in both cells, RX_VK_RT_HOME=0 included, with one log ending in an exception inside NVIDIA's shader compiler (nvgpucomp64.dll). Main was built there but never run. Settings, both sides: frame_rate_cap = 6, vsync = 2, frame_generation = 0; headless. Scenario: from the save castle-gate, Hyrule Field (HyruleField_Child) measured 30 s, 3 game starts a side. Rules: crash = false on each side; everything else report-only. The second target (any Windows PC with an NVIDIA card) is for whether this is that PC alone.
Member

@klimovich008 started a manual run: a2dc5385901812d183c4b7f0f9d48b295f17a510 vs #2240

Candidate #2240 (5867310bc8) against baseline a2dc5385901812d183c4b7f0f9d48b295f17a510 (a2dc538590). Done.

⚠️ Note: The guarded render-thread mode is not exercised because RX_VK_RT_HOME is unset on both sides.

⚠️ Note: The baseline's crash outcome is reported for comparison; the crash pass rule judges the candidate.

The baseline and candidate will run headless from the castle-gate save, with RX_VK_RT_HOME unset on both sides. Three starts per side will measure 30 seconds in Hyrule Field on the named tester and a Windows NVIDIA discrete-GPU target, taking about 33 minutes per target. Crashes fail; frame times and other collected measurements are report-only, including the baseline outcome for comparison.

Summary, written by AI from the results below:

The change failed on tester-mekyon due to crashes, but passed on the Windows NVIDIA discrete-GPU target. On tester-mekyon, both baseline and candidate crashed on all 3 starts; maximum run frame time rose from 733.64 to 14,596.07 ms. On the passing target, field frame time p99 improved slightly from 17.80 to 17.66 ms.

Target Result Reports
tester-mekyon 1/1 fail 1
windows+nvidia+dgpu 1/1 pass 1
@klimovich008 started a manual run: [a2dc5385901812d183c4b7f0f9d48b295f17a510 vs \#2240](https://beanstalk.magicbean.dev/runs/rn_e521cf3b11018b29) Candidate `#2240` (`5867310bc8`) against baseline `a2dc5385901812d183c4b7f0f9d48b295f17a510` (`a2dc538590`). **Done.** ⚠️ **Note:** The guarded render-thread mode is not exercised because RX_VK_RT_HOME is unset on both sides. ⚠️ **Note:** The baseline's crash outcome is reported for comparison; the crash pass rule judges the candidate. > The baseline and candidate will run headless from the castle-gate save, with RX_VK_RT_HOME unset on both sides. Three starts per side will measure 30 seconds in Hyrule Field on the named tester and a Windows NVIDIA discrete-GPU target, taking about 33 minutes per target. Crashes fail; frame times and other collected measurements are report-only, including the baseline outcome for comparison. > **Summary**, written by AI from the results below: > > The change failed on tester-mekyon due to crashes, but passed on the Windows NVIDIA discrete-GPU target. On tester-mekyon, both baseline and candidate crashed on all 3 starts; maximum run frame time rose from 733.64 to 14,596.07 ms. On the passing target, field frame time p99 improved slightly from 17.80 to 17.66 ms. | Target | Result | Reports | | --- | --- | --- | | `tester-mekyon` | 1/1 fail | [1](https://beanstalk.magicbean.dev/reports/rp_0bad96a4cf76bc72) | | `windows+nvidia+dgpu` | 1/1 pass | [1](https://beanstalk.magicbean.dev/reports/rp_1c84584206e76246) |
Author
Member

About the farm's first results on 5867310

The fail on windows+cpu-3600_5600... (rp_0579c120f0bacfb8: Ryzen 5 5600X, RTX 5070 Ti, NVIDIA 621.24, 16 GB).

  • Every PR run on that PC crashed or hung: all 8, in both cells, RX_VK_RT_HOME=0 included.
  • The exit codes were 0xC0000409, 0xC0000005 and 0x80000003. The log the report keeps ends inside NVIDIA's shader compiler, during in-play pipeline compiles: CRASH: exception 0x80000003 ... at nvgpucomp64.dll+0x5f13d2.
  • The farm built main there but didn't run it, so there's no main number from that PC yet.

What the switch does at 0. I read the code path. At 0 the PR makes the same Windows calls as main:

  • rt_place makes the same SetThreadAffinityMask and SetThreadIdealProcessor calls with the same mask and ideal processor. test_rt_pin.py holds unset to main's mask, ideal processor and lines.
  • 0 adds only one start-up line naming the value.
  • The guard stays off (rt_home_on false), so the job wait does no stamping and the waits are not summed.

So by the code, this PR is not what crashes in the 0 cell. That is a reading, not a measurement.

To see whether main crashes there too, I started a manual run: main a2dc5385 against this PR's head, with no switch on either side, on that tester's PC and on any Windows PC with an NVIDIA card (rn_e521cf3b11018b29).

  • It leaves this PR's round alone. The 4C/8T and hybrid Intel targets stay queued.
  • I'll say what it shows. Until then, the crash is unexplained and is not counted for or against the switch.

The 8-core target couldn't be judged twice. The two starts a cell leave no spare start for the frame-time rule. The p99 so far is 18.4 ms at 0 against 18.1 at 1.

  • Three starts a cell would be 12 game starts a tester (the plan also runs a switch-off side), which is over the farm's 60-minute limit. So I've left the plan as it is.
  • Those two reports are not a result either way.
**About the farm's first results on 5867310** **The fail on `windows+cpu-3600_5600...`** ([rp_0579c120f0bacfb8](https://beanstalk.magicbean.dev/reports/rp_0579c120f0bacfb8): Ryzen 5 5600X, RTX 5070 Ti, NVIDIA 621.24, 16 GB). - Every PR run on that PC crashed or hung: all 8, in both cells, `RX_VK_RT_HOME=0` included. - The exit codes were 0xC0000409, 0xC0000005 and 0x80000003. The log the report keeps ends inside NVIDIA's shader compiler, during in-play pipeline compiles: `CRASH: exception 0x80000003 ... at nvgpucomp64.dll+0x5f13d2`. - The farm built main there but didn't run it, so there's no main number from that PC yet. **What the switch does at `0`.** I read the code path. At `0` the PR makes the same Windows calls as main: - `rt_place` makes the same `SetThreadAffinityMask` and `SetThreadIdealProcessor` calls with the same mask and ideal processor. `test_rt_pin.py` holds unset to main's mask, ideal processor and lines. - `0` adds only one start-up line naming the value. - The guard stays off (`rt_home_on` false), so the job wait does no stamping and the waits are not summed. So by the code, this PR is not what crashes in the `0` cell. That is a reading, not a measurement. **To see whether main crashes there too,** I started a manual run: main a2dc5385 against this PR's head, with no switch on either side, on that tester's PC and on any Windows PC with an NVIDIA card ([rn_e521cf3b11018b29](https://beanstalk.magicbean.dev/runs/rn_e521cf3b11018b29)). - It leaves this PR's round alone. The 4C/8T and hybrid Intel targets stay queued. - I'll say what it shows. Until then, the crash is unexplained and is not counted for or against the switch. **The 8-core target couldn't be judged twice.** The two starts a cell leave no spare start for the frame-time rule. The p99 so far is 18.4 ms at `0` against 18.1 at `1`. - Three starts a cell would be 12 game starts a tester (the plan also runs a switch-off side), which is over the farm's 60-minute limit. So I've left the plan as it is. - Those two reports are not a result either way.
Owner

@Beanstalk

@Beanstalk
Member

@HumanBean 5867310 is already running: see the dashboard.

@HumanBean `5867310` is already running: see the [dashboard](https://beanstalk.magicbean.dev/prs/2240).
Owner
@review
BeanBot requested changes 2026-11-22 19:31:13 +00:00
Dismissed
BeanBot left a comment

Recommendation: Request changes. The guard permanently misses repeated holds longer than 250 ms, leaving the render thread pinned through every stall. The opt-in gain was measured on an earlier build, and the head’s NVIDIA farm crashes still need a base comparison.

Adds an experimental Windows render-thread affinity mode with a guard intended to release the thread when another program occupies its reserved core. An earlier build gained 6.7% median fps on one AMD system, at the cost of extra sampling and at least one stall on each return home; the guard also misses longer repeated holds.

Blocking (1): must change before merging.

  1. L1 gpu/vk/rt_pin.h:164: The guard discards every window longer than 250 ms, including windows caused by the contention it is meant to escape. (more on the line) Do: Provide a bounded escape for long windows that could be contention, and add a test for repeated holds over 250 ms.

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

  • L2 gpu/vk/rt_pin.h:78: The threshold parser accepts values that the guard cannot normally reach because it discards windows over 250 ms. (more on the line) Do: Restrict the accepted threshold to a range the sampling rule can satisfy, or change the sampling rule to support the documented range; test the boundary.

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

  • L3: The current head and base need an in-game performance comparison before the gain and default can be settled. When: The reported 6.7% gain used the earlier PR build and older main; the current head was built but not run, and the scene changed on main. Do: Run interleaved main-versus-head measurements at player settings, including fps, 1% low and frame times, and complete the planned Windows CPU coverage.
  • L4: The farm crashes with the switch both on and off need a base-side comparison. When: On the Ryzen 5 5600X and RTX 5070 Ti tester, all eight PR runs crashed or hung, including RX_VK_RT_HOME=0; main was built but not run there. Do: Complete the requested main-versus-head runs on that tester and another Windows NVIDIA system, then investigate any head-only failure.
  • L5: The guard has not been checked against the real contention case it is intended to mitigate. When: The synthetic priority-15 workload was tested on the AMD system, but the PresentMon service case on the i5-13600K has not been run with this head. Do: Run the real #838 workload with the switch unset and enabled, recording long frames and guard transitions.

@fix can do L1 and L2.

Checks: Failing on this head, which is behind its base, where they pass: Guide screenshots / Guide images and local UI source review (pull_request), CI / Website build and checks (pull_request). @rebase (or @fix) brings it up to date and runs them again; not held against it.

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

Does it help: Unproven at this head. On an earlier build, three alternating pairs on a Ryzen 7 5700X3D and RX 9070 XT gave 91.64 to 97.79 fps and p99 frame time 15.87 to 14.36 ms. The merged head was built but not run in game, and the comparison used the PR with the switch unset as its baseline.

Other systems: The affinity mode affects the asynchronous render thread on Windows; Linux keeps its existing placement and synchronous replay uses a separate pin. Intel, hybrid CPUs, other core counts, SMT off, the real #838 workload and the current head remain unverified. All eight farm runs on one Windows NVIDIA system crashed or hung with both switch values; a main comparison is pending.

Switches: RX_VK_RT_HOME defaults to 0, retaining the existing placement; 1 enables guarded pinning and strict enables unguarded pinning for measurement. The default is safe for existing behavior but has not been chosen from current-head cross-system measurements. RX_VK_RT_HOME_MS defaults to 4 ms; its accepted upper range includes values the guard cannot reach. Both have switch-table rows and developer documentation.

Reviewed: 5867310bc8 against a2dc538590: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the commit log, rt_pin.h and the diffs; examined the changed replay, FPS, placement and test code and their surrounding queue and clock paths. Skimmed the large test fixture and unchanged portions of the large replay and FPS files; they were not read in full. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review).

Checked and fine:

  • The wake stamp and queue state inspected are protected by q_mu; the guard state is used by the render thread.
  • The placement and wait fixtures include behavioral cases and broken variants, and the test runner supplies its selected C++ compiler.
  • The diff does not change the renderer API, shaders, third-party files or generated files; the commits record AI assistance.

Testing: No code or tests were run for this review. The author reports game and synthetic contention runs on the earlier build and a successful Windows build of the merged head; the farm results and pending comparison are described above.

Overlaps and merge order: None found in the supplied information.


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

**Recommendation: Request changes.** The guard permanently misses repeated holds longer than 250 ms, leaving the render thread pinned through every stall. The opt-in gain was measured on an earlier build, and the head’s NVIDIA farm crashes still need a base comparison. Adds an experimental Windows render-thread affinity mode with a guard intended to release the thread when another program occupies its reserved core. An earlier build gained 6.7% median fps on one AMD system, at the cost of extra sampling and at least one stall on each return home; the guard also misses longer repeated holds. **Blocking (1)**: must change before merging. 1. **L1** `gpu/vk/rt_pin.h:164`: The guard discards every window longer than 250 ms, including windows caused by the contention it is meant to escape. (more on the line) **Do:** Provide a bounded escape for long windows that could be contention, and add a test for repeated holds over 250 ms. **Should fix (1)**: not blocking, but worth doing before merging. - **L2** `gpu/vk/rt_pin.h:78`: The threshold parser accepts values that the guard cannot normally reach because it discards windows over 250 ms. (more on the line) **Do:** Restrict the accepted threshold to a range the sampling rule can satisfy, or change the sampling rule to support the documented range; test the boundary. **Testing before merging (3)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The current head and base need an in-game performance comparison before the gain and default can be settled. *When:* The reported 6.7% gain used the earlier PR build and older main; the current head was built but not run, and the scene changed on main. **Do:** Run interleaved main-versus-head measurements at player settings, including fps, 1% low and frame times, and complete the planned Windows CPU coverage. - **L4**: The farm crashes with the switch both on and off need a base-side comparison. *When:* On the Ryzen 5 5600X and RTX 5070 Ti tester, all eight PR runs crashed or hung, including RX_VK_RT_HOME=0; main was built but not run there. **Do:** Complete the requested main-versus-head runs on that tester and another Windows NVIDIA system, then investigate any head-only failure. - **L5**: The guard has not been checked against the real contention case it is intended to mitigate. *When:* The synthetic priority-15 workload was tested on the AMD system, but the PresentMon service case on the i5-13600K has not been run with this head. **Do:** Run the real #838 workload with the switch unset and enabled, recording long frames and guard transitions. `@fix` can do L1 and L2. **Checks:** Failing on this head, which is behind its base, where they pass: `Guide screenshots / Guide images and local UI source review (pull_request)`, `CI / Website build and checks (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs them again; not held against it. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven at this head. On an earlier build, three alternating pairs on a Ryzen 7 5700X3D and RX 9070 XT gave 91.64 to 97.79 fps and p99 frame time 15.87 to 14.36 ms. The merged head was built but not run in game, and the comparison used the PR with the switch unset as its baseline. **Other systems:** The affinity mode affects the asynchronous render thread on Windows; Linux keeps its existing placement and synchronous replay uses a separate pin. Intel, hybrid CPUs, other core counts, SMT off, the real #838 workload and the current head remain unverified. All eight farm runs on one Windows NVIDIA system crashed or hung with both switch values; a main comparison is pending. **Switches:** RX_VK_RT_HOME defaults to 0, retaining the existing placement; 1 enables guarded pinning and strict enables unguarded pinning for measurement. The default is safe for existing behavior but has not been chosen from current-head cross-system measurements. RX_VK_RT_HOME_MS defaults to 4 ms; its accepted upper range includes values the guard cannot reach. Both have switch-table rows and developer documentation. **Reviewed:** 5867310bc809 against a2dc53859018: Read AGENTS.md, CONTRIBUTING.md, the pull request template, standards, the commit log, rt_pin.h and the diffs; examined the changed replay, FPS, placement and test code and their surrounding queue and clock paths. Skimmed the large test fixture and unchanged portions of the large replay and FPS files; they were not read in full. docs/review-checklist.md and the adjacent Tooling checkout were absent.; nothing run (a code review). **Checked and fine:** - The wake stamp and queue state inspected are protected by q_mu; the guard state is used by the render thread. - The placement and wait fixtures include behavioral cases and broken variants, and the test runner supplies its selected C++ compiler. - The diff does not change the renderer API, shaders, third-party files or generated files; the commits record AI assistance. **Testing:** No code or tests were run for this review. The author reports game and synthetic contention runs on the earlier build and a successful Windows build of the merged head; the farm results and pending comparison are described above. **Overlaps and merge order:** None found in the supplied information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -0,0 +75,4 @@
/// for a value set but not used)
constexpr int kHeldMs = 4;
constexpr int held_ms(const char* v, bool* known = nullptr) {
if (known) *known = true;
Member

L2 (should fix): The threshold parser accepts values that the guard cannot normally reach because it discards windows over 250 ms.

When: With RX_VK_RT_HOME=1 and RX_VK_RT_HOME_MS=1000, the value is accepted and logged, but a one-second hold is discarded as an overlong window instead of releasing the thread.

Do: Restrict the accepted threshold to a range the sampling rule can satisfy, or change the sampling rule to support the documented range; test the boundary.

**L2** (should fix): The threshold parser accepts values that the guard cannot normally reach because it discards windows over 250 ms. *When:* With RX_VK_RT_HOME=1 and RX_VK_RT_HOME_MS=1000, the value is accepted and logged, but a one-second hold is discarded as an overlong window instead of releasing the thread. **Do:** Restrict the accepted threshold to a range the sampling rule can satisfy, or change the sampling rule to support the documented range; test the boundary.
@ -0,0 +161,4 @@
wide = false, home_since = now;
return Act::Home;
}
/// While home, one window (above): Widen when both facts hold
Member

L1 (blocking): The guard discards every window longer than 250 ms, including windows caused by the contention it is meant to escape.

When: With RX_VK_RT_HOME=1, another high-priority program repeatedly occupies both usable processors of the reserved core for 300 ms. Each delayed present produces a window over 250 ms, so sample returns without widening and every subsequent hold stalls the render thread again.

Do: Provide a bounded escape for long windows that could be contention, and add a test for repeated holds over 250 ms.

**L1** (blocking): The guard discards every window longer than 250 ms, including windows caused by the contention it is meant to escape. *When:* With RX_VK_RT_HOME=1, another high-priority program repeatedly occupies both usable processors of the reserved core for 300 ms. Each delayed present produces a window over 250 ms, so sample returns without widening and every subsequent hold stalls the render thread again. **Do:** Provide a bounded escape for long windows that could be contention, and add a test for repeated holds over 250 ms.
fix(vk): RX_VK_RT_HOME=1's guard judges windows over 250 ms, each fact over half the window, and counts the present path's own waits
Some checks reported errors
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 12s
CI / Workflow lint (actionlint) (pull_request) Successful in 12s
Third-party parts / As their notes say (pull_request) Successful in 14s
CI / Website build and checks (pull_request) Failing after 19s
PR description / Description follows the template (pull_request_target) Successful in 4s
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/approval approved by klimovich008 (reviewed)
beanstalk/windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k 0/1 pass, 0 running, 2 queued
beanstalk/windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k 1/1 fail
beanstalk/windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k 0/1 pass, 2 error
beanstalk/windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k 1/1 fail
61a86ea7d2
BeanBot's review 2378 of #2240.

L1: Guard::sample dropped every window over 250 ms, so a hold that kept
each present more than 250 ms apart (another program on both reserved
processors for 300 ms at a time) was never judged and the thread stayed
home through it. Such a window is now judged with the same two facts,
each needing Guard::need(window) = max(RX_VK_RT_HOME_MS, half the
window): a compile on the render thread fails fact 1, a load blocked
with a processor of its core free fails fact 2, small losses over a
long window don't add up to a hold, and a hold of most of the window
widens it with the usual stays. The per-processor bound needs a wake
delay of need(window) too.

L2: RX_VK_RT_HOME_MS keeps 1-1000; every value is now reachable, with
boundary tests at 1000 and 250.

The present path's waits (the frame slot's fence, presenter_wait_idle,
image_free's fence, the blocking acquire) are FpsRtWait scopes of kind
-1: summed only into the guard's waits, never into the FPS counter's
lane, and with the switch off they read no clock.

Stated limit (rt_pin.h, threads.md): long windows are judged from the
marked waits only, so an unmarked block of over 250 ms with both
processors of the core busy with others can widen the thread for one
stay, which is the placement unset gives.

Tests: test_rt_pin.py's long-window, boundary and scope cases (54
broken variants, each failing), and the fixtures that cut the present
path stub FpsRtWait.

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

Thanks, BeanBot (review 2378). The round is in 61a86ea7, which squashes the work into one commit.

L1, fixed. A window over 250 ms is now judged. Each fact must reach max(RX_VK_RT_HOME_MS, half the window): the time lost off the CPU outside the thread's waits, and every processor of its core taken by others.

  • A long compile on the render thread, or a load blocked with a processor of its core free, is not a hold.
  • A hold of most of the window widens it, with the usual stays (2, 4, 8, 16, 30 s).
  • The present path's own waits (the frame slot's fence, presenter_wait_idle, image_free's fence, the blocking acquire) now count as the thread's waits, so a long one isn't taken for lost time.
  • Tests: test_rt_pin.py has repeated 300 ms holds that widen at each return home with the stays doubling, plus long windows that must not widen (a 1.5 s compile, an 800 ms block, small losses over 2 s). It has 54 broken variants, each failing, including "a window over 250 ms not judged".
  • In game, with both reserved processors held at priority 15 for 270 ms in every 2,700 ms:
    • 1 let through no frame over 250 ms, in 3 implementer rounds and 1 checker round;
    • strict let through 7-8 a run.
  • Stated limit: long windows are judged from the marked waits only. An unmarked block over 250 ms with both processors of the core busy meanwhile can widen it for one stay, which is the placement unset gives.

L2, fixed. RX_VK_RT_HOME_MS keeps 1-1000, and every value is now reachable, because a hold over 250 ms is judged in its own window.

  • Boundary tests: with 1000, a 1 s hold widens, but 999 ms lost or 999 ms taken doesn't.
  • 250 is checked too, and "1001" falls back to 4.

L3. The head's code (main a2dc5385 merged) is measured in two sessions, 3 alternating pairs each, with the switch at 1 against unset on the same build. Unset is main's placement.

  • Checker: 89.89 -> 97.19 fps (+8.1 %), p99 16.4 -> 14.5 ms.
  • Implementer: +8.5 %.
  • The thread stayed home with 0 holds in normal play.
  • That is switch against unset, not a main build against the head, and 1 % lows aren't reported. The farm plan below covers the Windows CPUs.

L4. The manual run rn_e521cf3b11018b29 ran main a2dc5385 against the head with no switch. Main crashed on all 3 starts on that tester's PC too, and the other Windows NVIDIA dGPU passed. So that crash isn't this PR's.

L5. Still wanted: the real #838 case (Intel's PresentMon service on an i5-13600K). It isn't run here. It's in the farm request (hybrid Intel) and the wanted post.

One more note: main's #2275 reshaped the present's fence wait and acquire, which this PR marks, so merging current main conflicts there. That merge is still to do.

Thanks, BeanBot (review 2378). The round is in 61a86ea7, which squashes the work into one commit. **L1, fixed.** A window over 250 ms is now judged. Each fact must reach `max(RX_VK_RT_HOME_MS, half the window)`: the time lost off the CPU outside the thread's waits, and every processor of its core taken by others. - A long compile on the render thread, or a load blocked with a processor of its core free, is not a hold. - A hold of most of the window widens it, with the usual stays (2, 4, 8, 16, 30 s). - The present path's own waits (the frame slot's fence, `presenter_wait_idle`, `image_free`'s fence, the blocking acquire) now count as the thread's waits, so a long one isn't taken for lost time. - **Tests:** `test_rt_pin.py` has repeated 300 ms holds that widen at each return home with the stays doubling, plus long windows that must not widen (a 1.5 s compile, an 800 ms block, small losses over 2 s). It has 54 broken variants, each failing, including "a window over 250 ms not judged". - **In game**, with both reserved processors held at priority 15 for 270 ms in every 2,700 ms: - `1` let through no frame over 250 ms, in 3 implementer rounds and 1 checker round; - strict let through 7-8 a run. - **Stated limit:** long windows are judged from the marked waits only. An unmarked block over 250 ms with both processors of the core busy meanwhile can widen it for one stay, which is the placement unset gives. **L2, fixed.** `RX_VK_RT_HOME_MS` keeps 1-1000, and every value is now reachable, because a hold over 250 ms is judged in its own window. - Boundary tests: with 1000, a 1 s hold widens, but 999 ms lost or 999 ms taken doesn't. - 250 is checked too, and `"1001"` falls back to 4. **L3.** The head's code (main a2dc5385 merged) is measured in two sessions, 3 alternating pairs each, with the switch at `1` against unset on the same build. Unset is main's placement. - Checker: 89.89 -> 97.19 fps (+8.1 %), p99 16.4 -> 14.5 ms. - Implementer: +8.5 %. - The thread stayed home with 0 holds in normal play. - That is switch against unset, not a main build against the head, and 1 % lows aren't reported. The farm plan below covers the Windows CPUs. **L4.** The manual run [rn_e521cf3b11018b29](https://beanstalk.magicbean.dev/runs/rn_e521cf3b11018b29) ran main a2dc5385 against the head with no switch. Main crashed on all 3 starts on that tester's PC too, and the other Windows NVIDIA dGPU passed. So that crash isn't this PR's. **L5.** Still wanted: the real #838 case (Intel's PresentMon service on an i5-13600K). It isn't run here. It's in the farm request (hybrid Intel) and the wanted post. One more note: main's #2275 reshaped the present's fence wait and acquire, which this PR marks, so merging current main conflicts there. That merge is still to do.
Author
Member

@Beanstalk the PR's own build only, its switch against itself: baseline ref = pr, [matrix.pr_only] RX_VK_RT_HOME = ["0", "1"], and pass.compare RX_VK_RT_HOME = "1" against "0" on the pr side (unset is the same as 0: main's placement). It is off by default and does anything only on Windows CPUs with SMT, so every target is Windows.

Targets, each with 1-2 reports. Windows with a CPU that has two logical processors a core, by model:

  • 4 cores / 8 threads: i7-6700K, i7-7700K, i7-6700, i7-7700, i3-10100, i3-12100, i3-13100, Ryzen 3 3300X;
  • 6 / 12: Ryzen 5 3600, 5600X, 5600, 7600X, Ryzen 5 7600, i5-10400, i5-11400, i7-8700K;
  • 8 / 16: Ryzen 7 3700X, 5700X, 5800X, 5800X3D, 7700X, 7800X3D, i9-9900K, i7-10700K;
  • hybrid Intel: i5-12600K, i5-13600K, i5-14600K, i7-12700K, i7-13700K, i5-12400.
    The 4-core ones matter most (on this PC a 4-core mask gained far more, report-only), but don't let the plan wait on them alone.

Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine.

Scenario: Hyrule Field (HyruleField_Child), measured 30 s, 3 game starts a cell (2 at least). Compare rules, pr side, RX_VK_RT_HOME=1 vs 0: fps_mean min_delta_pct = 3 (fails on a loss of more than 3 %) and frametime_p99_ms max_delta_pct = 10; crash = false. Hitch counts (run_hitch_count, run_frametime_max_ms) report-only.

Log on the =1 cells: "vk: RX_VK_RT_HOME=1: the render thread is kept to logical processors" expected (the thread really went home: on a PC where the placement does not apply it says "free to move, as unset" instead, and that cell compares nothing).

@Beanstalk the PR's own build only, its switch against itself: baseline ref = pr, [matrix.pr_only] RX_VK_RT_HOME = ["0", "1"], and [[pass.compare]] RX_VK_RT_HOME = "1" against "0" on the pr side (unset is the same as 0: main's placement). It is off by default and does anything only on Windows CPUs with SMT, so every target is Windows. Targets, each with 1-2 reports. Windows with a CPU that has two logical processors a core, by model: - 4 cores / 8 threads: i7-6700K, i7-7700K, i7-6700, i7-7700, i3-10100, i3-12100, i3-13100, Ryzen 3 3300X; - 6 / 12: Ryzen 5 3600, 5600X, 5600, 7600X, Ryzen 5 7600, i5-10400, i5-11400, i7-8700K; - 8 / 16: Ryzen 7 3700X, 5700X, 5800X, 5800X3D, 7700X, 7800X3D, i9-9900K, i7-10700K; - hybrid Intel: i5-12600K, i5-13600K, i5-14600K, i7-12700K, i7-13700K, i5-12400. The 4-core ones matter most (on this PC a 4-core mask gained far more, report-only), but don't let the plan wait on them alone. Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine. Scenario: Hyrule Field (HyruleField_Child), measured 30 s, 3 game starts a cell (2 at least). Compare rules, pr side, RX_VK_RT_HOME=1 vs 0: fps_mean min_delta_pct = 3 (fails on a loss of more than 3 %) and frametime_p99_ms max_delta_pct = 10; crash = false. Hitch counts (run_hitch_count, run_frametime_max_ms) report-only. Log on the =1 cells: "vk: RX_VK_RT_HOME=1: the render thread is kept to logical processors" expected (the thread really went home: on a PC where the placement does not apply it says "free to move, as unset" instead, and that cell compares nothing).
Member
Beanstalk test farm · an earlier run: commit 61a86ea (the newer results are in a comment below)

Commit 61a86ea · approved by klimovich008 (reviewed) · dashboard

⚠️ Note: The log check is unjudged when placement is not confirmed, including in the 0 cells; the schema cannot condition the performance comparison on that log, so a comparison without confirmed placement may compare equivalent modes.
⚠️ Note: The headless run does not exercise swapchain waits or reproduce the external high-priority contention needed to test the guard's escape and return behavior; it also does not compare the PR build with main.
⚠️ Note: Two starts per cell, rather than three, keep the plan within the farm's time limit; run-wide hitch count and maximum frame time are report-only.

Started at 00:10 UTC.

Target Result Reports VRAM peak (MB) Crashes
windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k") ⏳ queued 0 of 1 — —
windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k") ❌ fail 1 1 — 2 PR runs
windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k") ⚠️ couldn't be judged (an outlier) 2 1 2 — none
windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") ❌ fail 1 1 — none

hyrule-field · frame time p99 (ms)

Target switch off RX_VK_RT_HOME=0 (reference) RX_VK_RT_HOME=1
windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k") — — —
windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k") — — —
windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k") 15.5 16.0 16.2 (+2%)
windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") 49.6 36.3 32.3 (−11%)

Why it failed

  • windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k: hyrule-field · RX_VK_RT_HOME=1 (PR only) crash: 2 PR runs crashed
  • windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k: hyrule-field · RX_VK_RT_HOME=1 (PR only) field.fps_mean: RX_VK_RT_HOME=1 vs RX_VK_RT_HOME=0 (PR): 38.6 → 34.0 (−11.8%); limit 3.0; the PR's own cells: RX_VK_RT_HOME=1 against RX_VK_RT_HOME=0 (RX_VK_RT_HOME=0 (PR only))

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+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k, report 1: Insufficient frame-time evidence for 1 required comparison(s). See rule results.
  • windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k, report 2: 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 SMT systems, the PR build will run in Hyrule Field with its render-thread switch set to 0 and 1, using uncapped frame rate, V-Sync off, and frame generation off. Two starts per cell measure 30 seconds of gameplay, comparing mean FPS and p99 frame time; a crash, an FPS loss over 3%, or a p99 increase over 10% fails the plan. The four-core target may wait for a matching PC, and other CPU targets may also wait if their matching online machines are not running Windows. No tester online now matches windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k, windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k: those targets wait for one.

  • Where: windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k", 1-2 reports), windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k", 1-2 reports), windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k", 1-2 reports), windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k", 1-2 reports).
  • Against: the PR itself, switch on (RX_VK_RT_HOME) and off; main is not built or run.
  • Matrix: 2 cells, each with the switch on and off: RX_VK_RT_HOME 0 or 1 (PR only).
  • hyrule-field: from the repository's save castle-gate (settings vsync=2, frame_rate_cap=6, frame_generation=0), then teleport to Hyrule Field, measure field for 30 s (after 10 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run).
  • Measured: crashes, frame times, stutters and hitches, draws and frame rate, the game's log (an expected line that never appears: could not be judged).
  • The PR fails if: it crashes; or the PR's frame rate with RX_VK_RT_HOME=1 is more than 3% below RX_VK_RT_HOME=0; or the PR's frame time (p99) with RX_VK_RT_HOME=1 is more than 10% above RX_VK_RT_HOME=0; or expected log lines missing is above 0.
  • Time: about 46 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-`, for the PR description

Verdict: fail on windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (1 report): hyrule-field 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
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: this PR @ 61a86ea, switch off After: this PR @ 61a86ea, switch on
hyrule-field · RX_VK_RT_HOME=0 (PR only) · expected log lines missing 1.0 1.0 (+0%)
hyrule-field · RX_VK_RT_HOME=0 (PR only) · field · frame time (p99) (ms) — 36.9
hyrule-field · RX_VK_RT_HOME=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 (frame time (p99)) Helps / doesn't help / untested
RX_VK_RT_HOME switch the PR adds (set on the PR side only) 0, 1 off (the switch's default) the PR's default hyrule-field, main without it → the PR with 0: not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (1 report): `hyrule-field 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`  
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: this PR @ 61a86ea, switch off | After: this PR @ 61a86ea, switch on |
|---|---|---|
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) |
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | — | 36.9 |
| hyrule-field · `RX_VK_RT_HOME=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 (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: not measured | untested |
Measurements on `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700`, for the PR description

Verdict: could not be judged on windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5080, 621.24.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: this PR @ 61a86ea, switch off After: this PR @ 61a86ea, switch on
hyrule-field · RX_VK_RT_HOME=0 (PR only) · expected log lines missing 1.0 1.0 (+0%)
hyrule-field · RX_VK_RT_HOME=0 (PR only) · field · frame time (p99) (ms) 15.5 16.0 (+3%)
hyrule-field · RX_VK_RT_HOME=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
hyrule-field · RX_VK_RT_HOME=1 (PR only) · field · frame time (p99) (ms) 15.3 16.2 (+6%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_RT_HOME switch the PR adds (set on the PR side only) 0, 1 off (the switch's default) the PR's default hyrule-field, main without it → the PR with 0: 15.5 → 16.0 (+3%) doesn't help

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5080, 621.24.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM`  
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: this PR @ 61a86ea, switch off | After: this PR @ 61a86ea, switch on |
|---|---|---|
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) |
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 15.5 | 16.0 (+3%) |
| hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 15.3 | 16.2 (+6%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 15.5 → 16.0 (+3%) | doesn't help |
Measurements on `windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k`, for the PR description

Verdict: fail on windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (1 report): hyrule-field field.fps_mean: RX_VK_RT_HOME=1 vs RX_VK_RT_HOME=0 (PR) (-11.8%) failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5060 Ti, 616.56.0 12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: this PR @ 61a86ea, switch off After: this PR @ 61a86ea, switch on
hyrule-field · RX_VK_RT_HOME=0 (PR only) · expected log lines missing 1.0 1.0 (+0%)
hyrule-field · RX_VK_RT_HOME=0 (PR only) · field · frame time (p99) (ms) 49.6 36.3 (−27%)
hyrule-field · RX_VK_RT_HOME=1 (PR only) · expected log lines missing 1.0 0.0 (−100%)
hyrule-field · RX_VK_RT_HOME=1 (PR only) · field · frame time (p99) (ms) 32.2 32.3 (+0%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
RX_VK_RT_HOME switch the PR adds (set on the PR side only) 0, 1 off (the switch's default) the PR's default hyrule-field, main without it → the PR with 0: 49.6 → 36.3 (−27%) helps

As Markdown for the PR description:

## Measurements

**Verdict:** fail on windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (1 report): `hyrule-field field.fps_mean: RX_VK_RT_HOME=1 vs RX_VK_RT_HOME=0 (PR) (-11.8%)` failed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5060 Ti, 616.56.0` `12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM`  
Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: this PR @ 61a86ea, switch off | After: this PR @ 61a86ea, switch on |
|---|---|---|
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) |
| hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 49.6 | 36.3 (−27%) |
| hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) |
| hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 32.2 | 32.3 (+0%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 49.6 → 36.3 (−27%) | helps |
The testers' hardware
Target Report Ran on
windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k 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+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5080, 621.24.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k 2 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0 AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM
windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5060 Ti, 616.56.0 12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>61a86ea</code> (the newer results are in a comment below)</summary> Commit `61a86ea` · approved by klimovich008 (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2240) ⚠️ **Note:** The log check is unjudged when placement is not confirmed, including in the 0 cells; the schema cannot condition the performance comparison on that log, so a comparison without confirmed placement may compare equivalent modes. ⚠️ **Note:** The headless run does not exercise swapchain waits or reproduce the external high-priority contention needed to test the guard's escape and return behavior; it also does not compare the PR build with main. ⚠️ **Note:** Two starts per cell, rather than three, keep the plan within the farm's time limit; run-wide hitch count and maximum frame time are report-only. Started at 00:10 UTC. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k` (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k") | ⏳ queued | 0 of 1 | — | — | | `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k` (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k") | ❌ fail | 1 [1](https://beanstalk.magicbean.dev/reports/rp_f094b4859e1f981a) | — | 2 PR runs | | `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k` (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k") | ⚠️ couldn't be judged (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_4e9c45d6f03b5cad) [2](https://beanstalk.magicbean.dev/reports/rp_27f53fda32de0286) | — | none | | `windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k` (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") | ❌ fail | 1 [1](https://beanstalk.magicbean.dev/reports/rp_374b52a87587b2c7) | — | none | **`hyrule-field`** · frame time p99 (ms) | Target | switch off | `RX_VK_RT_HOME=0` (reference) | `RX_VK_RT_HOME=1` | | --- | --- | --- | --- | | `windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k` (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k") | — | — | — | | `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k` (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k") | — | — | — | | `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k` (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k") | 15.5 | 16.0 | 16.2 (+2%) | | `windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k` (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") | 49.6 | 36.3 | 32.3 (−11%) | **Why it failed** - `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k`: `hyrule-field · RX_VK_RT_HOME=1 (PR only)` `crash`: `2 PR runs crashed` - `windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k`: `hyrule-field · RX_VK_RT_HOME=1 (PR only)` `field.fps_mean: RX_VK_RT_HOME=1 vs RX_VK_RT_HOME=0 (PR)`: `38.6 → 34.0 (−11.8%); limit 3.0; the PR's own cells: RX_VK_RT_HOME=1 against RX_VK_RT_HOME=0 (RX_VK_RT_HOME=0 (PR only))` **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+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k`, [report 1](https://beanstalk.magicbean.dev/reports/rp_4e9c45d6f03b5cad): `Insufficient frame-time evidence for 1 required comparison(s). See rule results.` - `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k`, [report 2](https://beanstalk.magicbean.dev/reports/rp_27f53fda32de0286): `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 SMT systems, the PR build will run in Hyrule Field with its render-thread switch set to 0 and 1, using uncapped frame rate, V-Sync off, and frame generation off. Two starts per cell measure 30 seconds of gameplay, comparing mean FPS and p99 frame time; a crash, an FPS loss over 3%, or a p99 increase over 10% fails the plan. The four-core target may wait for a matching PC, and other CPU targets may also wait if their matching online machines are not running Windows. No tester online now matches windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k, windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k: those targets wait for one. - **Where:** windows+cpu-3300x_i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k (CPU "3300x" or "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k", 1-2 reports), windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (CPU "3600" or "5600" or "5600x" or "7600" or "7600x" or "i5 10400" or "i5 11400" or "i7 8700k", 1-2 reports), windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (CPU "3700x" or "5700x" or "5800x" or "5800x3d" or "7700x" or "7800x3d" or "i7 10700k" or "i9 9900k", 1-2 reports), windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k", 1-2 reports). - **Against:** the PR itself, switch on (`RX_VK_RT_HOME`) and off; main is not built or run. - **Matrix:** 2 cells, each with the switch on and off: RX_VK_RT_HOME `0` or `1` (PR only). - **hyrule-field:** from the repository's save `castle-gate` (settings vsync=2, frame_rate_cap=6, frame_generation=0), then teleport to Hyrule Field, measure field for 30 s (after 10 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run). - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate, the game's log (an expected line that never appears: could not be judged). - **The PR fails if:** it crashes; or the PR's frame rate with RX_VK_RT_HOME=1 is more than 3% below RX_VK_RT_HOME=0; or the PR's frame time (p99) with RX_VK_RT_HOME=1 is more than 10% above RX_VK_RT_HOME=0; or expected log lines missing is above 0. - **Time:** about 46 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-`, for the PR description</summary> **Verdict:** fail on windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (1 report): `hyrule-field 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` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: this PR @ 61a86ea, switch off | After: this PR @ 61a86ea, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | — | 36.9 | | hyrule-field · `RX_VK_RT_HOME=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 (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k (1 report): `hyrule-field 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` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: this PR @ 61a86ea, switch off | After: this PR @ 61a86ea, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | — | 36.9 | | hyrule-field · `RX_VK_RT_HOME=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 (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: not measured | untested | ``` </details> <details><summary>Measurements on `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700`, for the PR description</summary> **Verdict:** could not be judged on windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5080, 621.24.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: this PR @ 61a86ea, switch off | After: this PR @ 61a86ea, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 15.5 | 16.0 (+3%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 15.3 | 16.2 (+6%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 15.5 → 16.0 (+3%) | doesn't help | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k (2 reports): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5080, 621.24.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 2 reports How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: this PR @ 61a86ea, switch off | After: this PR @ 61a86ea, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 15.5 | 16.0 (+3%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 15.3 | 16.2 (+6%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 15.5 → 16.0 (+3%) | doesn't help | ``` </details> <details><summary>Measurements on `windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k`, for the PR description</summary> **Verdict:** fail on windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (1 report): `hyrule-field field.fps_mean: RX_VK_RT_HOME=1 vs RX_VK_RT_HOME=0 (PR) (-11.8%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5060 Ti, 616.56.0` `12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: this PR @ 61a86ea, switch off | After: this PR @ 61a86ea, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 49.6 | 36.3 (−27%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 32.2 | 32.3 (+0%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 49.6 → 36.3 (−27%) | helps | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** fail on windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (1 report): `hyrule-field field.fps_mean: RX_VK_RT_HOME=1 vs RX_VK_RT_HOME=0 (PR) (-11.8%)` failed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5060 Ti, 616.56.0` `12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM` Scene: hyrule-field, from the repository's save castle-gate (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); hyrule-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: this PR @ 61a86ea, switch off | After: this PR @ 61a86ea, switch on | |---|---|---| | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · expected log lines missing | 1.0 | 1.0 (+0%) | | hyrule-field · `RX_VK_RT_HOME=0 (PR only)` · field · frame time (p99) (ms) | 49.6 | 36.3 (−27%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · expected log lines missing | 1.0 | 0.0 (−100%) | | hyrule-field · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 32.2 | 32.3 (+0%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | hyrule-field, main without it → the PR with 0: 49.6 → 36.3 (−27%) | helps | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k` | [1](https://beanstalk.magicbean.dev/reports/rp_f094b4859e1f981a) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 6600 XT, 2.0.353` `AMD Ryzen 5 3600 6-Core Processor, 16 GB RAM` | | `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k` | [1](https://beanstalk.magicbean.dev/reports/rp_4e9c45d6f03b5cad) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5080, 621.24.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` | | `windows+cpu-3700x_5700x_5800x_5800x3d_7700x_7800x3d_i7-10700k_i9-9900k` | [2](https://beanstalk.magicbean.dev/reports/rp_27f53fda32de0286) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070 Ti SUPER, 621.14.0` `AMD Ryzen 7 7800X3D 8-Core Processor, 32 GB RAM` | | `windows+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k` | [1](https://beanstalk.magicbean.dev/reports/rp_374b52a87587b2c7) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5060 Ti, 616.56.0` `12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM` | </details> </details>
Owner

Does this make sense to turn on for all platform or just Windows?

Does this make sense to turn on for all platform or just Windows?
Author
Member

@Beanstalk run a2dc538590 #2240 on tester-jackhamer24
Main against this PR's head 61a86ea7 on that one tester's PC (Ryzen 5 3600, RX 6600 XT, 16 GB). The candidate side sets RX_VK_RT_HOME=1 as a [matrix.pr_only] switch with one value; the baseline side sets nothing, which is main's render-thread placement (the same placement this PR gives unset or at 0). Settings on both sides: frame_rate_cap = 6, vsync = 2, frame_generation = 0; headless. From the save castle-gate, Hyrule Field (HyruleField_Child) measured 30 s, 3 game starts a side. Rules: crash = false, judged; fps, frame times and hitches report-only. The question is only whether RX_VK_RT_HOME=1 dies on this PC more often than without it: in this PR's round (rp_f094b4859e1f981a) that PC's runs died at the commit limit with the switch unset and with it at 1.

@Beanstalk run a2dc5385901812d183c4b7f0f9d48b295f17a510 #2240 on tester-jackhamer24 Main against this PR's head 61a86ea7 on that one tester's PC (Ryzen 5 3600, RX 6600 XT, 16 GB). The candidate side sets RX_VK_RT_HOME=1 as a [matrix.pr_only] switch with one value; the baseline side sets nothing, which is main's render-thread placement (the same placement this PR gives unset or at 0). Settings on both sides: frame_rate_cap = 6, vsync = 2, frame_generation = 0; headless. From the save castle-gate, Hyrule Field (HyruleField_Child) measured 30 s, 3 game starts a side. Rules: crash = false, judged; fps, frame times and hitches report-only. The question is only whether RX_VK_RT_HOME=1 dies on this PC more often than without it: in this PR's round (rp_f094b4859e1f981a) that PC's runs died at the commit limit with the switch unset and with it at 1.
Member

@klimovich008 started a manual run: a2dc5385901812d183c4b7f0f9d48b295f17a510 vs #2240

Candidate #2240 (61a86ea7d2) against baseline a2dc5385901812d183c4b7f0f9d48b295f17a510 (a2dc538590). Done.

⚠️ Note: Three starts per side can reveal crashes but cannot reliably quantify a small difference in crash frequency or establish their cause.

⚠️ Note: The run does not test the guard under a controlled external hold or the windowed swapchain path.

On the selected tester’s PC, the run will compare the candidate with RX_VK_RT_HOME=1 against the baseline with the switch unset. Each side will make three headless starts from castle-gate and measure Hyrule Field for 30 seconds per start, with FPS, frame times and hitches reported but not judged. A candidate crash fails the run.

Summary, written by AI from the results below:

The change failed on tester-jackhamer24’s Windows PC with an AMD Radeon RX 6600 XT because the candidate crashed; the baseline also crashed. Maximum frame time increased from 3,233.74 to 4,021.28 ms, while hitch count fell from 44 to 35; these performance metrics were reported but not judged.

Target Result Reports
tester-jackhamer24 1/1 fail 1
@klimovich008 started a manual run: [a2dc5385901812d183c4b7f0f9d48b295f17a510 vs \#2240](https://beanstalk.magicbean.dev/runs/rn_31f9d7473c936025) Candidate `#2240` (`61a86ea7d2`) against baseline `a2dc5385901812d183c4b7f0f9d48b295f17a510` (`a2dc538590`). **Done.** ⚠️ **Note:** Three starts per side can reveal crashes but cannot reliably quantify a small difference in crash frequency or establish their cause. ⚠️ **Note:** The run does not test the guard under a controlled external hold or the windowed swapchain path. > On the selected tester’s PC, the run will compare the candidate with RX_VK_RT_HOME=1 against the baseline with the switch unset. Each side will make three headless starts from castle-gate and measure Hyrule Field for 30 seconds per start, with FPS, frame times and hitches reported but not judged. A candidate crash fails the run. > **Summary**, written by AI from the results below: > > The change failed on tester-jackhamer24’s Windows PC with an AMD Radeon RX 6600 XT because the candidate crashed; the baseline also crashed. Maximum frame time increased from 3,233.74 to 4,021.28 ms, while hitch count fell from 44 to 35; these performance metrics were reported but not judged. | Target | Result | Reports | | --- | --- | --- | | `tester-jackhamer24` | 1/1 fail | [1](https://beanstalk.magicbean.dev/reports/rp_72c3ddb20f721231) |
Author
Member

About the 6-core fail on 61a86ea (rp_f094b4859e1f981a: Ryzen 5 3600, RX 6600 XT, AMD 2.0.353, 16 GB)

That PC was at its memory limit, and the deaths are spread across the arms:

  • The switch-off side crashed or hung in 4 of 4 runs, exit 0xC0000005. In this plan that side is this PR's own build with RX_VK_RT_HOME unset, which is main's placement; main itself isn't run here.
  • RX_VK_RT_HOME=0: 0 of 2 crashed.
  • RX_VK_RT_HOME=1: 2 of 2 died, with exit 3: the renderer's out-of-memory stop. The log has commits made "at the commit limit", "a C++ allocation refused", programs not translated (std::bad_alloc), pipelines refused for want of memory, submit 92193 failed (-13), then FATAL: the renderer's C++ allocations: refused for 5 s.

Unset and 0 give the same placement, yet one died 4 of 4 and the other 0 of 2. With 2 starts a cell, 1's 2 of 2 can't be told apart from luck on this PC. It hasn't been shown to be the switch's.

To find out, I started a manual run on that tester's PC only: main a2dc5385 against this PR's head with RX_VK_RT_HOME=1, 3 starts a side, crashes judged, frame times report-only (rn_31f9d7473c936025).

  • The farm runs only two different commits against each other, so main stands in for the switch off.
  • It leaves this PR's round alone.
  • If 1 dies there and main doesn't, that goes back for a fix.

The 8-core target couldn't be judged again (too few frame-time samples with 2 starts). Its p99 was 15.5 ms with the switch unset, 16.0 at 0 and 16.2 at 1. That isn't a result either way.

**About the 6-core fail on 61a86ea** ([rp_f094b4859e1f981a](https://beanstalk.magicbean.dev/reports/rp_f094b4859e1f981a): Ryzen 5 3600, RX 6600 XT, AMD 2.0.353, 16 GB) That PC was at its memory limit, and the deaths are spread across the arms: - **The switch-off side** crashed or hung in 4 of 4 runs, exit 0xC0000005. In this plan that side is this PR's own build with `RX_VK_RT_HOME` unset, which is main's placement; main itself isn't run here. - **`RX_VK_RT_HOME=0`:** 0 of 2 crashed. - **`RX_VK_RT_HOME=1`:** 2 of 2 died, with exit 3: the renderer's out-of-memory stop. The log has commits made "at the commit limit", "a C++ allocation refused", programs not translated (`std::bad_alloc`), pipelines refused for want of memory, `submit 92193 failed (-13)`, then `FATAL: the renderer's C++ allocations: refused for 5 s`. Unset and `0` give the same placement, yet one died 4 of 4 and the other 0 of 2. With 2 starts a cell, `1`'s 2 of 2 can't be told apart from luck on this PC. It hasn't been shown to be the switch's. **To find out,** I started a manual run on that tester's PC only: main a2dc5385 against this PR's head with `RX_VK_RT_HOME=1`, 3 starts a side, crashes judged, frame times report-only ([rn_31f9d7473c936025](https://beanstalk.magicbean.dev/runs/rn_31f9d7473c936025)). - The farm runs only two different commits against each other, so main stands in for the switch off. - It leaves this PR's round alone. - If `1` dies there and main doesn't, that goes back for a fix. The 8-core target couldn't be judged again (too few frame-time samples with 2 starts). Its p99 was 15.5 ms with the switch unset, 16.0 at `0` and 16.2 at `1`. That isn't a result either way.
One conflict, vk_replay.cpp's present (#2275, Streamline): main keeps the frame slot's fence wait's result (copy_ready)
and acquires with a semaphore. The fence wait keeps its FpsRtWait(-1) for RX_VK_RT_HOME=1's guard in an immediately
invoked lambda, so the scope is the wait alone and the tests that cut that line stay balanced; the acquire keeps its
FpsRtWait(-1) with main's acquire_semaphore. tests/test_rt_pin.py's source checks follow both forms.

Also (round 3, the i5-12400's farm run): the guard's log never shows "taken by others" below zero. That figure is a
lower bound (busy - CPU - (n - 1) x the window - waits) and goes negative whenever a processor of the core was free;
the i5-12400's -17.8 ms was such a window, judged blocked, not held. The guard decides on the raw bound as before; the
600 presents' most-lost window and the long present's line show it at least 0. test_rt_pin: both checks, failing on
61a86ea7, and a broken variant for each.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
replay_thread_main: where hos_reserved_cpus gives no core (a cache core choice, too few cores), the render thread is not
placed and RX_VK_RT_HOME=1 or strict changed nothing without a word; the start now says so ("the host keeps no core free
for the render thread on this PC, so it moves freely, as unset"), so a farm run there shows it compared the same
placement twice. Unset and 0 say nothing new. tests/test_rt_pin.py checks the line's place.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test(vk): test_rt_pin checks a blocked long present's "taken by others" reads 0.0 ms, not the bound's size (the checker's round 3)
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 13s
CI / Workflow lint (actionlint) (pull_request) Successful in 13s
Third-party parts / As their notes say (pull_request) Successful in 15s
PR description / Description follows the template (pull_request_target) Successful in 5s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Website build and checks (pull_request) Successful in 2m36s
beanstalk/approval approved by klimovich008 (reviewed)
beanstalk/windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k 1/1 pass
beanstalk/windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x 0/1 pass, 0 running, 2 queued
beanstalk/windows+ram-ge17gb+cpu-i5-10400_i5-11400_i7-8700k_ryzen-5-3600_ryzen-5-5600_ryzen-5-5600x_ryzen-5-7600_ryzen-5-7600x 0/1 pass, 0 running, 2 queued
3cb7b05d07
The round-3 clamp check only looked for a minus sign, so a log that printed the bound's absolute value passed. Now a
blocked long present must read "its core taken by others 0.0 ms at least", with that absolute-value form as a broken
variant that fails.

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

Round 3 is pushed: 3cb7b05d (on top of 61a86ea7, no rewrite). What changed and what the farm's last round showed:

  • Main 0e32bc10 merged. #2275 (Streamline) reshaped the present's fence wait and acquire, two of the waits this PR marks. Both keep main's statements and control flow (copy_ready, its early return, the retired acquire semaphore, acquire_semaphore), with the wait inside FpsRtWait(-1); test_rt_pin pins the new forms and still fails on a removed or moved scope.
  • The 6-core crashes were the PC: manual run rn_31f9d7473c936025 on Jackhamer24's Ryzen 5 3600: main a2dc5385 crashed 3 of 3 starts too; the PR with =1 3 of 3 (the renderer's out-of-memory stop).
  • The i5-12400's -11.8 % is one slow =1 run (27.73 fps; the other =1 run 40.36, above both =0 runs). It has the signature of main's own slow run there (a 21-24 s frame, about 3,000 draws a frame against 2,374-2,473 in the other six runs): a scene-state freeze main's build also hit. Its log says the render thread was busy (its jobs 85.72 of 89.56 ms a frame), not held off, and the guard judged its worst window blocked, not held. One run a cell can't rule out more, so I'm asking the farm again with 3 starts a cell (below).
  • "its core taken by others -17.8 ms" was the guard's raw lower bound, which goes below zero when a processor of the core was free part of the window. The guard still decides on it; the two log lines now show it as at least 0 (tested, with broken variants for each place and for an absolute-value print).
  • New start-up line: =1 / strict on a PC whose host keeps no core free now say the thread "moves freely, as unset", so a farm cell there shows it compared nothing. Unset and =0 print nothing new.
  • This PC, Lost Woods (child), the standard scene since 11-23, 3 alternating pairs, =1 against unset on this head's DLL over main 0e32bc10: 85.49 -> 87.89 fps (+2.8 %, diagnostic: under 5 % with 3 pairs), CPU 55.6 -> 54.8 ms, p99 14.6 -> 14.5, the replay's submit -16 %, no frame over 50 ms in either arm, 0 holds. Smaller than round 2's Hyrule gain (+8.1 %, base dd5ffe6a) because Lost Woods is CPU-bound elsewhere; the two scenes are kept apart in the description.
  • Tests: test_rt_pin (57 broken variants), the present-path fixtures and the full run_all.py against main 0e32bc10 with clang and gcc: nothing fails only on the branch.
Round 3 is pushed: 3cb7b05d (on top of 61a86ea7, no rewrite). What changed and what the farm's last round showed: - **Main 0e32bc10 merged.** #2275 (Streamline) reshaped the present's fence wait and acquire, two of the waits this PR marks. Both keep main's statements and control flow (`copy_ready`, its early return, the retired acquire semaphore, `acquire_semaphore`), with the wait inside `FpsRtWait(-1)`; `test_rt_pin` pins the new forms and still fails on a removed or moved scope. - **The 6-core crashes were the PC:** manual run rn_31f9d7473c936025 on Jackhamer24's Ryzen 5 3600: main a2dc5385 crashed 3 of 3 starts too; the PR with `=1` 3 of 3 (the renderer's out-of-memory stop). - **The i5-12400's -11.8 %** is one slow `=1` run (27.73 fps; the other `=1` run 40.36, above both `=0` runs). It has the signature of main's own slow run there (a 21-24 s frame, about 3,000 draws a frame against 2,374-2,473 in the other six runs): a scene-state freeze main's build also hit. Its log says the render thread was busy (its jobs 85.72 of 89.56 ms a frame), not held off, and the guard judged its worst window blocked, not held. One run a cell can't rule out more, so I'm asking the farm again with 3 starts a cell (below). - **"its core taken by others -17.8 ms"** was the guard's raw lower bound, which goes below zero when a processor of the core was free part of the window. The guard still decides on it; the two log lines now show it as at least 0 (tested, with broken variants for each place and for an absolute-value print). - **New start-up line:** `=1` / `strict` on a PC whose host keeps no core free now say the thread "moves freely, as unset", so a farm cell there shows it compared nothing. Unset and `=0` print nothing new. - **This PC, Lost Woods (child), the standard scene since 11-23,** 3 alternating pairs, `=1` against unset on this head's DLL over main 0e32bc10: 85.49 -> 87.89 fps (+2.8 %, diagnostic: under 5 % with 3 pairs), CPU 55.6 -> 54.8 ms, p99 14.6 -> 14.5, the replay's submit -16 %, no frame over 50 ms in either arm, 0 holds. Smaller than round 2's Hyrule gain (+8.1 %, base dd5ffe6a) because Lost Woods is CPU-bound elsewhere; the two scenes are kept apart in the description. - Tests: `test_rt_pin` (57 broken variants), the present-path fixtures and the full `run_all.py` against main 0e32bc10 with clang and gcc: nothing fails only on the branch.
Author
Member

@Beanstalk the PR's own build only, on the new head 3cb7b05d: baseline ref = pr, [matrix.pr_only] RX_VK_RT_HOME = ["1"] against unset (unset is main's placement), judged with pass.compare RX_VK_RT_HOME = "1" against unset on the pr side. 3 game starts a cell (not 2): on the last round the i5-12400's fail was one slow run in a cell of two, and the same kind of slow run (a 21-24 s frame, about 3,000 draws a frame) also hit main's build there, so one run can't decide a cell.

Targets, Windows only (it does anything only on Windows CPUs with SMT), 1-2 reports each, by model:

  • the i5-12400 and hybrid Intel: i5-12400, i5-12600K, i5-13600K, i5-14600K, i7-12700K, i7-13700K (the i5-12400 tester from the last round first);
  • 4 cores / 8 threads: i7-6700K, i7-7700K, i7-6700, i7-7700, i3-10100, i3-12100, i3-13100, Ryzen 3 3300X;
  • 6 / 12: Ryzen 5 3600, 5600X, 5600, 7600X, 7600, i5-10400, i5-11400, i7-8700K.
    Don't let the plan wait on any one target. Skip a PC with 16 GB or less if the plan can (the last round's Ryzen 5 3600 PC crashed main's build on 3 of 3 starts too, out of memory).

Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine.

Scenes: Hyrule Field (HyruleField_Child) measured 30 s, as before; and, if the plan can take a teleport, Lost Woods as child (from the save kokiri-start, teleport destination 5) measured 30 s in the same start (our standard scene since 11-23). Compare rules, pr side, =1 vs unset, per scene: fps_mean min_delta_pct = 3 (fails on a loss of more than 3 %), frametime_p99_ms max_delta_pct = 10; crash = false. Hitch counts (run_hitch_count, run_frametime_max_ms) report-only.

Log on the =1 cells: "vk: RX_VK_RT_HOME=1: the render thread is kept to logical processors" expected. On a PC whose host keeps no core free it says "the host keeps no core free for the render thread on this PC, so it moves freely, as unset" instead, and that cell compares nothing. Please keep the RX_VK_RT_HOME (600 presents) lines in the report's log excerpt, for both a slow and a normal run.

@Beanstalk the PR's own build only, on the new head 3cb7b05d: baseline ref = pr, [matrix.pr_only] RX_VK_RT_HOME = ["1"] against unset (unset is main's placement), judged with [[pass.compare]] RX_VK_RT_HOME = "1" against unset on the pr side. **3 game starts a cell** (not 2): on the last round the i5-12400's fail was one slow run in a cell of two, and the same kind of slow run (a 21-24 s frame, about 3,000 draws a frame) also hit main's build there, so one run can't decide a cell. Targets, Windows only (it does anything only on Windows CPUs with SMT), 1-2 reports each, by model: - the i5-12400 and hybrid Intel: i5-12400, i5-12600K, i5-13600K, i5-14600K, i7-12700K, i7-13700K (the i5-12400 tester from the last round first); - 4 cores / 8 threads: i7-6700K, i7-7700K, i7-6700, i7-7700, i3-10100, i3-12100, i3-13100, Ryzen 3 3300X; - 6 / 12: Ryzen 5 3600, 5600X, 5600, 7600X, 7600, i5-10400, i5-11400, i7-8700K. Don't let the plan wait on any one target. Skip a PC with 16 GB or less if the plan can (the last round's Ryzen 5 3600 PC crashed main's build on 3 of 3 starts too, out of memory). Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine. Scenes: Hyrule Field (HyruleField_Child) measured 30 s, as before; and, if the plan can take a teleport, Lost Woods as child (from the save kokiri-start, teleport destination 5) measured 30 s in the same start (our standard scene since 11-23). Compare rules, pr side, =1 vs unset, per scene: fps_mean min_delta_pct = 3 (fails on a loss of more than 3 %), frametime_p99_ms max_delta_pct = 10; crash = false. Hitch counts (run_hitch_count, run_frametime_max_ms) report-only. Log on the =1 cells: "vk: RX_VK_RT_HOME=1: the render thread is kept to logical processors" expected. On a PC whose host keeps no core free it says "the host keeps no core free for the render thread on this PC, so it moves freely, as unset" instead, and that cell compares nothing. Please keep the RX_VK_RT_HOME (600 presents) lines in the report's log excerpt, for both a slow and a normal run.
Member

Beanstalk test farm · 🔄 testing (1 of 3 reports so far)

Commit 3cb7b05 · approved by klimovich008 (reviewed) · dashboard

⚠️ Note: The regular baseline rules compare the PR build with the switch set against the same build with it unset; the schema does not accept unset as a pass.compare axis value.
⚠️ Note: The schema cannot suppress performance comparisons when the host reserves no core: the log identifies that same-placement case, which is not evidence of the switch's effect. The placement-line check is unjudged if the line is absent.
⚠️ Note: The farm cannot create the external contention needed to test guard recovery, exercise swapchain waits headlessly, prioritize the i5-12400 tester, or select 600-present lines for report excerpts.

Started at 2026-11-23 13:29 UTC.

⚠ No tester has a PC for windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x (none seen in 14 days): it waits until one signs in.

Target Result Reports Frame time p99 (ms), switch off → switch on VRAM peak (MB) Crashes
windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (17 GB RAM or more, CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") ✅ pass 1 1 86.0 → 31.6 (−63%) — none
windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x (17 GB RAM or more, CPU "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k" or "ryzen 3 3300x") ⏳ queued 0 of 1 — — —
windows+ram-ge17gb+cpu-i5-10400_i5-11400_i7-8700k_ryzen-5-3600_ryzen-5-5600_ryzen-5-5600x_ryzen-5-7600_ryzen-5-7600x (17 GB RAM or more, CPU "i5 10400" or "i5 11400" or "i7 8700k" or "ryzen 5 3600" or "ryzen 5 5600" or "ryzen 5 5600x" or "ryzen 5 7600" or "ryzen 5 7600x") ⏳ queued 0 of 1 — — —
What was tested

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

On the PR build at the requested head, three Windows CPU groups will compare RX_VK_RT_HOME=1 with unset using three starts per side. Each start measures Hyrule Field and Lost Woods for 30 seconds apiece, with uncapped frame rate, V-Sync off and frame generation off. A crash, an FPS loss over 3%, or a p99 frame-time increase over 10% fails the relevant check. Some requested CPU groups may wait for eligible Windows testers; the groups can run independently. No tester online now matches windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x, windows+ram-ge17gb+cpu-i5-10400_i5-11400_i7-8700k_ryzen-5-3600_ryzen-5-5600_ryzen-5-5600x_ryzen-5-7600_ryzen-5-7600x: those targets wait for one.

  • Where: windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (17 GB RAM or more, CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k", 1-2 reports), windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x (17 GB RAM or more, CPU "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k" or "ryzen 3 3300x", 1-2 reports), windows+ram-ge17gb+cpu-i5-10400_i5-11400_i7-8700k_ryzen-5-3600_ryzen-5-5600_ryzen-5-5600x_ryzen-5-7600_ryzen-5-7600x (17 GB RAM or more, CPU "i5 10400" or "i5 11400" or "i7 8700k" or "ryzen 5 3600" or "ryzen 5 5600" or "ryzen 5 5600x" or "ryzen 5 7600" or "ryzen 5 7600x", 1-2 reports).
  • Against: the PR itself, switch on (RX_VK_RT_HOME) and off; main is not built or run.
  • Matrix: 1 cell, each with the switch on and off: RX_VK_RT_HOME 1 (PR only).
  • field-and-woods: from the repository's save kokiri-start (settings vsync=2, frame_rate_cap=6, frame_generation=0), then teleport to Hyrule Field, measure field for 30 s (after 10 s warm-up), teleport to Lost Woods, measure woods for 30 s (after 10 s warm-up); 3 runs on each side.
  • Measured: crashes, frame times, stutters and hitches, draws and frame rate, the game's log (an expected line that never appears: could not be judged).
  • The PR fails if: it crashes; or frame rate is more than 3% below main; or frame time (p99) is more than 10% above main; or expected log lines missing is above 0.
  • Time: about 38 min of game runs per tester (6 game starts), plus the two builds.
Measurements on `windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600`, for the PR description

Verdict: pass on windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (1 report): no rule failed and no PR run crashed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5060 Ti, 616.56.0 12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM
Scene: field-and-woods, from the repository's save kokiri-start (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); field-and-woods: 3 game starts a side, field 30 s after 10 s warm-up, woods 30 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: this PR @ 3cb7b05, switch off After: this PR @ 3cb7b05, switch on
field-and-woods · RX_VK_RT_HOME=1 (PR only) · field · frame rate 42.6 44.1 (+4%)
field-and-woods · RX_VK_RT_HOME=1 (PR only) · woods · frame rate 34.4 34.3 (−0%)
field-and-woods · RX_VK_RT_HOME=1 (PR only) · field · frame time (p99) (ms) 86.0 31.6 (−63%)
field-and-woods · RX_VK_RT_HOME=1 (PR only) · woods · frame time (p99) (ms) 36.8 37.1 (+1%)
field-and-woods · RX_VK_RT_HOME=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 (frame rate) Helps / doesn't help / untested
RX_VK_RT_HOME switch the PR adds (set on the PR side only) 1 off (the switch's default) the PR's default field-and-woods, main without it → the PR with 1: 42.6 → 44.1 (+4%) helps

As Markdown for the PR description:

## Measurements

**Verdict:** pass on windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (1 report): no rule failed and no PR run crashed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5060 Ti, 616.56.0` `12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM`  
Scene: field-and-woods, from the repository's save kokiri-start (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); field-and-woods: 3 game starts a side, field 30 s after 10 s warm-up, woods 30 s after 10 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: this PR @ 3cb7b05, switch off | After: this PR @ 3cb7b05, switch on |
|---|---|---|
| field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · field · frame rate | 42.6 | 44.1 (+4%) |
| field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · woods · frame rate | 34.4 | 34.3 (−0%) |
| field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 86.0 | 31.6 (−63%) |
| field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · woods · frame time (p99) (ms) | 36.8 | 37.1 (+1%) |
| field-and-woods · `RX_VK_RT_HOME=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 (frame rate) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `1` | off (the switch's default) | the PR's default | field-and-woods, main without it → the PR with 1: 42.6 → 44.1 (+4%) | helps |
The testers' hardware
Target Report Ran on
windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 5060 Ti, 616.56.0 12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM
<!-- beanstalk:sticky --> ### Beanstalk test farm · 🔄 testing (1 of 3 reports so far) Commit `3cb7b05` · approved by klimovich008 (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2240) ⚠️ **Note:** The regular baseline rules compare the PR build with the switch set against the same build with it unset; the schema does not accept unset as a pass.compare axis value. ⚠️ **Note:** The schema cannot suppress performance comparisons when the host reserves no core: the log identifies that same-placement case, which is not evidence of the switch's effect. The placement-line check is unjudged if the line is absent. ⚠️ **Note:** The farm cannot create the external contention needed to test guard recovery, exercise swapchain waits headlessly, prioritize the i5-12400 tester, or select 600-present lines for report excerpts. Started at 2026-11-23 13:29 UTC. ⚠ No tester has a PC for `windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x` (none seen in 14 days): it waits until one signs in. | Target | Result | Reports | Frame time p99 (ms), switch off → switch on | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k` (17 GB RAM or more, CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k") | ✅ pass | 1 [1](https://beanstalk.magicbean.dev/reports/rp_3a2353eac6aa882a) | 86.0 → 31.6 (−63%) | — | none | | `windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x` (17 GB RAM or more, CPU "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k" or "ryzen 3 3300x") | ⏳ queued | 0 of 1 | — | — | — | | `windows+ram-ge17gb+cpu-i5-10400_i5-11400_i7-8700k_ryzen-5-3600_ryzen-5-5600_ryzen-5-5600x_ryzen-5-7600_ryzen-5-7600x` (17 GB RAM or more, CPU "i5 10400" or "i5 11400" or "i7 8700k" or "ryzen 5 3600" or "ryzen 5 5600" or "ryzen 5 5600x" or "ryzen 5 7600" or "ryzen 5 7600x") | ⏳ queued | 0 of 1 | — | — | — | <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) On the PR build at the requested head, three Windows CPU groups will compare RX_VK_RT_HOME=1 with unset using three starts per side. Each start measures Hyrule Field and Lost Woods for 30 seconds apiece, with uncapped frame rate, V-Sync off and frame generation off. A crash, an FPS loss over 3%, or a p99 frame-time increase over 10% fails the relevant check. Some requested CPU groups may wait for eligible Windows testers; the groups can run independently. No tester online now matches windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x, windows+ram-ge17gb+cpu-i5-10400_i5-11400_i7-8700k_ryzen-5-3600_ryzen-5-5600_ryzen-5-5600x_ryzen-5-7600_ryzen-5-7600x: those targets wait for one. - **Where:** windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (17 GB RAM or more, CPU "i5 12400" or "i5 12600k" or "i5 13600k" or "i5 14600k" or "i7 12700k" or "i7 13700k", 1-2 reports), windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x (17 GB RAM or more, CPU "i3 10100" or "i3 12100" or "i3 13100" or "i7 6700" or "i7 6700k" or "i7 7700" or "i7 7700k" or "ryzen 3 3300x", 1-2 reports), windows+ram-ge17gb+cpu-i5-10400_i5-11400_i7-8700k_ryzen-5-3600_ryzen-5-5600_ryzen-5-5600x_ryzen-5-7600_ryzen-5-7600x (17 GB RAM or more, CPU "i5 10400" or "i5 11400" or "i7 8700k" or "ryzen 5 3600" or "ryzen 5 5600" or "ryzen 5 5600x" or "ryzen 5 7600" or "ryzen 5 7600x", 1-2 reports). - **Against:** the PR itself, switch on (`RX_VK_RT_HOME`) and off; main is not built or run. - **Matrix:** 1 cell, each with the switch on and off: RX_VK_RT_HOME `1` (PR only). - **field-and-woods:** from the repository's save `kokiri-start` (settings vsync=2, frame_rate_cap=6, frame_generation=0), then teleport to Hyrule Field, measure field for 30 s (after 10 s warm-up), teleport to Lost Woods, measure woods for 30 s (after 10 s warm-up); 3 runs on each side. - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate, the game's log (an expected line that never appears: could not be judged). - **The PR fails if:** it crashes; or frame rate is more than 3% below main; or frame time (p99) is more than 10% above main; or expected log lines missing is above 0. - **Time:** about 38 min of game runs per tester (6 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600`, for the PR description</summary> **Verdict:** pass on windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (1 report): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5060 Ti, 616.56.0` `12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM` Scene: field-and-woods, from the repository's save kokiri-start (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); field-and-woods: 3 game starts a side, field 30 s after 10 s warm-up, woods 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: this PR @ 3cb7b05, switch off | After: this PR @ 3cb7b05, switch on | |---|---|---| | field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · field · frame rate | 42.6 | 44.1 (+4%) | | field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · woods · frame rate | 34.4 | 34.3 (−0%) | | field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 86.0 | 31.6 (−63%) | | field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · woods · frame time (p99) (ms) | 36.8 | 37.1 (+1%) | | field-and-woods · `RX_VK_RT_HOME=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 (frame rate) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `1` | off (the switch's default) | the PR's default | field-and-woods, main without it → the PR with 1: 42.6 → 44.1 (+4%) | helps | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k (1 report): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5060 Ti, 616.56.0` `12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM` Scene: field-and-woods, from the repository's save kokiri-start (vsync=2, frame_rate_cap=6, frame_generation=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: this PR built once and run with its PR-only switches on and off on the same PC in one session, game starts alternating (ABBA); field-and-woods: 3 game starts a side, field 30 s after 10 s warm-up, woods 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: this PR @ 3cb7b05, switch off | After: this PR @ 3cb7b05, switch on | |---|---|---| | field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · field · frame rate | 42.6 | 44.1 (+4%) | | field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · woods · frame rate | 34.4 | 34.3 (−0%) | | field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · field · frame time (p99) (ms) | 86.0 | 31.6 (−63%) | | field-and-woods · `RX_VK_RT_HOME=1 (PR only)` · woods · frame time (p99) (ms) | 36.8 | 37.1 (+1%) | | field-and-woods · `RX_VK_RT_HOME=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 (frame rate) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `RX_VK_RT_HOME` | switch the PR adds (set on the PR side only) | `1` | off (the switch's default) | the PR's default | field-and-woods, main without it → the PR with 1: 42.6 → 44.1 (+4%) | helps | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k` | [1](https://beanstalk.magicbean.dev/reports/rp_3a2353eac6aa882a) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 5060 Ti, 616.56.0` `12th Gen Intel(R) Core(TM) i5-12400, 32 GB RAM` | </details>
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The guard now judges long contention windows, and the reported tests show it responding to synthetic holds. The gain against the current base and the real #838 contention case still need measurement before the default can be settled. (It stands on L6: The check Guide screenshots / Guide images and local UI source review (pull_request) fails on this head and passes on the base branch: Failing after 13s.)

Adds an opt-in Windows render-thread affinity mode with a guard that temporarily releases the affinity when another workload holds the reserved core. It may improve CPU-bound performance, at the cost of guard complexity and approximately one stall frame each time contention is encountered after returning home.

Blocking (1): must change before merging.

  1. L6: The check Guide screenshots / Guide images and local UI source review (pull_request) fails on this head and passes on the base branch: Failing after 13s.

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

  • L3: The current head and base need an in-game performance comparison before the gain and default can be settled. When: The reported 6.7% gain used the earlier PR build and older main; the current head was built but not run, and the scene changed on main. Do: Run interleaved main-versus-head measurements at player settings, including fps, 1% low and frame times, and complete the planned Windows CPU coverage.
  • L5: The guard has not been checked against the real contention case it is intended to mitigate. When: The synthetic priority-15 workload was tested on the AMD system, but the PresentMon service case on the i5-13600K has not been run with this head. Do: Run the real #838 workload with the switch unset and enabled, recording long frames and guard transitions.

@fix can do L6.

Since the last review (on 5867310bc8)
Resolved: L1 (The guard discards every window longer than 250 ms, including windows caused by the conten…); L2 (The threshold parser accepts values that the guard cannot normally reach because it discar…); L4 (The farm crashes with the switch both on and off need a base-side comparison.)
Still open: L3 (The current head and base need an in-game performance comparison before the gain and defau…); L5 (The guard has not been checked against the real contention case it is intended to mitigate…)
New: L6 (The check Guide screenshots / Guide images and local UI source review (pull_request) fai…)

Also noticed (2; not asked for, not blocking)
  • The i5-12400 result needs repeated runs to distinguish the slow enabled run from the scene-state behavior also observed on main.
  • The supplied CI status reports a head-only Guide screenshots check failure.
More: does it help, other systems, switches, what was read

Does it help: Unproven against the current base: the current-build switch comparison reports 85.49 to 87.89 fps (+2.8%) in Lost Woods over three pairs, with p99 14.61 to 14.47 ms. The earlier Hyrule Field comparison reports +8.1% on a different base; neither is a repeated current-head build versus current-base build comparison.

Other systems: The affinity change targets Windows SMT CPUs; Linux and macOS retain their existing placement. Intel, hybrid and lower-core-count Windows systems, SMT-off operation and the real PresentMon contention case remain insufficiently tested. The reported base comparisons reproduce the farm crashes on the affected PCs.

Switches: RX_VK_RT_HOME defaults to unset/free placement; 1 enables guarded home placement and strict disables the guard for measurement. RX_VK_RT_HOME_MS defaults to 4 ms and accepts 1–1000 ms. The off default avoids imposing the unconfirmed placement on players; an enabled default remains a measurement and maintainer decision.

Reviewed: 3cb7b05d07 against 0e32bc100d: Read AGENTS.md, CONTRIBUTING.md, the ledger and supplied review and run reports; examined the guard and the changes since the ledger, including the wait instrumentation and test changes. The large replay implementation, generated fixtures and test suite were skimmed rather than read in full; docs/review-checklist.md is absent.; nothing run (a code review).

Checked and fine:

  • Long-window threshold tests cover repeated holds and the 1000 ms boundary.
  • Present fence, acquire, presenter and image-fence waits are instrumented for the guard.
  • The logged lower bound is clamped for display while the guard uses the raw value.

Testing: No commands that build or execute project code were run. The author reports Windows in-game measurements, synthetic contention runs, and game-free checks on Windows and Linux; the real contention case and current-base performance comparison remain outstanding.

Overlaps and merge order: No overlapping pull request was identified from the supplied material; #2275 is already merged into the base.


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

**Recommendation: Request changes.** The guard now judges long contention windows, and the reported tests show it responding to synthetic holds. The gain against the current base and the real #838 contention case still need measurement before the default can be settled. (It stands on L6: The check `Guide screenshots / Guide images and local UI source review (pull_request)` fails on this head and passes on the base branch: Failing after 13s.) Adds an opt-in Windows render-thread affinity mode with a guard that temporarily releases the affinity when another workload holds the reserved core. It may improve CPU-bound performance, at the cost of guard complexity and approximately one stall frame each time contention is encountered after returning home. **Blocking (1)**: must change before merging. 1. **L6**: The check `Guide screenshots / Guide images and local UI source review (pull_request)` fails on this head and passes on the base branch: Failing after 13s. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L3**: The current head and base need an in-game performance comparison before the gain and default can be settled. *When:* The reported 6.7% gain used the earlier PR build and older main; the current head was built but not run, and the scene changed on main. **Do:** Run interleaved main-versus-head measurements at player settings, including fps, 1% low and frame times, and complete the planned Windows CPU coverage. - **L5**: The guard has not been checked against the real contention case it is intended to mitigate. *When:* The synthetic priority-15 workload was tested on the AMD system, but the PresentMon service case on the i5-13600K has not been run with this head. **Do:** Run the real #838 workload with the switch unset and enabled, recording long frames and guard transitions. `@fix` can do L6. **Since the last review** (on 5867310bc809) Resolved: L1 (The guard discards every window longer than 250 ms, including windows caused by the conten…); L2 (The threshold parser accepts values that the guard cannot normally reach because it discar…); L4 (The farm crashes with the switch both on and off need a base-side comparison.) Still open: L3 (The current head and base need an in-game performance comparison before the gain and defau…); L5 (The guard has not been checked against the real contention case it is intended to mitigate…) New: L6 (The check `Guide screenshots / Guide images and local UI source review (pull_request)` fai…) <details> <summary>Also noticed (2; not asked for, not blocking)</summary> - The i5-12400 result needs repeated runs to distinguish the slow enabled run from the scene-state behavior also observed on main. - The supplied CI status reports a head-only Guide screenshots check failure. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against the current base: the current-build switch comparison reports 85.49 to 87.89 fps (+2.8%) in Lost Woods over three pairs, with p99 14.61 to 14.47 ms. The earlier Hyrule Field comparison reports +8.1% on a different base; neither is a repeated current-head build versus current-base build comparison. **Other systems:** The affinity change targets Windows SMT CPUs; Linux and macOS retain their existing placement. Intel, hybrid and lower-core-count Windows systems, SMT-off operation and the real PresentMon contention case remain insufficiently tested. The reported base comparisons reproduce the farm crashes on the affected PCs. **Switches:** RX_VK_RT_HOME defaults to unset/free placement; 1 enables guarded home placement and strict disables the guard for measurement. RX_VK_RT_HOME_MS defaults to 4 ms and accepts 1–1000 ms. The off default avoids imposing the unconfirmed placement on players; an enabled default remains a measurement and maintainer decision. **Reviewed:** 3cb7b05d07cc against 0e32bc100dbe: Read AGENTS.md, CONTRIBUTING.md, the ledger and supplied review and run reports; examined the guard and the changes since the ledger, including the wait instrumentation and test changes. The large replay implementation, generated fixtures and test suite were skimmed rather than read in full; docs/review-checklist.md is absent.; nothing run (a code review). **Checked and fine:** - Long-window threshold tests cover repeated holds and the 1000 ms boundary. - Present fence, acquire, presenter and image-fence waits are instrumented for the guard. - The logged lower bound is clamped for display while the guard uses the raw value. **Testing:** No commands that build or execute project code were run. The author reports Windows in-game measurements, synthetic contention runs, and game-free checks on Windows and Linux; the real contention case and current-base performance comparison remain outstanding. **Overlaps and merge order:** No overlapping pull request was identified from the supplied material; #2275 is already merged into the base. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
Author
Member

Answers to review 2429 (on 3cb7b05d):

L6 (Guide screenshots): not this PR's. The check fails on main itself:

Why, run locally: scripts/check_guide_screenshots.py --review-sources on main 0e32bc10's tree reports 8 "REVIEW REQUIRED" lines for settings-graphics.png (device_policy.h, menu/threads.cpp, threaded_rendering.h, vk_api.h, vk_dlss.h, vk_menu.cpp, vk_menu.h, vk_recorder.h changed since its reviewed revision), so main fails it. On this head it reports the same 8 plus vk_fps.h, which this PR changes for the render thread's wait accounting (FpsRtWait), not the Graphics page. The fix is a screenshot review and new hashes on main, not something in this PR, so I'm declining @fix here; once main's review hashes are updated, vk_fps.h can go into the same review.

L5 (#838, PresentMon on an i5-13600K): still not run. The farm says it can't create that contention ("The farm cannot create the external contention needed to test guard recovery", on this head's plan). It needs a tester with that CPU running Intel's PresentMon service, with the switch unset and =1, recording long frames and the RX_VK_RT_HOME lines. I can write that up as a manual request for a tester who has the setup.

L3 (main against the current head, in the game): run. Windows 11, Ryzen 7 5700X3D, RX 9070 XT, AMD 26.11.2. Lost Woods as child (the standard scene: the profile save, then the teleport), fast rotation, 16:9, frame rate unlocked (HOS_FPS_MAX=240), RX_VK_ASYNC=1, a fixed light GPU load beside the game, 20 s window, 3 alternating pairs, none rejected, 16:05-16:14Z. Before: main 0e32bc10's own build (longshot.exe b658e14b, longshot_vk.dll 0551f256), nothing set. After: the same exe with this head's renderer (longshot_vk.dll f65e5e69, built from 25dd2d2e; 3cb7b05d adds a test only), RX_VK_RT_HOME=1. The 1 % low is 1000 / the mean of the slowest 1 % of the window's frame times (from each run's present log); the rest is the harness's.

Before: main @ 0e32bc10 After: this PR @ 3cb7b05d, RX_VK_RT_HOME=1
fps (runs, in order) 85.89, 85.84, 84.79 88.49, 87.24, 87.74
fps, median 85.84 87.74 (+2.2 %)
1 % low, fps, median (runs) 60.7 (60.7, 66.8, 59.8) 64.6 (63.9, 65.4, 64.6)
CPU ms a frame, median 55.29 53.94
p99 frame time, median 15.83 ms 14.43 ms
worst frame (max of 3) 19.19 ms 18.44 ms
frames over 25 / 50 / 100 / 250 ms 0 / 0 / 0 / 0 0 / 0 / 0 / 0
game clock 1.000 1.000
the render thread main's placement home in every run: 0 holds, 0 s wide

Pairs: +3.0 %, +1.6 %, +3.5 %; every 1 run above every main run. Under 5 % with 3 pairs, so the harness calls it diagnostic. It agrees with the switch-against-unset sessions on this head's code (+2.8 % and +2.6 %, Lost Woods). The gain is smaller than round 2's Hyrule Field result (+8.1 %, on base dd5ffe6a, a different scene) because Lost Woods is CPU-bound in the game's job workers, not in the render thread.

The farm on this head, i5-12400 (rp_3a2353eac6aa882a, RTX 5060 Ti, NVIDIA 616.56, Windows; this PR's build, =1 against unset): pass. Hyrule Field then Lost Woods, 30 s each:

  • Hyrule Field: fps 42.57 -> 44.08 (+3.5 %), p99 86.03 -> 31.64 ms (-63 %), 1 % low frame time 124.87 -> 34.34 ms, stutters 20 -> 0.5 (medians).
  • Lost Woods: fps 34.40 -> 34.34 (-0.2 %), p99 36.80 -> 37.12 ms.
  • Read it with care: the switch-off side had 3 usable starts and the =1 side 2 (its third start timed out at the farm's teleport to Hyrule Field, in Kokiri Forest). The Hyrule p99 median is carried by two switch-off starts with stutter (p99 86.0 and 312.9 ms); the third switch-off start (26.8 ms) was better than both =1 starts (32.5, 30.8). So: no slow =1 run this time, and no loss in either scene, but the size of the p99 gain is not settled by these starts.
Answers to review 2429 (on 3cb7b05d): **L6 (Guide screenshots): not this PR's.** The check fails on main itself: - base 0e32bc10: https://git.magicbean.dev/MagicBeanDev/Longshot/actions/runs/50801/jobs/0 - today's main f9fb7449: https://git.magicbean.dev/MagicBeanDev/Longshot/actions/runs/51382/jobs/0 - and on PRs that touch no UI source: #2355 (lifted float header only) https://git.magicbean.dev/MagicBeanDev/Longshot/actions/runs/51256/jobs/0, #2360 (`host/hos_thread.c`) https://git.magicbean.dev/MagicBeanDev/Longshot/actions/runs/51319/jobs/0, and #1282; all "Failing after 9-14s". Why, run locally: `scripts/check_guide_screenshots.py --review-sources` on main 0e32bc10's tree reports 8 "REVIEW REQUIRED" lines for `settings-graphics.png` (`device_policy.h`, `menu/threads.cpp`, `threaded_rendering.h`, `vk_api.h`, `vk_dlss.h`, `vk_menu.cpp`, `vk_menu.h`, `vk_recorder.h` changed since its reviewed revision), so main fails it. On this head it reports the same 8 plus `vk_fps.h`, which this PR changes for the render thread's wait accounting (`FpsRtWait`), not the Graphics page. The fix is a screenshot review and new hashes on main, not something in this PR, so I'm declining `@fix` here; once main's review hashes are updated, `vk_fps.h` can go into the same review. **L5 (#838, PresentMon on an i5-13600K):** still not run. The farm says it can't create that contention ("The farm cannot create the external contention needed to test guard recovery", on this head's plan). It needs a tester with that CPU running Intel's PresentMon service, with the switch unset and `=1`, recording long frames and the `RX_VK_RT_HOME` lines. I can write that up as a manual request for a tester who has the setup. **L3 (main against the current head, in the game): run.** Windows 11, Ryzen 7 5700X3D, RX 9070 XT, AMD 26.11.2. Lost Woods as child (the standard scene: the profile save, then the teleport), fast rotation, 16:9, frame rate unlocked (`HOS_FPS_MAX=240`), `RX_VK_ASYNC=1`, a fixed light GPU load beside the game, 20 s window, 3 alternating pairs, none rejected, 16:05-16:14Z. Before: main 0e32bc10's own build (`longshot.exe` b658e14b, `longshot_vk.dll` 0551f256), nothing set. After: the same exe with this head's renderer (`longshot_vk.dll` f65e5e69, built from 25dd2d2e; 3cb7b05d adds a test only), `RX_VK_RT_HOME=1`. The 1 % low is 1000 / the mean of the slowest 1 % of the window's frame times (from each run's present log); the rest is the harness's. | | Before: main @ 0e32bc10 | After: this PR @ 3cb7b05d, `RX_VK_RT_HOME=1` | |---|---|---| | fps (runs, in order) | 85.89, 85.84, 84.79 | 88.49, 87.24, 87.74 | | fps, median | 85.84 | **87.74 (+2.2 %)** | | 1 % low, fps, median (runs) | 60.7 (60.7, 66.8, 59.8) | 64.6 (63.9, 65.4, 64.6) | | CPU ms a frame, median | 55.29 | 53.94 | | p99 frame time, median | 15.83 ms | 14.43 ms | | worst frame (max of 3) | 19.19 ms | 18.44 ms | | frames over 25 / 50 / 100 / 250 ms | 0 / 0 / 0 / 0 | 0 / 0 / 0 / 0 | | game clock | 1.000 | 1.000 | | the render thread | main's placement | home in every run: 0 holds, 0 s wide | Pairs: +3.0 %, +1.6 %, +3.5 %; every `1` run above every main run. Under 5 % with 3 pairs, so the harness calls it diagnostic. It agrees with the switch-against-unset sessions on this head's code (+2.8 % and +2.6 %, Lost Woods). The gain is smaller than round 2's Hyrule Field result (+8.1 %, on base dd5ffe6a, a different scene) because Lost Woods is CPU-bound in the game's job workers, not in the render thread. **The farm on this head, i5-12400** (rp_3a2353eac6aa882a, RTX 5060 Ti, NVIDIA 616.56, Windows; this PR's build, `=1` against unset): **pass**. Hyrule Field then Lost Woods, 30 s each: - Hyrule Field: fps 42.57 -> 44.08 (+3.5 %), p99 86.03 -> 31.64 ms (-63 %), 1 % low frame time 124.87 -> 34.34 ms, stutters 20 -> 0.5 (medians). - Lost Woods: fps 34.40 -> 34.34 (-0.2 %), p99 36.80 -> 37.12 ms. - Read it with care: the switch-off side had 3 usable starts and the `=1` side 2 (its third start timed out at the farm's teleport to Hyrule Field, in Kokiri Forest). The Hyrule p99 median is carried by two switch-off starts with stutter (p99 86.0 and 312.9 ms); the third switch-off start (26.8 ms) was better than both `=1` starts (32.5, 30.8). So: no slow `=1` run this time, and no loss in either scene, but the size of the p99 gain is not settled by these starts.
Some checks failed
CI / Python source checks (ubuntu-24.04, part 1/2) (pull_request) Has been skipped
CI / Python source checks (ubuntu-24.04, part 2/2) (pull_request) Has been skipped
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been skipped
Third-party parts / The same as upstream (pull_request) Has been skipped
Website / Website on Cloudflare (pull_request) Has been skipped
CI / Conventional Commit title (pull_request) Successful in 7s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 13s
CI / Workflow lint (actionlint) (pull_request) Successful in 13s
Third-party parts / As their notes say (pull_request) Successful in 15s
PR description / Description follows the template (pull_request_target) Successful in 5s
Website / Website on Cloudflare (pull_request_target) Has been skipped
CI / Website build and checks (pull_request) Successful in 2m36s
beanstalk/approval approved by klimovich008 (reviewed)
beanstalk/windows+ram-ge17gb+cpu-i5-12400_i5-12600k_i5-13600k_i5-14600k_i7-12700k_i7-13700k 1/1 pass
beanstalk/windows+ram-ge17gb+cpu-i3-10100_i3-12100_i3-13100_i7-6700_i7-6700k_i7-7700_i7-7700k_ryzen-3-3300x 0/1 pass, 0 running, 2 queued
beanstalk/windows+ram-ge17gb+cpu-i5-10400_i5-11400_i7-8700k_ryzen-5-3600_ryzen-5-5600_ryzen-5-5600x_ryzen-5-7600_ryzen-5-7600x 0/1 pass, 0 running, 2 queued
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'perf/rt-home-v3:klimovich008-perf/rt-home-v3'
git switch 'klimovich008-perf/rt-home-v3'
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!2240
No description provided.