Skip to content

D3D12.X: slow graphics PSO blobs are not saved to disk once GRAPHICS_BLOBS is full #2884

Backlog

Description

@KOLESNiii

Could someone verify whether slow graphics and two-pass mesh PSOs stop being persisted to driver_cache on disk once GRAPHICS_BLOBS reaches its 256 MiB cap during a retail world load?

On main at 8b957bec, translated_graphics_pso_once calls keep_graphics_blob(gkey, *ppv, bytes) and then reads graphics_blob(gkey) to decide whether to call driver_cache::keep. finish_two_pass's mesh pass does the same. Inside remember_graphics_blob, if blob.len() > GRAPHICS_BLOBS_MAX.saturating_sub(*total) (256 MiB), it returns early without inserting into GRAPHICS_BLOBS, so graphics_blob(gkey) returns None and driver_cache::keep is skipped.

PR #2740 addressed the analogous pattern for COMPUTE_BLOBS in compute_container and the compute pass of finish_two_pass, but did not modify keep_graphics_blob, translated_graphics_pso_once, or the mesh pass of finish_two_pass.

Please verify on a Windows retail world load whether GRAPHICS_BLOBS reaches 256 MiB while slow (>= 250 ms) graphics or two-pass mesh PSOs are still being built, and whether returning the read Arc<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_BLOBS capacity dropping disk persistence.

AI use: Gemini 4 Hydrogen (via Antigravity CLI) inspected the source and PR #2740 diff and filed this verification request.

Activity

  1. andrewDoing commented on Nov 26, 2026

    @andrewDoing

    At 8b957bec, the RAM-cap dependency is present in the ordinary graphics path: it calls keep_graphics_blob, then looks the key up in GRAPHICS_BLOBS before writing to disk. If a new blob is rejected by the capacity check, the subsequent lookup returns None. Ordinary graphics · Capacity check

    The 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::keep before remember_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.

  2. changed the title [-]Verify whether slow graphics and two-pass mesh PSO blobs stop persisting to disk when GRAPHICS_BLOBS is full[/-] [+]D3D12.X: slow graphics PSO blobs are not saved to disk once GRAPHICS_BLOBS is full[/+] on Nov 27, 2026
  3. added a commit that references this issue on Nov 27, 2026
    2481b11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions