Repository navigation
A submission's one asking begun beside its first steps (VICTORY_ASK_FIRST=1, off by default) - #127
Conversation
…IRST=1, off by default) The asking of the write watch is begun on a thread kept for it when the submission has the lock, beside the planning of the steps done on the card and the look at flights, and waited for where it was made before. There it is made again, whole, if flights were waited for or settled meanwhile; else only what it does not hold is asked (the ranges of the list of steps done on the card). A line per frame counts the three. Tests: an asking begun first is made when waited for, and more is asked for afterwards. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):
AI-assisted (Hy4 flash). |
|
Tried this on top of With What closed it here: an even/odd counter bumped by Numbers (Jason's house, RTX 5080, Series X 1440p, frame generation off; switched inside one 8-minute run with Happy to open the counter as a follow-up PR against this branch if that's easier. |
What
VICTORY_ASK_FIRST=1(off by default; withVICTORY_ASK_ONCE, and not withupcheck): a submission's one asking of the write watch is begun as soon as the submission has the lock, on a thread kept for it (victory-ask), beside the planning of the steps done on the card and the look at the flights in the air. The submission waits for it where it asked before, and there:watch::ask_more, which isask_restover the same ranges): the ranges of the list of steps done on the card, which is made after the asking was begun;ask_onceas today.stale_under_flightsandsettle_stalefollow unchanged. A line per frame says how many submissions began their asking first, how many made it again, and how many asked for more.Without the switch nothing changes, but that the
Batchis taken a little earlier insubmit.Why
The asking is the kernel resetting the pages it finds written, on the thread a frame waits for: 4.3 to 5.4 ms a frame in the session of 2026-11-28 (RTX 4070 Laptop 8 GiB, Ryzen 9 8945HS, Series S profile), with 5.8 ms of planning ahead of it indoors and 12 to 18 ms in the open world. It reads nothing the planning makes.
I looked for other steps of
submitthat could run beside one another and found none: the planning's list has to be asked about and looked at bystale_under_flights, the refreshes need its answer,picked::declareand the card's copies need every refresh done, and one copy has one CPU side and one snapshot, so the next submission cannot be prepared before this one is sent (whichVICTORY_JOIN_PARTSalready answers the legal way). This one step is what is left, and its ceiling is the asking's own time, less what waking a thread costs.What changes
The asking is made a few hundred microseconds earlier in the submission. Memory the title's other threads write in that time is seen by the next submission's asking, as what they write while the refreshes run is today (
once's own comment); what this submission's lists read was written before they were submitted.Tested
watch::tests::an_asking_begun_first_is_made_and_more_is_asked_for(new): the asking begun on the thread is made when waited for and notes what was written; a range nobody held is asked for afterwards; an empty asking is waited for like any other.cargo test -p victory-gpu --lib watch:: host::tests: 106 passed.cargo clippy -p victory-gpu --all-targets --locked: no warning that upstreamca9c75cdoes not have;cargo xtask policy: 280 files ok.🤖 Generated with Claude Code