mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 15:55:31 +01:00
FPSCounter: Change Update's return type to void
Its returned value is never used.
This commit is contained in:
parent
55c7754738
commit
4a981e3a04
@ -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;
|
|
||||||
}
|
}
|
||||||
|
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user