fix: upload rewritten guest textures before the next submit #2
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/Freminet--ScarlettX!2
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2"
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?
@AutoComput on GitHub · 2026-11-21 10:03 UTC · original
AutoComput:fix/guest-texture-same-frame-upload→main· +22 −17 · 2 files · 1 commits · openTL;DR
Guest texture memory is only scanned once per presented frame, so a write after the frame's first submit shows up a frame late, and never if nothing is presented. That's why
test_d3d12_guest_texturefails.Textures created or written within the last frame are now also checked on every submit. The full scan stays once per frame, since
GetWriteWatchcosts about 1.5 us per MB here (roughly 3 ms for 2 GB of textures). A texture that sat idle for more than a frame and then gets rewritten mid-frame can still be one frame late.test_d3d12_guest_texturepasses on Release (MSVC 2022, WARP). I don't have the title, so the per-submit cost in a real game is unmeasured;flush_ms/fin--statsnow includes it. Status files not regenerated.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.