Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

perf(desktop-gpui): create the shared wgpu device when a Studio recording starts

LukeParkerDev8632b7c5cb03
diff --git a/apps/desktop-gpui/src/session.rs b/apps/desktop-gpui/src/session.rs
index 6bd270b6a..ad48a204a 100644
--- a/apps/desktop-gpui/src/session.rs
+++ b/apps/desktop-gpui/src/session.rs
@@ -923,6 +923,9 @@ impl RecordingSession {
self.paused_accum = Duration::ZERO;
self.paused_since = None;
self.start_cue = None;
+ if self.mode() == Some(recording::RecordingMode::Studio) {
+ crate::app_windows::prewarm_shared_wgpu_device(cx);
+ }
self.monitor_storage(project_dir, cx);
self.monitor_recording_failure(done, cx);
#[cfg(target_os = "linux")]