From 4a981e3a04401d7515440268309f5392648852fd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 29 Sep 2015 09:57:54 -0400 Subject: [PATCH] FPSCounter: Change Update's return type to void Its returned value is never used. --- Source/Core/VideoCommon/FPSCounter.cpp | 3 +-- Source/Core/VideoCommon/FPSCounter.h | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/Core/VideoCommon/FPSCounter.cpp b/Source/Core/VideoCommon/FPSCounter.cpp index 39322d44d7..64436df5f6 100644 --- a/Source/Core/VideoCommon/FPSCounter.cpp +++ b/Source/Core/VideoCommon/FPSCounter.cpp @@ -26,7 +26,7 @@ void FPSCounter::LogRenderTimeToFile(u64 val) m_bench_file << val << std::endl; } -int FPSCounter::Update() +void FPSCounter::Update() { if (m_update_time.GetTimeDifference() >= FPS_REFRESH_INTERVAL) { @@ -43,5 +43,4 @@ int FPSCounter::Update() } m_counter++; - return m_fps; } diff --git a/Source/Core/VideoCommon/FPSCounter.h b/Source/Core/VideoCommon/FPSCounter.h index 9884444a72..a2ae49567b 100644 --- a/Source/Core/VideoCommon/FPSCounter.h +++ b/Source/Core/VideoCommon/FPSCounter.h @@ -14,10 +14,9 @@ public: // Initializes the FPS counter. FPSCounter(); - // Called when a frame is rendered. Returns the value to be displayed on - // screen as the FPS counter (updated every second). - int Update(); - + // Called when a frame is rendered (updated every second). + void Update(); + unsigned int GetFPS() const { return m_fps; } private: