GPU: a submission refreshes a copy's ranges disjoint, not their span #2417
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2419"
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 Marvisak/VIctory. Originally posted by borosf on 2026-11-25T13:10:42Z.
Summary
Batchmerged every refresh of a buffer copy across a submission into one[min, max]span, so lists asking for distant small parts of one copy (constant buffers through the bindless hulls, heap table ranges, recordedStep::Refreshes) copied everything between them out of title memory. The dossier counts this line as most ofpreparing(~860 ms of a ~1,900 ms Series S world frame; copies ~270 MB ≈ 440 ms).current) is a disjoint set too, so ranges already brought up to date are skipped more often than before.push_range), model-checked against a brute-force coalescer over thousands of random range sequences; unit tests cover the coalescing/bridging rules, and an integration test shows two distant refreshes of one watched copy stay apart.Numbers
Model (no game data; per-frame equivalents of the submission pattern the dossier describes):
Real-world confirmation needs the diagnostics frame log (
preparingMB/ms before/after) on hardware that runs the game.Verification
cargo test -p victory-gpu --libon Intel Arc B580: 143 passed, 2 failed with only the two known Intel heap-cap failures pristine main also has, 2 benchmarks ignored. Includes the newranges_of_a_copy_stay_disjoint,distant_refreshes_of_a_copy_are_copied_apart, and the existing refresh-semantics tests unchanged.claiming: PREPARING-DISJOINT-RANGES (the dirty-range half of H-2.1; per the ledger the adjacent lanes NEW-48 / NEW-53 / GPU-SNAPSHOT-COST are correctness or copy-back redesign, not this).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T13:19:30Z.
Review: COMMENTED
A submission refreshes a copy's ranges disjoint — duplicates #2349 (same disjoint-coalescing rewrite of the same host.rs section, nearly identical comment text). Whichever merges second conflicts; suggest closing one.
Pull request closed