viewer: count frames even when FPS is hidden

This commit is contained in:
itsmattkc
2021-03-11 11:05:36 +11:00
parent 5d59ecb699
commit c885fbac5c
+1 -1
View File
@@ -357,9 +357,9 @@ void ViewerDisplayWidget::OnPaint()
p.drawLines(lines, 2);
}
fps_timer_update_count_++;
if (show_fps_) {
QPainter p(inner_widget());
fps_timer_update_count_++;
qint64 now = QDateTime::currentMSecsSinceEpoch();
double frame_rate;
if (now == fps_timer_start_) {