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

@@ -71,6 +71,7 @@ Q_SIGNALS:
void gameListRefreshed();
void toggleFullscreenRequested();
void switchRendererRequested();
void performanceCountersUpdated(float speed, float fps, float vps, float avg_frame_time, float worst_frame_time);
public Q_SLOTS:
void powerOffSystem();
@@ -87,6 +88,9 @@ private Q_SLOTS:
void doHandleKeyEvent(int key, bool pressed);
void onDisplayWindowResized(int width, int height);
protected:
void OnPerformanceCountersUpdated() override;
private:
using InputButtonHandler = std::function<void(bool)>;