Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Merge pull request #2483 from yashranaway/perf/share-project-across-frame-uniforms
Richie McIlroyd27360a8ac92
diff --cc crates/rendering/src/lib.rsindex 1b9e172c1,af80e4a68..f70ee6d68--- a/crates/rendering/src/lib.rs+++ b/crates/rendering/src/lib.rs@@@ -4104,13 -4106,8 +4106,14 @@@ impl ProjectUniformscursor_interp_fn: &dyn Fn(f32) -> Option<InterpolatedCursorPosition>,cursor_event_order: CursorEventOrder,) -> Self {+ let project = shared_project.as_ref();let options = &constants.options;+ let camera_size = options.camera_size.map(|size| {+ segment_frames+ .camera_frame+ .as_ref()+ .map_or(size, |frame| XY::new(frame.width(), frame.height()))+ });let output_size = Self::get_output_size(options, project, resolution_base);let fps_f32 = fps.max(1) as f32;let timeline_time = f64::from(frame_number) / f64::from(fps.max(1));