From 388a3ed8ac63e9fd9812dfe4a707520a6b4a087b Mon Sep 17 00:00:00 2001 From: Viktor Govako Date: Tue, 19 Dec 2023 23:16:56 -0300 Subject: [PATCH] [qt] Set update freq to 60 fps. Signed-off-by: Viktor Govako --- qt/qt_common/map_widget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/qt_common/map_widget.cpp b/qt/qt_common/map_widget.cpp index f6e07e7a41..26700fa3ad 100644 --- a/qt/qt_common/map_widget.cpp +++ b/qt/qt_common/map_widget.cpp @@ -39,11 +39,11 @@ MapWidget::MapWidget(Framework & framework, bool isScreenshotMode, QWidget * par , m_contextFactory(nullptr) { setMouseTracking(true); - // Update widget contents each 30ms. + // Update widget's content frequency is 60 fps. m_updateTimer = std::make_unique(this); VERIFY(connect(m_updateTimer.get(), SIGNAL(timeout()), this, SLOT(update())), ()); m_updateTimer->setSingleShot(false); - m_updateTimer->start(30); + m_updateTimer->start(1000 / 60); } MapWidget::~MapWidget()