diff options
| author | hardly-relevant <185992244+hardly-relevant@users.noreply.github.com> | 2026-11-29 20:47:19 +0200 |
|---|---|---|
| committer | hardly-relevant <185992244+hardly-relevant@users.noreply.github.com> | 2026-11-29 20:47:19 +0200 |
| commit | 37d2d73dcdb176fd6b911f0f5dc2ef559cd8cebf (patch) | |
| tree | 2993b5dfbffbf42889f436beabe5164cd271414c /docs | |
| parent | 7c330c76dbd87256037702a1074b7a0135f68feb (diff) | |
d3d12: save a rolling timeline after a frame stalls
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/running.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/running.md b/docs/running.md index 778c8b83a..acdd7df2a 100644 --- a/docs/running.md +++ b/docs/running.md | |||
| @@ -69,6 +69,19 @@ better fault diagnostics on current `main`: | |||
| 69 | | `LEONIDA_DEVICE_FAULT=1`, `LEONIDA_DEVICE_MARKERS=1` | unset | Enables device-loss/stall reports and (on AMD / `VK_AMD_buffer_marker`) per-draw/dispatch GPU markers to pinpoint hangs. | | 69 | | `LEONIDA_DEVICE_FAULT=1`, `LEONIDA_DEVICE_MARKERS=1` | unset | Enables device-loss/stall reports and (on AMD / `VK_AMD_buffer_marker`) per-draw/dispatch GPU markers to pinpoint hangs. | |
| 70 | | `LEONIDA_TITLE_HUD=1` or `LEONIDA_DEV_OVERLAY=1` | unset | Live frame rate, frame time, submission phases, pipeline-compile counts and VRAM/RAM usage on screen. | | 70 | | `LEONIDA_TITLE_HUD=1` or `LEONIDA_DEV_OVERLAY=1` | unset | Live frame rate, frame time, submission phases, pipeline-compile counts and VRAM/RAM usage on screen. | |
| 71 | | `LEONIDA_GPU_LATENCY=1`, `LEONIDA_MEM_PROBE=30` | unset | Periodic per-queue GPU latency (every 10 s) and VRAM breakdown by consumer (every 30 s) in the runtime log. | | 71 | | `LEONIDA_GPU_LATENCY=1`, `LEONIDA_MEM_PROBE=30` | unset | Periodic per-queue GPU latency (every 10 s) and VRAM breakdown by consumer (every 30 s) in the runtime log. | |
| 72 | | `LEONIDA_TIMELINE=<path.json>`, `LEONIDA_TIMELINE_STALL_MS=<ms>`, `LEONIDA_TIMELINE_AT=<s>` | unset / unset / `60` | Native Rust D3D12 (`d3d12/`, diagnostics build): arms on the first title present after `LEONIDA_TIMELINE_AT` seconds (`0` for immediate arming), keeps a bounded 65,536-event rolling history, and on the first consecutive title-present interval `>= LEONIDA_TIMELINE_STALL_MS` writes one fresh local Chrome trace `.json` and sibling `.txt` summary off the present path without overwriting existing files (requires a `.json` extension; omits GPU execution timestamps, stack sampling and thread-cycle snapshots; leave `LEONIDA_TIMELINE_STALL_MS` unset for timed mode). | | ||
| 73 | |||
| 74 | Example for capturing a recovering hitch in the Windows D3D12 diagnostics build (keep output files local, outside the repository): | ||
| 75 | |||
| 76 | ```powershell | ||
| 77 | $traceDir = Join-Path $env:LOCALAPPDATA 'Leonida\traces' | ||
| 78 | New-Item -ItemType Directory -Force -Path $traceDir | Out-Null | ||
| 79 | .\scripts\play-d3d12.ps1 -Game '<package>' -Log -More @{ | ||
| 80 | LEONIDA_TIMELINE = Join-Path $traceDir 'stall-01.json' | ||
| 81 | LEONIDA_TIMELINE_STALL_MS = '250' | ||
| 82 | LEONIDA_TIMELINE_AT = '90' | ||
| 83 | } | ||
| 84 | ``` | ||
| 72 | 85 | ||
| 73 | ## Linux, Wine, AMD RX 7900 XTX (RADV) | 86 | ## Linux, Wine, AMD RX 7900 XTX (RADV) |
| 74 | 87 | ||