diff --git a/include/Spectre/Game/FPSCounter.h b/include/Spectre/Game/FPSCounter.h index 9566fc2..4233d9e 100644 --- a/include/Spectre/Game/FPSCounter.h +++ b/include/Spectre/Game/FPSCounter.h @@ -17,7 +17,7 @@ public : // Should be called whenever a frame has been rendered. void addFrame(); - float getFPS() const; + double getFPS() const; // Set the update rate (in seconds). // How often the FPS should be sampled and calculated. @@ -42,7 +42,7 @@ private : Time m_updateRate; // Calculated Frames per second. - float m_fps; + double m_fps; }; } // namespace sp diff --git a/source/Game/FPSCounter.cpp b/source/Game/FPSCounter.cpp index 70b713c..3de2b38 100644 --- a/source/Game/FPSCounter.cpp +++ b/source/Game/FPSCounter.cpp @@ -16,7 +16,7 @@ void FPSCounter::addFrame() m_count++; } -float FPSCounter::getFPS() const +double FPSCounter::getFPS() const { return m_fps; }