[Bug]: After a world detail change the AMD driver's shader cache starts empty, but pipeline warm-up skips everything, so the session freezes for up to 11 s #179

Open
opened 2026-12-03 14:47:12 +00:00 by Nahkaisukki · 0 comments
Nahkaisukki commented 2026-12-03 14:47:12 +00:00 (Migrated from github.com)
Contributor

Imported from eikkapine/jaxe. Originally posted by Nahkaisukki on 2026-12-03T14:47:12Z.


Hardware & OS: Ryzen 7 7800X3D | RX 9070 XT 16 GB (RDNA4, driver 32.0.32029.2010) | 64 GB RAM | Windows 11 build 26300 | NVMe | 24 GB pagefile (system managed)
Version: release v2026.12.03.1 via jaxe Launcher.cmd, "Compile shaders first" On
Settings: 1440p, Series X profile, FSR 4, frame generation off (native FPS), Locked 30

I analysed my jaxe logs with help from Claude (an AI assistant). The numbers come straight from the log lines and frame-time files, and the conclusions were checked against the jaxe source. Guesses are labelled as guesses. Paths and personal details were removed, so raw logs aren't attached, but I can share cleaned excerpts if you need them.

The launcher has two local additions that don't change any game setting: a button that runs jaxe.exe warm --again --used, and new colours. All sessions below ran the official release jaxe.exe.

What happened

In 3 of my 12 sessions in one day, the AMD driver's DX12 shader cache answered almost none of the pipelines at startup, even though jaxe's own records said everything was compiled. The "Compile shaders first" step (jaxe.exe warm) skipped every pipeline listed in warm-done.txt, so the game compiled about 4,000 pipelines during play. The first minutes had frames of up to 10–11 seconds. Each time, the next session was normal again.

Cold 1 Warm after it Cold 2 Warm after it Cold 3 Warm after it
Host pipeline library at start (loaded= of early=) 121 of 4,390 3,950 of 4,450 198 of 4,562 4,043 of 4,563 89 of 4,662 4,159 of 4,666
slow_this_run at the end (pipelines of 1 s+) 651 15 394 7 628 0
Compute dispatches that waited for their pipeline 144 (105 made=false), 49 s in all 0 95 (76 made=false), 34 s in all 20 114 (91 made=false), 40 s in all 0
Gameplay frames over 1 s / over 250 ms 3 / 253 2 / 23 8 / 66 1 / 30 6 / 112 1 / 4
Longest frame 10,005 ms 3,402 ms 11,048 ms 2,757 ms 10,131 ms 2,453 ms

There was no driver, DirectX or Windows update during the day. An older jaxe build showed the same thing twice the day before (loaded=128 of 4,136 with slow_this_run=416, and 716 of 4,401 with 152).

Pattern (all 12 sessions, not proven)

Each cold session was the first session at a world detail level (JAXE_LOD_SCALE) that had not been used before in that install folder:

  • Cold 1: first session at 0.5 (before it, only 1.0 had been used).
  • Cold 2: first session at 0.75. Other settings changed at the same time (frame generation off, FSR quality, JAXE_WIDE_THREADS=8).
  • Cold 3: first session at 0.5 after I moved the install to a new folder.

Sessions that changed other settings stayed warm: resolution (1080p to 1440p), Series S to Series X, frame generation on, ray tracing on, FSR quality, JAXE_HELPER_PRIORITY. Sessions that went back to a level already used in that folder also stayed warm (1.0 again after 0.5; 0.75 again after 0.5). I don't know why the world detail level would change what the driver's cache can answer. It may be the pipelines the early list starts first, or something the driver keys on. But the pattern fits all 12 sessions.

Related observation from %LOCALAPPDATA%\AMD\DxcCache: the cache files are named <A>.<B>.<C>.<D>.<n>.parc. <A> follows the executable's path or name: a copy of the same exe run as jaxe-orig.exe from the same folder got a new, empty cache, while a local rebuild of the same source, still named jaxe.exe, kept the existing one. Moving the install folder may therefore also start a new cache.

Workaround

jaxe.exe warm --again --used before playing remakes every pipeline earlier sessions used, whatever warm-done.txt says (27 s for 4,664 pipelines when the driver cache is warm; longer when it is cold). My launcher now does this automatically when world detail or advanced switches change.

Suggestions

  1. At startup the host pipeline library already knows loaded against early. When that ratio is very low (2–4% here against the usual 89%), log a clear warning naming the fix. Or start the early pipelines at higher priority before the first frames.
  2. Or make warm notice a cold driver cache: for example, time a sample of "done" pipelines, and if most take far longer than a cache hit, treat the list as stale and remake them all.
  3. If world detail changes really matter to the driver cache, the launcher could run the rebuild itself when that setting changes.
  4. Mention in the docs that renaming or moving jaxe.exe may start a new driver cache.

Logs (timestamps removed)

Cold session, first and last library save:
INFO jaxe_gpu::pipeline::library: host pipeline library saved bytes=0 early=4562 made=0 loaded=198 started_early=2318 retried=0 made_on_retry=0 slow_this_run=1 new_static_samplers=0
INFO jaxe_gpu::pipeline::library: host pipeline library saved bytes=0 early=4562 made=0 loaded=4055 started_early=4058 retried=0 made_on_retry=0 slow_this_run=394 new_static_samplers=0

Cold session, waits:
INFO jaxe_gpu::pipeline::make: a compute dispatch waited for its host pipeline (JAXE_COMPUTE_WAIT_MS=0: off) ms=400 made=false shaders=[compute 19e215b47ff9112a]
INFO jaxe_gpu::pipeline::make: a pass over the screen was waited for (JAXE_SCREEN_WAIT_MS=0: dropped past half a second a frame) ms=9998 made=false shaders=[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35]

Warm session, for comparison:
INFO jaxe_gpu::pipeline::library: host pipeline library saved bytes=569104 early=4666 made=1 loaded=4159 started_early=4162 retried=0 made_on_retry=0 slow_this_run=0 new_static_samplers=0
<!-- greyfinch-sync:eikkapine/jaxe:issue:6771187420 --> Imported from [eikkapine/jaxe](https://github.com/eikkapine/jaxe/issues/179). Originally posted by [Nahkaisukki](https://github.com/Nahkaisukki) on 2026-12-03T14:47:12Z. --- **Hardware & OS:** Ryzen 7 7800X3D | RX 9070 XT 16 GB (RDNA4, driver 32.0.32029.2010) | 64 GB RAM | Windows 11 build 26300 | NVMe | 24 GB pagefile (system managed) **Version:** release v2026.12.03.1 via `jaxe Launcher.cmd`, "Compile shaders first" On **Settings:** 1440p, Series X profile, FSR 4, frame generation off (native FPS), Locked 30 I analysed my jaxe logs with help from Claude (an AI assistant). The numbers come straight from the log lines and frame-time files, and the conclusions were checked against the jaxe source. Guesses are labelled as guesses. Paths and personal details were removed, so raw logs aren't attached, but I can share cleaned excerpts if you need them. The launcher has two local additions that don't change any game setting: a button that runs `jaxe.exe warm --again --used`, and new colours. All sessions below ran the official release `jaxe.exe`. ### What happened In 3 of my 12 sessions in one day, the AMD driver's DX12 shader cache answered almost none of the pipelines at startup, even though jaxe's own records said everything was compiled. The "Compile shaders first" step (`jaxe.exe warm`) skipped every pipeline listed in `warm-done.txt`, so the game compiled about 4,000 pipelines during play. The first minutes had frames of up to 10–11 seconds. Each time, the next session was normal again. | | Cold 1 | Warm after it | Cold 2 | Warm after it | Cold 3 | Warm after it | |---|---|---|---|---|---|---| | Host pipeline library at start (`loaded=` of `early=`) | 121 of 4,390 | 3,950 of 4,450 | 198 of 4,562 | 4,043 of 4,563 | 89 of 4,662 | 4,159 of 4,666 | | `slow_this_run` at the end (pipelines of 1 s+) | 651 | 15 | 394 | 7 | 628 | 0 | | Compute dispatches that waited for their pipeline | 144 (105 `made=false`), 49 s in all | 0 | 95 (76 `made=false`), 34 s in all | 20 | 114 (91 `made=false`), 40 s in all | 0 | | Gameplay frames over 1 s / over 250 ms | 3 / 253 | 2 / 23 | 8 / 66 | 1 / 30 | 6 / 112 | 1 / 4 | | Longest frame | 10,005 ms | 3,402 ms | 11,048 ms | 2,757 ms | 10,131 ms | 2,453 ms | There was no driver, DirectX or Windows update during the day. An older jaxe build showed the same thing twice the day before (`loaded=128` of 4,136 with `slow_this_run=416`, and 716 of 4,401 with 152). ### Pattern (all 12 sessions, not proven) Each cold session was the **first session at a world detail level (`JAXE_LOD_SCALE`) that had not been used before in that install folder**: - Cold 1: first session at 0.5 (before it, only 1.0 had been used). - Cold 2: first session at 0.75. Other settings changed at the same time (frame generation off, FSR quality, `JAXE_WIDE_THREADS=8`). - Cold 3: first session at 0.5 after I moved the install to a new folder. Sessions that changed other settings stayed warm: resolution (1080p to 1440p), Series S to Series X, frame generation on, ray tracing on, FSR quality, `JAXE_HELPER_PRIORITY`. Sessions that went back to a level already used in that folder also stayed warm (1.0 again after 0.5; 0.75 again after 0.5). I don't know why the world detail level would change what the driver's cache can answer. It may be the pipelines the early list starts first, or something the driver keys on. But the pattern fits all 12 sessions. Related observation from `%LOCALAPPDATA%\AMD\DxcCache`: the cache files are named `<A>.<B>.<C>.<D>.<n>.parc`. `<A>` follows the executable's path or name: a copy of the same exe run as `jaxe-orig.exe` from the same folder got a new, empty cache, while a local rebuild of the same source, still named `jaxe.exe`, kept the existing one. Moving the install folder may therefore also start a new cache. ### Workaround `jaxe.exe warm --again --used` before playing remakes every pipeline earlier sessions used, whatever `warm-done.txt` says (27 s for 4,664 pipelines when the driver cache is warm; longer when it is cold). My launcher now does this automatically when world detail or advanced switches change. ### Suggestions 1. At startup the host pipeline library already knows `loaded` against `early`. When that ratio is very low (2–4% here against the usual 89%), log a clear warning naming the fix. Or start the early pipelines at higher priority before the first frames. 2. Or make `warm` notice a cold driver cache: for example, time a sample of "done" pipelines, and if most take far longer than a cache hit, treat the list as stale and remake them all. 3. If world detail changes really matter to the driver cache, the launcher could run the rebuild itself when that setting changes. 4. Mention in the docs that renaming or moving `jaxe.exe` may start a new driver cache. ### Logs (timestamps removed) ``` Cold session, first and last library save: INFO jaxe_gpu::pipeline::library: host pipeline library saved bytes=0 early=4562 made=0 loaded=198 started_early=2318 retried=0 made_on_retry=0 slow_this_run=1 new_static_samplers=0 INFO jaxe_gpu::pipeline::library: host pipeline library saved bytes=0 early=4562 made=0 loaded=4055 started_early=4058 retried=0 made_on_retry=0 slow_this_run=394 new_static_samplers=0 Cold session, waits: INFO jaxe_gpu::pipeline::make: a compute dispatch waited for its host pipeline (JAXE_COMPUTE_WAIT_MS=0: off) ms=400 made=false shaders=[compute 19e215b47ff9112a] INFO jaxe_gpu::pipeline::make: a pass over the screen was waited for (JAXE_SCREEN_WAIT_MS=0: dropped past half a second a frame) ms=9998 made=false shaders=[mesh f5e50eb2108c425b, pixel ce3f0432a08f1d35] Warm session, for comparison: INFO jaxe_gpu::pipeline::library: host pipeline library saved bytes=569104 early=4666 made=1 loaded=4159 started_early=4162 retried=0 made_on_retry=0 slow_this_run=0 new_static_samplers=0 ```
Sign in to join this conversation.
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
eikkapine/jaxe#179
No description provided.