Retry temporary stand-in texture allocation failures #4863
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-12-01T12:00:17Z.
What 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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:30:17Z.
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