[performance] Building pipelines takes a very long time #188

Closed
opened 2026-12-04 02:49:57 +00:00 by Rockstar · 4 comments

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.

image

Building pipelines from scratch previously took ~20 minutes on Darner and other Victory forks.

After deleting C:\Users\AppData\Local\darner\cache\pipelines and relaunching, the process was very fast, finishing in about 10 minutes:

image

This points to a bug in how pipeline building is handled.

Before you post

  • I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this.
  • This issue is about one problem.
  • I verified the game files and run no mods.

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: dc332e0 Merge PR #179: EXACT64 ordered-LDS readback test on native Wave32

Settings

none

Log files attached

n/a

Are you working on a fix?

No

### 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. ![image](/attachments/39b4edc9-56af-4270-b481-e1b4d0355a76) Building pipelines from scratch previously took ~20 minutes on Darner and other Victory forks. After deleting `C:\Users\AppData\Local\darner\cache\pipelines` and relaunching, the process was very fast, finishing in about 10 minutes: ![image](/attachments/ec4bf9e2-d9b5-496a-b6da-4ead297aa5b8) This points to a bug in how pipeline building is handled. ### Before you post - [x] I read the pinned known-issues thread at the top of the issue list (https://git.gtahub.st/TrustNo1/Darner/issues). If my problem is listed there, I reply in that thread instead of opening this. - [x] This issue is about one problem. - [x] I verified the game files and run no mods. ### 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: dc332e0 Merge PR #179: EXACT64 ordered-LDS readback test on native Wave32 ### Settings none ### Log files attached n/a ### Are you working on a fix? No
Owner

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=1 keeps the old behaviour). Until a build with it reaches you, deleting cache\pipelines after 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.

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=1` keeps the old behaviour). Until a build with it reaches you, deleting `cache\pipelines` after 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.
Author

Here are the two logs you asked for

Here are the two logs you asked for

I checked the cache selection in 34b0ba77e3 with 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.

I checked the cache selection in 34b0ba77e364 with 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.
Owner

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\logs and crashes.log).

This should be fixed in [v2026.12.03.02](https://git.gtahub.st/TrustNo1/Darner/releases/tag/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\logs` and `crashes.log`).
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
TrustNo1/Darner#188
No description provided.