The difference of doing timer._lastTime = playdate.getCurrentTimeMilliseconds()
vs timer._lastTime = nil
will be very subtle (and I suspect in most cases not noticeable at all).
During timer.updateTimers()
, if timer._lastTime
is nil, the delta since the last update will default to 0
.
So the prospective fix with playdate.getCurrentTimeMilliseconds()
is technically more correct.