mirror of
https://github.com/NeoFlock/neonucleus.git
synced 2025-09-24 09:03:32 +02:00
stuff
This commit is contained in:
parent
99133852c2
commit
9df8512716
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user