[performance] [shaders] [memory] Freezes up to 7 s while shaders built in play wait at the compile memory gate, 32 GB PC (v2026.12.02.03-playtest) #70

Open
opened 2026-12-03 18:52:14 +00:00 by iBooM72 · 1 comment
Contributor

What you see

The open world freezes for up to 7 s while pipelines first seen in play wait at the compile memory gate, with PC RAM nearly full. Shaders were preloaded with --preload before the first run on this build.

This looks like the same mechanism as section 2 of #1, but on a desktop with 32 GB and a 12 GB card, on v2026.12.02.03-playtest. In #1, RAM runs out because of frame generation's texture parking on a 6 GB card, so I'm filing this separately and linking it.

Run 1, defaults (54 min, darner-play-20261203-094949-24596)

  • compiles: … 134 waited to start, 85.7 s in all. Library made=497, make_ms_each 334-415. 140 of 141 compilemem lines say pressured=true. At the end: the PC has 20 MB free.
  • 13 frames of 500 ms or more, 11 of them in play (outside loading).
  • Three full-screen passes waited for their pipeline (a pass over the screen was waited for):
    • 1.7 s at 09:52:12 UTC: mesh 5f161074cbe4dc3b, pixel f97636988e732da6
    • 1.4 s at 10:34:06 UTC: mesh 5301c41bd0e646ae, pixel 5983024b262b178a
    • 7.2 s at 10:37:55 UTC: mesh 09a88636ff0d843c, pixel 6ef29f46456adf74
  • Before the 7.2 s wait (10:37:48-58), 12 compiles waited 44 s in all and about 9 pipelines were built one after another, with 750-826 MB of RAM free.
  • Gameplay frame median 43.2 ms. Frame generation doubles the shown rate.

Run 2, --set DARNER_MEMORY_FLOOR_MB=0 (21 min, darner-play-20261203-111837-35332)

  • 70 compiles, 0 waited, up to 8 at once. No screen-pass waits.
  • 2 frames of 500 ms or more, both on the loading screen (4,144 and 589 ms). Seconds with a frame over 100 ms: 1.3 a minute (run 1: 2.0).
  • Gameplay frame median 47.1 ms. No errors, crashes or device losses.
  • PC RAM free, sampled every 5 s: lowest 995 MB, median 2.6 GB.

What this does and doesn't show

  • Seen: with the soft floor off, no compile waited and no full-screen pass stalled.
  • Not shown: run 2 built far fewer new pipelines (70 against 497) and had more RAM free, so the default gate would have held back fewer compiles anyway. It's one short run, not a fair A/B.
  • Guess, not confirmed: on a 32 GB PC, the 1 GB soft floor serializes compiles just when the most new pipelines arrive, which turns a few slow builds into multi-second freezes. A floor of 0 didn't run the PC out of memory in run 2, but RAM pressure was lower there.

Not yet tested on today's main. ee0136e ("sample-mask variants an earlier run drew with are made at creation") may cut the number of builds during play. I'll add a longer run with the floor at 0, in areas not visited before.

GPU and driver

RTX 4070 Ti 12 GB, driver 621.01

CPU, RAM and Windows version

Intel Core i7-14700K, 32 GB, Windows 11 Pro 26300

Darner release or commit

v2026.12.02.03-playtest

Settings

Series X; 1080 upscaled to 1440; DLSS quality; DLSS frame generation 2×; ray tracing off; 120 fps cap; texture quality high; sharpening off. Everything else is at the play defaults (the full switch list is on each log's first line).

Logs

Neither run crashed, so there's no crash log.

Are you working on a fix?

No

### What you see The open world freezes for up to 7 s while pipelines first seen in play wait at the compile memory gate, with PC RAM nearly full. Shaders were preloaded with `--preload` before the first run on this build. This looks like the same mechanism as section 2 of #1, but on a desktop with 32 GB and a 12 GB card, on v2026.12.02.03-playtest. In #1, RAM runs out because of frame generation's texture parking on a 6 GB card, so I'm filing this separately and linking it. **Run 1, defaults (54 min, `darner-play-20261203-094949-24596`)** - `compiles: … 134 waited to start, 85.7 s in all`. Library `made=497`, `make_ms_each` 334-415. 140 of 141 `compilemem` lines say `pressured=true`. At the end: `the PC has 20 MB free`. - 13 frames of 500 ms or more, 11 of them in play (outside loading). - Three full-screen passes waited for their pipeline (`a pass over the screen was waited for`): - 1.7 s at 09:52:12 UTC: mesh 5f161074cbe4dc3b, pixel f97636988e732da6 - 1.4 s at 10:34:06 UTC: mesh 5301c41bd0e646ae, pixel 5983024b262b178a - 7.2 s at 10:37:55 UTC: mesh 09a88636ff0d843c, pixel 6ef29f46456adf74 - Before the 7.2 s wait (10:37:48-58), 12 compiles waited 44 s in all and about 9 pipelines were built one after another, with 750-826 MB of RAM free. - Gameplay frame median 43.2 ms. Frame generation doubles the shown rate. **Run 2, `--set DARNER_MEMORY_FLOOR_MB=0` (21 min, `darner-play-20261203-111837-35332`)** - 70 compiles, 0 waited, up to 8 at once. No screen-pass waits. - 2 frames of 500 ms or more, both on the loading screen (4,144 and 589 ms). Seconds with a frame over 100 ms: 1.3 a minute (run 1: 2.0). - Gameplay frame median 47.1 ms. No errors, crashes or device losses. - PC RAM free, sampled every 5 s: lowest 995 MB, median 2.6 GB. **What this does and doesn't show** - Seen: with the soft floor off, no compile waited and no full-screen pass stalled. - Not shown: run 2 built far fewer new pipelines (70 against 497) and had more RAM free, so the default gate would have held back fewer compiles anyway. It's one short run, not a fair A/B. - Guess, not confirmed: on a 32 GB PC, the 1 GB soft floor serializes compiles just when the most new pipelines arrive, which turns a few slow builds into multi-second freezes. A floor of 0 didn't run the PC out of memory in run 2, but RAM pressure was lower there. Not yet tested on today's main. ee0136e ("sample-mask variants an earlier run drew with are made at creation") may cut the number of builds during play. I'll add a longer run with the floor at 0, in areas not visited before. ### GPU and driver RTX 4070 Ti 12 GB, driver 621.01 ### CPU, RAM and Windows version Intel Core i7-14700K, 32 GB, Windows 11 Pro 26300 ### Darner release or commit v2026.12.02.03-playtest ### Settings Series X; 1080 upscaled to 1440; DLSS quality; DLSS frame generation 2×; ray tracing off; 120 fps cap; texture quality high; sharpening off. Everything else is at the play defaults (the full switch list is on each log's first line). ### Logs Neither run crashed, so there's no crash log. ### Are you working on a fix? No

Same mechanism here, longer than 7 s, and the addresses cluster. Surviving runs pause rather than
drop:

run longest gap when pauses/min hitches/min
c3, RT in shaders 18,748.3 ms 421.8 s 6 16.5
pin-a4c, RT off 4,093.8 ms 212.3 s 3.1 26.7
pin-b1c, RT on cores + instrument 3,249.4 ms 110.5 s 49.6 256.1

On a4c five of the ten worst gaps sit between 424.3 and 508.5 s, and c3's 18.7 s is at 421.8 s -
one neighbourhood, reached about seven minutes in, in runs on two different commits. median.preparing
is 27.2-33.7 ms of a 45-53 ms frame in the surviving runs, and the frame's own GPU time is 0-0.2 ms.

And the same gate stops a preload outright when the title is up. With -Preload and the title
running, the maker's children stop and are retried forever:

8000 of 74322, 785 s
a process to make pipelines ended before it began one (exit code: 0xffffffff); again in 2 s

785 s of progress, then that line every two seconds for the rest of the window, and the world never
gets its book - the following arm read 0.1-0.6 fps with 3,281 shaders still compiling. Not the exe
and not the chunk:
warm --these 8001,8002,8003 by hand made all three in 0.09-0.63 s each, and the
same preload standalone with the title down completes: 7327 of 7329 in 12 s, made=6843 loaded=484, library saved 1,105,015,306 bytes. So the compile memory floor refusing starts, rather
than the maker failing, is the reading I cannot distinguish from here.

**Same mechanism here, longer than 7 s, and the addresses cluster.** Surviving runs pause rather than drop: | run | longest gap | when | pauses/min | hitches/min | |---|---:|---|---:|---:| | `c3`, RT in shaders | **18,748.3 ms** | 421.8 s | 6 | 16.5 | | `pin-a4c`, RT off | **4,093.8 ms** | 212.3 s | 3.1 | 26.7 | | `pin-b1c`, RT on cores + instrument | 3,249.4 ms | 110.5 s | 49.6 | 256.1 | On a4c five of the ten worst gaps sit between **424.3 and 508.5 s**, and c3's 18.7 s is at **421.8 s** - one neighbourhood, reached about seven minutes in, in runs on two different commits. `median.preparing` is 27.2-33.7 ms of a 45-53 ms frame in the surviving runs, and **the frame's own GPU time is 0-0.2 ms**. **And the same gate stops a preload outright when the title is up.** With `-Preload` and the title running, the maker's children stop and are retried forever: ``` 8000 of 74322, 785 s a process to make pipelines ended before it began one (exit code: 0xffffffff); again in 2 s ``` 785 s of progress, then that line every two seconds for the rest of the window, and the world never gets its book - the following arm read 0.1-0.6 fps with 3,281 shaders still compiling. **Not the exe and not the chunk:** `warm --these 8001,8002,8003` by hand made all three in 0.09-0.63 s each, and the same preload **standalone with the title down completes**: `7327 of 7329 in 12 s`, `made=6843 loaded=484`, library saved 1,105,015,306 bytes. So the compile memory floor refusing starts, rather than the maker failing, is the reading I cannot distinguish from here.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 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#70
No description provided.