feat(telemetry,ui): add PC pipeline latency, --gst-latency-trace & Glass-to-Glass stopwatch

This commit is contained in:
bleackstorm committed 2026-11-26 14:06:20 +01:00
1 parent 9f0c64f873
commit b24d4e0a27
9 files changed
+142 -8

No files matched your search

+3
View File
@@ -96,6 +96,7 @@ pub fn run_desktop_fallback_loop(ctx: &mut EngineWorkerRefs<'_>) {
let mut has_new_raw_frame = false;
let mut has_video_stream = false;
let mut frame_fmt = PixelFormat::Rgba;
let mut frame_received_at: Option<Instant> = None;
if let Some(rx) = ctx.video_rx_opt {
let (live, taken) = rx.take_latest_frame(
@@ -108,6 +109,7 @@ pub fn run_desktop_fallback_loop(ctx: &mut EngineWorkerRefs<'_>) {
if meta.width == ctx.cfg.video_width && meta.height == ctx.cfg.video_height {
last_frame_id = meta.frame_id;
frame_fmt = meta.format;
frame_received_at = Some(meta.received_at);
fps_counter += 1;
has_new_raw_frame = true;
}
@@ -166,6 +168,7 @@ pub fn run_desktop_fallback_loop(ctx: &mut EngineWorkerRefs<'_>) {
has_new_raw_frame,
has_video_stream,
last_frame_id,
frame_received_at,
&mut fps_counter,
&mut fps_timer,
&mut last_preview_push,