Index write-watch coverage for large GPU submissions #5
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/DoubleGhosty--cool_fox!5
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/5/head"
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?
@Lkxex on GitHub · 2026-11-26 10:13 UTC · original
Lkxex:perf/index-submission-write-watch→main· +104 −14 · 1 files · 1 commits · closed without mergingWhat changes
The submission preparation thread repeatedly checks whether a refresh range is already covered by a successful Windows write-watch query. Large submissions scanned the full list for each hit or miss. Keep the short linear path for up to 32 ranges and switch to an ordered index beyond that. Retain the coverage of the original individual queries, including when two queries overlap or touch. Skip rebuilding an ahead batch while a submission's retained snapshot already stands.
This targets the CPU submission path described in the project measurements.
Tested
Windows x64, Ryzen 5 5600, Rust 1.98.1. Median of 11 samples, eight iterations per sample. Each iteration builds the range set and does 20,000 identical seeded lookups. The optimized Rust microbenchmark measures this operation only.
cargo test --locked -p victory-gpu --features diagnostics watch:: -- --test-threads=1: 43 passed, 0 failed.cargo check --locked -p victory --features diagnostics: passed.Not tested
In-game frame times, FPS, and visual behavior. The measured savings are from the lookup workload above.
AI use
OpenAI Codex (GPT-6.2 Sol) assisted with implementation and verification.
@DoubleGhosty on GitHub · 2026-11-26 20:28 UTC · original
Thanks for this PR! The write-watch submission preparation path in victory-gpu has since been refactored in main to use sharded Notes and concurrent Ahead tracking with fine-grained locking, resolving the large submission scan overhead. Closing for now.
Pull request closed