GPU: retry a mesh pipeline refused with E_OUTOFMEMORY after making room #2888
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2888"
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 SlyWater on 2026-11-29T18:34:08Z.
What happens
host_pipelinetreats a mesh pipeline the driver refuses as final:refused::failed("mesh", ...)records it once and returnsNone. When the refusal isE_OUTOFMEMORY— seen on 8 GB cards while an upload burst holds the device budget — every draw that needs that pipeline is dropped for the rest of the run. #2464 reports exactly this ("56 host pipelines failed (51 mesh), never retried"), and it shows as missing objects after a load; #2693 has the same card pressure.Change
Only for
E_OUTOFMEMORY: free idle texture memory (resource::let_go_idle) and spare upload chunks (host::trim_spare_chunks), wait 200 ms and ask the driver again, at most four times. Any other refusal is unchanged, and one that persists ends as before (None, logged once).The retry is bounded (under a second on a pipeline worker) and logs once if it succeeds.
Tested
Built and run on Windows 11, i5-12400F, RTX 3070 8 GB, title 1.0.2.1, Series S 1080p:
E_OUTOFMEMORYis unchanged;0x8007000Eon each), so the retry did not turn them into pipelines here. The value is for the transient case during upload bursts, which this machine did not reproduce.No game files, dumps or title logs are included.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.