If you enable a script that was in disabled state and has a running timer, the
second
timer tick after waking up may end up happening much sooner than specified.
I'm unsure if this is by spec or a bug, but Suzanna Linn's guide at least specifies timers should never tick faster than their specified rate.
Repro:
local t = 0;
local last = os.clock()
LLTimers:every(1, function()
t+=1
print("tick#", t, "delta", os.clock()-last)
last = os.clock()
end)
Play with the script running checkbox, turning it on and off, and observe the reported tick delta for the second tick. As one example, after having the script disabled for over a minute, the second tick after waking up was only 0.37 seconds instead of ~1.
This behavior is not present under LSL-Mono or LSL-SLua, second tick and further ticks are always ~1 s.