Game: NVIDIA pipeline cache rebuilds on every launch on Windows stable #2316

Open
opened 2026-11-22 23:56:09 +00:00 by BeanBot · 7 comments
Member

Reported on Discord

Longshot version

Longshot v1.2.0; game build v3.1.1 (as reported). The submitted game log confirms Longshot v3.1.1 (source 63363428).

Channel

Stable release.

What happened

The game rebuilds the pipeline cache on every launch. The reporter says the game itself is launched repeatedly; whether the same installed build is used each time is not confirmed. Expected: pipelines/cache from the previous launch are reused rather than rebuilt.

Where in the game

Startup, while building/loading the pipeline cache.

How often

Reported on every launch.

Graphics card and driver version

ASUS TUF NVIDIA GeForce RTX 4080; driver 621.01.

CPU, RAM and operating system

Windows 11 Pro, latest updates (exact build not supplied). Log reports 64,692 MB RAM. CPU model and exact Windows build unknown.

Logs and reproduction details

The reporter initially attached launcher.log and launcher.1.log; these are launcher logs and do not show game pipeline/cache behavior. They later supplied two game logs, longshot_log.2.txt and longshot_log.4.txt. The readable game log (longshot_log.2.txt) shows the v3.1.1 build, reads longshot_vk_pipelines.bin (about 1.94 GB), merges 9 play cache files, and precompiles 38,020 noted pipelines plus 5,004 compute pipelines in 217.6 seconds. It reports NVIDIA's driver shader-cache limit as “not known”; at start, NVIDIA GLCache is 348 MB. The cache file is not skipped for low RAM (the machine reports about 64 GB). This single readable log shows a substantial precompile but cannot establish what differs between consecutive starts. The other game log is 36 MB and could not be read by the attachment reader, so its corresponding cache messages are not yet extracted.

Still needed: identify which of the two game logs is from each consecutive launch and compare their startup/cache messages (especially whether the same pipeline cache file is loaded and whether the 38,020 + 5,004 precompile repeats); exact Windows build and CPU model. Clarify whether the same game build is used and whether a rebuild or driver update occurred between starts.

Longshot#1551 reports pipeline-cache reuse failure on Windows ARM/Adreno, a different GPU and setup; this report does not establish the same cause. PR #2125 (first in nightly-738) reads/logs NVIDIA's shader-cache limit and reads the pipeline cache file when NVIDIA's limit is under 4 GB; the supplied log says the limit is unknown and the machine has 64 GB RAM, so that specific low-limit handling is not shown as applicable here. PR #1418 (first in nightly-447) fixes repeated full precompilation after an update that changes no shader; whether this report matches that condition is not established by the available logs.

Additional report from Discord (Intel Arc 140V)

A separate reporter says on 2026-11-28 that the latest nightly seems to have fixed Arc 140V graphics artifacts and crashes, but shader preparation runs on every start and takes about 30 minutes. They say only longshot_update.log appeared to update, and attached that file. It is a builder/update log, not the game's logs/longshot_log.txt; it records nightly-895-22d0d200, a successful build, pipeline cache read as 2,156,117 KB, and 37,824 noted pipelines found with none built during this shader-preparation step (about 8.2 seconds). This does not demonstrate a repeated 30-minute game-start compilation and is not the NVIDIA issue's system; obtain two consecutive game logs and the actual Arc model/driver before treating it as the same problem. Keep this report separate from the NVIDIA finding pending evidence.

