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:
authorQemmHD <stephenlethco2@gmail.com>2026-11-24 12:38:28 -0500
committerGitHub <noreply@github.com>2026-11-24 12:38:28 -0500
commitb8e2fa88b30ebaf7ef28f414cadd20eced80e174 (patch)
tree290e86279fb14ff8235d445d2e355cdda8f923b9 /docs
parent32950551e83760c6ccf1564cd22737dfe4852d78 (diff)
parent9a12e5ae6fa86b564594574d0dc8b2c50f8bdb88 (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.md26
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 \
75python3 -I tools/boot_trace.py /tmp/boot.jsonl --d3d12 /tmp/d3d12.log 75python3 -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
79fresh name or delete the old one. `LEONIDA_D3D12=vulkan` selects the Vulkan-backed device, the only backend that 83fresh name or delete the old one. `LEONIDA_D3D12=vulkan` selects the Vulkan-backed device, the only backend that
80writes the `[d3d12-trace]` lines; without it the layer uses the Windows D3D12 device and the trace has nothing to 84traces command lists, resources and pipelines; without it the layer uses the Windows D3D12 device, and the
81read. 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
86calls), 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
88variable and stays on the Windows device). Keep the traces out of the repository: they can quote whatever the game prints.
82 89
83Useful switches: 90Useful 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.
1215. **`exit` / `error`** — a clean exit is not a correct frame; continue to the D3D12 trace. 1295. **`exit` / `error`** — a clean exit is not a correct frame; continue to the D3D12 trace.
1226. **D3D12 trace** — the `failed`, `unsupported`, `refused` and `partial` lines name the method. A `partial` 1306. **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
142The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; that table repeats 16, 19 and 20, and this one is 151The questions are in [`d3d12_vulkan.md`](d3d12_vulkan.md) §8.2; this table takes the same 1–22 in
143the de-duplicated 1–22. It maps each question to the event to look for; it does not answer them. 152order. 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
181The retail executable is not in the package, so this page is untested against it; the tool and the trace formats 190The retail executable is not in the package, so this page is untested against it; the tool and the trace formats
182are tested on synthetic fixtures and on `tiny_game` (which has no D3D12 calls). The present slots (Q6) and the 191are tested on synthetic fixtures and on `tiny_game` (which has no D3D12 calls). The present slots (Q6) and the
183Xbox device parameters (Q1) remain the first things the executable itself has to name. The D3D12 trace needs the 192Xbox device parameters (Q1) remain the first things the executable itself has to name. The D3D12 trace needs the
184Vulkan backend; a build without it runs the game's calls through the PC device and records nothing. The runbook 193Vulkan backend; a build without it runs the game's calls through the PC device and records only the proxy's
194device, queue, fence and allocator calls. The runbook
185does not make the game boot; it makes the first real trace readable. 195does not make the game boot; it makes the first real trace readable.