FPSCounter: Direct initialize class members
This commit is contained in:
parent
bf23fcfc1f
commit
e82b6a8532
|
@ -13,9 +13,6 @@
|
||||||
#define FPS_REFRESH_INTERVAL 1000
|
#define FPS_REFRESH_INTERVAL 1000
|
||||||
|
|
||||||
FPSCounter::FPSCounter()
|
FPSCounter::FPSCounter()
|
||||||
: m_fps(0)
|
|
||||||
, m_counter(0)
|
|
||||||
, m_fps_last_counter(0)
|
|
||||||
{
|
{
|
||||||
m_update_time.Update();
|
m_update_time.Update();
|
||||||
m_render_time.Update();
|
m_render_time.Update();
|
||||||
|
|
|
@ -21,9 +21,9 @@ public:
|
||||||
unsigned int GetFPS() const { return m_fps; }
|
unsigned int GetFPS() const { return m_fps; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
unsigned int m_fps;
|
unsigned int m_fps = 0;
|
||||||
unsigned int m_counter;
|
unsigned int m_counter = 0;
|
||||||
unsigned int m_fps_last_counter;
|
unsigned int m_fps_last_counter = 0;
|
||||||
Common::Timer m_update_time;
|
Common::Timer m_update_time;
|
||||||
|
|
||||||
Common::Timer m_render_time;
|
Common::Timer m_render_time;
|
||||||
|
|
Loading…
Reference in New Issue