upleb.uk

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

summaryrefslogtreecommitdiff
path: root/docs/d3d12_vulkan.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/d3d12_vulkan.md')
-rw-r--r--docs/d3d12_vulkan.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index 5bd6182ea..083c91e0d 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -2918,6 +2918,16 @@ Pipeline creation:
2918 so they no longer reach `pipeline_cache.session.bin`. `LEONIDA_HEAVY_PIPELINE_CACHE_MS=0` turns the heavy cache off, and with it the 2918 so they no longer reach `pipeline_cache.session.bin`. `LEONIDA_HEAVY_PIPELINE_CACHE_MS=0` turns the heavy cache off, and with it the
2919 `pipelineCreationCacheControl` feature unless `LEONIDA_PIPELINE_COMPILE=cache-only` asks for it. A cache-only create 2919 `pipelineCreationCacheControl` feature unless `LEONIDA_PIPELINE_COMPILE=cache-only` asks for it. A cache-only create
2920 (`cache-only`) is left as it is. 2920 (`cache-only`) is left as it is.
2921 A driver can stop keeping new pipelines once its cache is large, with no error. On NVIDIA 610.88 (RTX 5060 Ti),
2922 a 1.23 GB or 1.35 GB cache came back from `vkGetPipelineCacheData` the same size to the byte after a 2 s compile
2923 (with the 1.35 GB one the next process compiled the pipeline again; a hit then comes only from the driver's own
2924 disk cache), where an empty cache grew ~210 KiB and served the next process in 0.01 s. In the game, seeded with
2925 the 1.23 GB file, 68 of ~110 builds over 200 ms were slow again in the next run; started with no seed, 5 of 164
2926 were. An older cache of other pipelines stopped growing at 4.9 GB, so the point is not a fixed size. The runtime
2927 takes the cache's size when it creates it and at each session save, counts the title's builds that took at least
2928 200 ms (a hit takes a few milliseconds), and says once when 16 or more of them compiled while the cache grew by
2929 less than 64 KiB. The remedy is a smaller seed: without `pipeline_cache.bin`, the session file holds only what the
2930 title builds.
2921 `LEONIDA_SKIP_COMPUTE=<part of a name>[,<part>...]` (`all`: every compute program) never builds the matching 2931 `LEONIDA_SKIP_COMPUTE=<part of a name>[,<part>...]` (`all`: every compute program) never builds the matching
2922 compute programs at play and drops their dispatches, direct and indirect; the first dropped dispatch of each is 2932 compute programs at play and drops their dispatches, direct and indirect; the first dropped dispatch of each is
2923 logged. It is a way past a program that hangs the GPU while the program or its input is fixed, not a fix. 2933 logged. It is a way past a program that hangs the GPU while the program or its input is fixed, not a fix.