Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

docs(export): note that the loop stats are process-wide

Marcos Daniel Rivera Gonzalez610ba3971f38
diff --git a/crates/export/src/mp4.rs b/crates/export/src/mp4.rs
index 2370b6564..e042a5b7c 100644
--- a/crates/export/src/mp4.rs
+++ b/crates/export/src/mp4.rs
@@ -1549,6 +1549,9 @@ async fn export_render_to_channel(
let (_, encoder_blocked) = render_result?;
+ // The loop_stats counters are process-wide, so an export that overlaps another one reports
+ // a mix of both. That is fine for profiling one export at a time; per-export numbers need
+ // the counters passed through the render loop instead of kept in statics.
if cap_rendering::loop_stats::enabled() {
let [decode, render, prefetch, join, render_send, frames] =
cap_rendering::loop_stats::take();