Skip to content

Commit

Permalink
use PreciseTimer for visualizer
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Oct 29, 2024
1 parent 14d488f commit 8b6bf1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gui/qt/debugger/visualizerdisplaywidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8b6bf1d

Please sign in to comment.