1. Jay Roberts
  2. love

Commits

Alex Szpakowski  committed db07198

Fixed love.timer.getFPS and love.timer.getAverageDelta during the first second of runtime

  • Participants
  • Parent commits 09e4aec
  • Branches default

Comments (0)

Files changed (1)

File src/modules/timer/sdl/Timer.cpp

View file
  • Ignore whitespace
 {
 
 Timer::Timer()
-	: currTime(0)
-	, prevFpsUpdate(0)
+	: currTime(getMicroTime())
+	, prevFpsUpdate(currTime)
 	, fps(0)
 	, averageDelta(0)
 	, fpsUpdateFrequency(1)