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.
This commit is contained in:
Anees Iqbal committed 2026-11-21 03:16:05 -08:00
1 parent e7c0ead43a
commit 6f2d1970ab
1 file changed
+3
+3
View File
@@ -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