Skip to content

Commit

Permalink
allow faster fps for visualizer widget
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Oct 29, 2024
1 parent 3e43e03 commit 14d488f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gui/qt/visualizerwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void VisualizerWidget::showConfig() {
QCheckBox *gridChk = new QCheckBox(tr("Grid"));
QPushButton *submitBtn = new QPushButton(tr("Submit"));

fpsSpin->setRange(0, 120);
fpsSpin->setRange(1, 1000);
fpsSpin->setValue(m_fps);

scaleSpin->setRange(0, 5000);
Expand Down Expand Up @@ -268,7 +268,7 @@ void VisualizerWidget::stringToView() {
if (fps_reg.match(str).hasMatch()) {
str.chop(3);
m_fps = str.toInt();
if (m_fps < 1 || m_fps > 120) { m_fps = 30; }
if (m_fps < 1 || m_fps > 1000) { m_fps = 30; }
}
}

Expand Down

0 comments on commit 14d488f

Please sign in to comment.