D3D12.X: persist graphics pipelines built in 50 ms #3449

Merged
bmjask merged 5 commits from upstream-pr/3449 into main 2026-11-29 20:20:12 +00:00
bmjask commented 2026-11-29 18:08:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-29T18:08:08Z.


Persists moderately expensive graphics and mesh driver blobs so repeat launches do not rebuild pipelines whose creation cost is significant but below the old threshold.

Stacked on #3448; only commit fe348253 belongs here.

What is in it

  • Graphics and mesh persistence threshold reduced from 250 ms to 50 ms.
  • Compute persistence remains at 20 ms.
  • README documents the thresholds.

Tested

  • NVIDIA GeForce RTX 4090, driver 610.88; Intel Core i9-12900K; Windows 11 Pro build 26200; Rust 1.100.0, debug and bench profiles.
  • Focused persistence-threshold test: 1 passed, 0 failed.
  • On stacked head db569c7d, .\scripts\test.ps1: 2,748 passed, 0 failed, 49 ignored; 29 GPU tests explicitly skipped for unsupported/opt-in hardware paths.

Regression run

xcl-smoke v1
commit: 0fe06eb0f05459007ebfffc67bb9983acb3a832d
gpu: NVIDIA GeForce RTX 4090
title: 6ca5cab7
seconds: 60
exit: 0x0
frames shown: 1485 (PresentX 1485)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 16909 MB
xcl-smoke v1
commit: fe348253a84a4d10dd61e3c8b2cff38cbfcfb91b
gpu: NVIDIA GeForce RTX 4090
title: 6ca5cab7
seconds: 60
exit: 0x0
frames shown: 1567 (PresentX 1567)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15015 MB

Not tested

  • Prepared-corpus activation/AOT behavior in the retail-title smoke: the staged corpus was temporarily absent and XCL_PREPARE=0, so the run exercised the runtime/JIT path only.
  • long-run disk-cap behavior, AMD, wave64, heap-window opt-in, GPU_UPLOAD heaps, or dxil.dll paths.

AI use

  • Codex with GPT-5 implemented and tested the change. The final diff and reported commands were reviewed from this worktree.
<!-- greyfinch-sync:ivall/xcl:issue:5553579892 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3449). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-29T18:08:08Z. --- Persists moderately expensive graphics and mesh driver blobs so repeat launches do not rebuild pipelines whose creation cost is significant but below the old threshold. Stacked on #3448; only commit `fe348253` belongs here. **What is in it** - Graphics and mesh persistence threshold reduced from 250 ms to 50 ms. - Compute persistence remains at 20 ms. - README documents the thresholds. **Tested** - NVIDIA GeForce RTX 4090, driver 610.88; Intel Core i9-12900K; Windows 11 Pro build 26200; Rust 1.100.0, debug and bench profiles. - Focused persistence-threshold test: 1 passed, 0 failed. - On stacked head `db569c7d`, `.\scripts\test.ps1`: 2,748 passed, 0 failed, 49 ignored; 29 GPU tests explicitly skipped for unsupported/opt-in hardware paths. **Regression run** ``` xcl-smoke v1 commit: 0fe06eb0f05459007ebfffc67bb9983acb3a832d gpu: NVIDIA GeForce RTX 4090 title: 6ca5cab7 seconds: 60 exit: 0x0 frames shown: 1485 (PresentX 1485) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 16909 MB ``` ``` xcl-smoke v1 commit: fe348253a84a4d10dd61e3c8b2cff38cbfcfb91b gpu: NVIDIA GeForce RTX 4090 title: 6ca5cab7 seconds: 60 exit: 0x0 frames shown: 1567 (PresentX 1567) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15015 MB ``` **Not tested** - Prepared-corpus activation/AOT behavior in the retail-title smoke: the staged corpus was temporarily absent and `XCL_PREPARE=0`, so the run exercised the runtime/JIT path only. - long-run disk-cap behavior, AMD, wave64, heap-window opt-in, GPU_UPLOAD heaps, or `dxil.dll` paths. **AI use** - Codex with GPT-5 implemented and tested the change. The final diff and reported commands were reviewed from this worktree.
Foniass commented 2026-11-29 21:01:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-11-29T21:01:51Z.


Post-merge review of fe348253 (now on main). The change is correct: KEEP is 50 ms (real.rs:6326), compute stays at 20 ms, and the test and README match. It ran green as part of the whole stack merged onto 0fe06eb0 (2748 passed, 0 failed, 49 ignored, 31 SKIPPED). Two notes:

  • It did not depend on #3445–#3448. Because it was stacked on them, it could only merge together with those layers.
  • The effect is not measured. By default it writes more driver blobs at runtime, for every graphics or mesh build of 50–250 ms. Neither the PR nor this review measured the extra disk use, the disk-cap behaviour, or the time saved on repeat runs.

RTX 5070 Ti (driver 32.0.16.2114), Ryzen 7 7800X3D, Windows 11 Pro 26300. This review was written by Claude Code (Claude Opus 5.5) and checked by @Foniass.

<!-- greyfinch-sync:ivall/xcl:comment:7262546809 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3449#issuecomment-7262546809). Originally posted by [Foniass](https://github.com/Foniass) on 2026-11-29T21:01:51Z. --- Post-merge review of `fe348253` (now on `main`). The change is correct: `KEEP` is 50 ms (`real.rs:6326`), compute stays at 20 ms, and the test and README match. It ran green as part of the whole stack merged onto `0fe06eb0` (2748 passed, 0 failed, 49 ignored, 31 SKIPPED). Two notes: - **It did not depend on #3445–#3448.** Because it was stacked on them, it could only merge together with those layers. - **The effect is not measured.** By default it writes more driver blobs at runtime, for every graphics or mesh build of 50–250 ms. Neither the PR nor this review measured the extra disk use, the disk-cap behaviour, or the time saved on repeat runs. RTX 5070 Ti (driver 32.0.16.2114), Ryzen 7 7800X3D, Windows 11 Pro 26300. This review was written by Claude Code (Claude Opus 5.5) and checked by @Foniass.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3449
No description provided.