Does the function, timer.performWithDelay, have any limitation?
If I write fallow code, pass 1 into the very first parameter:
–srart of my code
local checkTime = 0
local function runtimeplus()
checkTime = checkTime + 1
if (checkTime == 1000) then
print(“1s”)
checkTime = 0
end
end
timer.performWithDelay( 1 , runtimeplus, 0 )
–end of my code
I found the function, timer.performWithDelay, didn’t work exactly 1 millisecond.
Of course I know I can change my setting to
timer.performWithDelay( 1000 , runtimeplus, 0 )
and get exactly 1 sec,
however my question is not solved,
My question once again:
Does the function, timer.performWithDelay, have any limitation?
Thank You for viewing this [import]uid: 199195 topic_id: 35599 reply_id: 335599[/import]