Reported on [Discord](https://discord.com/channels/1569849200047427645/1574210525859151982/1574210525859151982) ### Longshot version Longshot v1.2.0; game build v3.1.1 (as reported). The submitted game log confirms Longshot v3.1.1 (source 63363428). ### Channel Stable release. ### What happened The game rebuilds the pipeline cache on every launch. The reporter says the game itself is launched repeatedly; whether the same installed build is used each time is not confirmed. Expected: pipelines/cache from the previous launch are reused rather than rebuilt. ### Where in the game Startup, while building/loading the pipeline cache. ### How often Reported on every launch. ### Graphics card and driver version ASUS TUF NVIDIA GeForce RTX 4080; driver 621.01. ### CPU, RAM and operating system Windows 11 Pro, latest updates (exact build not supplied). Log reports 64,692 MB RAM. CPU model and exact Windows build unknown. ### Logs and reproduction details The reporter initially attached `launcher.log` and `launcher.1.log`; these are launcher logs and do not show game pipeline/cache behavior. They later supplied two game logs, `longshot_log.2.txt` and `longshot_log.4.txt`. The readable game log (`longshot_log.2.txt`) shows the v3.1.1 build, reads `longshot_vk_pipelines.bin` (about 1.94 GB), merges 9 play cache files, and precompiles 38,020 noted pipelines plus 5,004 compute pipelines in 217.6 seconds. It reports NVIDIA's driver shader-cache limit as “not known”; at start, NVIDIA GLCache is 348 MB. The cache file is not skipped for low RAM (the machine reports about 64 GB). This single readable log shows a substantial precompile but cannot establish what differs between consecutive starts. The other game log is 36 MB and could not be read by the attachment reader, so its corresponding cache messages are not yet extracted. Still needed: identify which of the two game logs is from each consecutive launch and compare their startup/cache messages (especially whether the same pipeline cache file is loaded and whether the 38,020 + 5,004 precompile repeats); exact Windows build and CPU model. Clarify whether the same game build is used and whether a rebuild or driver update occurred between starts. ### Related Longshot#1551 reports pipeline-cache reuse failure on Windows ARM/Adreno, a different GPU and setup; this report does not establish the same cause. PR #2125 (first in nightly-738) reads/logs NVIDIA's shader-cache limit and reads the pipeline cache file when NVIDIA's limit is under 4 GB; the supplied log says the limit is unknown and the machine has 64 GB RAM, so that specific low-limit handling is not shown as applicable here. PR #1418 (first in nightly-447) fixes repeated full precompilation after an update that changes no shader; whether this report matches that condition is not established by the available logs. ### Additional report from Discord (Intel Arc 140V) A separate reporter says on 2026-11-28 that the latest nightly seems to have fixed Arc 140V graphics artifacts and crashes, but shader preparation runs on every start and takes about 30 minutes. They say only `longshot_update.log` appeared to update, and attached that file. It is a **builder/update log**, not the game's `logs/longshot_log.txt`; it records nightly-895-22d0d200, a successful build, pipeline cache read as 2,156,117 KB, and 37,824 noted pipelines found with none built during this shader-preparation step (about 8.2 seconds). This does not demonstrate a repeated 30-minute game-start compilation and is not the NVIDIA issue's system; obtain two consecutive game logs and the actual Arc model/driver before treating it as the same problem. Keep this report separate from the NVIDIA finding pending evidence.
Author
Member

Files from the Discord report:

Files from the Discord report: - [launcher.log](https://git.magicbean.dev/attachments/fc28f85a-b24f-45b1-bb96-80a752b08ebe) - [launcher.1.log](https://git.magicbean.dev/attachments/e20cee04-864d-4d54-a66b-9622aed45dfa)
Author
Member

Updated with more from Discord: Added the two game logs, extracted v3.1.1/cache details from the readable log, and distinguished the applicable limits of the merged fixes.

Files:

Updated with more from [Discord](https://discord.com/channels/1569849200047427645/1574210525859151982/1574212923939750011): Added the two game logs, extracted v3.1.1/cache details from the readable log, and distinguished the applicable limits of the merged fixes. Files: - [longshot_log.2.txt](https://git.magicbean.dev/attachments/9d6af33c-222e-40f7-9669-3db927e28342)
Contributor

I tried this on an RTX 3080 (NVIDIA 621.14, Windows 11, 64 GB) with a build of the same source as the reporter's v3.1.1 (63363428), and couldn't reproduce it yet.

Here: a full shader preparation, as the launcher runs it (--prepare-shaders --compile-shaders most), built 38,095 noted pipelines in 245 s and wrote a 1.26 GB pipeline cache. The next start, with the preparation on as in release builds, built the same 38,095 pipelines from that cache in 2.4 s. After a second preparation with all the cache was 1.55 GB, and starts were still a few seconds.

In the reporter's longshot_log.2.txt:

  • The 1.9 GB longshot_vk_pipelines.bin was read, and the program cache was kept (47,867 program keys): nothing was translated again.
  • About 14,600 of the 37,649 noted pipelines were done within the first 10 s; the rest came at about 100 a second, 217.6 s in all.
  • After that, the pipeline cache not written: nothing new since it was read or last written (1895.2 MB): the driver's pipeline cache did not grow by a single byte while those ~23,000 pipelines were built. If the driver had compiled them, they would have been added to it. So they look like cache hits that were slow, not compiles, and the time probably went somewhere outside the driver's compiler.
  • Later in play: 519 listed pipelines were in no cache when their programs were loaded in this session (over 500): ... the next start loads every listed program before the title again.

Three things would tell the explanations apart, from the reporter:

  1. Two starts in a row, closing the game normally in between, and both longshot_log.txt files (the game's logs/ folder keeps the last few as longshot_log.1.txt, .2, ...). Each one's vk: noted pipelines: ... in N s lines and its vk: precompile: lines are the ones to compare.
  2. What kind of drive F: is (the game folder, with its cache/), and C: (the shader store in %LOCALAPPDATA%\Longshot\shaders): an SSD or a hard disk.
  3. During the "Preparing shaders" screen, Task Manager's Performance tab: is the CPU near 100% or the disk near 100%?

Not claimed: I'm not working on it now.

I tried this on an RTX 3080 (NVIDIA 621.14, Windows 11, 64 GB) with a build of the same source as the reporter's v3.1.1 (63363428), and couldn't reproduce it yet. **Here:** a full shader preparation, as the launcher runs it (`--prepare-shaders --compile-shaders most`), built 38,095 noted pipelines in 245 s and wrote a 1.26 GB pipeline cache. The next start, with the preparation on as in release builds, built the same 38,095 pipelines from that cache in **2.4 s**. After a second preparation with `all` the cache was 1.55 GB, and starts were still a few seconds. **In the reporter's `longshot_log.2.txt`:** - The 1.9 GB `longshot_vk_pipelines.bin` was read, and the program cache was kept (47,867 program keys): nothing was translated again. - About 14,600 of the 37,649 noted pipelines were done within the first 10 s; the rest came at about 100 a second, 217.6 s in all. - After that, `the pipeline cache not written: nothing new since it was read or last written (1895.2 MB)`: the driver's pipeline cache did not grow by a single byte while those ~23,000 pipelines were built. If the driver had compiled them, they would have been added to it. So they look like cache hits that were slow, not compiles, and the time probably went somewhere outside the driver's compiler. - Later in play: `519 listed pipelines were in no cache when their programs were loaded in this session (over 500): ... the next start loads every listed program before the title again`. Three things would tell the explanations apart, from the reporter: 1. Two starts in a row, closing the game normally in between, and both `longshot_log.txt` files (the game's `logs/` folder keeps the last few as `longshot_log.1.txt`, `.2`, ...). Each one's `vk: noted pipelines: ... in N s` lines and its `vk: precompile:` lines are the ones to compare. 2. What kind of drive `F:` is (the game folder, with its `cache/`), and `C:` (the shader store in `%LOCALAPPDATA%\Longshot\shaders`): an SSD or a hard disk. 3. During the "Preparing shaders" screen, Task Manager's Performance tab: is the CPU near 100% or the disk near 100%? Not claimed: I'm not working on it now.

If it can help, I have the same issue on Linux, Fedora 45 with a RTX 3080TI

Usually they didn't build all the time and loaded sometimes very fast, but now they rebuild when I open the game and it takes 10+min.

They can rebuild even if I didn't reboot the OS in between sessions.

If it can help, I have the same issue on Linux, Fedora 45 with a RTX 3080TI Usually they didn't build all the time and loaded sometimes very fast, but now they rebuild when I open the game and it takes 10+min. They can rebuild even if I didn't reboot the OS in between sessions.
Contributor

I tried to reproduce this on current main (a8f6b4da) and couldn't with the default settings. I also read #2527's log, which turns out to be a different case.

This PC: Windows 11, RTX 4070, 63 GB RAM (the report's PC had 64 GB). Two starts in a row of a base built with shader preparation, each closed cleanly.

This report, v3.1.1 main, RTX 4070
NVIDIA's cache limit NVIDIA's limit not known NVIDIA's holds at most 10240 MB (read from the driver's settings)
Pipeline cache file read, 1.9 GB read, 1.26 GB
Pipelines loaded all at start at their create calls (RX_VK_LOAD=create, the default where the GPU has mesh shaders)
Start's precompile 38,020 pipelines in 217.6 s, then nothing new since it was read nothing to build, 0.5 s; start-up: the shaders took 2.3 s with RX_VK_LOAD=start

The 217.6 s here came with a full cache file that the start added nothing to, so the driver compiled pipelines the file already held. For scale, this PC's shader preparation compiled the same ~38,000 pipelines from nothing in 63.8 s. NVIDIA's cache limit wasn't known in v3.1.1. Since then the game reads it, and the launcher raises a small one to 10 GB (LongshotLauncher #243, from nightly-172). The 1 GB default is the known cause of "everything compiles again" (gpu/vk/nvidia_cache_limit.h).

#2527 (v3.2.0, RTX 5070) is a different case. Both caches were empty when that start began:

vk: driver shader cache at the start: 0 MB (...\NVIDIA\GLCache 0 MB)
vk: pipeline cache ...\cache/longshot_vk_pipelines.bin (0 KB)
vk: precompile: 38223 noted pipelines ... on 16 threads in 352.7 s
vk: pipeline cache saved (1219399 KB)

So that start compiled everything for real, then saved a full cache. The game saves the file by writing a temporary and renaming it over the old one (pipeline_cache_file.h), so a close or crash during the save leaves the old file in place, not an empty one. An empty file at the start means a fresh game folder. A new build or an update without shader preparation gives one, and an rc install updates often. A GLCache of 0 MB means NVIDIA's own cache was emptied too, for example by Windows' Disk Cleanup or Storage Sense ("DirectX Shader Cache"), or a clean driver install.

What would settle both: two logs from two launches in a row, with no update or rebuild between them, on v3.2.0 or a current nightly. On the second launch, check these lines:

  • pipeline cache ... (N KB): the file's size. 0 KB means it was replaced since the last launch.
  • driver shader cache at the start: N MB: NVIDIA's own cache. 0 MB means it was emptied since the last launch.
  • driver shader cache: NVIDIA's holds at most N MB: under 4096 is too small.
  • precompile: ... in N s.

If the second launch shows full caches and still takes minutes, that's a real bug and I'll take it. Until then I'm not claiming this one.

I tried to reproduce this on current `main` (a8f6b4da) and couldn't with the default settings. I also read #2527's log, which turns out to be a different case. **This PC:** Windows 11, RTX 4070, 63 GB RAM (the report's PC had 64 GB). Two starts in a row of a base built with shader preparation, each closed cleanly. | | This report, v3.1.1 | `main`, RTX 4070 | |---|---|---| | NVIDIA's cache limit | `NVIDIA's limit not known` | `NVIDIA's holds at most 10240 MB` (read from the driver's settings) | | Pipeline cache file | read, 1.9 GB | read, 1.26 GB | | Pipelines loaded | all at start | at their create calls (`RX_VK_LOAD=create`, the default where the GPU has mesh shaders) | | Start's precompile | **38,020 pipelines in 217.6 s**, then `nothing new since it was read` | **nothing to build, 0.5 s**; `start-up: the shaders took 2.3 s` with `RX_VK_LOAD=start` | The 217.6 s here came with a full cache file that the start added nothing to, so the driver compiled pipelines the file already held. For scale, this PC's shader preparation compiled the same ~38,000 pipelines from nothing in 63.8 s. NVIDIA's cache limit wasn't known in v3.1.1. Since then the game reads it, and the launcher raises a small one to 10 GB (LongshotLauncher #243, from nightly-172). The 1 GB default is the known cause of "everything compiles again" (`gpu/vk/nvidia_cache_limit.h`). **#2527 (v3.2.0, RTX 5070) is a different case. Both caches were empty when that start began:** ``` vk: driver shader cache at the start: 0 MB (...\NVIDIA\GLCache 0 MB) vk: pipeline cache ...\cache/longshot_vk_pipelines.bin (0 KB) vk: precompile: 38223 noted pipelines ... on 16 threads in 352.7 s vk: pipeline cache saved (1219399 KB) ``` So that start compiled everything for real, then saved a full cache. The game saves the file by writing a temporary and renaming it over the old one (`pipeline_cache_file.h`), so a close or crash during the save leaves the old file in place, not an empty one. An empty file at the start means a fresh game folder. A new build or an update without shader preparation gives one, and an `rc` install updates often. A `GLCache` of 0 MB means NVIDIA's own cache was emptied too, for example by Windows' Disk Cleanup or Storage Sense ("DirectX Shader Cache"), or a clean driver install. **What would settle both:** two logs from two launches in a row, with no update or rebuild between them, on v3.2.0 or a current nightly. On the second launch, check these lines: - `pipeline cache ... (N KB)`: the file's size. 0 KB means it was replaced since the last launch. - `driver shader cache at the start: N MB`: NVIDIA's own cache. 0 MB means it was emptied since the last launch. - `driver shader cache: NVIDIA's holds at most N MB`: under 4096 is too small. - `precompile: ... in N s`. If the second launch shows full caches and still takes minutes, that's a real bug and I'll take it. Until then I'm not claiming this one.
Author
Member

From Discord:

The reporter asks whether longshot_update.log is the log to inspect, saying it is the only log that updates on the next game start. Please clarify that the relevant file is longshot_log.txt in the game folder's logs/ directory (older runs may be retained as .1, .2, etc.), not the launcher's update log. They report repeated shader rebuilding taking about 30 minutes on Intel Arc 140V; the NVIDIA issue may not match their case, so collect two consecutive game logs and the cache details requested in the issue.

From [Discord](https://discord.com/channels/1569849200047427645/1570937947505823793/1574935172392947874): The reporter asks whether `longshot_update.log` is the log to inspect, saying it is the only log that updates on the next game start. Please clarify that the relevant file is `longshot_log.txt` in the game folder's `logs/` directory (older runs may be retained as `.1`, `.2`, etc.), not the launcher's update log. They report repeated shader rebuilding taking about 30 minutes on Intel Arc 140V; the NVIDIA issue may not match their case, so collect two consecutive game logs and the cache details requested in the issue.
Author
Member

Updated with more from Discord: Clarified the new Intel Arc attachment is a launcher/builder log from nightly 895 and does not establish a match to the NVIDIA cache issue; documented the specific cache/precompile lines and requested game logs.

Updated with more from [Discord](https://discord.com/channels/1569849200047427645/1570937947505823793/1576278290367258805): Clarified the new Intel Arc attachment is a launcher/builder log from nightly 895 and does not establish a match to the NVIDIA cache issue; documented the specific cache/precompile lines and requested game logs.
Sign in to join this conversation.
No milestone
No project
No assignees
4 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
MagicBeanDev/Longshot#2316
No description provided.