Timeline performance improvements.

This commit is contained in:
Dermot Duffy
2023-01-24 19:36:54 -08:00
parent 6415597e9b
commit 5be6ee86e0
4 changed files with 112 additions and 34 deletions
+5 -3
View File
@@ -626,10 +626,12 @@ export class FrigateCardTimelineCore extends LitElement {
return null;
}
const cacheFriendlyWindow = this._timelineSource.getCacheFriendlyEventWindow(
options?.window ?? this._timeline.getWindow(),
);
return new EventMediaQueries(
this._timelineSource.getTimelineEventQueries(
options?.window ?? this._timeline.getWindow(),
),
this._timelineSource.getTimelineEventQueries(cacheFriendlyWindow),
);
}