sleep() doesn't work right.
SoniEx2 opened this issue ยท 1 comments
A workaround is to call sleep(0.05) in a loop:
function fixsleep(n)
sleep(n % 0.05) -- at least a 1-tick sleep
for i=2,math.floor(n * 20) do
sleep(0.05)
end
end
SoniEx2 opened this issue ยท 1 comments
A workaround is to call sleep(0.05) in a loop:
function fixsleep(n)
sleep(n % 0.05) -- at least a 1-tick sleep
for i=2,math.floor(n * 20) do
sleep(0.05)
end
end