Repository navigation
GPU: avoid texture remap waits by default - #135
Merged
devin-ai-integration[bot] merged 3 commits intoNov 26, 2026
Merged
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
There was a problem hiding this comment.
Devin Review found 3 findings. Devin automatically fixed all 3 findings.
Fixed by Devin (3)
- GPU copy chains can stall recording — CopyResource no longer refreshes sources the host GPU already wrote; those copy the host-populated contents directly, while only title-filled sources get the corrective refresh.
- Texture copies miss newly streamed mips — The copy-source refresh now clears the partial-texture retry stamp it creates, so the submission-time refresh looks again and can pick up mips that arrive before the copy runs.
- Texture copies retain stale pixels — CopyResource sources are now refreshed synchronously before the copy is recorded, with remap waiting forced for that refresh, so a transient runtime remap cannot make the destination capture stale source pixels.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
frame-time: texture refreshes now avoid waiting for the title-memory remap lock by default. When the runtime is remapping memory, a refresh reads through the kernel instead; if a page is unavailable it retries at the next refresh.
VICTORY_TEXTURE_NO_WAIT=0restores the waiting behavior.The existing analysis documents seconds per frame spent behind this lock during streaming, with loading-phase readings over one second dropping from 18 to 5. The picture cannot become partially read; a texture may only appear one frame later.
Validated with the asset policy check plus Windows-target
cargo checkand clippy with warnings denied.Link to Devin session: https://app.devin.ai/sessions/75bbf6b4192940fea34014b13a016bee
Open in Devin Desktop: https://app.devin.ai/desktop/session/75bbf6b4192940fea34014b13a016bee?variant=devin
Requested by: @Personed
🟢 Devin fixed all 3 findings · Follow Devin's work