FilmCraft: An open-source, nonlinear video editor written by scratch in pure Rust
Merge remote-tracking branch 'origin/main' into fix-308
Brandon Thomasa6ac2d7effe5
diff --cc crates/ui-egui/src/perf.rsindex fc363acfa,b5b44f1b3..ce10ce8ef--- a/crates/ui-egui/src/perf.rs+++ b/crates/ui-egui/src/perf.rs@@@ -31,14 -31,13 +31,21 @@@ pub fn stats(app: &FilmcraftApp) -> Valframes["renderCostMs"] = json!(app.frames.render_cost() * 1e3);frames["cache"] = json!({"images": images, "imageMB": image_bytes as f64 / 1e6, "plans": plans, "planMB": plan_bytes as f64 / 1e6});v["frames"] = frames;+ v["gpu"] = app.gpu.as_ref().map_or(Value::Null, |g| {+ json!({+ "uploadedBytes": g.compositor.uploaded_bytes,+ "transitions": g.compositor.gpu_transitions,+ "cpuTransitions": g.compositor.cpu_transitions,+ "submitMs": g.last_ms,+ })+ });+ // the Program monitor's picture against what is due: how far a drag or a scrub is ahead of it+ v["monitor"] = json!({+ "frame": app.program_picture().map(|k| k.frame),+ "revision": app.program_picture().map(|k| k.revision),+ "projectRevision": app.session.revision,+ "playheadFrame": app.session.active_sequence().map(|q| q.settings.frame_rate.frame_at(app.session.playhead())),+ });v["ui"] = json!({"fps": app.fps, "frameMs": if app.fps > 0.0 { 1000.0 / app.fps as f64 } else { 0.0 }});v["process"] = json!({"cpuS": crate::frames::process_cpu_time().map(|d| d.as_secs_f64())});v