This commit is contained in:
IonutParau 2025-07-05 13:00:52 +02:00
parent 99133852c2
commit 9df8512716

View File

@ -449,11 +449,19 @@ coroutine.yield() -- startup delay
local f = bootstrap()
local co = coroutine.create(f)
local gcInterval = 0.25
local lastGC = computer.uptime()
while true do
timeout = nextDeadline()
bubbleYield = false
collectgarbage()
if computer.uptime() - lastGC >= gcInterval then
collectgarbage("collect")
lastGC = computer.uptime()
end
local ok, err = coroutine.resume(co)
if not ok then