diff --git a/Source/Core/VideoCommon/PerformanceMetrics.h b/Source/Core/VideoCommon/PerformanceMetrics.h index e5dc87b801..e486f17729 100644 --- a/Source/Core/VideoCommon/PerformanceMetrics.h +++ b/Source/Core/VideoCommon/PerformanceMetrics.h @@ -16,22 +16,22 @@ public: PerformanceMetrics(PerformanceMetrics&&) = delete; PerformanceMetrics& operator=(PerformanceMetrics&&) = delete; -public: // Count Functions + // Count Functions void Reset(); void CountFrame(); void CountVBlank(); -public: // Getter Functions + // Getter Functions double GetFPS() const; double GetVPS() const; double GetSpeed() const; double GetLastSpeedDenominator() const; -public: // ImGui Functions + // ImGui Functions void DrawImGuiStats(const float backbuffer_scale) const; -private: // Member Variables +private: PerformanceTracker m_fps_counter{"render_times.txt"}; PerformanceTracker m_vps_counter{"vblank_times.txt"}; PerformanceTracker m_speed_counter{nullptr, 6000000}; diff --git a/Source/Core/VideoCommon/PerformanceTracker.h b/Source/Core/VideoCommon/PerformanceTracker.h index d1b6ce01ee..e253f83352 100644 --- a/Source/Core/VideoCommon/PerformanceTracker.h +++ b/Source/Core/VideoCommon/PerformanceTracker.h @@ -43,10 +43,11 @@ public: PerformanceTracker(PerformanceTracker&&) = delete; PerformanceTracker& operator=(PerformanceTracker&&) = delete; -public: // Functions for recording and accessing information + // Functions for recording performance information void Reset(); void Count(); + // Functions for reading performance information DT GetSampleWindow() const; double GetHzAvg() const; @@ -68,12 +69,10 @@ private: // Functions for managing dt queue std::size_t inline QueueSize() const; bool inline QueueEmpty() const; -private: // Handle pausing and logging + // Handle pausing and logging void LogRenderTimeToFile(DT val); void SetPaused(bool paused); -private: - // Handle not counting time during pauses bool m_paused = false; int m_on_state_changed_handle;