diff options
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 | ||