viewer: count frames even when FPS is hidden
This commit is contained in:
@@ -357,9 +357,9 @@ void ViewerDisplayWidget::OnPaint()
|
|||||||
p.drawLines(lines, 2);
|
p.drawLines(lines, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fps_timer_update_count_++;
|
||||||
if (show_fps_) {
|
if (show_fps_) {
|
||||||
QPainter p(inner_widget());
|
QPainter p(inner_widget());
|
||||||
fps_timer_update_count_++;
|
|
||||||
qint64 now = QDateTime::currentMSecsSinceEpoch();
|
qint64 now = QDateTime::currentMSecsSinceEpoch();
|
||||||
double frame_rate;
|
double frame_rate;
|
||||||
if (now == fps_timer_start_) {
|
if (now == fps_timer_start_) {
|
||||||
|
|||||||
Reference in New Issue
Block a user