WIP: perf(os): HOS_WORKERS_SPREAD=1 puts the six job workers on one logical processor of each whole core (off by default) #2360

Draft
klimovich008 wants to merge 6 commits from klimovich008/Longshot:perf/job-workers-one-per-core into main
Member

Summary

In busy scenes the game's six job workers (BaseProcExecutor0-5) hold the frame, and Windows often puts two of them on
the two halves of one SMT core, where both run slower. This PR adds a switch, HOS_WORKERS_SPREAD=1, off unless set,
that gives the six workers one logical processor of each whole core the game may use, so no two of them share a core.
In Lost Woods (child) on one 8-core PC it gave +4.6 % fps and 2.3 ms less CPU a frame (3 pairs, "diagnostic" by the
standard test's own rule). Whether it ever becomes a default is the maintainers' call after other CPUs have run it.

What it does, in player words. At start, with the switch on, the host works out one logical processor of each whole
core the game is allowed to use: inside the process's affinity mask (#1776), inside the cache cores where those narrow
the game, and without the core reserved for the render thread. On a Ryzen 7 5700X3D that is 0x1555 (the first logical
processor of cores 0-6; core 7 is the reserved one). Only threads named BaseProcExecutor* get that set; every other
thread keeps today's mask. One log line says what was chosen, or why it declined:
threads: HOS_WORKERS_SPREAD=1: the job workers (BaseProcExecutor*) on logical processors 0x1555, one of each of the 7 whole cores the game may use ... / threads: HOS_WORKERS_SPREAD=1 does nothing here: <why> ....

It declines (logged; the workers keep today's mask) when:

  • the cores are of more than one kind: Intel's hybrid CPUs, and on Windows AMD's Zen 5 + Zen 5c (by EfficiencyClass);
  • no allowed core has two logical processors (SMT off, or a mask such as 0x5555);
  • there are no more such cores than workers (6): a 6-core SMT CPU, or 4 cores with one reserved, is left alone;
  • more than one processor group, or 64 or more logical processors.

Limits, plainly:

  • On Linux only Intel's hybrid CPUs are recognised as two kinds (/sys/devices/cpu_core). AMD's Zen 5 + Zen 5c (e.g.
    Ryzen AI 9 HX 370) is not declined there: its workers go one per core over both kinds, where today they float over
    both. Windows declines it (tested).
  • The set is chosen once at start. A process mask narrowed later is not followed (on Windows a set outside the new
    mask is refused and the worker keeps the mask it inherited; Windows narrows existing threads itself).
  • RX_VK_RECORDER_PIN=next (another experiment) pins the recorder to the core below the reserved one, which is one
    of the workers' cores. The two were never run together.
  • With our #2240 (RX_VK_RT_HOME): they compose. #2240's home is the reserved core, and this set is built without
    it, so the two never share a processor (asserted in the test for every accepted set). The two branches merge without a
    conflict and the tests both touch pass on the merged tree; they were not built or measured together.
  • HOS_PIN still overrides the set (applied after it, as today), and HOS_PIN_BY_CORE=1 overrides everything.

Read first: host/hos_thread.c pick_worker_cpus (the pure choice, beside pick_reserved_core), worker_cores (its
input: GetLogicalProcessorInformationEx on Windows, the shim's topology on Linux), workers_spread_cpus and the
BaseProcExecutor branch in hos_thread_pin. Also: gpu/vk/switches.def (the row), docs/dev/reference/switches.md,
docs/dev/reference/threads.md, and tests/test_workers_spread.py (new).

Testing

Tested: Windows 11, Ryzen 7 5700X3D (8 cores, 16 threads), RX 9070 XT, AMD 26.11.2; this PR's build over main
0e32bc10's (exe acc663cc...6b33b3).

  • The standard test, Lost Woods (child): 3 alternating pairs against main's build (Measurements). Every run with the
    switch beat every control.
  • The placement in the game: the start-up line in every switch-on run. The live masks, read every 2 s from the
    running threads: all six BaseProcExecutor0-5 at 0x1555 in every reading of every switch-on run (7 game starts),
    0x3fff in every control. By thread kind (58-60 a run) the switch-on runs differ from main only in the six workers.
  • Off is main's: the PR's build with the switch unset has main's placement thread for thread (58 thread kinds, the
    same masks) and no log line; game-free, unset, 0 and off make exactly main's affinity calls.
  • The stall test: another thread at priority 15, busy 35 ms in every 250 ms on one of the workers' processors, from
    start to end, 3 rounds a side in Lost Woods: frames over 40 ms 0/0/0 with the switch, 0/0/0 without (bar: off + 1). With
    the switch on the worst frame was 2-3 ms higher in 2 of 3 rounds (the worker on the held processor waits out a burst);
    fps held (89.1-91.0 on, 80.6-83.9 off).
  • Hyrule Field (a different scene; not joined with Lost Woods): one pair, 90.19 -> 88.54 fps (-1.8 %), CPU -0.9 ms,
    p99 -0.4 ms, worst -5 ms. One pair can't tell -1.8 % from noise (a pair below where both arms make the same calls
    differs by 1.6 %): no sign of harm where the render thread holds the frame, but not proof of none.
  • Declines in the game: --affinity 0x00ff (4 cores, one reserved: 3 whole) and 0x5555 (no core with both halves)
    log why and leave every thread where main has it.
  • Game clock 1.000-1.001 in all 18 runs; no error lines; no virtual-core escapes.
  • tests/test_workers_spread.py (clang and gcc): the real choice over topologies (this PC, masks 0x5555,
    0x00ff, a half core, 6/7/8/16 cores, two L3 groups with the cache cores, no SMT, Intel hybrid with and without its
    classes, Zen 5 + Zen 5c, more than 32 processors); the wiring through the real hos_thread_pin (unset/0/off = main's
    ten calls; =1 sets the six workers only; HOS_PIN still wins); where the compiler has windows.h, the real
    worker_cores over a fake GetLogicalProcessorInformationEx writing Windows' 48-byte records (masks above bit 31,
    classes, two processor groups). 17 broken variants, each failing. The test fails on main (no pick_worker_cpus).
  • Full suite (run_all.py --jobs 4): the branch 887 passed / 15 failed / 56 skipped, main 0e32bc10 885 / 16 / 56; every
    branch failure fails on main too. host/hos_thread.c compiles whole with MSVC-target clang, llvm-mingw (the same 33
    warnings as main's file, none in the new code), and on Linux (linux_syntax.sh, clang and gcc). mise run lint: only
    main's shellcheck SC2016 on .forgejo/workflows/build-windows.yml:82.

Still to test:

  • Windows, an 8-core SMT CPU without V-Cache (Zen 3/4) and an Intel 8-core with Hyper-Threading and no E-cores: the PR's
    build, HOS_WORKERS_SPREAD=1 against unset, Lost Woods and Hyrule Field, uncapped, 3 starts a cell, expecting fps up
    or level and p99 no worse (@Beanstalk).
  • A 12-core SMT CPU: the same, expecting a smaller gain (more spare cores today) (@Beanstalk).
  • A 6-core SMT CPU (6C/12T): expecting the decline line ("does nothing here") and the same numbers on both sides
    (@Beanstalk).
  • Linux, any SMT CPU: the same as the 8-core case (@Beanstalk).
  • Not run anywhere: hybrid Intel and two-CCD X3D in the game (fixtures only), RX_VK_RECORDER_PIN=next together with
    this, #838's real case (a service's thread holding a worker's core), sessions past ~75 s, area changes, full screen
    (by hand).

Measurements

Verdict: +4.6 % fps and -2.3 ms CPU a frame in Lost Woods on this PC, 3 pairs (std_test: "diagnostic", under 5 % with
3 pairs); every switch-on run above every control; stutter unchanged. Off by default.

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 1280x720 window, RX_VK_ASYNC=1, frame rate unlocked (HOS_FPS_MAX=240), the fixed test profile and
a fixed light GPU load beside the game, 20 s window, 3 alternating pairs, no warm-ups, none rejected, medians. Main's
longshot.exe b658e14b...; this PR's acc663cc...6b33b3 (from cee7013f; the later commits change the test only),
with HOS_WORKERS_SPREAD=1.

Before: main @ 0e32bc10 After: this PR @ 04fd9a57, HOS_WORKERS_SPREAD=1
fps (runs) 86.04, 84.54, 86.14 90.19, 89.99, 88.79
fps, median 86.04 89.99 (+4.6 %)
CPU ms a frame, median 55.64 53.37 (-2.3)
p99 frame, median 14.50 ms 14.08 ms
worst frame (max of 3) 18.09 ms 17.48 ms
frames over 50 / 100 / 250 ms 0 / 0 / 0 0 / 0 / 0
game clock 1.000 1.000
the workers' mask 0x3fff 0x1555

Pairs: +4.8 %, +6.4 %, +3.1 %. GPU ms a frame is the same in both arms (4.20 / 4.25).

Risks

  • A worker on a processor another program holds waits out that program's burst while the others take its jobs; the
    set keeps one spare core. Measured with one held processor (above); two held processors and #838's real service were
    not run.
  • The platform limits above: Linux recognises only Intel's hybrid CPUs; the set is chosen once at start;
    RX_VK_RECORDER_PIN=next shares a core with the set.
  • To turn it off: unset the switch. It is off by default; unset and 0 make main's affinity calls exactly (tested),
    with no topology read and no log line. No saves, options or shader caches change (switches.def is not a stamped
    file).

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.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • 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 In busy scenes the game's six job workers (`BaseProcExecutor0-5`) hold the frame, and Windows often puts two of them on the two halves of one SMT core, where both run slower. This PR adds a switch, **`HOS_WORKERS_SPREAD=1`, off unless set**, that gives the six workers one logical processor of each whole core the game may use, so no two of them share a core. In Lost Woods (child) on one 8-core PC it gave +4.6 % fps and 2.3 ms less CPU a frame (3 pairs, "diagnostic" by the standard test's own rule). Whether it ever becomes a default is the maintainers' call after other CPUs have run it. **What it does, in player words.** At start, with the switch on, the host works out one logical processor of each whole core the game is allowed to use: inside the process's affinity mask (#1776), inside the cache cores where those narrow the game, and without the core reserved for the render thread. On a Ryzen 7 5700X3D that is `0x1555` (the first logical processor of cores 0-6; core 7 is the reserved one). Only threads named `BaseProcExecutor*` get that set; every other thread keeps today's mask. One log line says what was chosen, or why it declined: `threads: HOS_WORKERS_SPREAD=1: the job workers (BaseProcExecutor*) on logical processors 0x1555, one of each of the 7 whole cores the game may use ...` / `threads: HOS_WORKERS_SPREAD=1 does nothing here: <why> ...`. **It declines** (logged; the workers keep today's mask) when: - the cores are of more than one kind: Intel's hybrid CPUs, and on Windows AMD's Zen 5 + Zen 5c (by EfficiencyClass); - no allowed core has two logical processors (SMT off, or a mask such as `0x5555`); - there are no more such cores than workers (6): a 6-core SMT CPU, or 4 cores with one reserved, is left alone; - more than one processor group, or 64 or more logical processors. **Limits, plainly:** - **On Linux only Intel's hybrid CPUs are recognised** as two kinds (`/sys/devices/cpu_core`). AMD's Zen 5 + Zen 5c (e.g. Ryzen AI 9 HX 370) is not declined there: its workers go one per core over both kinds, where today they float over both. Windows declines it (tested). - **The set is chosen once at start.** A process mask narrowed later is not followed (on Windows a set outside the new mask is refused and the worker keeps the mask it inherited; Windows narrows existing threads itself). - **`RX_VK_RECORDER_PIN=next`** (another experiment) pins the recorder to the core below the reserved one, which is one of the workers' cores. The two were never run together. - **With our #2240 (`RX_VK_RT_HOME`):** they compose. #2240's home is the reserved core, and this set is built without it, so the two never share a processor (asserted in the test for every accepted set). The two branches merge without a conflict and the tests both touch pass on the merged tree; they were not built or measured together. - `HOS_PIN` still overrides the set (applied after it, as today), and `HOS_PIN_BY_CORE=1` overrides everything. Read first: `host/hos_thread.c` `pick_worker_cpus` (the pure choice, beside `pick_reserved_core`), `worker_cores` (its input: `GetLogicalProcessorInformationEx` on Windows, the shim's topology on Linux), `workers_spread_cpus` and the `BaseProcExecutor` branch in `hos_thread_pin`. Also: `gpu/vk/switches.def` (the row), `docs/dev/reference/switches.md`, `docs/dev/reference/threads.md`, and `tests/test_workers_spread.py` (new). ## Testing **Tested:** Windows 11, Ryzen 7 5700X3D (8 cores, 16 threads), RX 9070 XT, AMD 26.11.2; this PR's build over main 0e32bc10's (exe `acc663cc...6b33b3`). - **The standard test, Lost Woods (child):** 3 alternating pairs against main's build (Measurements). Every run with the switch beat every control. - **The placement in the game:** the start-up line in every switch-on run. The live masks, read every 2 s from the running threads: all six `BaseProcExecutor0-5` at `0x1555` in every reading of every switch-on run (7 game starts), `0x3fff` in every control. By thread kind (58-60 a run) the switch-on runs differ from main only in the six workers. - **Off is main's:** the PR's build with the switch unset has main's placement thread for thread (58 thread kinds, the same masks) and no log line; game-free, unset, `0` and `off` make exactly main's affinity calls. - **The stall test:** another thread at priority 15, busy 35 ms in every 250 ms on one of the workers' processors, from start to end, 3 rounds a side in Lost Woods: frames over 40 ms 0/0/0 with the switch, 0/0/0 without (bar: off + 1). With the switch on the worst frame was 2-3 ms higher in 2 of 3 rounds (the worker on the held processor waits out a burst); fps held (89.1-91.0 on, 80.6-83.9 off). - **Hyrule Field (a different scene; not joined with Lost Woods):** one pair, 90.19 -> 88.54 fps (-1.8 %), CPU -0.9 ms, p99 -0.4 ms, worst -5 ms. One pair can't tell -1.8 % from noise (a pair below where both arms make the same calls differs by 1.6 %): no sign of harm where the render thread holds the frame, but not proof of none. - **Declines in the game:** `--affinity 0x00ff` (4 cores, one reserved: 3 whole) and `0x5555` (no core with both halves) log why and leave every thread where main has it. - Game clock 1.000-1.001 in all 18 runs; no error lines; no virtual-core escapes. - **`tests/test_workers_spread.py`** (clang and gcc): the real choice over topologies (this PC, masks `0x5555`, `0x00ff`, a half core, 6/7/8/16 cores, two L3 groups with the cache cores, no SMT, Intel hybrid with and without its classes, Zen 5 + Zen 5c, more than 32 processors); the wiring through the real `hos_thread_pin` (unset/0/off = main's ten calls; `=1` sets the six workers only; `HOS_PIN` still wins); where the compiler has `windows.h`, the real `worker_cores` over a fake `GetLogicalProcessorInformationEx` writing Windows' 48-byte records (masks above bit 31, classes, two processor groups). 17 broken variants, each failing. The test fails on main (no `pick_worker_cpus`). - **Full suite** (`run_all.py --jobs 4`): the branch 887 passed / 15 failed / 56 skipped, main 0e32bc10 885 / 16 / 56; every branch failure fails on main too. `host/hos_thread.c` compiles whole with MSVC-target clang, llvm-mingw (the same 33 warnings as main's file, none in the new code), and on Linux (`linux_syntax.sh`, clang and gcc). `mise run lint`: only main's shellcheck SC2016 on `.forgejo/workflows/build-windows.yml:82`. **Still to test:** - Windows, an 8-core SMT CPU without V-Cache (Zen 3/4) and an Intel 8-core with Hyper-Threading and no E-cores: the PR's build, `HOS_WORKERS_SPREAD=1` against unset, Lost Woods and Hyrule Field, uncapped, 3 starts a cell, expecting fps up or level and p99 no worse (@Beanstalk). - A 12-core SMT CPU: the same, expecting a smaller gain (more spare cores today) (@Beanstalk). - A 6-core SMT CPU (6C/12T): expecting the decline line ("does nothing here") and the same numbers on both sides (@Beanstalk). - Linux, any SMT CPU: the same as the 8-core case (@Beanstalk). - Not run anywhere: hybrid Intel and two-CCD X3D in the game (fixtures only), `RX_VK_RECORDER_PIN=next` together with this, #838's real case (a service's thread holding a worker's core), sessions past ~75 s, area changes, full screen (by hand). ## Measurements **Verdict:** +4.6 % fps and -2.3 ms CPU a frame in Lost Woods on this PC, 3 pairs (std_test: "diagnostic", under 5 % with 3 pairs); every switch-on run above every control; stutter unchanged. Off by default. 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 1280x720 window, `RX_VK_ASYNC=1`, frame rate unlocked (`HOS_FPS_MAX=240`), the fixed test profile and a fixed light GPU load beside the game, 20 s window, 3 alternating pairs, no warm-ups, none rejected, medians. Main's `longshot.exe` `b658e14b...`; this PR's `acc663cc...6b33b3` (from cee7013f; the later commits change the test only), with `HOS_WORKERS_SPREAD=1`. | | Before: main @ 0e32bc10 | After: this PR @ 04fd9a57, `HOS_WORKERS_SPREAD=1` | |---|---|---| | fps (runs) | 86.04, 84.54, 86.14 | 90.19, 89.99, 88.79 | | fps, median | 86.04 | **89.99 (+4.6 %)** | | CPU ms a frame, median | 55.64 | **53.37 (-2.3)** | | p99 frame, median | 14.50 ms | 14.08 ms | | worst frame (max of 3) | 18.09 ms | 17.48 ms | | frames over 50 / 100 / 250 ms | 0 / 0 / 0 | 0 / 0 / 0 | | game clock | 1.000 | 1.000 | | the workers' mask | `0x3fff` | `0x1555` | Pairs: +4.8 %, +6.4 %, +3.1 %. GPU ms a frame is the same in both arms (4.20 / 4.25). ## Risks - **A worker on a processor another program holds** waits out that program's burst while the others take its jobs; the set keeps one spare core. Measured with one held processor (above); two held processors and #838's real service were not run. - **The platform limits above:** Linux recognises only Intel's hybrid CPUs; the set is chosen once at start; `RX_VK_RECORDER_PIN=next` shares a core with the set. - **To turn it off:** unset the switch. It is off by default; unset and `0` make main's affinity calls exactly (tested), with no topology read and no log line. No saves, options or shader caches change (`switches.def` is not a stamped file). ## 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] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [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)
The game's job workers (BaseProcExecutor0-5) run float-heavy work together, and two of them on the two halves of one
core each run slower. With the switch on, hos_thread_pin gives them one logical processor of each whole core the game's
threads may use, worked out from the CPU's topology (pick_worker_cpus): inside the process's affinity mask and the cache
cores, the reserved core (the render thread's) left out. It declines, and changes nothing, on CPUs without SMT, with cores
of more than one kind, with no more such cores than workers, or with more than one processor group / 64 logical
processors; the log says the set or why not. HOS_PIN still wins. Unset or 0: main's affinity calls.

tests/test_workers_spread.py runs the real choice over topologies and hos_thread_pin over stubbed affinity calls, with
eleven broken variants that must fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GetActiveProcessorGroupCount and GetSystemInfo were new calls in the region tests/test_reserved_core_mask.py cuts and stubs:
a core of another group in GetLogicalProcessorInformationEx's list (Windows) and a system mask with all 64 bits (Linux) say
the same. The test names pick_worker_cpus first when it is missing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Where the compiler has windows.h, the real worker_cores is cut and compiled with pick_worker_cpus and workers_spread_cpus
over a fake GetLogicalProcessorInformationEx and GetThreadGroupAffinity: the cores and classes it hands the choice, the
max bound, and more than one processor group declined (logged). Three broken variants must build and fail when run: the
group not compared, the class not passed, the calling thread's group not read. On the Linux runner this part says it did
not run (no windows.h); the source checks for the Linux branch stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The fake GetLogicalProcessorInformationEx writes 48-byte core records (one GROUP_AFFINITY), as Windows does, so a walk by
sizeof instead of Size fails; a 24-core table checks masks above bit 31; a third class and a class canary check that the
classes pass as they are and within max. The windows.h probe skips only when windows.h itself is missing. Three more broken
variants (a walk by the struct's size, masks cut to 32 bits, the class made 0 or 1) must fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
longshot_env.h comes first in the portable fixture, so MSVC-target clang's getenv deprecation is off before stdlib.h (as
the header intends). The windows.h probe skips only when its first error is the probe's own line 1 not finding windows.h
(gcc's and clang's wording); a nested header's error is a failure.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
test(os): test_workers_spread's windows.h probe reads the compiler's message without colour codes (sol)
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 6s
PR description / Description follows the template (pull_request_target) Successful in 7s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 9s
CI / Workflow lint (actionlint) (pull_request) Successful in 9s
Third-party parts / As their notes say (pull_request) Successful in 11s
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/any 0/1 pass, 0 running, 0 queued
CI / Website build and checks (pull_request) Successful in 2m41s
beanstalk/approval approved by klimovich008 (reviewed)
beanstalk/windows+cpu-5700x_5800x_7700_7700x 1/1 pass
beanstalk/windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k 0/1 pass, 0 running, 2 queued
beanstalk/windows+cpu-3900x_5900x_7900_7900x 2/1 pass
beanstalk/windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k 0/1 pass, 0 running, 2 queued
beanstalk/linux 0/1 pass, 2 error
04fd9a5734
A compiler wrapper with -fdiagnostics-color=always wrote ANSI codes into the probe's message, so a Linux compiler without
windows.h failed the test instead of skipping its Windows part. The codes are taken out before the match.

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. Lost Woods (child), the standard test: 3 alternating pairs, frame rate unlocked (HOS_FPS_MAX=240), RX_VK_ASYNC=1, main 0e32bc10 against this PR's build (exe acc663cc...6b33b3) with HOS_WORKERS_SPREAD=1: 86.04 -> 89.99 fps (median, +4.6 %, diagnostic under 5 %), CPU 55.64 -> 53.37 ms a frame, p99 14.50 -> 14.08 ms, every switch-on run above every control, 0 frames over 50 ms, clock 1.000. The six BaseProcExecutor threads read 0x1555 in every live reading of every switch-on run; every other thread kept main's mask; unset = main's masks and no log line. Stall test (one worker processor held 35 ms in every 250 ms at priority 15): 0 frames over 40 ms on both sides. Hyrule Field one pair: -1.8 % (no sign of harm, not proof). Declines logged under --affinity 0x00ff and 0x5555. No error lines. Not run: other CPUs, Linux, hybrid Intel, RX_VK_RECORDER_PIN=next together with it.

Tested in game: Windows 11, Ryzen 7 5700X3D (8C/16T), RX 9070 XT, AMD 26.11.2. Lost Woods (child), the standard test: 3 alternating pairs, frame rate unlocked (HOS_FPS_MAX=240), RX_VK_ASYNC=1, main 0e32bc10 against this PR's build (exe acc663cc...6b33b3) with HOS_WORKERS_SPREAD=1: 86.04 -> 89.99 fps (median, +4.6 %, diagnostic under 5 %), CPU 55.64 -> 53.37 ms a frame, p99 14.50 -> 14.08 ms, every switch-on run above every control, 0 frames over 50 ms, clock 1.000. The six BaseProcExecutor threads read 0x1555 in every live reading of every switch-on run; every other thread kept main's mask; unset = main's masks and no log line. Stall test (one worker processor held 35 ms in every 250 ms at priority 15): 0 frames over 40 ms on both sides. Hyrule Field one pair: -1.8 % (no sign of harm, not proof). Declines logged under --affinity 0x00ff and 0x5555. No error lines. Not run: other CPUs, Linux, hybrid Intel, RX_VK_RECORDER_PIN=next together with it.
Author
Member

@Beanstalk the PR's own build only, its switch against itself: baseline ref = pr, [matrix.pr_only] HOS_WORKERS_SPREAD = ["1"] against unset (unset is main's placement), judged 1 against unset on the pr side. It is a runtime switch (read at start), so one build serves both sides. 3 game starts a cell.

What it does: with it on, the game's six job workers (BaseProcExecutor*) get one logical processor of each whole core the game may use, so no two share an SMT core. It acts only on SMT CPUs with more than 6 whole cores beside the render thread's reserved one, and declines (logged) elsewhere.

Targets, 1-2 reports each, by model; don't let the plan wait on any one:

  • Windows, 8-core SMT without V-Cache (Zen 3/4): Ryzen 7 5700X, 5800X, 7700X, 7700;
  • Windows, Intel 8-core with Hyper-Threading and no E-cores: i9-9900K, i9-9900, i7-10700K, i7-10700, i7-11700K;
  • Windows, a 12-core SMT CPU: Ryzen 9 3900X, 5900X, 7900X, 7900;
  • Windows, a 6-core SMT CPU (6C/12T), where it must decline: Ryzen 5 3600, 5600X, 5600, 7600X, 7600, i5-10400, i5-11400, i7-8700K;
  • Linux, any SMT CPU with 8 cores or more (any GPU).
    No Steam Deck (4 cores: it declines there by design).

Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine (nothing in the present path changes).

Scenes, in one start: Lost Woods as child Link (from the save kokiri-start, teleport destination 5) measured 30 s, our standard scene, where the workers hold the frame; then Hyrule Field (HyruleField_Child) measured 30 s. Compare rules, pr side, =1 vs unset, per scene: fps_mean min_delta_pct = 3 (fail 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: "threads: HOS_WORKERS_SPREAD=1: the job workers (BaseProcExecutor*) on logical processors" expected on the 8-core, 12-core and Linux targets; on the 6-core target expect "threads: HOS_WORKERS_SPREAD=1 does nothing here" instead (that cell compares the same placement twice: please show the line). Unset cells: neither line.

@Beanstalk the PR's own build only, its switch against itself: baseline ref = pr, [matrix.pr_only] HOS_WORKERS_SPREAD = ["1"] against unset (unset is main's placement), judged 1 against unset on the pr side. It is a runtime switch (read at start), so one build serves both sides. **3 game starts a cell.** What it does: with it on, the game's six job workers (BaseProcExecutor*) get one logical processor of each whole core the game may use, so no two share an SMT core. It acts only on SMT CPUs with more than 6 whole cores beside the render thread's reserved one, and declines (logged) elsewhere. Targets, 1-2 reports each, by model; don't let the plan wait on any one: - Windows, 8-core SMT without V-Cache (Zen 3/4): Ryzen 7 5700X, 5800X, 7700X, 7700; - Windows, Intel 8-core with Hyper-Threading and no E-cores: i9-9900K, i9-9900, i7-10700K, i7-10700, i7-11700K; - Windows, a 12-core SMT CPU: Ryzen 9 3900X, 5900X, 7900X, 7900; - Windows, a 6-core SMT CPU (6C/12T), where it must decline: Ryzen 5 3600, 5600X, 5600, 7600X, 7600, i5-10400, i5-11400, i7-8700K; - Linux, any SMT CPU with 8 cores or more (any GPU). No Steam Deck (4 cores: it declines there by design). Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine (nothing in the present path changes). Scenes, in one start: Lost Woods as child Link (from the save kokiri-start, teleport destination 5) measured 30 s, our standard scene, where the workers hold the frame; then Hyrule Field (HyruleField_Child) measured 30 s. Compare rules, pr side, =1 vs unset, per scene: fps_mean min_delta_pct = 3 (fail 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: "threads: HOS_WORKERS_SPREAD=1: the job workers (BaseProcExecutor*) on logical processors" expected on the 8-core, 12-core and Linux targets; on the 6-core target expect "threads: HOS_WORKERS_SPREAD=1 does nothing here" instead (that cell compares the same placement twice: please show the line). Unset cells: neither line.
Member
Beanstalk test farm · an earlier run: commit 04fd9a5 (the newer results are in a comment below)

Commit 04fd9a5 · approved by klimovich008 (reviewed) · dashboard

Started at 12:27 UTC.

Estimate: done in about 50 min, from the queue and the testers online now.

Target Result Reports Frame time p99 (ms), main → PR VRAM peak (MB) Crashes
any 🔄 running 0 of 1 — — —
What was tested

What will be tested · default plan (AI failed: the plan was refused: pass.compare[0].against must be one of HOS_WORKERS_SPREAD's values (1))

The AI plan failed: the plan was refused: pass.compare[0].against must be one of HOS_WORKERS_SPREAD's values (1); using the default plan.

  • Where: any (any PC, 1-2 reports).
  • title: from the title screen, then measure title for 20 s (after 5 s warm-up); 2 runs on each side.
  • hyrule-field: from the repository's save kokiri-start, then teleport to Hyrule Field, measure field for 60 s (after 10 s warm-up); 2 runs on each side.
  • Measured: crashes, boot time, frame times, stutters and hitches, VRAM use, the game's log.
  • The PR fails if: it crashes; or peak VRAM is more than 10% above main; or frame time (p99) is more than 15% above main.
  • Time: about 47 min of game runs per tester (8 game starts), plus the two builds.
<!-- beanstalk:previous --> <details><summary>Beanstalk test farm · an earlier run: commit <code>04fd9a5</code> (the newer results are in a comment below)</summary> Commit `04fd9a5` · approved by klimovich008 (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2360) Started at 12:27 UTC. **Estimate:** done in about 50 min, from the queue and the testers online now. | Target | Result | Reports | Frame time p99 (ms), main → PR | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | --- | | `any` | 🔄 running | 0 of 1 | — | — | — | <details><summary>What was tested</summary> **What will be tested** · default plan (AI failed: the plan was refused: pass.compare[0].against must be one of HOS_WORKERS_SPREAD's values (1)) The AI plan failed: the plan was refused: pass.compare[0].against must be one of HOS_WORKERS_SPREAD's values (1); using the default plan. - **Where:** any (any PC, 1-2 reports). - **title:** from the title screen, then measure title for 20 s (after 5 s warm-up); 2 runs on each side. - **hyrule-field:** from the repository's save `kokiri-start`, then teleport to Hyrule Field, measure field for 60 s (after 10 s warm-up); 2 runs on each side. - **Measured:** crashes, boot time, frame times, stutters and hitches, VRAM use, the game's log. - **The PR fails if:** it crashes; or peak VRAM is more than 10% above main; or frame time (p99) is more than 15% above main. - **Time:** about 47 min of game runs per tester (8 game starts), plus the two builds. </details> </details>
Author
Member

@Beanstalk plan (the first plan was refused: 'against' must be one of the switch's values, so 0 is the off side; 0 is exactly unset, main's placement): the PR's own build only, its switch against itself: baseline ref = pr, [matrix.pr_only] HOS_WORKERS_SPREAD = ["0", "1"], and pass.compare HOS_WORKERS_SPREAD = "1" against "0" on the pr side. It is a runtime switch (read at start), so one build serves both sides. 3 game starts a cell.

What it does: with it on, the game's six job workers (BaseProcExecutor*) get one logical processor of each whole core the game may use, so no two share an SMT core. It acts only on SMT CPUs with more than 6 whole cores beside the render thread's reserved one, and declines (logged) elsewhere.

Targets, 1-2 reports each, by model; don't let the plan wait on any one:

  • Windows, 8-core SMT without V-Cache (Zen 3/4): Ryzen 7 5700X, 5800X, 7700X, 7700;
  • Windows, Intel 8-core with Hyper-Threading and no E-cores: i9-9900K, i9-9900, i7-10700K, i7-10700, i7-11700K;
  • Windows, a 12-core SMT CPU: Ryzen 9 3900X, 5900X, 7900X, 7900;
  • Windows, a 6-core SMT CPU (6C/12T), where it must decline: Ryzen 5 3600, 5600X, 5600, 7600X, 7600, i5-10400, i5-11400, i7-8700K;
  • Linux, any SMT CPU with 8 cores or more (any GPU).
    No Steam Deck (4 cores: it declines there by design).

Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine (nothing in the present path changes).

Scenes, in one start: Lost Woods as child Link (from the save kokiri-start, teleport destination 5) measured 30 s, our standard scene, where the workers hold the frame; then Hyrule Field (HyruleField_Child) measured 30 s. Compare rules, pr side, =1 vs =0, per scene: fps_mean min_delta_pct = 3 (fail 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: "threads: HOS_WORKERS_SPREAD=1: the job workers (BaseProcExecutor*) on logical processors" expected on the 8-core, 12-core and Linux targets; on the 6-core target expect "threads: HOS_WORKERS_SPREAD=1 does nothing here" instead (that cell compares the same placement twice: please show the line). =0 cells: neither line.

@Beanstalk plan (the first plan was refused: 'against' must be one of the switch's values, so 0 is the off side; 0 is exactly unset, main's placement): the PR's own build only, its switch against itself: baseline ref = pr, [matrix.pr_only] HOS_WORKERS_SPREAD = ["0", "1"], and [[pass.compare]] HOS_WORKERS_SPREAD = "1" against "0" on the pr side. It is a runtime switch (read at start), so one build serves both sides. **3 game starts a cell.** What it does: with it on, the game's six job workers (BaseProcExecutor*) get one logical processor of each whole core the game may use, so no two share an SMT core. It acts only on SMT CPUs with more than 6 whole cores beside the render thread's reserved one, and declines (logged) elsewhere. Targets, 1-2 reports each, by model; don't let the plan wait on any one: - Windows, 8-core SMT without V-Cache (Zen 3/4): Ryzen 7 5700X, 5800X, 7700X, 7700; - Windows, Intel 8-core with Hyper-Threading and no E-cores: i9-9900K, i9-9900, i7-10700K, i7-10700, i7-11700K; - Windows, a 12-core SMT CPU: Ryzen 9 3900X, 5900X, 7900X, 7900; - Windows, a 6-core SMT CPU (6C/12T), where it must decline: Ryzen 5 3600, 5600X, 5600, 7600X, 7600, i5-10400, i5-11400, i7-8700K; - Linux, any SMT CPU with 8 cores or more (any GPU). No Steam Deck (4 cores: it declines there by design). Settings: frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0; headless is fine (nothing in the present path changes). Scenes, in one start: Lost Woods as child Link (from the save kokiri-start, teleport destination 5) measured 30 s, our standard scene, where the workers hold the frame; then Hyrule Field (HyruleField_Child) measured 30 s. Compare rules, pr side, =1 vs =0, per scene: fps_mean min_delta_pct = 3 (fail 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: "threads: HOS_WORKERS_SPREAD=1: the job workers (BaseProcExecutor*) on logical processors" expected on the 8-core, 12-core and Linux targets; on the 6-core target expect "threads: HOS_WORKERS_SPREAD=1 does nothing here" instead (that cell compares the same placement twice: please show the line). =0 cells: neither line.
Member

Beanstalk test farm · 🔄 testing (6 of 5 reports so far)

Commit 04fd9a5 · approved by klimovich008 (reviewed) · dashboard

⚠️ Note: Two runs per cell are used rather than the requested three to stay within the farm's 60-minute limit; this reduces confidence in small performance differences.
⚠️ Note: The schema cannot restrict expected log lines by target and switch cell, so the placement and decline messages are not judged; on the six-core target both cells should use the same placement.
⚠️ Note: The Linux target cannot enforce SMT or an eight-core minimum, and the farm cannot verify live worker affinity masks or reproduce the background-thread stall test.

Started at 2026-11-23 12:27 UTC. Run 2: re-planned by klimovich008.

⚠ No tester has a PC for windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k (none seen in 14 days): it waits until one signs in.

Target Result Reports VRAM peak (MB) Crashes
windows+cpu-5700x_5800x_7700_7700x (CPU "5700x" or "5800x" or "7700" or "7700x") ✅ pass 2 1 2 — none
windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k (CPU "i7 10700" or "i7 10700k" or "i7 11700k" or "i9 9900" or "i9 9900k") ⏳ queued 0 of 1 — —
windows+cpu-3900x_5900x_7900_7900x (CPU "3900x" or "5900x" or "7900" or "7900x") ✅ pass (an outlier) 2 1 2 — none
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") ⏳ queued 0 of 1 — —
linux ⚠️ couldn't be judged 2 1 2 — none

woods-and-field · frame time p99 (ms)

Target switch off HOS_WORKERS_SPREAD=0 (reference) HOS_WORKERS_SPREAD=1
windows+cpu-5700x_5800x_7700_7700x (CPU "5700x" or "5800x" or "7700" or "7700x") 12.2 12.2 12.5 (+3%)
windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k (CPU "i7 10700" or "i7 10700k" or "i7 11700k" or "i9 9900" or "i9 9900k") — — —
windows+cpu-3900x_5900x_7900_7900x (CPU "3900x" or "5900x" or "7900" or "7900x") 10.2 9.7 9.7 (+0%)
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") — — —
linux — — —

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-5700x_5800x_7700_7700x, report 2: the baseline runtime failed (exit 1): return a.func(a) or 0
  • linux, report 1: the pull request's pack failed (exit 1): build.py stopped (exit status 1): <data>/jobs/jb_81b331689b9a63f6/pack/game-work/sa/build/obj/code_001.split.c:17426:5: error: expected ')'
  • linux, report 2: no scenario could be judged: a step ran out of time at step 2 (wait map LostWood_Child): timeout: not met in time (then the game was in play on KokiriForest_Child)
What was tested

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

The plan compares worker spreading on and off in the PR build on the requested Windows CPU groups and Linux, with uncapped frame rates and frame generation off. Each start measures child Lost Woods and Hyrule Field for 30 seconds apiece; FPS, frame times and run-wide hitches are reported. A crash, an FPS loss over 3%, or a p99 frame-time increase over 10% in either scene fails the comparison. Some requested CPU groups may wait for a matching online tester. No tester online now matches windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k, windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k: those targets wait for one.

  • Where: windows+cpu-5700x_5800x_7700_7700x (CPU "5700x" or "5800x" or "7700" or "7700x", 1-2 reports), windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k (CPU "i7 10700" or "i7 10700k" or "i7 11700k" or "i9 9900" or "i9 9900k", 1-2 reports), windows+cpu-3900x_5900x_7900_7900x (CPU "3900x" or "5900x" or "7900" or "7900x", 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), linux (1-2 reports).
  • Against: the PR itself, switch on (HOS_WORKERS_SPREAD) and off; main is not built or run.
  • Matrix: 2 cells, each with the switch on and off: HOS_WORKERS_SPREAD 0 or 1 (PR only).
  • woods-and-field: from the repository's save kokiri-start (settings vsync=2, frame_rate_cap=6, frame_generation=0), then teleport to Lost Woods, measure woods for 30 s (after 10 s warm-up), 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 PR fails if: it crashes; or the PR's frame rate with HOS_WORKERS_SPREAD=1 is more than 3% below HOS_WORKERS_SPREAD=0; or the PR's frame time (p99) with HOS_WORKERS_SPREAD=1 is more than 10% above HOS_WORKERS_SPREAD=0.
  • Time: about 51 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `windows+cpu-5700x_5800x_7700_7700x`, for the PR description

Verdict: pass on windows+cpu-5700x_5800x_7700_7700x (2 reports): no rule failed and no PR run crashed.

Hardware: 1: windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM; 2: windows+amd+amd-proprietary+dgpu AMD Radeon RX 7900 XT, 2.0.416 AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM
Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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 @ 04fd9a5, switch off After: this PR @ 04fd9a5, switch on
woods-and-field · HOS_WORKERS_SPREAD=0 (PR only) · field · frame time (p99) (ms) 12.2 12.2 (+0%)
woods-and-field · HOS_WORKERS_SPREAD=0 (PR only) · woods · frame time (p99) (ms) 16.6 16.6 (+0%)
woods-and-field · HOS_WORKERS_SPREAD=1 (PR only) · field · frame time (p99) (ms) 12.6 12.5 (−0%)
woods-and-field · HOS_WORKERS_SPREAD=1 (PR only) · woods · frame time (p99) (ms) 16.8 16.7 (−1%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** pass on windows+cpu-5700x_5800x_7700_7700x (2 reports): no rule failed and no PR run crashed.

Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM`  
Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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 @ 04fd9a5, switch off | After: this PR @ 04fd9a5, switch on |
|---|---|---|
| woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · field · frame time (p99) (ms) | 12.2 | 12.2 (+0%) |
| woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · woods · frame time (p99) (ms) | 16.6 | 16.6 (+0%) |
| woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · field · frame time (p99) (ms) | 12.6 | 12.5 (−0%) |
| woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · woods · frame time (p99) (ms) | 16.8 | 16.7 (−1%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `HOS_WORKERS_SPREAD` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | woods-and-field, main without it → the PR with 0: 12.2 → 12.2 (+0%) | no clear effect |
Measurements on `windows+cpu-3900x_5900x_7900_7900x`, for the PR description

Verdict: pass on windows+cpu-3900x_5900x_7900_7900x (2 reports): no rule failed and no PR run crashed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM; 2: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3080 Ti, 621.24.0 AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM
Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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 @ 04fd9a5, switch off After: this PR @ 04fd9a5, switch on
woods-and-field · HOS_WORKERS_SPREAD=0 (PR only) · field · frame time (p99) (ms) 10.2 9.7 (−5%)
woods-and-field · HOS_WORKERS_SPREAD=0 (PR only) · woods · frame time (p99) (ms) 12.1 11.9 (−2%)
woods-and-field · HOS_WORKERS_SPREAD=1 (PR only) · field · frame time (p99) (ms) 9.7 9.7 (+1%)
woods-and-field · HOS_WORKERS_SPREAD=1 (PR only) · woods · frame time (p99) (ms) 12.0 11.9 (−1%)

Flags and settings

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

As Markdown for the PR description:

## Measurements

**Verdict:** pass on windows+cpu-3900x_5900x_7900_7900x (2 reports): no rule failed and no PR run crashed.

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM`  
Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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 @ 04fd9a5, switch off | After: this PR @ 04fd9a5, switch on |
|---|---|---|
| woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · field · frame time (p99) (ms) | 10.2 | 9.7 (−5%) |
| woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · woods · frame time (p99) (ms) | 12.1 | 11.9 (−2%) |
| woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · field · frame time (p99) (ms) | 9.7 | 9.7 (+1%) |
| woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · woods · frame time (p99) (ms) | 12.0 | 11.9 (−1%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `HOS_WORKERS_SPREAD` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | woods-and-field, main without it → the PR with 0: 10.2 → 9.7 (−5%) | helps |
Measurements on `linux`, for the PR description

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

Hardware: 1: linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.1.99 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM; 2: linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame time (p99)) Helps / doesn't help / untested
HOS_WORKERS_SPREAD switch the PR adds (set on the PR side only) 0, 1 off (the switch's default) the PR's default woods-and-field, main without it → the PR with 0: not measured untested

As Markdown for the PR description:

## Measurements

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

Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.1.99` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM`  
Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `HOS_WORKERS_SPREAD` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | woods-and-field, main without it → the PR with 0: not measured | untested |
The testers' hardware
Target Report Ran on
windows+cpu-5700x_5800x_7700_7700x 1 windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM
windows+cpu-5700x_5800x_7700_7700x 2 windows+amd+amd-proprietary+dgpu AMD Radeon RX 7900 XT, 2.0.416 AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM
windows+cpu-3900x_5900x_7900_7900x 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 4070, 621.24.0 AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM
windows+cpu-3900x_5900x_7900_7900x 2 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce RTX 3080 Ti, 621.24.0 AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM
linux 1 linux+amd+radv+dgpu AMD Radeon RX 9070 XT (RADV GFX1201), 26.1.99 AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM
linux 2 linux+amd+radv+igpu AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99 AMD Ryzen Z2 Extreme, 32 GB RAM
<!-- beanstalk:sticky --> ### Beanstalk test farm · 🔄 testing (6 of 5 reports so far) Commit `04fd9a5` · approved by klimovich008 (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2360) ⚠️ **Note:** Two runs per cell are used rather than the requested three to stay within the farm's 60-minute limit; this reduces confidence in small performance differences. ⚠️ **Note:** The schema cannot restrict expected log lines by target and switch cell, so the placement and decline messages are not judged; on the six-core target both cells should use the same placement. ⚠️ **Note:** The Linux target cannot enforce SMT or an eight-core minimum, and the farm cannot verify live worker affinity masks or reproduce the background-thread stall test. Started at 2026-11-23 12:27 UTC. Run 2: re-planned by klimovich008. ⚠ No tester has a PC for `windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k` (none seen in 14 days): it waits until one signs in. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `windows+cpu-5700x_5800x_7700_7700x` (CPU "5700x" or "5800x" or "7700" or "7700x") | ✅ pass | 2 [1](https://beanstalk.magicbean.dev/reports/rp_0ff0bcce8f66302f) [2](https://beanstalk.magicbean.dev/reports/rp_25e270307d7402c1) | — | none | | `windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k` (CPU "i7 10700" or "i7 10700k" or "i7 11700k" or "i9 9900" or "i9 9900k") | ⏳ queued | 0 of 1 | — | — | | `windows+cpu-3900x_5900x_7900_7900x` (CPU "3900x" or "5900x" or "7900" or "7900x") | ✅ pass (an outlier) | 2 [1](https://beanstalk.magicbean.dev/reports/rp_48b64b2b30d9db0d) [2](https://beanstalk.magicbean.dev/reports/rp_3ba3e8b66e9c7f2e) | — | none | | `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") | ⏳ queued | 0 of 1 | — | — | | `linux` | ⚠️ couldn't be judged | 2 [1](https://beanstalk.magicbean.dev/reports/rp_79a292a246ebce63) [2](https://beanstalk.magicbean.dev/reports/rp_b3a679ea547bdd32) | — | none | **`woods-and-field`** · frame time p99 (ms) | Target | switch off | `HOS_WORKERS_SPREAD=0` (reference) | `HOS_WORKERS_SPREAD=1` | | --- | --- | --- | --- | | `windows+cpu-5700x_5800x_7700_7700x` (CPU "5700x" or "5800x" or "7700" or "7700x") | 12.2 | 12.2 | 12.5 (+3%) | | `windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k` (CPU "i7 10700" or "i7 10700k" or "i7 11700k" or "i9 9900" or "i9 9900k") | — | — | — | | `windows+cpu-3900x_5900x_7900_7900x` (CPU "3900x" or "5900x" or "7900" or "7900x") | 10.2 | 9.7 | 9.7 (+0%) | | `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") | — | — | — | | `linux` | — | — | — | **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-5700x_5800x_7700_7700x`, [report 2](https://beanstalk.magicbean.dev/reports/rp_25e270307d7402c1): `the baseline runtime failed (exit 1): return a.func(a) or 0` - `linux`, [report 1](https://beanstalk.magicbean.dev/reports/rp_79a292a246ebce63): `the pull request's pack failed (exit 1): build.py stopped (exit status 1): <data>/jobs/jb_81b331689b9a63f6/pack/game-work/sa/build/obj/code_001.split.c:17426:5: error: expected ')'` - `linux`, [report 2](https://beanstalk.magicbean.dev/reports/rp_b3a679ea547bdd32): `no scenario could be judged: a step ran out of time at step 2 (wait map LostWood_Child): timeout: not met in time (then the game was in play on KokiriForest_Child)` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) The plan compares worker spreading on and off in the PR build on the requested Windows CPU groups and Linux, with uncapped frame rates and frame generation off. Each start measures child Lost Woods and Hyrule Field for 30 seconds apiece; FPS, frame times and run-wide hitches are reported. A crash, an FPS loss over 3%, or a p99 frame-time increase over 10% in either scene fails the comparison. Some requested CPU groups may wait for a matching online tester. No tester online now matches windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k, windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k: those targets wait for one. - **Where:** windows+cpu-5700x_5800x_7700_7700x (CPU "5700x" or "5800x" or "7700" or "7700x", 1-2 reports), windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k (CPU "i7 10700" or "i7 10700k" or "i7 11700k" or "i9 9900" or "i9 9900k", 1-2 reports), windows+cpu-3900x_5900x_7900_7900x (CPU "3900x" or "5900x" or "7900" or "7900x", 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), linux (1-2 reports). - **Against:** the PR itself, switch on (`HOS_WORKERS_SPREAD`) and off; main is not built or run. - **Matrix:** 2 cells, each with the switch on and off: HOS_WORKERS_SPREAD `0` or `1` (PR only). - **woods-and-field:** from the repository's save `kokiri-start` (settings vsync=2, frame_rate_cap=6, frame_generation=0), then teleport to Lost Woods, measure woods for 30 s (after 10 s warm-up), 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 PR fails if:** it crashes; or the PR's frame rate with HOS_WORKERS_SPREAD=1 is more than 3% below HOS_WORKERS_SPREAD=0; or the PR's frame time (p99) with HOS_WORKERS_SPREAD=1 is more than 10% above HOS_WORKERS_SPREAD=0. - **Time:** about 51 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+cpu-5700x_5800x_7700_7700x`, for the PR description</summary> **Verdict:** pass on windows+cpu-5700x_5800x_7700_7700x (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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 @ 04fd9a5, switch off | After: this PR @ 04fd9a5, switch on | |---|---|---| | woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · field · frame time (p99) (ms) | 12.2 | 12.2 (+0%) | | woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · woods · frame time (p99) (ms) | 16.6 | 16.6 (+0%) | | woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · field · frame time (p99) (ms) | 12.6 | 12.5 (−0%) | | woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · woods · frame time (p99) (ms) | 16.8 | 16.7 (−1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_WORKERS_SPREAD` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | woods-and-field, main without it → the PR with 0: 12.2 → 12.2 (+0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+cpu-5700x_5800x_7700_7700x (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM`; 2: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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 @ 04fd9a5, switch off | After: this PR @ 04fd9a5, switch on | |---|---|---| | woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · field · frame time (p99) (ms) | 12.2 | 12.2 (+0%) | | woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · woods · frame time (p99) (ms) | 16.6 | 16.6 (+0%) | | woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · field · frame time (p99) (ms) | 12.6 | 12.5 (−0%) | | woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · woods · frame time (p99) (ms) | 16.8 | 16.7 (−1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_WORKERS_SPREAD` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | woods-and-field, main without it → the PR with 0: 12.2 → 12.2 (+0%) | no clear effect | ``` </details> <details><summary>Measurements on `windows+cpu-3900x_5900x_7900_7900x`, for the PR description</summary> **Verdict:** pass on windows+cpu-3900x_5900x_7900_7900x (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM` Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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 @ 04fd9a5, switch off | After: this PR @ 04fd9a5, switch on | |---|---|---| | woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · field · frame time (p99) (ms) | 10.2 | 9.7 (−5%) | | woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · woods · frame time (p99) (ms) | 12.1 | 11.9 (−2%) | | woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · field · frame time (p99) (ms) | 9.7 | 9.7 (+1%) | | woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · woods · frame time (p99) (ms) | 12.0 | 11.9 (−1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_WORKERS_SPREAD` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | woods-and-field, main without it → the PR with 0: 10.2 → 9.7 (−5%) | helps | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+cpu-3900x_5900x_7900_7900x (2 reports): no rule failed and no PR run crashed. Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM`; 2: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM` Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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 @ 04fd9a5, switch off | After: this PR @ 04fd9a5, switch on | |---|---|---| | woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · field · frame time (p99) (ms) | 10.2 | 9.7 (−5%) | | woods-and-field · `HOS_WORKERS_SPREAD=0 (PR only)` · woods · frame time (p99) (ms) | 12.1 | 11.9 (−2%) | | woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · field · frame time (p99) (ms) | 9.7 | 9.7 (+1%) | | woods-and-field · `HOS_WORKERS_SPREAD=1 (PR only)` · woods · frame time (p99) (ms) | 12.0 | 11.9 (−1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_WORKERS_SPREAD` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | woods-and-field, main without it → the PR with 0: 10.2 → 9.7 (−5%) | helps | ``` </details> <details><summary>Measurements on `linux`, for the PR description</summary> **Verdict:** could not be judged on linux (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.1.99` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_WORKERS_SPREAD` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | woods-and-field, main without it → the PR with 0: not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on linux (2 reports). Hardware: 1: linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.1.99` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM`; 2: linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` Scene: woods-and-field, 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); woods-and-field: 2 game starts a side, woods 30 s after 10 s warm-up, 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) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame time (p99)) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_WORKERS_SPREAD` | switch the PR adds (set on the PR side only) | `0`, `1` | off (the switch's default) | the PR's default | woods-and-field, main without it → the PR with 0: not measured | untested | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+cpu-5700x_5800x_7700_7700x` | [1](https://beanstalk.magicbean.dev/reports/rp_0ff0bcce8f66302f) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 7700 8-Core Processor, 32 GB RAM` | | `windows+cpu-5700x_5800x_7700_7700x` | [2](https://beanstalk.magicbean.dev/reports/rp_25e270307d7402c1) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 7900 XT, 2.0.416` `AMD Ryzen 7 5700X 8-Core Processor, 16 GB RAM` | | `windows+cpu-3900x_5900x_7900_7900x` | [1](https://beanstalk.magicbean.dev/reports/rp_48b64b2b30d9db0d) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 4070, 621.24.0` `AMD Ryzen 9 7900X 12-Core Processor, 64 GB RAM` | | `windows+cpu-3900x_5900x_7900_7900x` | [2](https://beanstalk.magicbean.dev/reports/rp_3ba3e8b66e9c7f2e) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce RTX 3080 Ti, 621.24.0` `AMD Ryzen 9 5900X 12-Core Processor, 64 GB RAM` | | `linux` | [1](https://beanstalk.magicbean.dev/reports/rp_79a292a246ebce63) | linux+amd+radv+dgpu `AMD Radeon RX 9070 XT (RADV GFX1201), 26.1.99` `AMD Ryzen 7 5700X3D 8-Core Processor, 32 GB RAM` | | `linux` | [2](https://beanstalk.magicbean.dev/reports/rp_b3a679ea547bdd32) | linux+amd+radv+igpu `AMD Radeon 890M Graphics (RADV STRIX1), 26.1.99` `AMD Ryzen Z2 Extreme, 32 GB RAM` | </details>
Author
Member

Two of this round's Linux reports couldn't be judged, and neither is this PR's code:

  • rp_b3a679ea547bdd32 (Ryzen Z2 Extreme, SteamOS): "a step ran out of time at step 2 (wait map LostWood_Child) ... then the game was in play on KokiriForest_Child", in both cells (=0 and =1), one start each. The PR's pack built and started fine there (warm, lift 105 s, compile 1,626 s). The teleport from the save kokiri-start to Lost Woods was asked for but the game stayed in Kokiri Forest, on the switch-off side as much as the switch-on side. The same step timed out today on #2355's i5-12400 report rp_0629753247797734 on main's side as well as the PR's, and once on #2240's rp_3a2353eac6aa882a (wait map HyruleField_Child, one start of six). So it looks like the farm's teleport step not taking right after the save loads, not something a build does. Could the farm's owners retry the teleport (or wait for play before sending it) when the wait times out?
  • rp_79a292a246ebce63 (Ryzen 7 5700X3D, SteamOS): the PR's pack stopped compiling the lifted code: code_001.split.c:17426:5: error: expected ')' (the giant-function splitter's output, nx2/split_giants.py). This PR changes host/hos_thread.c, docs, switches.def and a test only, nothing in nx2/ or the lift's inputs, and the same commit's pack compiled every lifted file and ran on the other Linux tester above. That tester's main base was reused (no main build in this job), so the report can't show main's side; a main-only pack build there would settle whether it's that PC's build or main's.

No re-plan from me yet.

Two of this round's Linux reports couldn't be judged, and neither is this PR's code: - **rp_b3a679ea547bdd32** (Ryzen Z2 Extreme, SteamOS): "a step ran out of time at step 2 (wait map LostWood_Child) ... then the game was in play on KokiriForest_Child", in both cells (`=0` and `=1`), one start each. The PR's pack built and started fine there (warm, lift 105 s, compile 1,626 s). The teleport from the save `kokiri-start` to Lost Woods was asked for but the game stayed in Kokiri Forest, on the switch-off side as much as the switch-on side. The same step timed out today on #2355's i5-12400 report rp_0629753247797734 on **main's** side as well as the PR's, and once on #2240's rp_3a2353eac6aa882a (`wait map HyruleField_Child`, one start of six). So it looks like the farm's teleport step not taking right after the save loads, not something a build does. Could the farm's owners retry the teleport (or wait for play before sending it) when the wait times out? - **rp_79a292a246ebce63** (Ryzen 7 5700X3D, SteamOS): the PR's pack stopped compiling the lifted code: `code_001.split.c:17426:5: error: expected ')'` (the giant-function splitter's output, `nx2/split_giants.py`). This PR changes `host/hos_thread.c`, docs, `switches.def` and a test only, nothing in `nx2/` or the lift's inputs, and the same commit's pack compiled every lifted file and ran on the other Linux tester above. That tester's main base was reused (no main build in this job), so the report can't show main's side; a main-only pack build there would settle whether it's that PC's build or main's. No re-plan from me yet.
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 6s
PR description / Description follows the template (pull_request_target) Successful in 7s
Guide screenshots / Guide images and local UI source review (pull_request) Failing after 9s
CI / Workflow lint (actionlint) (pull_request) Successful in 9s
Third-party parts / As their notes say (pull_request) Successful in 11s
Website / Website on Cloudflare (pull_request_target) Has been skipped
beanstalk/any 0/1 pass, 0 running, 0 queued
CI / Website build and checks (pull_request) Successful in 2m41s
beanstalk/approval approved by klimovich008 (reviewed)
beanstalk/windows+cpu-5700x_5800x_7700_7700x 1/1 pass
beanstalk/windows+cpu-i7-10700_i7-10700k_i7-11700k_i9-9900_i9-9900k 0/1 pass, 0 running, 2 queued
beanstalk/windows+cpu-3900x_5900x_7900_7900x 2/1 pass
beanstalk/windows+cpu-3600_5600_5600x_7600_7600x_i5-10400_i5-11400_i7-8700k 0/1 pass, 0 running, 2 queued
beanstalk/linux 0/1 pass, 2 error
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/job-workers-one-per-core:klimovich008-perf/job-workers-one-per-core'
git switch 'klimovich008-perf/job-workers-one-per-core'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!2360
No description provided.