Watch: VICTORY_AHEAD_GAP_KB, the gap ranges asked ahead are joined over (default unchanged) #2246
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!2246
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2246"
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?
@Bazovsky on GitHub · 2026-11-29 11:00 UTC · original
Bazovsky:pr/ahead-gap-switch→main· +54 −16 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCWhat it changes
Adds
VICTORY_AHEAD_GAP_KB: the distance over which a submission's ranges are joined into one asking of the write watch (AHEAD_GAPincrates/victory-gpu/src/watch.rs). Nothing changes without the switch: the default stays 8 MiB.ask_aheadmoves into a function of its own,ahead_runs(pieces, gap), with a unit test (ranges_asked_ahead_join_within_the_gap_alone).Why a switch. In a comment on #1637 @POMXARK measured a smaller gap together with CPU-only memory left unwatched (6.7 to 5.6 ms of write-watch time on a Ryzen 7 5700X). An asking walks and resets the pages between its ranges too, so the gap is worth measuring on its own, and that needs no rebuild with this.
How it was tested
victory play.e1f2eb6with #1392, #1442, #1633, #1637 and #1857 (all in main now), one exe, the switch alone changed, five 190 s runs each way in turn. A loaded save standing in the first playable scene (about 4,800 draws a frame), seconds 60 to 140 of 3D counted:VICTORY_AHEAD_GAP_KB=512829188e+ the commit):victory-gputests, 875 pass and the 41 ofwatch::testsrun one at a time pass; clippy reports nothing new inwatch.rs. The diagnostics build does not compile on main itself at829188e(copystat.rs:1349,host.rs:9168), so it was not checked.Checked for overlap
AHEAD_GAPand for changes toask_ahead. None found.Measured unattended by an AI assistant (Claude Code) on my PC.
🤖 Generated with Claude Code