mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
More internal code cleanup
This commit is contained in:
@@ -38,8 +38,8 @@ namespace sdl
|
||||
{
|
||||
|
||||
Timer::Timer()
|
||||
: currTime(getMicroTime())
|
||||
, prevFpsUpdate(currTime)
|
||||
: currTime(0)
|
||||
, prevFpsUpdate(0)
|
||||
, fps(0)
|
||||
, averageDelta(0)
|
||||
, fpsUpdateFrequency(1)
|
||||
@@ -49,6 +49,8 @@ Timer::Timer()
|
||||
// Init the SDL timer system.
|
||||
if (SDL_InitSubSystem(SDL_INIT_TIMER) < 0)
|
||||
throw Exception(SDL_GetError());
|
||||
|
||||
prevFpsUpdate = currTime = getMicroTime();
|
||||
}
|
||||
|
||||
Timer::~Timer()
|
||||
|
||||
Reference in New Issue
Block a user