video renderer will always render frames closest to the playhead first

A few commits ago, the render behavior was changed to only render within a
user-specified range of the playhead. This works well, but it would still
render from the start of the range (usually before the playhead) to the end,
meaning it couldn't keep up with the playhead as well as it should. This
commit prioritizes frames close to the playhead and renders outwards to
address this.
This commit is contained in:
itsmattkc
2020-01-12 01:14:56 +11:00
parent 0823c84fb2
commit 1c5d55012b
3 changed files with 53 additions and 17 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ private:
VideoRenderFrameCache frame_cache_;
TimeRangeList missing_cache_;
TimeRangeList invalidated_;
rational last_time_requested_;