From 8b6bf1dc41918f65bee38d029f98c91134dfb469 Mon Sep 17 00:00:00 2001 From: Matthew Waltz Date: Tue, 29 Oct 2024 10:41:02 -0600 Subject: [PATCH] use PreciseTimer for visualizer --- gui/qt/debugger/visualizerdisplaywidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/qt/debugger/visualizerdisplaywidget.cpp b/gui/qt/debugger/visualizerdisplaywidget.cpp index 05fb30a93..150f8d9f8 100644 --- a/gui/qt/debugger/visualizerdisplaywidget.cpp +++ b/gui/qt/debugger/visualizerdisplaywidget.cpp @@ -96,6 +96,7 @@ void VisualizerDisplayWidget::setRefreshRate(int rate) { connect(m_refreshTimer, SIGNAL(timeout()), this, SLOT(draw())); m_refreshTimer->stop(); m_refreshTimer->setInterval(1000 / rate); + m_refreshTimer->setTimerType(Qt::PreciseTimer); m_refreshTimer->start(); m_refresh = rate; }