FPSCounter: Change Update's return type to void

Its returned value is never used.
This commit is contained in:
Lioncash 2015-09-29 09:57:54 -04:00
parent 55c7754738
commit 4a981e3a04
2 changed files with 4 additions and 6 deletions

View File

@ -26,7 +26,7 @@ void FPSCounter::LogRenderTimeToFile(u64 val)
m_bench_file << val << std::endl; m_bench_file << val << std::endl;
} }
int FPSCounter::Update() void FPSCounter::Update()
{ {
if (m_update_time.GetTimeDifference() >= FPS_REFRESH_INTERVAL) if (m_update_time.GetTimeDifference() >= FPS_REFRESH_INTERVAL)
{ {
@ -43,5 +43,4 @@ int FPSCounter::Update()
} }
m_counter++; m_counter++;
return m_fps;
} }

View File

@ -14,10 +14,9 @@ public:
// Initializes the FPS counter. // Initializes the FPS counter.
FPSCounter(); FPSCounter();
// Called when a frame is rendered. Returns the value to be displayed on // Called when a frame is rendered (updated every second).
// screen as the FPS counter (updated every second). void Update();
int Update();
unsigned int GetFPS() const { return m_fps; } unsigned int GetFPS() const { return m_fps; }
private: private: