From 8aead74ab94031ddde3f203721a0c1b4a3fb3f86 Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 4 Aug 2026 19:15:48 +0200 Subject: [PATCH] Performance: Lower the RTP stats refresh interval Because we no longer use it for computing the fit to frame setting; it's only for developer tools. --- src/state/media/observeRtpStreamStats.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/state/media/observeRtpStreamStats.ts b/src/state/media/observeRtpStreamStats.ts index 5edc28ef7..d1640382a 100644 --- a/src/state/media/observeRtpStreamStats.ts +++ b/src/state/media/observeRtpStreamStats.ts @@ -32,9 +32,7 @@ export function observeRtpStreamStats$( > { return combineLatest([ observeTrackReference$(participant, source), - // The update frequency is high because we use this value to update the PiP orientation and the fit/fill video tile props based on that - // We want it to be responsive. For just the debug tools 1s would be sufficient. - interval(350).pipe(startWith(0)), + interval(1000).pipe(startWith(0)), ]).pipe( switchMap(async ([trackReference]) => { const track = trackReference?.publication?.track;