What Starfall coroutines are for
🌙 Lua•Updated 2 days ago•0 views
Coroutines let you yield across CPU-quota windows - useful when a single operation (pathfinding over many nodes, drawing a large custom mesh) would exceed the t…
How do coroutines work in Starfall and when are they useful
Coroutines let you yield across CPU-quota windows - useful when a single operation (pathfinding over many nodes, drawing a large custom mesh) would exceed the tick/think time budget, letting other things run between chunks. They're mainly a quota/performance tool, not a repeating mechanism like a think hook.