From d20c812bedb90e18283ca562c79bcb2db80be330 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 21 Nov 2026 08:23:43 -0800 Subject: [PATCH] rt: the idle preprocess bytes' doc names the pool's 64 MiB bound and its quarter-second free Gauges::preprocess_idle_bytes said at most 128 MiB and zero only once the device is dropped. The bound is indirect::IDLE_BYTES (64 MiB), and the block-maker thread frees each idle region after memory::IDLE_AGE_NANOS (250 ms), so the gauge falls to zero at rest. Found from code by the consumer's gauge lane; read against indirect.rs:58-67 and memory.rs:64. Doc only. --- crates/metal2vulkan-runtime/src/counters.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-runtime/src/counters.rs b/crates/metal2vulkan-runtime/src/counters.rs index 988e50aa5..c74160cef 100644 --- a/crates/metal2vulkan-runtime/src/counters.rs +++ b/crates/metal2vulkan-runtime/src/counters.rs @@ -2873,7 +2873,8 @@ pub struct Gauges { /// Bytes of the preprocess regions executions of indirect command buffers hold: each taken /// at an execution's record and given back when its command buffer completes. pub preprocess_used_bytes: u64, - /// Bytes of the preprocess regions no execution holds, kept for the next ones, at most 128 - /// MiB; zero once the device is dropped. + /// Bytes of the preprocess regions no execution holds, kept for the next ones, at most 64 MiB. + /// A region idle for a quarter of a second is freed, so this falls to zero at rest; zero once + /// the device is dropped. pub preprocess_idle_bytes: u64, }