[performance] Building pipelines takes a very long time #188
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?
What you see
Build pipelines shows an estimated 80 minutes. All CPU cores were at 100%. After 5+ minutes it still showed 75 minutes remaining, so the estimate appears accurate.
Building pipelines from scratch previously took ~20 minutes on Darner and other Victory forks.
After deleting
C:\Users\AppData\Local\darner\cache\pipelinesand relaunching, the process was very fast, finishing in about 10 minutes:This points to a bug in how pipeline building is handled.
Before you post
RAY TRACING in F1
Off
GPU and driver
4070S nvidia 621.47
CPU, RAM and Windows version
Ryzen 5 7600, Win 11
Darner release or commit
Built from source at commit:
dc332e0Merge PR #179: EXACT64 ordered-LDS readback test on native Wave32Settings
none
Log files attached
n/a
Are you working on a fix?
No
Thanks, that comparison pins it down. The saved pipeline library was kept across builds: pipelines of shaders an update changed are never asked for again but stayed in the file, and every load from that grown library got slower. Another player saw the same in play (a 1.6 GB library from older builds ran slower than a fresh one).
Main now starts an empty library when the saved one was written by another build's shader translator, and the first save replaces the old file (
DARNER_LIBRARY_KEEP_OLD=1keeps the old behaviour). Until a build with it reaches you, deletingcache\pipelinesafter an update, as you did, is the workaround.If you still have the log of the slow run, attaching it would confirm the load times.
Here are the two logs you asked for
I checked the cache selection in
34b0ba77e3with isolated directories on Windows. The new check works for a library under the adapter directory. An absent or different translator marker gave an empty library. The old file stayed intact until the first save, which wrote the replacement and its marker. The next open selected the replacement. DARNER_LIBRARY_KEEP_OLD=1 retained the old library.One detail for anyone testing an upgrade: if the adapter directory is empty and host-pipelines.bin exists directly in the old cache root, the existing read-only fallback still selects it without a marker. A root host-pipelines.next takes precedence if present. I confirmed this with a 1,870-byte D3D12 library containing one named synthetic compute pipeline. A fresh Microsoft WARP device reopened that pipeline by name from the selected root bytes. Moving an identical unmarked copy under the adapter directory gave an empty input.
I used the selection and replacement code from that commit with temporary files and mapped I/O disabled, followed by the separate WARP check. This identifies which file layouts the change covers. I did not time a gameplay preload or use the reporter's cache.
This should be fixed in v2026.12.03.02: a pipeline library from an older build is no longer loaded, so the preload starts from a fresh one. If it still happens there, please open a new issue with the logs from a run on the latest version (the play log from
%LOCALAPPDATA%\darner\logsandcrashes.log).