perf(watch): single-pass ask_once with hoisted OWNED/tell_watch and KEPT fast-path skips #2604
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2604"
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by qlfu on 2026-11-29T14:53:52Z.
Summary
Replaces the two-pass
watch::ask_once(ask_ahead+ask_rest) with a single-passask_once+ask_run_all, hoisting invariant lookups and fast-pathing idle journal operations:tell_watch()andowned_snapshot()once perask_oncecall instead of re-acquiringOWNED.read()and checkingtell_watch()per range (~14,400×/frame).ask_ahead+ask_restinto a single pass soAskingsandjournal_mut()are acquired once per submission instead of twice.KEPTflag to fast-pathask_once_end(),ask_ahead_done(),ask_ahead(), andwrote()without lockingJOURNALwhen no asking is held.ahead_contains) inwould_wait.Verification
cargo test -p victory-gpu --lib --locked watch:: -- --test-threads=1(allwatch::tests pass, including newsingle_pass_ask_once_caches_mixed_clustered_lone_and_unwatched_ranges).cargo test -p victory-gpu --lib --locked -- --test-threads=1 --quiet(926 passed; 0 failed; 57 ignored).cargo clippy -p victory-gpu --lib --tests --locked:0new warnings.1440p DLSS Balanced, RTX 4070 Ti + Ryzen 7 5700X):0 WARNs,0 ERRORs,watchp957.20 -> 6.50 ms.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by fvrvxvlyy on 2026-11-29T23:20:47Z.
does any one see any character in the game just glitches and goes back normal for 1 sec that makes the fps drop hard