diff options
| author | kawaii-shakal <deusex1998@gmail.com> | 2026-11-25 20:57:43 +0500 |
|---|---|---|
| committer | kawaii-shakal <deusex1998@gmail.com> | 2026-11-25 20:57:43 +0500 |
| commit | e4c413a3a5fe18b99ede727d02b9a561fc8ca56e (patch) | |
| tree | 4c25d5f7ac4b76e96a1887b0c07f5f623dd9a38e /docs/d3d12_vulkan.md | |
| parent | 9f1f5bf9a653d6cd4568a879887b4483f37ad465 (diff) | |
heavy pipeline cache: a write covers what was noted before it started, counted, not timed; teardown keeps fast builds too
GetTickCount64 moves in 10-16 ms steps, so a slow build noted during a write in the write's own tick was taken
as written. The schedule now counts notes. And without an offline seed every build goes to the heavy cache:
fast ones never schedule a write, so teardown writes the cache whenever any build went into it, which is what
pipeline_cache.session.bin used to keep.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/d3d12_vulkan.md')
| -rw-r--r-- | docs/d3d12_vulkan.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 772cd2e60..4afb78d2f 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -2368,8 +2368,9 @@ Pipeline creation: | |||
| 2368 | A build that takes at least `LEONIDA_HEAVY_PIPELINE_CACHE_MS` (500 by default) marks the heavy cache for writing. | 2368 | A build that takes at least `LEONIDA_HEAVY_PIPELINE_CACHE_MS` (500 by default) marks the heavy cache for writing. |
| 2369 | A thread of its own writes it whole: 3 s after the newest slow build, and no later than 20 s after the first unwritten | 2369 | A thread of its own writes it whole: 3 s after the newest slow build, and no later than 20 s after the first unwritten |
| 2370 | one, through the same staging file and rename as the session cache. A crash therefore loses at most the last 20 s | 2370 | one, through the same staging file and rename as the session cache. A crash therefore loses at most the last 20 s |
| 2371 | of slow builds, and the next launch starts with the rest. The thread stops and writes what is left at device | 2371 | of slow builds, and the next launch starts with the rest. At device teardown the thread stops, and the cache is |
| 2372 | teardown. `LEONIDA_HEAVY_PIPELINE_CACHE_MS=0` turns the heavy cache off, and with it the | 2372 | written if any build went into it. Fast builds are kept that way: without an offline seed every build is a miss, |
| 2373 | so they no longer reach `pipeline_cache.session.bin`. `LEONIDA_HEAVY_PIPELINE_CACHE_MS=0` turns the heavy cache off, and with it the | ||
| 2373 | `pipelineCreationCacheControl` feature unless `LEONIDA_PIPELINE_COMPILE=cache-only` asks for it. A cache-only create | 2374 | `pipelineCreationCacheControl` feature unless `LEONIDA_PIPELINE_COMPILE=cache-only` asks for it. A cache-only create |
| 2374 | (`cache-only`) is left as it is. | 2375 | (`cache-only`) is left as it is. |
| 2375 | `LEONIDA_SKIP_COMPUTE=<part of a name>[,<part>...]` (`all`: every compute program) never builds the matching | 2376 | `LEONIDA_SKIP_COMPUTE=<part of a name>[,<part>...]` (`all`: every compute program) never builds the matching |