[PR #2369] boot_trace: summarize Vulkan pipeline waits and compilation #2371

Open
opened 2026-11-26 21:21:01 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2369
Author: @plamea
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: boot-trace-pipeline-timing


📝 Commits (1)

  • d04d247 boot_trace: summarize Vulkan pipeline waits and compilation

📊 Changes

3 files changed (+102 additions, -2 deletions)

View changed files

📝 docs/first_run_ui.md (+4 -0)
📝 tests/test_boot_trace.py (+31 -0)
📝 tools/boot_trace.py (+67 -2)

📄 Description

Claimed as BOOT-TRACE-PIPELINE-TIMING in the coordination issue.

Summary

  • Read the existing pipeline diagnostics when LEONIDA_TRACE_PIPELINE_COMPILE=1 is used in a D3D12 trace.
  • Report separate maxima for Vulkan compilation and caller waits. Match starts to completions by worker, trigger, variant and key so overlapping jobs can be counted independently.
  • Include numeric totals in --counts-only without pipeline keys or shader names. Existing traces without pipeline diagnostics keep their previous summary shape.

Verification

  • 35 boot-trace tests and five dev-wrapper tests passed. The regression fixture covers overlapping jobs, incomplete traces, non-success results and the counts-only output.
  • Eight targeted runtime tests passed on native Windows 11, NVIDIA RTX 3050 Laptop GPU (4 GiB), driver 621.24. A Vulkan translated-draw fixture independently compared all 4,096 pixels and produced a trace with one completed cache-hit pipeline build and one recorded caller wait. The parser matched the timing fields in that trace.
  • Translator regression suite: 500 files, 6,365 tests, 0 failed files.
  • Game-data check passed for the three changed files.

AI-assisted with Codex. The traces used to verify this change came from synthetic tests.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2369 **Author:** [@plamea](https://github.com/plamea) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `boot-trace-pipeline-timing` --- ### 📝 Commits (1) - [`d04d247`](https://github.com/ubiquitarianism/leonida/commit/d04d24796836c859ff3dbf7246000107fc041907) boot_trace: summarize Vulkan pipeline waits and compilation ### 📊 Changes **3 files changed** (+102 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/first_run_ui.md` (+4 -0) 📝 `tests/test_boot_trace.py` (+31 -0) 📝 `tools/boot_trace.py` (+67 -2) </details> ### 📄 Description Claimed as BOOT-TRACE-PIPELINE-TIMING in the [coordination issue](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7197144280). ## Summary - Read the existing pipeline diagnostics when `LEONIDA_TRACE_PIPELINE_COMPILE=1` is used in a D3D12 trace. - Report separate maxima for Vulkan compilation and caller waits. Match starts to completions by worker, trigger, variant and key so overlapping jobs can be counted independently. - Include numeric totals in `--counts-only` without pipeline keys or shader names. Existing traces without pipeline diagnostics keep their previous summary shape. ## Verification - 35 boot-trace tests and five dev-wrapper tests passed. The regression fixture covers overlapping jobs, incomplete traces, non-success results and the counts-only output. - Eight targeted runtime tests passed on native Windows 11, NVIDIA RTX 3050 Laptop GPU (4 GiB), driver 621.24. A Vulkan translated-draw fixture independently compared all 4,096 pixels and produced a trace with one completed cache-hit pipeline build and one recorded caller wait. The parser matched the timing fields in that trace. - Translator regression suite: 500 files, 6,365 tests, 0 failed files. - Game-data check passed for the three changed files. AI-assisted with Codex. The traces used to verify this change came from synthetic tests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2371
No description provided.