Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
perf(rendering): start the YUV converter textures minimal on macOS
Richie McIlroy2f41dab91e72
diff --git a/crates/rendering/src/yuv_converter.rs b/crates/rendering/src/yuv_converter.rsindex c2e7ad41b..ce29ac625 100644--- a/crates/rendering/src/yuv_converter.rs+++ b/crates/rendering/src/yuv_converter.rs@@ -102,7 +102,15 @@ fn upload_plane_with_stride(const MAX_TEXTURE_WIDTH: u32 = 7680;const MAX_TEXTURE_HEIGHT: u32 = 4320;+// On macOS, IOSurface frames convert straight into the layer textures, so the+// converter's own textures start minimal and only grow for a fallback path.+#[cfg(target_os = "macos")]+const INITIAL_TEXTURE_WIDTH: u32 = TEXTURE_SIZE_PADDING;+#[cfg(target_os = "macos")]+const INITIAL_TEXTURE_HEIGHT: u32 = TEXTURE_SIZE_PADDING;+#[cfg(not(target_os = "macos"))]const INITIAL_TEXTURE_WIDTH: u32 = 1920;+#[cfg(not(target_os = "macos"))]const INITIAL_TEXTURE_HEIGHT: u32 = 1080;const TEXTURE_SIZE_PADDING: u32 = 64;