From 57b81934275011ab857a10782d121fd99b787ddd Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Fri, 19 Mar 2021 18:11:17 +1100 Subject: [PATCH] playbackcache: added note for later --- app/render/playbackcache.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/render/playbackcache.cpp b/app/render/playbackcache.cpp index 656d8d849..549b913de 100644 --- a/app/render/playbackcache.cpp +++ b/app/render/playbackcache.cpp @@ -93,6 +93,8 @@ void PlaybackCache::Shift(const rational &from, const rational &to) return; } + qDebug() << "FIXME: 0 job time may cause cache desyncs"; + // An region between `from` and `to` will be inserted or spliced out TimeRangeList ranges_to_shift = invalidated_.Intersects(TimeRange(from, RATIONAL_MAX)); @@ -101,7 +103,7 @@ void PlaybackCache::Shift(const rational &from, const rational &to) RemoveRangeFromJobs(remove_range); Validate(remove_range); - // Shift everything in our ranges to shift list + // Shift invalidated ranges // (`diff` is POSITIVE when moving forward -> and NEGATIVE when moving backward <-) rational diff = to - from; foreach (const TimeRange& r, ranges_to_shift) {