Frontends: Add frame time performance counters

This commit is contained in:
Connor McLaughlin
2020-01-24 14:49:47 +10:00
parent 67710ca184
commit 9562cbea56
8 changed files with 150 additions and 49 deletions

View File

@ -7,6 +7,8 @@
#include "settingsdialog.h"
#include "ui_mainwindow.h"
class QLabel;
class GameList;
class GameListWidget;
class QtHostInterface;
@ -26,6 +28,8 @@ private Q_SLOTS:
void onEmulationPaused(bool paused);
void toggleFullscreen();
void switchRenderer();
void onPerformanceCountersUpdated(float speed, float fps, float vps, float average_frame_time,
float worst_frame_time);
void onStartDiscActionTriggered();
void onChangeDiscActionTriggered();
@ -53,6 +57,10 @@ private:
GameListWidget* m_game_list_widget = nullptr;
QWidget* m_display_widget = nullptr;
QLabel* m_status_speed_widget = nullptr;
QLabel* m_status_fps_widget = nullptr;
QLabel* m_status_frame_time_widget = nullptr;
SettingsDialog* m_settings_dialog = nullptr;
bool m_emulation_running = false;