MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / lcdUpdate

Method lcdUpdate

gui/qt/mainwindow.cpp:1635–1645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1633}
1634
1635void 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
1647void MainWindow::showStatusMsg(const QString &str) {
1648 m_msgLabel.setText(str);

Callers

nothing calls this directly

Calls 1

refreshMethod · 0.45

Tested by

no test coverage detected