viewer: don't clear fps timer until time changes

This commit is contained in:
itsmattkc
2021-05-03 14:26:44 +10:00
parent 2484daf141
commit 7ca236d57f
+4 -6
View File
@@ -173,6 +173,10 @@ void ViewerWidget::TimeChangedEvent(const int64_t &i)
UpdateTextureFromNode();
PushScrubbedAudio();
// We don't clear the FPS timer on pause in case users want to see it immediately after, but by
// the time a new texture is drawn, assume that the FPS no longer needs to be shown.
display_widget_->ResetFPSTimer();
}
if (!pause_autocache_during_playback_ || !IsPlaying()) {
@@ -500,12 +504,6 @@ void ViewerWidget::UpdateTextureFromNode()
qWarning() << "Playback queue failed to keep up";
}
} else {
// We don't clear the FPS timer on pause in case users want to see it immediately after, but by
// the time a new texture is drawn, assume that the FPS no longer needs to be shown.
display_widget_->ResetFPSTimer();
}
if (frame_exists_at_time || frame_might_be_still) {