Texture streaming: test retaining the last valid mip after a transient short read #118
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#118
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@npalissi on GitHub · 2026-11-26 04:29 UTC · original
Symptom
A prop can stay in place while its surface flashes black or loses detail during texture streaming. The fork documents a capture in which 137 of 787 repeated uploads put zeros over a previously filled level. Whole objects disappearing and driver resets need separate evidence. Existing capture notes
What I verified
With TEXTURE_NO_WAIT=1, a refresh can read while title memory is being remapped. When the full read fails and this staging buffer has no previous contents, the fallback reads the accessible pages. Missing bytes remain zero. After the bounded retries, a nonzero partial result can still be detiled into staging, and the short read is recorded for a later retry. Refresh and fill
A standalone Rust harness exercised the fork's fill and read_there logic with synthetic pages and a simulated read failure. With both pages readable, both patterns reached staging. With the second page unreadable through the retry window, the first pattern reached staging and the second page was zero. This verifies the staging result. GPU sampling and gameplay were outside the test.
The title's storage batch reports completion through DirectStorage. I have not tied that status to the publication of a particular mip view, so I would test this using VIctory's own read completeness and upload completion signals first. The existing descriptor deferral merge delays a view switch while earlier GPU work can still use the old view. The short read happens before the copy.
Change to test
When a replacement mip is only partially read during a transient remap, keep the last valid contents and defer that mip's upload. Retry when the mapping settles, then expose the update after the copy completes. In the in-place update case, the old descriptor alone cannot preserve the pixels, so the short upload itself must be deferred. If the allocation has changed identity or has been intentionally unmapped, keep the existing invalidation and fallback behavior. Keep the render thread moving while the retry is pending.
Before and after
Validation
AI-assisted source review and synthetic test. No game data attached.
github-bot referenced this issue2026-11-26 06:46:47 +00:00