Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Increase prefetch frame count in editor instance

Richie McIlroy5f958e5f25a8
diff --git a/crates/editor/src/editor_instance.rs b/crates/editor/src/editor_instance.rs
index fb1f2b735..7015644e3 100644
--- a/crates/editor/src/editor_instance.rs
+++ b/crates/editor/src/editor_instance.rs
@@ -248,13 +248,6 @@ impl EditorInstance {
self.renderer.stop().await;
- // // Clear audio data
- // if self.audio.lock().unwrap().is_some() {
- // println!("Clearing audio data");
- // *self.audio.lock().unwrap() = None; // Explicitly drop the audio data
- // }
-
- // Cancel any remaining tasks
tokio::task::yield_now().await;
drop(state);
@@ -377,7 +370,7 @@ impl EditorInstance {
let export_preview_is_active =
self.export_preview_active.load(Ordering::Acquire);
if !playback_is_active && !export_preview_is_active {
- let prefetch_frames_count = 5u32;
+ let prefetch_frames_count = 15u32;
let hide_camera = project.camera.hide;
let playback_rx = self.playback_active_rx.clone();
for offset in 1..=prefetch_frames_count {