mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
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.
This commit is contained in:
@@ -32,9 +32,7 @@ export function observeRtpStreamStats$(
|
|||||||
> {
|
> {
|
||||||
return combineLatest([
|
return combineLatest([
|
||||||
observeTrackReference$(participant, source),
|
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
|
interval(1000).pipe(startWith(0)),
|
||||||
// We want it to be responsive. For just the debug tools 1s would be sufficient.
|
|
||||||
interval(350).pipe(startWith(0)),
|
|
||||||
]).pipe(
|
]).pipe(
|
||||||
switchMap(async ([trackReference]) => {
|
switchMap(async ([trackReference]) => {
|
||||||
const track = trackReference?.publication?.track;
|
const track = trackReference?.publication?.track;
|
||||||
|
|||||||
Reference in New Issue
Block a user