Retry temporary stand-in texture allocation failures #4864
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!4864
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4863"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-12-01 12:00 UTC · original
andrewpozdnakov7-jpg:codex2/fix/retry-neutral-textures→main· +21 −3 · 1 files · 1 commits · closed without mergingWhat it changes
The gray stand-in textures are created lazily. If the first creation returns
None, the currentOnceLock<Option<_>>caches that failure until the program exits. All later requests for that texture kind fall back to a null view even after memory is available again.Cache only successful creations. When an attempt fails, wait one second before trying that kind again. A successful cached lookup still uses one
OnceLock::get.How it was tested
5fabb46eand releasev2026.11.30.03stayed empty after the allocator could succeed.c9e0b97a1ff739fe5287a2544edb175350618337skipped the attempt at 999 ms, recovered at 1,000 ms, and reused the new texture.cargo xtask policy --stagedpassed for the one changed file. This fixture covers initialization and retry.Checked for overlap
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
@trustno1-coder on GitHub · 2026-12-01 18:30 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed