upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGalaxy <jojomalrbx@gmail.com>2026-11-25 13:04:29 -0600
committerGalaxy <jojomalrbx@gmail.com>2026-11-25 13:04:29 -0600
commite6f34ed080508b54d93e162e3aa5bdca66980bbd (patch)
tree0688bd750b505f1d2d2d8989e61aae0576cf7e13 /docs
parentfe1553456f90fa53226714929e5b176c75dd621d (diff)
d3d12: say when the driver's pipeline cache stops keeping new pipelines (RT-PIPELINE-CACHE-GROWTH-STALL)
A driver can stop adding to a large VkPipelineCache with no error. On NVIDIA 610.88 a 1.23 GB or 1.35 GB cache came back the same size to the byte after a 2 s compile, so the next run compiles the same pipelines again and nothing says why. The runtime now takes the cache's size at creation and at each session save, counts the title's pipeline builds that took at least 200 ms, and logs once when 16 or more compiled while the cache grew less than 64 KiB. pipeline_cache_store_test covers the decision; docs/d3d12_vulkan.md records the measurements.
Diffstat (limited to 'docs')
-rw-r--r--docs/d3d12_vulkan.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index c2e36319e..950ffa302 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -2375,6 +2375,15 @@ Pipeline creation:
2375 The files must match the Vulkan vendor, device and pipeline-cache UUID. Vulkan supplies an opaque snapshot. 2375 The files must match the Vulkan vendor, device and pipeline-cache UUID. Vulkan supplies an opaque snapshot.
2376 Replacing part of the previous file would corrupt it. 2376 Replacing part of the previous file would corrupt it.
2377 `LEONIDA_PIPELINE_CACHE_BYTES` caps session writes (256 MiB by default, zero disables the session file). 2377 `LEONIDA_PIPELINE_CACHE_BYTES` caps session writes (256 MiB by default, zero disables the session file).
2378 A driver can stop keeping new pipelines once its cache is large, with no error. On NVIDIA 610.88 (RTX 5060 Ti),
2379 a 1.23 GB or 1.35 GB cache came back from `vkGetPipelineCacheData` the same size to the byte after a 2 s compile
2380 (with the 1.35 GB one the next process compiled the pipeline again; a hit then comes only from the driver's own
2381 disk cache), where an empty cache grew ~210 KiB and served the next process in 0.01 s. In the game, seeded with the 1.23 GB file, 68 of ~110 builds over 200 ms were slow again in the next
2382 run; started with no seed, 5 of 164 were. An older cache of other pipelines stopped growing at 4.9 GB, so the point
2383 is not a fixed size. The runtime takes the cache's size when it creates it and at each session save, counts the
2384 title's builds that took at least 200 ms (a hit takes a few milliseconds), and says once when 16 or more of them
2385 compiled while the cache grew by less than 64 KiB. The remedy is a smaller seed: without `pipeline_cache.bin`, the
2386 session file holds only what the title builds.
2378 `LEONIDA_SKIP_COMPUTE=<part of a name>[,<part>...]` (`all`: every compute program) never builds the matching 2387 `LEONIDA_SKIP_COMPUTE=<part of a name>[,<part>...]` (`all`: every compute program) never builds the matching
2379 compute programs and drops their dispatches, direct and indirect; the first dropped dispatch of each is logged. 2388 compute programs and drops their dispatches, direct and indirect; the first dropped dispatch of each is logged.
2380 It is a way past a program that hangs the GPU while the program or its input is fixed, not a fix. 2389 It is a way past a program that hangs the GPU while the program or its input is fixed, not a fix.