Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Reduce frame cache size and timeout in decoder
Richie McIlroy05f3033ad034
diff --git a/crates/rendering/src/decoder/mod.rs b/crates/rendering/src/decoder/mod.rsindex 81cf7a3db..3ab2d9ec0 100644--- a/crates/rendering/src/decoder/mod.rs+++ b/crates/rendering/src/decoder/mod.rs@@ -446,7 +446,7 @@ pub fn pts_to_frame(pts: i64, time_base: Rational, fps: u32) -> u32 {.round() as u32}-pub const FRAME_CACHE_SIZE: usize = 150;+pub const FRAME_CACHE_SIZE: usize = 60;#[derive(Clone)]pub struct AsyncVideoDecoderHandle {@@ -468,7 +468,7 @@ impl AsyncVideoDecoderHandle {return None;}- match tokio::time::timeout(std::time::Duration::from_millis(500), rx).await {+ match tokio::time::timeout(std::time::Duration::from_millis(250), rx).await {Ok(result) => result.ok(),Err(_) => None,}