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:
Diffstat (limited to 'docs')
-rw-r--r--docs/boot.md4
-rw-r--r--docs/d3d12_vulkan.md10
2 files changed, 12 insertions, 2 deletions
diff --git a/docs/boot.md b/docs/boot.md
index 688d91dd1..e6fbea587 100644
--- a/docs/boot.md
+++ b/docs/boot.md
@@ -90,8 +90,8 @@ fresh name or delete the old one. `LEONIDA_D3D12=vulkan` selects the Vulkan-back
90traces command lists, resources and pipelines; without it the layer uses the Windows D3D12 device, and the 90traces command lists, resources and pipelines; without it the layer uses the Windows D3D12 device, and the
91`[d3d12-trace]` lines are only what the Xbox-ABI proxy forwards (device creation, queue, fence and allocator 91`[d3d12-trace]` lines are only what the Xbox-ABI proxy forwards (device creation, queue, fence and allocator
92calls), which `boot_trace.py` summarizes without complaint. A run on the Vulkan device prints 92calls), which `boot_trace.py` summarizes without complaint. A run on the Vulkan device prints
93`[rt] d3d12: Vulkan device: <name>`; check the log for it (a runtime built without the Vulkan headers accepts the 93`[rt] d3d12: Vulkan device: <name>`; check the log for it (a runtime built without the Vulkan headers stays on the Windows
94variable and stays on the Windows device). Keep the traces out of the repository: they can quote whatever the game prints. 94device and says so in one `[rt] d3d12_xs: LEONIDA_D3D12=vulkan is set, but ...` line). Keep the traces out of the repository: they can quote whatever the game prints.
95 95
96Useful switches: 96Useful switches:
97 97
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.