perf(watch): single-pass ask_once with hoisted OWNED/tell_watch and KEPT fast-path skips #2604
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2604
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@qlfu on GitHub · 2026-11-29 14:53 UTC · original
qlfu:pr/perf-single-pass-ask-once→main· +148 −10 · 1 files · 1 commits · merged 2026-11-29 22:54 UTCSummary
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.@fvrvxvlyy on GitHub · 2026-11-29 23:20 UTC · original
does any one see any character in the game just glitches and goes back normal for 1 sec that makes the fps drop hard