GPU: record per-span stamps for partial watched-page refreshes #1388
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/fxceless--victory-fork!1388
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1388"
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?
@n-romanovich on GitHub · 2026-11-26 22:19 UTC · original
n-romanovich:fix/1344-partial-page-stamps→main· +389 −53 · 1 files · 1 commits · openFixes #1344.
Previously,
Shadow::copy_staleonly updatedcopied[page - base]when a refresh covered the entire 64 KiB page (within the shadow buffer). Partial or unaligned refreshes left the page unstamped, causing repeated refreshes of the same unchanged span to re-copy boundary bytes on every frame.Changes in
crates/victory-gpu/src/shadow.rs:(lo, hi, stamp)inShadow::partialalongsideShadow::copied.copy_stale/copy_stale_with, prune any partial spans invalidated by a newer CPU write (stamp < write), copy only the uncovered gaps (including whenVICTORY_DIRTY_4Ksubpage filtering is active), and promote to a whole-page stamp when a full page is refreshed.partialstamps in sync inShadow::wrote_own.shadow::stale_testscovering unaligned cross-boundary refreshes, consecutive refreshes skipping unchanged bytes, CPU write invalidation, overlapping extensions, promotion to whole-page stamps, andVICTORY_DIRTY_4Kinteraction.Verified locally:
cargo test --locked -p victory-gpu --lib shadow(34 passed, 0 failed)cargo test --locked -p victory-gpu --features diagnostics --lib shadow(34 passed, 0 failed)cargo test --locked -p victory-gpu --lib(226 passed, 0 failed, 6 ignored)cargo build --release --locked -p victory@Filip722 on GitHub · 2026-11-26 23:07 UTC · original
All four focused stale-page tests passed under GE-Proton11-14 on Bazzite 44 with an RTX 5060 Laptop. I also replayed the same Series S checkpoint from identical initial caches on the same local integration of main and #257, with #1388 as the app source change.
The patched run reached the cell and recorded 206 distinct presents over 54 seconds at 3.82 FPS, with 965 MiB minimum free VRAM and no pending pipelines. Camera movement responded to input. The unpatched run reached the matched view and hit the local GPU headroom stop at 618 MiB free before completing the window. This pair establishes a working Proton run with the patch. A complete control window is still needed for an FPS or CPU-copy comparison.
Assisted by Codex (GPT-6.2-Sol High).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.