diff options
| author | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-27 05:46:06 -0600 |
|---|---|---|
| committer | Tyrannys <80750971+Tyrannys@users.noreply.github.com> | 2026-11-27 05:46:06 -0600 |
| commit | 8f59df0fb0ea33447dd8d4b2fd67de0798b0fbfc (patch) | |
| tree | 1d60e03331da2f94e18f811d8df29ea85f2d03b7 /docs/d3d12_vulkan.md | |
| parent | 03ec559ac1a829f9ff2c7f6c425e05b65f30df64 (diff) | |
| parent | 63185f4a35961916afbdc24b2ae989cbe88892be (diff) | |
Merge remote-tracking branch 'upstream/main' into claude/rt-async-compile-pool
# Conflicts:
# docs/d3d12_vulkan.md
Diffstat (limited to 'docs/d3d12_vulkan.md')
| -rw-r--r-- | docs/d3d12_vulkan.md | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/d3d12_vulkan.md b/docs/d3d12_vulkan.md index 394f236c0..9df9d356b 100644 --- a/docs/d3d12_vulkan.md +++ b/docs/d3d12_vulkan.md | |||
| @@ -1722,7 +1722,11 @@ The copies: | |||
| 1722 | write watch first (the refresh's own asking comes after it, so a hot page's last answer is a submission old), passes | 1722 | write watch first (the refresh's own asking comes after it, so a hot page's last answer is a submission old), passes |
| 1723 | over pages whose mapping changed, that a kernel write may be filling or that xmem maps at another address too, and | 1723 | over pages whose mapping changed, that a kernel write may be filling or that xmem maps at another address too, and |
| 1724 | writes only the 256-byte pieces where the copy differs from the title's bytes: a read-only view writes nothing and | 1724 | writes only the 256-byte pieces where the copy differs from the title's bytes: a read-only view writes nothing and |
| 1725 | its pages stay guarded. Up to 8,192 ranges and 64 MiB a submission (a V# has no read/write bit, so every view | 1725 | its pages stay guarded. The copy runs under the tracker's lock and can still fault on a page another guard keeps |
| 1726 | read-only (the geometry watch, another view's shadow): the fault handler asks every tracker over the address, this | ||
| 1727 | one included, and on the thread whose copy faulted it does not take that lock again (an SRW lock is not | ||
| 1728 | recursive; on 621.40 the title's submitting thread hung there for good, the main loop frozen with no device loss). | ||
| 1729 | Up to 8,192 ranges and 64 MiB a submission (a V# has no read/write bit, so every view | ||
| 1726 | reached is compared; past the caps the ranges are left behind, logged once). `LEONIDA_TITLE_WRITEBACK=0` turns it off. A batch is fenced: it is kept with the ticket | 1730 | reached is compared; past the caps the ranges are left behind, logged once). `LEONIDA_TITLE_WRITEBACK=0` turns it off. A batch is fenced: it is kept with the ticket |
| 1727 | of the submission that will use it and copied back only when the context reports that ticket retired, so a range | 1731 | of the submission that will use it and copied back only when the context reports that ticket retired, so a range |
| 1728 | another submission is still writing is never read half done. A queue held deep (console ordering) can leave batches | 1732 | another submission is still writing is never read half done. A queue held deep (console ordering) can leave batches |
| @@ -2891,6 +2895,19 @@ submitting thread; at the maintainers' decision it was replaced by this one when | |||
| 2891 | graphics PSO, one on each worker, let its last release delete it under the other build, qhukz13). A submission still | 2895 | graphics PSO, one on each worker, let its last release delete it under the other build, qhukz13). A submission still |
| 2892 | waits at the compile gate for every compute create in flight (graphics builds do not pass the gate), so more workers | 2896 | waits at the compile gate for every compute create in flight (graphics builds do not pass the gate), so more workers |
| 2893 | do not shorten that wait (`SubmitMutex::CompileTurn`; `LEONIDA_COMPILE_GATE=0` turns it off). | 2897 | do not shorten that wait (`SubmitMutex::CompileTurn`; `LEONIDA_COMPILE_GATE=0` turns it off). |
| 2898 | - **Only the large ones asynchronous** (`LEONIDA_ASYNC_MIN_BYTES=<n>`, with `LEONIDA_ASYNC_PIPELINES=1`). With every | ||
| 2899 | pipeline asynchronous, the small lighting and post programs are skipped with the large ones until the worker gets to | ||
| 2900 | them, and on an RTX 4070 Laptop (NVIDIA 621.40) the world phase was reached with the screen black; with none, a | ||
| 2901 | submission waits for each ray-tracing compute program of 2-26 MB of SPIR-V, 2-3 minutes each there, and 17 were built | ||
| 2902 | in 30 minutes (measured by OreoFR on the wave64-emulated pack). With the variable, a pipeline under n bytes of SPIR-V | ||
| 2903 | (compute: its module; graphics: all its stages, the size the large-compile rules use) takes the path it takes with | ||
| 2904 | asynchronous builds off: no record-time request, prepare's `PipelineCompiles` builds it, and a compile-helper build | ||
| 2905 | waits for its file. One of n bytes or more is asynchronous as above. The choice is made once per pipeline at create | ||
| 2906 | (`async_build` in `src/vulkan_replay.h`, decided by `src/async_pipeline_size.h`). Unset, `0` or text that is not a | ||
| 2907 | decimal number of bytes (which is logged): every pipeline is asynchronous, as before the variable. A large build | ||
| 2908 | still goes through the compile gate and `LargeModuleGate` as before, so a smaller one a submission waits for can | ||
| 2909 | queue behind it there; `async_pipeline_size_test` covers the decision and `d3d12_m4_compute_async_small_waits` a | ||
| 2910 | submission whose two pipelines are under the threshold with the worker held (both dispatches run). | ||
| 2894 | - **Warm-ups while the title submits.** A compute warm-up holds the compile gate for its whole create, and every | 2911 | - **Warm-ups while the title submits.** A compute warm-up holds the compile gate for its whole create, and every |
| 2895 | submission waits behind it: a native boot's submissions waited 140 s in all at the gate behind compute warm-ups, and | 2912 | submission waits behind it: a native boot's submissions waited 140 s in all at the gate behind compute warm-ups, and |
| 2896 | past the story load the worker went through 694 warm-ups of modules over 128 KiB (those over 640 KiB take 4-25 s | 2913 | past the story load the worker went through 694 warm-ups of modules over 128 KiB (those over 640 KiB take 4-25 s |