perf: one pass over a submission's refreshes for the write-watch asking and the check behind flights #361
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!361
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-361"
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?
@Skyfrye on GitHub · 2026-11-26 13:05 UTC · original
Skyfrye:nep/refresh-spans-once→main· +94 −41 · 1 files · 1 commits · closed without mergingChange
Host::submitwalked every step of a submission's lists twice:VICTORY_ASK_ONCE);stale_under_flights. At every refreshed range (about 22,000 a frame in the world of the title this fork works on), it took the copy's lock to ask whether shader writes were pending, then searched the spans kept so far for that copy.Both now share one
RefreshSpans, built in a single pass:rebar_stalestill judges each range on its own, as before.The ranges asked about and the answer are the same.
Supersedes nothing open. Related: #279 (clock reads in the same loop).
Linked issue: none.
Verification
Windows 11 26300, Rust 1.98.1 (MSVC), on upstream
mainat8ed1109, fromthird_party/victory:refreshes_join_per_copy_in_first_seen_orderchecks one span per copy, in first-seen order, covering all of the copy's ranges. It does not build without the change.In the world, my copy of the game, Series X,
VICTORY_INDIRECT_RAW=3, the launcher's switches (VICTORY_WIDE_REFRESH=1among them): one run of 300 s with this PR stacked with the other parts of the same split (#360, #361, #362) and #278, #279, #291, #292, #307, onmainat8ed1109.main. There was no exception and no device lost.Oracle and test data
No game file.
Checklist
E_NOTIMPL), never a fake success. (Nothing unimplemented here.)AI assistance: written with Antigravity (Google's AI IDE, model gemini-4-neon-medium) in commit 22d77e4 of a local branch. Claude Opus 5.5, in Claude Code, reduced it to this change and ported it to
main. It also kept the per-range check of upload-heap windows, which a separate Claude Opus 5.5 review of 22d77e4 found had become per-copy. It ran the checks and the game, and wrote this description.🤖 Generated with Claude Code
@LooperSalty on GitHub · 2026-11-26 15:41 UTC · original
This PR now conflicts with main in
third_party/victory/crates/victory-gpu/src/host.rs(main moved with #358, #377 and #386). Please rebase on main, re-run the victory-gpu tests and force-push your branch.🤖 Generated with Claude Code
@Skyfrye on GitHub · 2026-11-26 16:02 UTC · original
Closing: #383 covers this. Its
pending_spans_by_index(behindVICTORY_STEP_INDEX, which #386 turns on by default) does whatRefreshSpansdid insidestale_under_flights: it askswrites_pending()once per copy instead of at every refresh step, and finds a copy's span through aHashMapkeyed by the copy's address instead of searching the spans kept so far. What is left here is only sharing one walk of the steps between theVICTORY_ASK_ONCEspans andstale_under_flights. With #383's index the extra walk costs a pointer compare and a flag read per step, which is not worth a PR of its own without a profile showing it. (Checked with Claude Opus 5.5.)Pull request closed