| 1633 | } |
| 1634 | |
| 1635 | void MainWindow::lcdUpdate(double emuFps) { |
| 1636 | static double guiFrameTime = 0; |
| 1637 | static uint32_t guiFrameCount = 0; |
| 1638 | guiFrameTime += ui->lcd->refresh(); |
| 1639 | guiFrameCount++; |
| 1640 | if (m_timerFpsTriggered && guiFrameTime > 0) { |
| 1641 | showFpsSpeed(emuFps, guiFrameCount / guiFrameTime); |
| 1642 | guiFrameTime = guiFrameCount = 0; |
| 1643 | m_timerFpsTriggered = false; |
| 1644 | } |
| 1645 | } |
| 1646 | |
| 1647 | void MainWindow::showStatusMsg(const QString &str) { |
| 1648 | m_msgLabel.setText(str); |