mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
FPSCounter: Direct initialize class members
This commit is contained in:
parent
bf23fcfc1f
commit
e82b6a8532
2 changed files with 3 additions and 6 deletions
|
@ -13,9 +13,6 @@
|
|||
#define FPS_REFRESH_INTERVAL 1000
|
||||
|
||||
FPSCounter::FPSCounter()
|
||||
: m_fps(0)
|
||||
, m_counter(0)
|
||||
, m_fps_last_counter(0)
|
||||
{
|
||||
m_update_time.Update();
|
||||
m_render_time.Update();
|
||||
|
|
|
@ -21,9 +21,9 @@ public:
|
|||
unsigned int GetFPS() const { return m_fps; }
|
||||
|
||||
private:
|
||||
unsigned int m_fps;
|
||||
unsigned int m_counter;
|
||||
unsigned int m_fps_last_counter;
|
||||
unsigned int m_fps = 0;
|
||||
unsigned int m_counter = 0;
|
||||
unsigned int m_fps_last_counter = 0;
|
||||
Common::Timer m_update_time;
|
||||
|
||||
Common::Timer m_render_time;
|
||||
|
|
Loading…
Add table
Reference in a new issue