videorenderer: if an InvalidateVisible() signal comes through, cancel the queue

Optimization that frees up the GPU as quickly as possible when the user starts
making changes that may require quick feedback.
This commit is contained in:
itsmattkc
2020-05-07 00:56:16 +10:00
parent 2eb753e99d
commit c61adbf2a2
7 changed files with 59 additions and 27 deletions
+1 -1
View File
@@ -878,7 +878,7 @@ void ViewerWidget::SetZoomFromMenu(QAction *action)
void ViewerWidget::InvalidateVisible(NodeInput* source)
{
video_renderer_->InvalidateCache(TimeRange(GetTime(), GetTime()), source);
video_renderer_->InvalidateVisible(TimeRange(GetTime(), GetTime()), source);
}
OLIVE_NAMESPACE_EXIT