dev.py ab: the per-area Simulated turf rows (#2093) make A/Bs refuse at random #2349
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#2349
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
dev.py abrefuses 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 betweenruns. 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,.lockedwhile!ready).Why it happens:
run_oneinscripts/devtools/ab.pyreads the rows (option_get) right after the teleport, beforethe 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/differencescompare every row's text. (Their values are the area's own: Kokiri Forestshowed 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(orhyrule-field) onmainsince #2093; onthis PC (Linux, RX 9070 XT) 3 of the last 4 A/Bs were refused, each after all six runs had finished:
Others have hit it and worked around it: #2272 (reran with
--allowfor 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 therows after the warm-up, once the area is ready. A game-free test could feed
differences()two runs that differ only ina locked row's text.
Possibly related, for context:
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).