From 45d2a94af91e32e1fddcbaa98297a117358e3780 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 16 Nov 2026 00:32:54 -0800 Subject: [PATCH] runtime README: name the scheduler_at_commit_left_* counts beside the other at-commit counts What: the commit_and_submit paragraph lists the at-commit work counts; it now names the scheduler_at_commit_left_* counts too: why the call made no pass, or made one that left its command buffer to the scheduler thread, by reason. Why: the counts are public (WorkCounts) and consumer-facing; tip 1 added them without naming them in the README. Verified: documentation only. --- crates/metal2vulkan-runtime/README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index a7b8f44b5..3697e9b69 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -693,10 +693,12 @@ Calls Metal does not have, for a consumer that emulates a Metal device: wake and no thread hop lies on its way to the `VkQueue`, where `commit`'s submission is the scheduler thread's, as Metal's is its own thread's (`WorkCounts::scheduler_passes_at_commit`, `batches_submitted_at_commit`, - `batches_checked_at_commit`). Under `RenderLoweringPolicy::Worker`, one whose last render - encoder's end the lowering thread has not lowered returns as `commit` does, and the thread that - runs its commit once the end is lowered (the lowering thread, or one waiting for the command - buffer) makes that pass, its checks and handlers with it. How long the program's `commit`, + `batches_checked_at_commit`; why it made no pass, or made one that left its command buffer to + that thread, by reason: the `scheduler_at_commit_left_*` counts). Under + `RenderLoweringPolicy::Worker`, one whose last render encoder's end the lowering thread has not + lowered returns as `commit` does, and the thread that runs its commit once the end is lowered + (the lowering thread, or one waiting for the command buffer) makes that pass, its checks and + handlers with it. How long the program's `commit`, `commit_and_submit` and `commit_failed` calls held its thread, and how much of it each phase took (lowering, recording the work left to the commit, its pipeline waits, the scheduler lock's wait, the pass, the submissions with their checks and handlers), each apart from the others: