Hi everyone. i am using a timer to count the time and another timer to check every milisecond, because when my local variable game change to true, it will activate the code inside on this timer, but i should use a timer every milisecond or a runtime? and give me better options, better clean up memory, better performance and can crash less times.
Runtime function or…
local function StarsPhysics (event)
--code
end
StarsPhysicsTimer = timer.performWithDelay(1, StarsPhysics, 0)
StarsPhysicsTimerPause = timer.pause (StarsPhysicsTimer)
[import]uid: 26056 topic_id: 22129 reply_id: 322129[/import]
(or What difference?)