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:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-26 06:00:01 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-26 06:00:01 -0600
commit6f2b52e5635c070f3f9d0d12710b3ff2e90f71ee (patch)
treeadcf593e45f75ba7e4549af167d0342a89f7e5b0 /docs
parentd864cab47e3d0e5a6f9dabab4c71a8feae106a72 (diff)
d3d12: prewarm console streams kept for their first bind (on-demand)
With LEONIDA_PIPELINE_COMPILE=on-demand a console stream (device slot 86) is only parsed when it is first bound, and create_graphics queued the prewarm from there, so a planned pipeline got no lead at all. ecox982745 measured 0 of 8 planned builds before the first bind in that mode, 8 of 8 otherwise. When the plan has the stream's pipeline, the parse is now queued as its first prewarm job (at the rank of its first recorded variant, on a compile worker); create_graphics then queues the variants as for any other PSO. A bind that comes first waits for the parse through resolve_type's call_once, as it would have parsed it itself. d3d12_pipeline_workers_test gets a device case: a first device records the order, then console-stream PSOs with an eight-entry plan must build those eight before any command is recorded, with the ordinary stream and with on-demand, and nothing without a plan. Without the fix the on-demand case fails with 0 of 8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs')
-rw-r--r--docs/d3d12_vulkan.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md
index 3f1d34529..cbc8eb0c2 100644
--- a/docs/d3d12_vulkan.md
+++ b/docs/d3d12_vulkan.md
@@ -2549,7 +2549,10 @@ Pipeline creation:
2549 queued on the compile workers as a warm-up at its recorded rank: after every demanded build, one warm-up at a time 2549 queued on the compile workers as a warm-up at its recorded rank: after every demanded build, one warm-up at a time
2550 and none while a demanded build runs (`PipelineCompiler`; the compile-gate finding in "Compile workers" below is 2550 and none while a demanded build runs (`PipelineCompiler`; the compile-gate finding in "Compile workers" below is
2551 why), ahead of the compute warm-up's size order and before the cache checkpoint. A variant 0 built at create is 2551 why), ahead of the compute warm-up's size order and before the cache checkpoint. A variant 0 built at create is
2552 skipped. Records are taken in order until their recorded build times add up to 2552 skipped. A console stream kept for its first bind (`LEONIDA_PIPELINE_COMPILE=on-demand`) is otherwise parsed only
2553 there, which would leave the prewarm no lead: when its pipeline is in the plan, the parse is queued as its first
2554 prewarm job instead (at the rank of its first recorded variant, on a compile worker), and its variants follow with
2555 their ranks. A bind that comes first waits for that parse, which it would otherwise have done itself. Records are taken in order until their recorded build times add up to
2553 `LEONIDA_PIPELINE_PREWARM_BUDGET_MS` (default 300000; a record with no build time counts 1000 ms), and at most 2556 `LEONIDA_PIPELINE_PREWARM_BUDGET_MS` (default 300000; a record with no build time counts 1000 ms), and at most
2554 `LEONIDA_PIPELINE_PREWARM_MAX_ENTRIES` (default 4096). Compute records are left to the compute warm-up and to 2557 `LEONIDA_PIPELINE_PREWARM_MAX_ENTRIES` (default 4096). Compute records are left to the compute warm-up and to
2555 `gta6rt --precompile-pipelines`. A missing or unreadable file, a file with no readable record and a file from 2558 `gta6rt --precompile-pipelines`. A missing or unreadable file, a file with no readable record and a file from