diff options
| author | CLHelper <359823989+CLHelper@users.noreply.github.com> | 2026-11-23 20:30:42 +0000 |
|---|---|---|
| committer | CLHelper <359823989+CLHelper@users.noreply.github.com> | 2026-11-25 08:26:46 +0000 |
| commit | 2d08a5cc25418c21e2c710c33d08c57c7aeeb16a (patch) | |
| tree | 8e91a1957dd90fce4033191769ca1ae6f1788a2d /docs/boot.md | |
| parent | 3f81d46ac01021bd7517f0cce153f4283bc8dd17 (diff) | |
feat: tools/boot_matrix.py, how far the retail boot gets for each named set of pull requests
merge: each set is merged onto the base in order with git merge-tree/commit-tree (no checkout,
nothing from a PR runs); PRs merge_check.py finds already on the base, and PRs that conflict with
an earlier one in the set, are skipped and listed. One branch boot-matrix/<set> per set, plus
matrix.json with the translator digest of each head.
run: builds runtime/ in the set's tree (or takes --gta6rt), runs gta6rt --run --trace
--trace-d3d12 with LEONIDA_D3D12=vulkan and a timeout that stops the process tree, summarises the
traces with boot_trace.py and says whether the shader library came from this tree's translator.
report: the newest run of each set as a Markdown table (counts, RVAs and method names only).
(cherry picked from commit a00525cd2f3aadc3a63a1023a5926c315d767416)
(cherry picked from commit 97fa0445b2c053f522396e48f70948a19320230c)
Diffstat (limited to 'docs/boot.md')
| -rw-r--r-- | docs/boot.md | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/docs/boot.md b/docs/boot.md index 2b7186e30..b196faaf0 100644 --- a/docs/boot.md +++ b/docs/boot.md | |||
| @@ -211,7 +211,33 @@ order. It maps each question to the event to look for; it does not answer them. | |||
| 211 | does not affect these outcomes. | 211 | does not affect these outcomes. |
| 212 | * `exit` is the game's own code, not the loader's. A crash after the first frame is the next layer question. | 212 | * `exit` is the game's own code, not the loader's. A crash after the first frame is the next layer question. |
| 213 | 213 | ||
| 214 | ## 6. Limits | 214 | ## 6. Which pull requests a stop depends on |
| 215 | |||
| 216 | A stop is only comparable with someone else's when both name the same base, the same pull requests in the same | ||
| 217 | order, and a shader library made by the same translator. `tools/boot_matrix.py` makes that one row per named set: | ||
| 218 | |||
| 219 | ```powershell | ||
| 220 | python -I tools\boot_matrix.py merge --base origin/main --fetch origin --out $matrix ` | ||
| 221 | --set rt5=7286,8517 --set rt5-plus=7286,8517,6891 | ||
| 222 | # check out or export boot-matrix/rt5 where you build, then, per set: | ||
| 223 | python -I tools\boot_matrix.py run $matrix --set rt5 --tree $tree --exe $exe --game-dir $pkg ` | ||
| 224 | --shaders $work\shaders\spirv --build | ||
| 225 | python -I tools\boot_matrix.py report $matrix | ||
| 226 | ``` | ||
| 227 | |||
| 228 | * `merge` only runs git (`merge-tree --write-tree`, `commit-tree`): no checkout, nothing from a pull request runs. | ||
| 229 | A PR that `scripts/merge_check.py` finds already on the base is skipped, so is one that conflicts with an earlier | ||
| 230 | PR in the set (its files are listed). Each set becomes the branch `boot-matrix/<set>`. | ||
| 231 | * `run` builds `runtime/` in the tree (or takes `--gta6rt`), runs `--run --trace --trace-d3d12` with | ||
| 232 | `LEONIDA_D3D12=vulkan` and stops the process tree at `--timeout` (600 s). The traces stay in | ||
| 233 | `<matrix>/<set>/runN/`; `result.json` has the stop, the D3D12 call count and the last call. | ||
| 234 | * The `Shaders` column compares the library's `translation_sources.sha256` (written by `make_game.py`) with the | ||
| 235 | same digest over the tree: `stale` means the library came from another translator, a common reason a stop does | ||
| 236 | not reproduce. | ||
| 237 | * `report` prints the Markdown table. A `last exception` row is the last exception the trace recorded before the | ||
| 238 | process ended; exceptions are logged before handlers run, so it is where to look first, not proof of the cause. | ||
| 239 | |||
| 240 | ## 7. Limits | ||
| 215 | 241 | ||
| 216 | The retail executable is not in the package, so this page is untested against it; the tool and the trace formats | 242 | The retail executable is not in the package, so this page is untested against it; the tool and the trace formats |
| 217 | are tested on synthetic fixtures and on `tiny_game` (which has no D3D12 calls). The present slots (Q6) and the | 243 | are tested on synthetic fixtures and on `tiny_game` (which has no D3D12 calls). The present slots (Q6) and the |