From 6f2d1970ab4673625d6d579a702d25f45cb3eb17 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 21 Nov 2026 03:14:12 -0800 Subject: [PATCH] rt docs: the commit order a release waits for is the order the runtime is handed What: one sentence in the README's idle paragraph: "committed before" is the order the runtime is handed, so a consumer that forwards a guest's releases (of memory, textures or samplers) hands each one over after every commit the guest made before it. Why: the planner's ruling on the 3090 loss: the consumer could hand a release to the runtime before the commit of a command buffer the guest posted earlier, and the runtime's mark (the last commit at the release) then waits for nothing that reads it. The README's promise holds only in the order it is given. Docs only. --- crates/metal2vulkan-runtime/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crates/metal2vulkan-runtime/README.md b/crates/metal2vulkan-runtime/README.md index 149522e95..2167fa082 100644 --- a/crates/metal2vulkan-runtime/README.md +++ b/crates/metal2vulkan-runtime/README.md @@ -328,6 +328,9 @@ in its memory. retired. Memory a command buffer reaches by address alone (a heap's buffers through an argument buffer, with no handle of them) is so never freed while work committed before its release is unretired; a range of it taken again meanwhile still gives such a reader the new block's bytes. + "Committed before" is the order the runtime is handed: a consumer that forwards a guest's + releases (of memory, textures or samplers) hands each one over after every commit the guest made + before it, or the guest's earlier work can meet memory and objects already freed. So a program that keeps committing gives back what it stopped using within 250 ms plus the frees ahead of it and the work in flight at its release. A command buffer that waits at an event (`CommandBuffer::encode_wait_for_event`) holds every such free released after its commit until