From 09ed1869279fcb1407bc871dbd307c86b4f4340a Mon Sep 17 00:00:00 2001 From: Paddy <89168564+patrickballard@users.noreply.github.com> Date: Sat, 24 Oct 2026 18:56:40 +0100 Subject: [PATCH 1/6] perf(desktop-gpui): warm the video decoder at launch so the first editor open shows its frame sooner The launch warmup prepares fonts, the shared device and the renderer, but its warm frame is a still image, so the first editor open still paid for the process's first AVAssetReader start (80-90 ms on an M4) before its first frame. Open and drop a decoder on the newest studio recording's display track alongside the renderer warmup. --- apps/desktop-gpui/src/app_windows.rs | 43 ++++++++++++++++++++++++---- apps/desktop-gpui/src/recording.rs | 2 +- crates/rendering/src/lib.rs | 18 ++++++++++++ 3 files changed, 57 insertions(+), 6 deletions(-) diff --git a/apps/desktop-gpui/src/app_windows.rs b/apps/desktop-gpui/src/app_windows.rs index e58c8a9a8f7..364c45b6e4f 100644 --- a/apps/desktop-gpui/src/app_windows.rs +++ b/apps/desktop-gpui/src/app_windows.rs @@ -4937,9 +4937,9 @@ const LAUNCH_RENDER_WARMUP_DELAY: std::time::Duration = std::time::Duration::fro /// The first editor open in a process paid for the system font scan, the /// shared device and the renderer's first pipeline compiles and draw before /// its first frame: 0.7-1.2 s, against ~0.2 s for every later open. This warms -/// them a few seconds after launch, off the main thread. The layers are -/// dropped again; only the driver's compiled pipelines, the device and the -/// font database stay. +/// them a few seconds after launch, off the main thread, along with the video +/// decoder's first start. The layers and the decoder are dropped again; only +/// the driver's compiled pipelines, the device and the font database stay. pub(crate) fn schedule_launch_render_warmup(cx: &App) { gpui_tokio::Tokio::spawn(cx, async { tokio::time::sleep(LAUNCH_RENDER_WARMUP_DELAY).await; @@ -4951,12 +4951,45 @@ pub(crate) fn schedule_launch_render_warmup(cx: &App) { return; } let fonts_ms = started.elapsed().as_secs_f64() * 1000.0; - let renderer_ms = warm_renderer().await; - tracing::info!(fonts_ms, ?renderer_ms, "launch render warmup finished"); + let (renderer_ms, decoder_ms) = tokio::join!(warm_renderer(), warm_video_decoder()); + tracing::info!( + fonts_ms, + ?renderer_ms, + ?decoder_ms, + "launch render warmup finished" + ); }) .detach(); } +/// Any H.264 file warms the decode pipeline; the newest studio recording is +/// the one the next editor most likely opens. +#[cfg(target_os = "macos")] +async fn warm_video_decoder() -> Option { + if gpu_work_requested() { + return None; + } + let started = std::time::Instant::now(); + let tokio_handle = tokio::runtime::Handle::current(); + tokio::task::spawn_blocking(move || { + let path = crate::library::recent_media() + .into_iter() + .filter(|item| item.kind == crate::library::MediaKind::Studio) + .find_map(|item| crate::recording::studio_display_path(&item.bundle))?; + cap_rendering::prewarm_video_decoder(&path, tokio_handle) + .inspect_err(|error| tracing::warn!(%error, "launch decoder warmup failed")) + .ok() + }) + .await + .ok()??; + Some(started.elapsed().as_secs_f64() * 1000.0) +} + +#[cfg(not(target_os = "macos"))] +async fn warm_video_decoder() -> Option { + None +} + #[cfg(target_os = "macos")] async fn warm_renderer() -> Option { if gpu_work_requested() { diff --git a/apps/desktop-gpui/src/recording.rs b/apps/desktop-gpui/src/recording.rs index a1ec646769b..a25c723693b 100644 --- a/apps/desktop-gpui/src/recording.rs +++ b/apps/desktop-gpui/src/recording.rs @@ -1449,7 +1449,7 @@ pub fn recover_instant_recording(project_path: &std::path::Path) -> anyhow::Resu /// `.../segment-0/display` *directory*, and afterwards at the muxed /// `display.mp4` beside it. The Tauri app has the same ordering, and uses its /// `updated_studio_meta` for the same reason. -fn studio_display_path(project_path: &std::path::Path) -> Option { +pub(crate) fn studio_display_path(project_path: &std::path::Path) -> Option { use cap_project::{RecordingMeta, StudioRecordingMeta}; let meta = RecordingMeta::load_for_project(project_path).ok()?; diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rs index 15ddef1bfbb..5a651e27b38 100644 --- a/crates/rendering/src/lib.rs +++ b/crates/rendering/src/lib.rs @@ -95,6 +95,24 @@ pub fn prewarm_fonts() { drop(layers::new_font_system()); } +/// The first `AVAssetReader` a process starts takes 80-90 ms in +/// `startReading` on an M4; every later one, on any file, takes a few ms. +/// Opening a decoder on `path` and dropping it pays that once, ahead of the +/// first editor's first frame. +#[cfg(target_os = "macos")] +pub fn prewarm_video_decoder( + path: &std::path::Path, + tokio_handle: tokio::runtime::Handle, +) -> Result<(), String> { + cap_video_decode::AVAssetReaderDecoder::new_with_keyframe_index( + path.to_path_buf(), + tokio_handle, + 0.0, + None, + ) + .map(drop) +} + /// Renders one small RGBA frame and one NV12 frame through the full frame /// pipeline with `layers`, then discards them. A fresh process waits on the /// driver finishing each pipeline the first time it draws (the first preview From 98693924b1395e7f07b5fa2f0c2cfe63dc133987 Mon Sep 17 00:00:00 2001 From: Paddy <89168564+patrickballard@users.noreply.github.com> Date: Sat, 24 Oct 2026 19:20:14 +0100 Subject: [PATCH 2/6] fix(desktop-gpui): find the warmup's studio recording past the recent-media cap recent_media() caps recordings, and the merged list with screenshots, at nine, so nine newer screenshots or Instant recordings hid every studio recording from the decoder warmup. Walk the recordings newest first instead, and skip ones that are not complete. --- apps/desktop-gpui/src/app_windows.rs | 9 +++++---- apps/desktop-gpui/src/library.rs | 7 ++++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/desktop-gpui/src/app_windows.rs b/apps/desktop-gpui/src/app_windows.rs index 364c45b6e4f..0559f44a680 100644 --- a/apps/desktop-gpui/src/app_windows.rs +++ b/apps/desktop-gpui/src/app_windows.rs @@ -4972,10 +4972,11 @@ async fn warm_video_decoder() -> Option { let started = std::time::Instant::now(); let tokio_handle = tokio::runtime::Handle::current(); tokio::task::spawn_blocking(move || { - let path = crate::library::recent_media() - .into_iter() - .filter(|item| item.kind == crate::library::MediaKind::Studio) - .find_map(|item| crate::recording::studio_display_path(&item.bundle))?; + let path = crate::library::recordings_newest_first() + .filter(|item| { + item.mode == crate::library::RecordingMode::Studio && item.status.is_complete() + }) + .find_map(|item| crate::recording::studio_display_path(&item.path))?; cap_rendering::prewarm_video_decoder(&path, tokio_handle) .inspect_err(|error| tracing::warn!(%error, "launch decoder warmup failed")) .ok() diff --git a/apps/desktop-gpui/src/library.rs b/apps/desktop-gpui/src/library.rs index f45cef1cb7d..e40d9729256 100644 --- a/apps/desktop-gpui/src/library.rs +++ b/apps/desktop-gpui/src/library.rs @@ -359,7 +359,7 @@ pub fn list_recordings_in(dirs: &[PathBuf]) -> Vec { recording_items_in(dirs).collect() } -fn recording_items_in(dirs: &[PathBuf]) -> impl Iterator { +fn recording_items_in(dirs: &[PathBuf]) -> impl Iterator + use<> { let mut paths = Vec::new(); for dir in dirs { let Ok(entries) = std::fs::read_dir(dir) else { @@ -392,6 +392,11 @@ pub fn list_recordings_limited(limit: usize) -> Vec { .collect() } +/// Every recording, newest first, loading each meta only when it is reached. +pub fn recordings_newest_first() -> impl Iterator { + recording_items_in(&known_recordings_dirs()) +} + pub fn find_incomplete_recordings_in( dirs: &[PathBuf], active_recording: Option<&Path>, From f5f16b1856f9e96c0df3bb3226f9f03c5059f15f Mon Sep 17 00:00:00 2001 From: Paddy <89168564+patrickballard@users.noreply.github.com> Date: Sat, 24 Oct 2026 20:01:02 +0100 Subject: [PATCH 3/6] fix(desktop-gpui): look up the warmup's studio recording directly and re-check for GPU work before opening it Move the lookup into library::newest_studio_display_path, which walks the recordings newest first and stops at the first studio recording with a display track, skipping the screenshot scan. Re-check gpu_work_requested() after the lookup, so an editor or recording that starts during the scan does not get a second reader alongside it. --- apps/desktop-gpui/src/app_windows.rs | 9 ++++----- apps/desktop-gpui/src/library.rs | 10 +++++++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/apps/desktop-gpui/src/app_windows.rs b/apps/desktop-gpui/src/app_windows.rs index 0559f44a680..10cb64b037b 100644 --- a/apps/desktop-gpui/src/app_windows.rs +++ b/apps/desktop-gpui/src/app_windows.rs @@ -4972,11 +4972,10 @@ async fn warm_video_decoder() -> Option { let started = std::time::Instant::now(); let tokio_handle = tokio::runtime::Handle::current(); tokio::task::spawn_blocking(move || { - let path = crate::library::recordings_newest_first() - .filter(|item| { - item.mode == crate::library::RecordingMode::Studio && item.status.is_complete() - }) - .find_map(|item| crate::recording::studio_display_path(&item.path))?; + let path = crate::library::newest_studio_display_path()?; + if gpu_work_requested() { + return None; + } cap_rendering::prewarm_video_decoder(&path, tokio_handle) .inspect_err(|error| tracing::warn!(%error, "launch decoder warmup failed")) .ok() diff --git a/apps/desktop-gpui/src/library.rs b/apps/desktop-gpui/src/library.rs index e40d9729256..08d31226e6b 100644 --- a/apps/desktop-gpui/src/library.rs +++ b/apps/desktop-gpui/src/library.rs @@ -359,7 +359,7 @@ pub fn list_recordings_in(dirs: &[PathBuf]) -> Vec { recording_items_in(dirs).collect() } -fn recording_items_in(dirs: &[PathBuf]) -> impl Iterator + use<> { +fn recording_items_in(dirs: &[PathBuf]) -> impl Iterator { let mut paths = Vec::new(); for dir in dirs { let Ok(entries) = std::fs::read_dir(dir) else { @@ -392,9 +392,13 @@ pub fn list_recordings_limited(limit: usize) -> Vec { .collect() } -/// Every recording, newest first, loading each meta only when it is reached. -pub fn recordings_newest_first() -> impl Iterator { +/// The display track of the newest studio recording that has one, however +/// many screenshots or Instant recordings are newer. Metas are loaded newest +/// first and only until it is found. +pub(crate) fn newest_studio_display_path() -> Option { recording_items_in(&known_recordings_dirs()) + .filter(|item| item.mode == RecordingMode::Studio) + .find_map(|item| crate::recording::studio_display_path(&item.path)) } pub fn find_incomplete_recordings_in( From 39695e5397644d0aece5bc0fe5073f99a3bd1b70 Mon Sep 17 00:00:00 2001 From: Paddy <89168564+patrickballard@users.noreply.github.com> Date: Sat, 24 Oct 2026 20:05:43 +0100 Subject: [PATCH 4/6] fix(desktop-gpui): build the warmup's recording lookup on macOS only Its only caller is the macOS decoder warmup, so other targets would warn that it is never used. --- apps/desktop-gpui/src/library.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/desktop-gpui/src/library.rs b/apps/desktop-gpui/src/library.rs index 08d31226e6b..d9ddcc9fe3b 100644 --- a/apps/desktop-gpui/src/library.rs +++ b/apps/desktop-gpui/src/library.rs @@ -395,6 +395,7 @@ pub fn list_recordings_limited(limit: usize) -> Vec { /// The display track of the newest studio recording that has one, however /// many screenshots or Instant recordings are newer. Metas are loaded newest /// first and only until it is found. +#[cfg(target_os = "macos")] pub(crate) fn newest_studio_display_path() -> Option { recording_items_in(&known_recordings_dirs()) .filter(|item| item.mode == RecordingMode::Studio) From ab48872a831225a119bbce64014cbf068c17b4f0 Mon Sep 17 00:00:00 2001 From: Paddy <89168564+patrickballard@users.noreply.github.com> Date: Sun, 25 Oct 2026 01:00:05 +0100 Subject: [PATCH 5/6] perf(desktop-gpui): warm the video decoder when a Studio recording stops into the editor, not at launch Warming 3 s after launch kept the decode frameworks resident in every session, including ones that never open the editor. Start the warmup once a Studio recording has stopped into a preparing editor instead, so it runs while the recording finalizes and the editor's decoders start warm. Every Studio recording sets gpu_work_requested(), so the warmup checks its own flag, set once an editor starts building its decoders. The lookup now takes only recordings the editor can open (RecordingItem::opens_editor), which skips one still finalizing, and is covered by a test. --- apps/desktop-gpui/src/app_windows.rs | 77 +++++++++++++++++----------- apps/desktop-gpui/src/library.rs | 51 ++++++++++++++++-- 2 files changed, 93 insertions(+), 35 deletions(-) diff --git a/apps/desktop-gpui/src/app_windows.rs b/apps/desktop-gpui/src/app_windows.rs index 10cb64b037b..e796aa6e83a 100644 --- a/apps/desktop-gpui/src/app_windows.rs +++ b/apps/desktop-gpui/src/app_windows.rs @@ -692,6 +692,7 @@ fn open_preparing_studio_editor(session: &Entity, cx: &mut App .preparing_studio_editor() .is_some_and(|pending| matches!(pending.presentation, StudioEditorPresentation::Opened(_))) { + warm_video_decoder_for_editor(cx); close_controls(session, cx); close_target_overlays(cx); close_camera_window(cx); @@ -4937,9 +4938,9 @@ const LAUNCH_RENDER_WARMUP_DELAY: std::time::Duration = std::time::Duration::fro /// The first editor open in a process paid for the system font scan, the /// shared device and the renderer's first pipeline compiles and draw before /// its first frame: 0.7-1.2 s, against ~0.2 s for every later open. This warms -/// them a few seconds after launch, off the main thread, along with the video -/// decoder's first start. The layers and the decoder are dropped again; only -/// the driver's compiled pipelines, the device and the font database stay. +/// them a few seconds after launch, off the main thread. The layers are +/// dropped again; only the driver's compiled pipelines, the device and the +/// font database stay. pub(crate) fn schedule_launch_render_warmup(cx: &App) { gpui_tokio::Tokio::spawn(cx, async { tokio::time::sleep(LAUNCH_RENDER_WARMUP_DELAY).await; @@ -4951,44 +4952,59 @@ pub(crate) fn schedule_launch_render_warmup(cx: &App) { return; } let fonts_ms = started.elapsed().as_secs_f64() * 1000.0; - let (renderer_ms, decoder_ms) = tokio::join!(warm_renderer(), warm_video_decoder()); - tracing::info!( - fonts_ms, - ?renderer_ms, - ?decoder_ms, - "launch render warmup finished" - ); + let renderer_ms = warm_renderer().await; + tracing::info!(fonts_ms, ?renderer_ms, "launch render warmup finished"); }) .detach(); } -/// Any H.264 file warms the decode pipeline; the newest studio recording is -/// the one the next editor most likely opens. +/// Set once an editor starts building its instance, whose decoders bring up +/// the decode pipeline themselves, so the post-recording warmup stays out of +/// their way. +static EDITOR_DECODERS_STARTED: std::sync::atomic::AtomicBool = + std::sync::atomic::AtomicBool::new(false); + #[cfg(target_os = "macos")] -async fn warm_video_decoder() -> Option { - if gpu_work_requested() { - return None; +fn editor_decoders_started() -> bool { + EDITOR_DECODERS_STARTED.load(std::sync::atomic::Ordering::Acquire) +} + +/// A Studio recording that stops into the editor makes the editor's decoders +/// the next ones to start, and the first `AVAssetReader` a process starts is +/// slow. Starting one on the newest finished studio recording while the new +/// one finalizes pays that before the editor needs its first frame. +#[cfg(target_os = "macos")] +fn warm_video_decoder_for_editor(cx: &App) { + if editor_decoders_started() { + return; } - let started = std::time::Instant::now(); - let tokio_handle = tokio::runtime::Handle::current(); - tokio::task::spawn_blocking(move || { - let path = crate::library::newest_studio_display_path()?; - if gpu_work_requested() { - return None; + gpui_tokio::Tokio::spawn(cx, async { + let started = std::time::Instant::now(); + let tokio_handle = tokio::runtime::Handle::current(); + let warmed = tokio::task::spawn_blocking(move || { + let path = crate::library::newest_studio_display_path()?; + if editor_decoders_started() { + return None; + } + cap_rendering::prewarm_video_decoder(&path, tokio_handle) + .inspect_err(|error| tracing::warn!(%error, "editor decoder warmup failed")) + .ok() + }) + .await + .ok() + .flatten(); + if warmed.is_some() { + tracing::info!( + elapsed_ms = started.elapsed().as_secs_f64() * 1000.0, + "editor decoder warmup finished" + ); } - cap_rendering::prewarm_video_decoder(&path, tokio_handle) - .inspect_err(|error| tracing::warn!(%error, "launch decoder warmup failed")) - .ok() }) - .await - .ok()??; - Some(started.elapsed().as_secs_f64() * 1000.0) + .detach(); } #[cfg(not(target_os = "macos"))] -async fn warm_video_decoder() -> Option { - None -} +fn warm_video_decoder_for_editor(_cx: &App) {} #[cfg(target_os = "macos")] async fn warm_renderer() -> Option { @@ -5323,6 +5339,7 @@ fn load_editor_project_candidate( let frame_format = cap_editor::EditorFrameFormat::BgraSurface; #[cfg(not(target_os = "macos"))] let frame_format = cap_editor::EditorFrameFormat::Rgba; + EDITOR_DECODERS_STARTED.store(true, std::sync::atomic::Ordering::Release); if let Some(previous) = previous { return previous .recreate_preparing_candidate(state_cb, frame_cb, frame_format) diff --git a/apps/desktop-gpui/src/library.rs b/apps/desktop-gpui/src/library.rs index d9ddcc9fe3b..e1bf01ad87e 100644 --- a/apps/desktop-gpui/src/library.rs +++ b/apps/desktop-gpui/src/library.rs @@ -392,13 +392,19 @@ pub fn list_recordings_limited(limit: usize) -> Vec { .collect() } -/// The display track of the newest studio recording that has one, however -/// many screenshots or Instant recordings are newer. Metas are loaded newest -/// first and only until it is found. +/// The display track of the newest finished studio recording that has one, +/// however many screenshots or Instant recordings are newer. A recording +/// still finalizing is skipped. Metas are loaded newest first and only until +/// it is found. #[cfg(target_os = "macos")] pub(crate) fn newest_studio_display_path() -> Option { - recording_items_in(&known_recordings_dirs()) - .filter(|item| item.mode == RecordingMode::Studio) + newest_studio_display_path_in(&known_recordings_dirs()) +} + +#[cfg(any(target_os = "macos", test))] +fn newest_studio_display_path_in(dirs: &[PathBuf]) -> Option { + recording_items_in(dirs) + .filter(RecordingItem::opens_editor) .find_map(|item| crate::recording::studio_display_path(&item.path)) } @@ -1769,6 +1775,41 @@ mod tests { std::fs::remove_dir_all(root).unwrap(); } + #[test] + fn newest_studio_display_skips_newer_instant_unfinished_and_trackless_recordings() { + let root = temp_dir("newest-studio-display"); + let finished = write_studio_bundle(&root, "finished-studio", 1); + let display = finished.join("content/segments/segment-0/display.mp4"); + std::fs::create_dir_all(display.parent().unwrap()).unwrap(); + std::fs::write(&display, b"").unwrap(); + std::thread::sleep(std::time::Duration::from_millis(6)); + write_studio_bundle(&root, "trackless-studio", 1); + std::thread::sleep(std::time::Duration::from_millis(6)); + let unfinished = write_bundle( + &root, + "unfinished-studio", + r#"{"pretty_name":"Unfinished","sharing":null,"segments":[{"display":{"path":"content/segments/segment-0/display.mp4","fps":30}}],"status":{"status":"InProgress"}}"#, + ); + let unfinished_display = unfinished.join("content/segments/segment-0/display.mp4"); + std::fs::create_dir_all(unfinished_display.parent().unwrap()).unwrap(); + std::fs::write(&unfinished_display, b"").unwrap(); + for index in 0..10 { + std::thread::sleep(std::time::Duration::from_millis(6)); + write_bundle( + &root, + &format!("instant-{index}"), + r#"{"pretty_name":"Instant","sharing":null,"fps":30,"sample_rate":48000}"#, + ); + } + + assert_eq!( + newest_studio_display_path_in(std::slice::from_ref(&root)), + Some(display) + ); + + std::fs::remove_dir_all(root).unwrap(); + } + #[test] fn bounded_screenshots_match_the_full_listing_and_parse_lazily() { fn eager_listing(dir: &Path) -> Vec { From 0eb35a42aebd5f688d86fc8dbacd4a7deebdf67e Mon Sep 17 00:00:00 2001 From: Paddy <89168564+patrickballard@users.noreply.github.com> Date: Sun, 25 Oct 2026 02:05:34 +0000 Subject: [PATCH 6/6] docs(desktop-gpui): document the decoder warmup and trim its comments The README's "No prewarm" editor deviation read as if the GPUI editor warms nothing. Rename it "No instance prewarm" and describe the decoder warmup a Studio recording starts as it stops into the editor. Trim the warmup's doc comments to what the code does not already say. --- apps/desktop-gpui/README.md | 2 +- apps/desktop-gpui/src/library.rs | 6 ++---- crates/rendering/src/lib.rs | 2 -- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/desktop-gpui/README.md b/apps/desktop-gpui/README.md index e3c2c085311..8eb0599110f 100644 --- a/apps/desktop-gpui/README.md +++ b/apps/desktop-gpui/README.md @@ -1437,7 +1437,7 @@ Editor-specific deviations: | **The timeline's height is fixed** | The strip sits at the default 260px with the `MIN_TIMELINE_HEIGHT` floor expressed but its 16px drag handle inert, so the player/timeline split cannot be resized. Everything else in the strip — including editing — is real; see [Timeline editing](#timeline-editing). | | **No layout modes and no dialogs** | Export replaces the whole editor, transcript splits it and clips swaps the sidebar; none of the three is built, so `fullscreenMode`, the split ratio and the modal set are absent. | | **The editor does not park the other windows** | `ShowCapWindow::Editor` also hides the camera bubble and the target overlays and calls `release_camera_preview_if_idle`. Only the main-window half is reproduced, the same shape as the settings window's deviation. | -| **No prewarm** | `PendingEditorInstances::start_prewarm` runs *before* the Tauri window is built so decoders warm up in parallel with the webview. There is no webview to race here, so the instance is built once, after the window exists. | +| **No instance prewarm** | `PendingEditorInstances::start_prewarm` runs *before* the Tauri window is built so decoders warm up in parallel with the webview. There is no webview to race here, so the instance is built once, after the window exists. On macOS, a Studio recording that stops into the editor instead starts a throwaway decoder on the newest finished studio recording while the new one finalizes (`warm_video_decoder_for_editor`), because the first `AVAssetReader` a process starts is slow. | ## The timeline diff --git a/apps/desktop-gpui/src/library.rs b/apps/desktop-gpui/src/library.rs index e1bf01ad87e..a832da62c82 100644 --- a/apps/desktop-gpui/src/library.rs +++ b/apps/desktop-gpui/src/library.rs @@ -392,10 +392,8 @@ pub fn list_recordings_limited(limit: usize) -> Vec { .collect() } -/// The display track of the newest finished studio recording that has one, -/// however many screenshots or Instant recordings are newer. A recording -/// still finalizing is skipped. Metas are loaded newest first and only until -/// it is found. +/// Not `recent_media()`: its `RECENT_MEDIA_LIMIT` cap can hide the newest +/// studio recording behind newer screenshots and Instant recordings. #[cfg(target_os = "macos")] pub(crate) fn newest_studio_display_path() -> Option { newest_studio_display_path_in(&known_recordings_dirs()) diff --git a/crates/rendering/src/lib.rs b/crates/rendering/src/lib.rs index 5a651e27b38..8838ef36d7c 100644 --- a/crates/rendering/src/lib.rs +++ b/crates/rendering/src/lib.rs @@ -97,8 +97,6 @@ pub fn prewarm_fonts() { /// The first `AVAssetReader` a process starts takes 80-90 ms in /// `startReading` on an M4; every later one, on any file, takes a few ms. -/// Opening a decoder on `path` and dropping it pays that once, ahead of the -/// first editor's first frame. #[cfg(target_os = "macos")] pub fn prewarm_video_decoder( path: &std::path::Path,