From 323a60228e29cbeafe147d0c1944287d210800fb Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Tue, 17 Nov 2026 21:59:44 -0800 Subject: [PATCH] rt render docs: the replay streams' render contents counted with each function resolved at its creation The step-1 docs said 1,641 render contents over gb and b2, 1,631 drawing only triangles. The census behind them keyed contents on the recorded linked-function handles, which a stream reuses for later objects once one is released, so one content counted many times. Resolved at each creation (job m3-max-44425, render_cold over gb and b2): 537 contents drawn (gb 273, b2 264), 527 only triangles, 2 lines and triangles, 8 only lines, as before. Verified: docs only; the counts are job m3-max-44425's. --- crates/metal2vulkan-rt/README.md | 6 +++--- crates/metal2vulkan-rt/src/render.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/metal2vulkan-rt/README.md b/crates/metal2vulkan-rt/README.md index c418a6bbd..1dffd9c11 100644 --- a/crates/metal2vulkan-rt/README.md +++ b/crates/metal2vulkan-rt/README.md @@ -921,9 +921,9 @@ a miss. With no directory, nothing is kept on disk, and each `VkPipeline` is mad constants and vertex buffer strides. It renders dynamically into its attachments' formats, with no render pass. - The triangle class's `VkPipeline` is made with the state, through its file in the cache - directory where there is one; a point or line class's comes with the draws. Over the two replay - streams' 1,641 render contents, 1,631 draw only triangles; a content drawn only as points or - lines (8 of them) makes a triangle `VkPipeline` it never uses. + directory where there is one; a point or line class's comes with the draws. Of the two replay + streams' 537 render contents drawn, 527 draw only triangles and 2 lines and triangles; a content + drawn only as points or lines (8 of them) makes a triangle `VkPipeline` it never uses. ### Known gaps of render pipeline states diff --git a/crates/metal2vulkan-rt/src/render.rs b/crates/metal2vulkan-rt/src/render.rs index 4c4534411..6c0e2e691 100644 --- a/crates/metal2vulkan-rt/src/render.rs +++ b/crates/metal2vulkan-rt/src/render.rs @@ -22,11 +22,11 @@ //! which Vulkan 1.3 bakes, are their defaults: the render encoder does not set them yet. //! //! A descriptor names no topology class unless it sets `inputPrimitiveTopology`, and the replay -//! streams' never do, while nearly every content draws only triangles (1,631 of 1,641 contents -//! over gb and b2). So the triangle class's `VkPipeline` is made with the state, where Metal +//! streams' never do, while nearly every content draws only triangles (527 of the 537 contents +//! gb and b2 draw). So the triangle class's `VkPipeline` is made with the state, where Metal //! compiles; a point or line class's comes with the draws, made by the first draw of that class. //! The cost: a content drawn only as lines or points makes a triangle `VkPipeline` it never uses -//! (8 contents of the 1,641). +//! (8 contents of the 537). use crate::cache::{module_digest, pipeline_key}; use crate::counters::Gauge;