diff options
| author | Codex <codex@localhost> | 2026-11-24 02:40:07 +0000 |
|---|---|---|
| committer | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-24 17:38:23 -0600 |
| commit | 681dae3a71d425e0924c8d5ba5fd9e31370a2d32 (patch) | |
| tree | 7bd440bd5aee98d5d48e25c26845c076eefe2a38 /docs | |
| parent | 507029d1ea8dc65f1fabb68739605d6821843bf1 (diff) | |
boot_trace: summarize render diagnostics in boot logs
A D3D12 stderr log can carry shader lookup failures, stub pipeline milestones and presenter capture measurements alongside the method trace. The old parser ignored them, so a first-boot report could not say whether the renderer was black or which shader classes were missing without sharing the raw log.
Parse those fixed categories into aggregate counts and include them in --counts-only and text output. No raw game strings or paths are emitted.
Carried from the source patch in Sigtryggur-Mani-Gudmundsson's graphics-runtime-patches collection:
https://github.com/Sigtryggur-Mani-Gudmundsson/graphics-runtime-patches/blob/33ab48d3ea90f9925351aeee8708181a71fb9634/README.md#reading-black-frame-and-missing-shader-evidence-from-a-boot-log
AI-assisted.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/boot.md | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/boot.md b/docs/boot.md index 49ceb2fd6..8e62e2534 100644 --- a/docs/boot.md +++ b/docs/boot.md | |||
| @@ -32,8 +32,15 @@ DllMain/TLS results, exceptions with their stack frames, the exit, and the D3D12 | |||
| 32 | per method. When `XboxPresentation` logs its teardown `[rt] present: pacing summary ...` line (BL-6), the D3D12 | 32 | per method. When `XboxPresentation` logs its teardown `[rt] present: pacing summary ...` line (BL-6), the D3D12 |
| 33 | summary also reports the frame count, interval count, target interval, mean and drift against target, `p50`/`p95`/`p99` | 33 | summary also reports the frame count, interval count, target interval, mean and drift against target, `p50`/`p95`/`p99` |
| 34 | frame times, and `p50`/`p95`/`p99` origin-to-present latencies (and includes the numeric `frame_pacing` object in | 34 | frame times, and `p50`/`p95`/`p99` origin-to-present latencies (and includes the numeric `frame_pacing` object in |
| 35 | `--json` and `--counts-only`). The remaining `[rt]` lines in the same stderr log carry the device parameters, feature | 35 | `--json` and `--counts-only`). |
| 36 | ids and warnings; the summary leaves them as a count, so grep `^\[rt\]` for those. | 36 | |
| 37 | The same report counts shader translation lookup failures by stage. For builds with `LEONIDA_STUB_PIPELINES`, | ||
| 38 | the highest logged creation milestone gives a lower bound on stub pipelines created. The runtime can create a | ||
| 39 | pipeline without ever drawing with it. If the presenter logged capture measurements, the report counts black and | ||
| 40 | nonblack readbacks. On older builds, a positive mean establishes color, while three rounded zero means leave the | ||
| 41 | capture inconclusive. A successful `PresentX` call alone gives no pixel measurement. To share just the counters, | ||
| 42 | run `python -I tools/boot_trace.py --d3d12 d3d12.log --counts-only`. For device parameters, feature IDs and other | ||
| 43 | warnings, inspect the original stderr locally. | ||
| 37 | 44 | ||
| 38 | For `xmem_physical_pages`, the shim records the first request for each distinct attribute word. The text and | 45 | For `xmem_physical_pages`, the shim records the first request for each distinct attribute word. The text and |
| 39 | JSON summaries list the API, raw attribute word, requested page count and caller for the first `--limit` | 46 | JSON summaries list the API, raw attribute word, requested page count and caller for the first `--limit` |