mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-04-10 09:40:41 +02:00
Slightly better timer interval management (with global const variable).
This commit is contained in:
@@ -65,7 +65,7 @@ MainWindow::MainWindow()
|
||||
|
||||
// Create and start timer.
|
||||
videoTimer = new QTimer(this);
|
||||
videoTimer->setInterval(1000/30);
|
||||
videoTimer->setInterval( int( 1000 / MM::FRAMES_PER_SECOND ) );
|
||||
connect(videoTimer, SIGNAL(timeout()), this, SLOT(updateCanvases()));
|
||||
videoTimer->start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user