Build previously drawn pipelines once during D3D12 warmup (D3D12-WARM-BUILD-ONCE) #3150
Open
AronnoM wants to merge 2 commits from
upstream-pr/3150 into main
pull from: upstream-pr/3150
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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
ProjectLeonida/mandy!3150
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3150"
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 ubiquitarianism/leonida. Originally posted by AronnoM on 2026-12-02T14:17:27Z.
Claimed in the coordination issue as: D3D12-WARM-BUILD-ONCE
Depends on: #3071, #3143 (textual conflicts in the warmup worker code if either lands first).
What and why
The default warmup previously built pipelines in driver-cache workers and then requested them again for the persistent library. With this change,
leonida warm --usedbuilds previously drawn pipelines directly in the persistent library. Once the isolated store process confirms the write, the launcher records the entries it saved and skips their driver-cache pass. Entries that still need warming go through the existing driver-cache workers. Explicit--limit,--again, and full-archive runs retain their scheduling order.Review follow-up
Commit
968b05d40passes the resolved--jobsvalue to the library worker on both the default and limited warmup paths. The store starts at most one thread per matching pipeline record. On Windows with 20 logical processors, we observed--jobs 23reaching the child as20before this change and23afterward on both paths. The worker-count regression also covers an empty queue, a single entry with a large override, and a request smaller than the available work. Original reviewTested
GPUs tested: NVIDIA GeForce RTX 3070 8 GiB, driver 610.60, Windows 11 build 26300.
AI-assisted: Yes. OpenAI Codex (GPT-6) implementation and GPT-6.2 Sol independent read-only review.
Checklist
69cd4106cbaseImported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T14:24:49Z.
Review: COMMENTED
Reviewed
6a5e5bcdonmainat69cd4106. Both Windows-targetleonidawarm integration tests passed under Wine with synthetic pipeline records. They exercise library-first fallback after a refusal and the driver worker continuing whenslow-pipelines.txtcannot be opened. Successful persistence of a host PSO on a native Windows driver remains unverified in this run.I also combined #3071, #3143, and this PR locally. The
warm.rsconflicts were resolved with library-first scheduling, the independent stdout/stderr watchdog, and the typed save failure. The combination passed 60 CLI unit tests, both warm integration tests, and all 20 switch-documentation tests. A synthetic exit-code test also confirmed that status3is treated as a save failure only for the store worker.For the merge, pass the resolved
jobsvalue at bothstore_in_librarycall sites. Keepingjobs.min(cores)there would silently clamp an explicit--jobsvalue for library work, while #3071 preserves explicit overrides and caps the automatic default. The tested combination forwardsjobsat both sites.Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T14:59:04Z.
Verified PR #3150 (
6a5e5bcd4) merged cleanly ontomain(acc350745) on native Windows 10 x64 (Rust 1.98.1):python -I scripts/check_no_game_data.pyPASS.cargo test -p leonida --locked:leonidaunit tests (src/main.rs): 43 passed, 0 failedtests/warm.rs(new integration tests): 2 passed, 0 failed (4.13 s)tests/agility.rs,tests/census.rs,tests/settings_line.rs: 5 passed, 0 failedcargo test -p leonida-gpu --lib --locked pipeline::known::: 3 passed, 0 failed (includingstore_workers_follow_the_request_up_to_the_available_work)cargo test -p leonida-gpu --lib --locked pipeline::library::: 6 passed, 0 failedd3d12/apps/leonida/src/warm.rsalso overlaps with #3071 (RAM-capped worker count); whichever merges second will need a small merge inwarm.rs.Verdict: PASS (native Windows unit + integration tests; no game launch).
AI-assisted: yes (Antigravity).
Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T15:56:52Z.
Ran natively on Windows 11, head
968b05d40merged into currentmain(3c106eb2f, clean merge). The earlier reports in this thread were on6a5e5bcd4, so these are the first results on the current head.Suites (measured)
cargo test -p leonida --lockedtests/warm.rs= 50 passed, 0 failedcargo test -p leonida-gpu --lib --lockedcargo test -p leonida-gpu --lib --locked pipeline::cargo clippy -p leonida -p leonida-gpu --all-targets --lockedunused_mutinleonida-gpu/src/host.rs; nothing newSynthetic warm books (measured)
Each scenario ran
leonida warm --usedwith the PR test's isolation:LEONIDA_CACHE_DIRandLEONIDA_DATA_DIRset to a fresh temporary directory,LEONIDA_CONFIGunset,LEONIDA_WARM_LIBRARY=1,LEONIDA_WARM_DONE_ALL=0. Each ran 1 to 3 times in the same directory, onmainand on the merge, with the hardware adapter. All records are hand-made, so none can produce a host pipeline.mainwarm-done,warm-bad,library-donestay empty0xFFFFFFFFwalk_pipelinesbehaviour, not this PR)early-pipelines.txtknown-shaders.binwarm-bad.txt, so it is retried on every launch on both sidesFor the garbage entry I also ran the store step alone (
warm --these 0 --store --jobs 1, same isolation). Both binaries logshader does not translate … not a DXBC containerand printmade 0 <ms> 0: 326 ms on the PR, 347 ms onmain. Onmainthe store then printssavingwith nothing kept; the PR skips the save (any_keptfalse).Cost when nothing can be kept (measured, wall time per launch, debug-profile binaries, hardware adapter)
mainmainN (driver); PR N (library) + N (driver); 0 kept on bothThe PR adds a fixed ~0.5 s per launch when no entry is kept, whatever the count. By reading, that is the extra
--storechild process that runs before the driver workers. I did not time its parts. Every entry still reaches the driver workers afterwards. When nothing is kept, the store exits 0 without writing, andlibrary-failed.txtis not touched. The ~0.5 s is small next to the 160-pipeline savings in the PR body, but it is paid on every launch where no used entry can be kept.Reading only
store_in_libraryreturns early. Because ofif library_first { return Ok(()) }, the old library pass is then skipped too, so that fingerprint never gets a library.mainbehaves the same, since its library pass checks the same count.Workerfailure, every entry the store reported as kept before the crash is dropped (HashMap::new()), so all of them go back to the driver workers. That is correct, because the library was never saved.git merge-treereports 3 hunks inapps/leonida/src/warm.rs(imports,childsignature, the wait loop). #3071 is still open.Not checked: a real pipeline kept in and reloaded from the library (no container fixture without game data), a forced store crash or save failure (exit 3) on this head, WARP, the debug layer, any game run.
GPUs tested: one NVIDIA desktop card.
AI-assisted: yes (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T16:00:59Z.
Checked here: the pull request's tests pass, and a real
warmrun with its build works end to end. The checker'sgreen failsis this machine, not your change.Both lines are true and neither is about this branch being broken:
red does not build- the new tests callstore_workers, which the change introduces, so there is no red side to compare. Same shape as any PR whose tests need the new code.green fails- the-p leonida-gpuhalf runs on this machine's integrated Radeon, anddescriptor::host::tests::views_are_made_beside_the_heap_and_copied_infails there because the device tests still make their device withD3D12CreateDevice(None, ..)(#2995 fixes that).cargo test -p leonida-gpu --libonmainhere is 695 passed, 1 failed, and that is the one.Isolated, the green side is green (
cargo test -p leonida --tests warm, head968b05d40):And a real run,
leonida warmwith this build on this machine's own book (83,563 pipelines known, a copy of a real cache):0 ended their processin both, and the library collects what was made - which is what "build once, then request from the library" has to look like from outside.What I am not claiming: a speed-up. I ran 40 and 200 with this build and 40 with #3143's build on a different day of the same cache, and different limits choose different pipelines: 3.0 ms against 7.4 ms median is not a controlled comparison, and p90 is dominated by whichever heavy pipeline the limit happened to include.
Not covered: the in-game effect of building once, and the conflict with #3143 that the body already names.
AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:11:45Z.
Reviewed #3150 (code review only, not built here:
leonida warmis Windows-only). The change does what it says, and three Windows runs on or just before this head agree. One nit, and an overlap with #3143 to settle first.968b05d40cmain45dc41f95cgit merge-tree); merge base69cd4106ce, 38 commits behindpython -I tools/d3d12_switches.py --check d3d12/docs/switches.md: exit 03c106eb2f), fiestorra (this head: tests plus a realwarmof 40 and 200 pipelines,0 ended their process), lixonik (6a5e5bcd4, the parent)Review
run(d3d12/apps/leonida/src/warm.rs:83-111on the head): for the launcher's case (used && !again && limit.is_none()and the library store on), the previously drawn pipelines go into the library first, and only what the library did not keep goes to the isolated driver workers. A refusal, crash or save failure falls back to the old path instead of losing pipelines. That matches the cause in the description (the driver's own cache can drop work between processes; the game loads from the library).store_thesesaves only when something was kept and exits withSAVE_FAILED(3) whenknown::save_library()fails.store_in_librarytreats that asChildFailure::Saveand does not write it to the "failed twice" file, so an I/O failure does not disable the library for that translation. Good distinction.runresolvesjobs.unwrap_or(cores * 2 / 3).max(1)(:75) and passes it to the child as--jobs, andstore_thesefalls back to the same* 2 / 3.store_thesedoes not clampjobs(:367), so a manualleonida warm --these ... --store --jobs 0would askknown::storefor 0 threads. The launcher path always passes at least 1..max(1)there would matchrun.scripts/red_green.pyreports "red does not build" because the new tests call the newstore_workers. That is expected for this kind of change; the realwarmruns above are the behavioural evidence.Overlap. The description and fiestorra both name a conflict with #3143 (
warm: distinguish compiler diagnostics from inactivity timeouts, open, same file). Whichever lands second needs a rebase and a rerun ofcargo test -p leonida --tests warm.Verdict: ready (nit optional). Not a render-path change, so no in-game gate was requested.
AI-assisted: Claude Opus 5.5 (Claude Code), review only.
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-03T00:16:11Z.
VERIFY-3150 — Windows nativo:
red then greenen el número de workers del store968b05d40—warm.rs(4 lines),pipeline/known.rs(+14)Ran at the head
Negative control (synthetic): I dropped the upper bound (
requested.max(1).min(entries)→requested.max(1)), rebuilt and ran:It bites.
What the change is: three things at once, and the first is the point of the title — an explicit worker count is honoured on both library paths (
jobs.min(cores)removed: a user who says-j 32on a 8-core machine gets 32, because the default is what caps by cores, not the request), and the store threads are the request bounded by the work there is (store_workers(requested, entries) = requested.max(1).min(entries)).The two bounds are different bounds and that is the whole design: a request is capped by the work (never more threads than entries) but not by the CPU — because the cap by CPU belongs to
default_jobs, which is what someone gets when they do not say.And keeping
max(1)inside the same function is the part that saves the zero case:-j 0or an empty work list must not spawn nothing and hang.What I could not test
-jabove the core count: it needs the title's toolchain; the tests drive the function.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-03T00:21:43Z.
Review: COMMENTED
Tested the merge-order overlap with #3143 on current
main(d5b30be1), using #3150 at968b05d4and #3143 atb6023d1d. The conflict is confined toapps/leonida/src/warm.rs. In a scratch merge I kept #3150’s library-first ordering and typedChildFailure::Save, and carried the store-worker flag into #3143’s process/pipe watcher.That distinction matters for fallback. In a synthetic child test the same exit code 3 reports
Savefor a library store worker and an ordinary worker error for a driver worker. A save failure can therefore fall back without adding the fingerprint to the library failure list. The stack-overflow, final stderr, quiet timeout, inherited stderr, and successful-exit controls still pass.I cross-built the Windows MSVC test targets and ran them under Wine. All 11 warm unit tests passed, including the exit-code distinction, and both of #3150’s integration tests passed. Those exercise library-first fallback and the diagnostic-file failure with hand-made pipeline records. The switches registry also passes. This was a local integration check with synthetic data. AI-assisted.
Imported from ubiquitarianism/leonida. Originally posted by AronnoM on 2026-12-03T13:43:35Z.
Here's another data point for this PR, in the case it matters most: the warm-up right after an update.
After a translator or driver update the fingerprint changes, so
library-done.txtandwarm-done.txthave nothing for it, and everything earlier runs drew with gets warmed again. To recreate that, I took a copy of a real cache (88,654 known pipelines, 3,870 drawn with, 363 MB library), emptied those two files, restored the library, and ranleonida warm --usedwith 13 workers and the play script's environment.b053a1813, the two passes as today968b05d40With this PR all 3,870 went through the library step in 206 s, and every one ended up in the library. Nothing was refused and nothing crashed.
I was half expecting the single store process to choke on the misses by compiling them one at a time. It didn't: per-pipeline times added up to 2,625 s in 207 s of wall time, so about 13 were going at once.
A few things to keep in mind:
69cd4106c), so a few shaders may translate differently. I didn't count how many of the 3,870 were loaded from the library and how many were compiled, so compare the wall times, not the pipeline-by-pipeline split.RTX 3070 8 GB, driver 610.60, i7-12700F, 16 GB, Windows 11 26300. Measured with AI help (Claude Code); the numbers are straight from the runs' output.
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.