diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/d3d12_vulkan.md | 19 | ||||
| -rw-r--r-- | docs/running.md | 4 | ||||
| -rw-r--r-- | docs/runtime_imports.md | 11 |
3 files changed, 32 insertions, 2 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 |
diff --git a/docs/running.md b/docs/running.md index 161e3153d..f1e46966e 100644 --- a/docs/running.md +++ b/docs/running.md | |||
| @@ -113,6 +113,10 @@ Reported by others: [#1608, comment 7184700506](https://github.com/ubiquitariani | |||
| 113 | are the report's pack; a native wave64 pack builds them in seconds each ([above](#settings-every-platform-needs)). | 113 | are the report's pack; a native wave64 pack builds them in seconds each ([above](#settings-every-platform-needs)). |
| 114 | Where they still take minutes, `gta6rt --precompile-pipelines --big-threads N` bounds how many build at once (each | 114 | Where they still take minutes, `gta6rt --precompile-pipelines --big-threads N` bounds how many build at once (each |
| 115 | held about 3.5 GB of host memory on an RTX 4070 Ti) and `--skip-listed` leaves the listed ones out. | 115 | held about 3.5 GB of host memory on an RTX 4070 Ti) and `--skip-listed` leaves the listed ones out. |
| 116 | Between the two: `LEONIDA_ASYNC_PIPELINES=1` with `LEONIDA_ASYNC_MIN_BYTES=2097152` builds only the pipelines of | ||
| 117 | 2 MiB of SPIR-V or more asynchronously (the ray-tracing programs above), and the smaller lighting and post programs | ||
| 118 | where they are needed, as with `=0` ([d3d12_vulkan.md](d3d12_vulkan.md), "Only the large ones asynchronous"). Whether | ||
| 119 | that draws the world without the skip list: TBD. | ||
| 116 | - **Command:** TBD. | 120 | - **Command:** TBD. |
| 117 | - **What to expect:** the opening night street from about 650 s, at 0.1-0.2 frames/s, no device loss through 934 s. | 121 | - **What to expect:** the opening night street from about 650 s, at 0.1-0.2 frames/s, no device loss through 934 s. |
| 118 | The black stretch before it is graphics pipelines of 1-2.6 MB SPIR-V compiling one at a time, 5-10 s each. | 122 | The black stretch before it is graphics pipelines of 1-2.6 MB SPIR-V compiling one at a time, 5-10 s each. |
diff --git a/docs/runtime_imports.md b/docs/runtime_imports.md index e408d223d..b7c4e37b3 100644 --- a/docs/runtime_imports.md +++ b/docs/runtime_imports.md | |||
| @@ -569,7 +569,16 @@ trio (23-25). What the slots must answer is still **not measured**; that is the | |||
| 569 | and `XGameSaveGetContainerInfo` of a missing container returns `S_OK` without a callback. `syncOnDemand` is | 569 | and `XGameSaveGetContainerInfo` of a missing container returns `S_OK` without a callback. `syncOnDemand` is |
| 570 | ignored: nothing syncs offline. | 570 | ignored: nothing syncs offline. |
| 571 | 571 | ||
| 572 | `xgameruntime_gamesave_test` drives every slot against a temporary `LEONIDA_SAVE_DIR`. | 572 | `LEONIDA_TRACE_XGAMESAVE=1` logs every call of these slots as one `[rt] xgamesave:` line on stderr, with the |
| 573 | milliseconds since the process started and the thread: the handles, container and blob names, sizes and | ||
| 574 | HRESULT, never the blob contents. An async call (`InitializeProvider`, `GetRemainingQuota`, `DeleteContainer`, | ||
| 575 | `ReadBlobData`, `SubmitUpdate`, `FilesGetFolderWithUi`) logs four more lines: `schedule` when `XAsyncSchedule` is | ||
| 576 | called, `run` when the work starts on the title's queue (`waited=` is the gap), `complete` with its HRESULT and | ||
| 577 | the `...Result` call that collects it. A job that waits behind a stalled queue, or a result the title never | ||
| 578 | collects, then shows in a run's log. Unset, nothing is logged beyond the one line when the provider opens. | ||
| 579 | |||
| 580 | `xgameruntime_gamesave_test` drives every slot against a temporary `LEONIDA_SAVE_DIR`. With the trace on, it | ||
| 581 | checks the lines of a write and a read. | ||
| 573 | 582 | ||
| 574 | `XStoreImpl` (`runtime/shims/xgameruntime_store.cpp`), from the same layout; the game-license struct is measured | 583 | `XStoreImpl` (`runtime/shims/xgameruntime_store.cpp`), from the same layout; the game-license struct is measured |
| 575 | on the executable, the rest is not: | 584 | on the executable, the rest is not: |