diff options
| author | QemmHD <stephenlethco2@gmail.com> | 2026-11-24 12:38:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-24 12:38:28 -0500 |
| commit | b8e2fa88b30ebaf7ef28f414cadd20eced80e174 (patch) | |
| tree | 290e86279fb14ff8235d445d2e355cdda8f923b9 /docs | |
| parent | 32950551e83760c6ccf1564cd22737dfe4852d78 (diff) | |
| parent | 9a12e5ae6fa86b564594574d0dc8b2c50f8bdb88 (diff) | |
Merge pull request #379 from lines9686-rgb/docs-boot-runbook
Merging.
**Why merged:** OLD-5794: fixes the first-boot runbook in boot.md, and boot_trace now marks relocated modules in its text report. Oliwettoo checked the doc claims against the code ("Ship").
**Why it's good:** test_boot_trace plus the docs tests: 79 passed.
Tested on Windows 11 / RTX 4070 SUPER: merged alone onto main 82a2aabcc. With it in, the repo-consistency set (cmake/translator-deps, shader_stage_resume, runtime_paths, docs, make_game, no-game-data, run_semantic_tests) gives 566 passed / 5 skipped / 0 failed, and check_no_game_data on the changed files is clean. git merge-tree against current main 32950551e: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or build/CI changes.
AI-assisted (Claude Code, Claude Opus 5.5).
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/boot.md | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/docs/boot.md b/docs/boot.md index 7367dd91d..d9ec2ce24 100644 --- a/docs/boot.md +++ b/docs/boot.md | |||
| @@ -75,10 +75,17 @@ wine runtime/build/windows/gta6rt.exe --run /path/to/game_scarlett_master.exe \ | |||
| 75 | python3 -I tools/boot_trace.py /tmp/boot.jsonl --d3d12 /tmp/d3d12.log | 75 | python3 -I tools/boot_trace.py /tmp/boot.jsonl --d3d12 /tmp/d3d12.log |
| 76 | ``` | 76 | ``` |
| 77 | 77 | ||
| 78 | `runtime\build\gta6rt.exe` is where `scripts\build_runtime.ps1` (Ninja) puts it; the direct CMake path in | ||
| 79 | [runtime/README.md](../runtime/README.md) uses the multi-config Visual Studio generator, which writes | ||
| 80 | `runtime\build\RelWithDebInfo\gta6rt.exe` instead. | ||
| 81 | |||
| 78 | `--trace FILE` **refuses an existing file** (exit 2): it is created before the loader reads anything, so use a | 82 | `--trace FILE` **refuses an existing file** (exit 2): it is created before the loader reads anything, so use a |
| 79 | fresh name or delete the old one. `LEONIDA_D3D12=vulkan` selects the Vulkan-backed device, the only backend that | 83 | fresh name or delete the old one. `LEONIDA_D3D12=vulkan` selects the Vulkan-backed device, the only backend that |
| 80 | writes the `[d3d12-trace]` lines; without it the layer uses the Windows D3D12 device and the trace has nothing to | 84 | traces command lists, resources and pipelines; without it the layer uses the Windows D3D12 device, and the |
| 81 | read. Keep the traces out of the repository: they can quote whatever the game prints. | 85 | `[d3d12-trace]` lines are only what the Xbox-ABI proxy forwards (device creation, queue, fence and allocator |
| 86 | calls), which `boot_trace.py` summarizes without complaint. A run on the Vulkan device prints | ||
| 87 | `[rt] d3d12: Vulkan device: <name>`; check the log for it (a runtime built without the Vulkan headers accepts the | ||
| 88 | variable and stays on the Windows device). Keep the traces out of the repository: they can quote whatever the game prints. | ||
| 82 | 89 | ||
| 83 | Useful switches: | 90 | Useful switches: |
| 84 | 91 | ||
| @@ -99,7 +106,8 @@ Useful switches: | |||
| 99 | * `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` when MSI Afterburner or OBS is installed; their | 106 | * `DISABLE_RTSS_LAYER=1` and `DISABLE_VULKAN_OBS_CAPTURE=1` when MSI Afterburner or OBS is installed; their |
| 100 | implicit layers add swapchain usage that shows up as validation errors ([testing.md](testing.md), "Known | 107 | implicit layers add swapchain usage that shows up as validation errors ([testing.md](testing.md), "Known |
| 101 | problems"). | 108 | problems"). |
| 102 | * `--overlay DIR` sends the guest's writes to a private folder instead of the package. | 109 | * `--overlay DIR` sends the guest's writes to DIR instead of the default `<game-dir>\overlay` (useful when the |
| 110 | package drive is read-only); the package itself is never written. | ||
| 103 | 111 | ||
| 104 | ## 3. Triage order | 112 | ## 3. Triage order |
| 105 | 113 | ||
| @@ -119,8 +127,9 @@ Read the startup trace first; the first event that is not the expected one is th | |||
| 119 | the final slot for the last observed exception. The trace also includes handled exceptions, so the last | 127 | the final slot for the last observed exception. The trace also includes handled exceptions, so the last |
| 120 | observation alone does not establish what caused the run to stop. | 128 | observation alone does not establish what caused the run to stop. |
| 121 | 5. **`exit` / `error`** — a clean exit is not a correct frame; continue to the D3D12 trace. | 129 | 5. **`exit` / `error`** — a clean exit is not a correct frame; continue to the D3D12 trace. |
| 122 | 6. **D3D12 trace** — the `failed`, `unsupported`, `refused` and `partial` lines name the method. A `partial` | 130 | 6. **D3D12 trace** — the `failed`, `unsupported` and `refused` lines name the method. A `failed` |
| 123 | submission ran the supported commands from a list. The runtime's `[rt]` diagnostic names the command it left out. | 131 | `ExecuteCommandLists` submitted nothing from its lists. (`boot_trace.py` also lists a `partial` outcome, a |
| 132 | submission that ran only the supported commands; the runtime does not write it yet.) | ||
| 124 | Compare the method's position with the public SDK vtable. An unknown slot is expected until the executable names it | 133 | Compare the method's position with the public SDK vtable. An unknown slot is expected until the executable names it |
| 125 | (Q2, Q6). The `[rt]` lines in the same log carry the 24 device words, feature IDs and warnings. | 134 | (Q2, Q6). The `[rt]` lines in the same log carry the 24 device words, feature IDs and warnings. |
| 126 | The summary expects `#1` first, then one more than the last observed number. It counts each mismatch once and | 135 | The summary expects `#1` first, then one more than the last observed number. It counts each mismatch once and |
| @@ -139,8 +148,8 @@ is `null`; if neither input yields a report, stdout is empty. | |||
| 139 | 148 | ||
| 140 | ## 4. The open questions, and the trace signal for each | 149 | ## 4. The open questions, and the trace signal for each |
| 141 | 150 | ||
| 142 | The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; that table repeats 16, 19 and 20, and this one is | 151 | The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in |
| 143 | the de-duplicated 1–22. It maps each question to the event to look for; it does not answer them. | 152 | order. It maps each question to the event to look for; it does not answer them. |
| 144 | 153 | ||
| 145 | | # | Question | Signal in the first trace | | 154 | | # | Question | Signal in the first trace | |
| 146 | |---|---|---| | 155 | |---|---|---| |
| @@ -181,5 +190,6 @@ the de-duplicated 1–22. It maps each question to the event to look for; it doe | |||
| 181 | The retail executable is not in the package, so this page is untested against it; the tool and the trace formats | 190 | The retail executable is not in the package, so this page is untested against it; the tool and the trace formats |
| 182 | are tested on synthetic fixtures and on `tiny_game` (which has no D3D12 calls). The present slots (Q6) and the | 191 | are tested on synthetic fixtures and on `tiny_game` (which has no D3D12 calls). The present slots (Q6) and the |
| 183 | Xbox device parameters (Q1) remain the first things the executable itself has to name. The D3D12 trace needs the | 192 | Xbox device parameters (Q1) remain the first things the executable itself has to name. The D3D12 trace needs the |
| 184 | Vulkan backend; a build without it runs the game's calls through the PC device and records nothing. The runbook | 193 | Vulkan backend; a build without it runs the game's calls through the PC device and records only the proxy's |
| 194 | device, queue, fence and allocator calls. The runbook | ||
| 185 | does not make the game boot; it makes the first real trace readable. | 195 | does not make the game boot; it makes the first real trace readable. |