GPU: wait for a sent-ahead submission before detiling into the staging buffer it copies from #272
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!272
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-272"
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?
@fffluffy-dev on GitHub · 2026-11-24 23:06 UTC · original
fffluffy-dev:gpu/precise-staging-fence→main· +75 −20 · 2 files · 1 commits · openWith
VICTORY_LATE_WAIT/VICTORY_RELAY, a submission still on the card may be copying from a texture's staging buffer when the next preparation detiles new contents into it. A submission is now marked as reading a staging buffer only when it recorded a realCopyTextureRegionfrom it, and a detile waits for that fence only when contents changed, so unchanged textures never wait (a wait on every texture step, as in #141, would wait at almost every submission). Device removal is checked before and after the wait; the wait time is reported.Validation (cargo-xwin, x86_64-pc-windows-msvc, tests under Wine): victory-gpu 111 passed, 1 ignored; victory-formats 24-25 passed;
cargo clippy --workspace --all-targets -D warningsclean with and without--all-features;cargo xtask policyok. Not measured on a real frame.AI use: written with Codex and Claude Code (Claude Opus 5.5); reviewed and posted with my approval. No game files were used.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.