Frontends: Add frame time performance counters
This commit is contained in:
@@ -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)>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user