Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

perf(rendering): skip converter pre-sizing for exports on macOS

Richie McIlroy6af13b09c899
diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rs
index 8e95cd3b6..dfe7030cf 100644
--- a/crates/rendering/src/lib.rs
+++ b/crates/rendering/src/lib.rs
@@ -7947,6 +7947,11 @@ impl RendererLayers {
camera_width: Option<u32>,
camera_height: Option<u32>,
) {
+ // macOS converts IOSurface frames into the layer textures; a fallback
+ // conversion grows the converter textures on first use.
+ if cfg!(target_os = "macos") {
+ return;
+ }
tracing::info!(
screen_width = screen_width,
screen_height = screen_height,