1
0
Fork 0

Game/FPSCounter: Use sp::Stopwatch

This commit is contained in:
Henrik Hautakoski 2020-12-16 16:32:34 +01:00
parent f62373dcbc
commit 3855cdd541
2 changed files with 6 additions and 7 deletions

View file

@ -2,7 +2,7 @@
#ifndef SPECTRE_FPS_COUNTER_H
#define SPECTRE_FPS_COUNTER_H
#include <Spectre/Math/Time.h>
#include <Spectre/System/Stopwatch.h>
// Simple FPS counter.
@ -35,7 +35,8 @@ private :
unsigned int m_count;
// Last time we updated the counter.
Time m_time;
//Time m_time;
Stopwatch m_watch;
// Update rate (at what interval should we update)
Time m_updateRate;