dev.py ab: the per-area Simulated turf rows (#2093) make A/Bs refuse at random #2349

Open
opened 2026-11-23 08:43:56 +00:00 by GrimVisage · 2 comments
Contributor

dev.py ab refuses to write up an A/B (exit 3) when the four per-area Simulated turf rows from #2093
(sim_turf_density, sim_turf_fade_start, sim_turf_far_power, sim_turf_minimum_blades) read differently between
runs. They are not settings the runs ran with differently: they show the loaded area's own values, and read
"Load an area" until the area is ready (gpu/vk/menu/sim_turf.cpp, .locked while !ready).

Why it happens: run_one in scripts/devtools/ab.py reads the rows (option_get) right after the teleport, before
the warm-up. Whether the new area's turf is ready by then is a race, so one run gets "Load an area" and the next gets the
area's numbers, and what_ran / differences compare every row's text. (Their values are the area's own: Kokiri Forest
showed density 150 and minimum blades 16 here, Hyrule Field 200 and 12.)

How to see it: python -I scripts/dev.py ab --scene kokiri-forest (or hyrule-field) on main since #2093; on
this PC (Linux, RX 9070 XT) 3 of the last 4 A/Bs were refused, each after all six runs had finished:

dev.py ab: no write-up: options sim_turf_density: A2 has '150', A1 'Load an area'; options sim_turf_fade_start: A2 has '8.0', A1 'Load an area'; ...
dev.py ab: the runs differ in menu rows (sim_turf_density, sim_turf_fade_start, sim_turf_far_power, sim_turf_minimum_blades): --allow <options-file key> each, if that is the compared thing

Others have hit it and worked around it: #2272 (reran with --allow for the four rows, saying why in Setup), #2288
(wrote the numbers up by hand) and #2207 (said its fps table is not a measurement).

What would fix it (a suggestion, not tried): leave rows that only show the loaded area's values out of the
comparison (for example rows the menu marks preset_exempt, or rows locked at the moment they are read), or read the
rows after the warm-up, once the area is ready. A game-free test could feed differences() two runs that differ only in
a locked row's text.

`dev.py ab` refuses to write up an A/B (exit 3) when the four per-area Simulated turf rows from #2093 (`sim_turf_density`, `sim_turf_fade_start`, `sim_turf_far_power`, `sim_turf_minimum_blades`) read differently between runs. They are not settings the runs ran with differently: they show the loaded area's own values, and read "Load an area" until the area is ready (`gpu/vk/menu/sim_turf.cpp`, `.locked` while `!ready`). **Why it happens:** `run_one` in `scripts/devtools/ab.py` reads the rows (`option_get`) right after the teleport, before the warm-up. Whether the new area's turf is ready by then is a race, so one run gets "Load an area" and the next gets the area's numbers, and `what_ran` / `differences` compare every row's text. (Their values are the area's own: Kokiri Forest showed density 150 and minimum blades 16 here, Hyrule Field 200 and 12.) **How to see it:** `python -I scripts/dev.py ab --scene kokiri-forest` (or `hyrule-field`) on `main` since #2093; on this PC (Linux, RX 9070 XT) 3 of the last 4 A/Bs were refused, each after all six runs had finished: ``` dev.py ab: no write-up: options sim_turf_density: A2 has '150', A1 'Load an area'; options sim_turf_fade_start: A2 has '8.0', A1 'Load an area'; ... dev.py ab: the runs differ in menu rows (sim_turf_density, sim_turf_fade_start, sim_turf_far_power, sim_turf_minimum_blades): --allow <options-file key> each, if that is the compared thing ``` Others have hit it and worked around it: #2272 (reran with `--allow` for the four rows, saying why in Setup), #2288 (wrote the numbers up by hand) and #2207 (said its fps table is not a measurement). **What would fix it** (a suggestion, not tried): leave rows that only show the loaded area's values out of the comparison (for example rows the menu marks `preset_exempt`, or rows locked at the moment they are read), or read the rows after the warm-up, once the area is ready. A game-free test could feed `differences()` two runs that differ only in a locked row's text.
Member

Possibly related, for context:

  • PR #2288 WIP: fix(vk): simulated-turf lists stay within the device's workgroups for one draw or dispatch — Open simulated-turf PR reports the same A/B exit-3 refusal when turf menu rows read “Load an area” inconsistently between runs.
Possibly related, for context: - PR #2288 WIP: fix(vk): simulated-turf lists stay within the device's workgroups for one draw or dispatch — Open simulated-turf PR reports the same A/B exit-3 refusal when turf menu rows read “Load an area” inconsistently between runs.

Claiming this issue (score 3.0 = S2 3 x reach 1.0 x confidence 1.0; prior work: none found for sim_turf_density, Load an area, what_ran, option_get; testing on Windows 11, RTX 4060 / driver 621.24).

Claiming this issue (score 3.0 = S2 3 x reach 1.0 x confidence 1.0; prior work: none found for sim_turf_density, Load an area, what_ran, option_get; testing on Windows 11, RTX 4060 / driver 621.24).
Sign in to join this conversation.
No milestone
No project
No assignees
3 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#2349
No description provided.