Timeline performance improvements.

This commit is contained in:
Dermot Duffy committed 2023-01-24 19:36:54 -08:00
1 parent 6415597e9b
commit 5be6ee86e0
4 files changed
+112 -34

No files matched your search

+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),
);
}