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

+4
View File
@@ -546,6 +546,7 @@ pub fn try_run_openxr_session(ctx: &mut EngineWorkerRefs<'_>) -> Result<()> {
let mut has_new_raw_frame = false;
let mut has_video_stream = false;
let mut taken_dmabuf: Option<DmaBufFrame> = None;
let mut frame_received_at: Option<Instant> = None;
if let Some(rx) = ctx.video_rx_opt {
rx.set_dmabuf_handoff(want_dmabuf);
@@ -559,6 +560,7 @@ pub fn try_run_openxr_session(ctx: &mut EngineWorkerRefs<'_>) -> Result<()> {
if d.width == ctx.cfg.video_width && d.height == ctx.cfg.video_height {
last_frame_id = d.frame_id;
raw_frame_format = d.format;
frame_received_at = Some(d.received_at);
fps_counter += 1;
has_new_raw_frame = true;
taken_dmabuf = Some(d);
@@ -579,6 +581,7 @@ pub fn try_run_openxr_session(ctx: &mut EngineWorkerRefs<'_>) -> Result<()> {
{
last_frame_id = meta.frame_id;
raw_frame_format = meta.format;
frame_received_at = Some(meta.received_at);
fps_counter += 1;
has_new_raw_frame = true;
}
@@ -662,6 +665,7 @@ pub fn try_run_openxr_session(ctx: &mut EngineWorkerRefs<'_>) -> Result<()> {
has_new_raw_frame,
has_video_stream,
last_frame_id,
frame_received_at,
&mut fps_counter,
&mut fps_timer,
&mut last_preview_push,