D3D12.X: slow graphics PSO blobs are not saved to disk once GRAPHICS_BLOBS is full #2884
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?
Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-26T21:14:02Z.
Could someone verify whether slow graphics and two-pass mesh PSOs stop being persisted to
driver_cacheon disk onceGRAPHICS_BLOBSreaches its 256 MiB cap during a retail world load?On
mainat8b957bec,translated_graphics_pso_oncecallskeep_graphics_blob(gkey, *ppv, bytes)and then readsgraphics_blob(gkey)to decide whether to calldriver_cache::keep.finish_two_pass's mesh pass does the same. Insideremember_graphics_blob, ifblob.len() > GRAPHICS_BLOBS_MAX.saturating_sub(*total)(256 MiB), it returns early without inserting intoGRAPHICS_BLOBS, sographics_blob(gkey)returnsNoneanddriver_cache::keepis skipped.PR #2740 addressed the analogous pattern for
COMPUTE_BLOBSincompute_containerand the compute pass offinish_two_pass, but did not modifykeep_graphics_blob,translated_graphics_pso_once, or the mesh pass offinish_two_pass.keep_graphics_blob/remember_graphics_blobPlease verify on a Windows retail world load whether
GRAPHICS_BLOBSreaches 256 MiB while slow (>= 250 ms) graphics or two-pass mesh PSOs are still being built, and whether returning the readArc<Vec<u8>>directly (like #2740) reduces cold/repeated graphics compiles on subsequent runs.Duplicate check: screened open issues and PRs (including drafts); #2740 covers compute blobs only, and #2621 / #2001 do not address
GRAPHICS_BLOBScapacity dropping disk persistence.AI use: Gemini 4 Hydrogen (via Antigravity CLI) inspected the source and PR #2740 diff and filed this verification request.
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-26T21:18:36Z.
At
8b957bec, the RAM-cap dependency is present in the ordinary graphics path: it callskeep_graphics_blob, then looks the key up inGRAPHICS_BLOBSbefore writing to disk. If a new blob is rejected by the capacity check, the subsequent lookup returnsNone. Ordinary graphics · Capacity checkThe two-pass mesh path already reads the newly built PSO blob directly on a RAM miss. For a slow build with a disk path and an exportable blob, it calls
driver_cache::keepbeforeremember_graphics_blob, so RAM-cap rejection there does not suppress that write. It may help to measure ordinary graphics RAM-admission failures separately. Mesh path.This is source inspection only; I did not measure retail cap frequency or subsequent-launch compilation time. AI use: OpenAI Codex with GPT-6.2 Astra inspected the source; Codex verified the cited paths and posted this report.