Skip to content

GPU: avoid texture remap waits by default - #135

Merged
devin-ai-integration[bot] merged 3 commits into
mainfrom
devin/1795676558-texture-no-wait
Nov 26, 2026
Merged

devin-ai-integration[bot] merged 3 commits into
mainfrom
devin/1795676558-texture-no-wait

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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=0 restores 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 check and 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

Devin Review

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

Personed and others added 2 commits November 26, 2026 07:06
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>

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

View findings in Devin Review · Follow Devin's work

Devin Review

@devin-ai-integration
devin-ai-integration Bot merged commit 1870f62 into main Nov 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant