find.all with heavy filter exceeds time buffer
🌙 Lua•Updated 2 days ago•0 views
find.all can't yield mid-filter (it wraps GLua's find then builds a table). Call find.all without a filter, then apply your own filtering in a coroutine that mo…
How to filter find.all results when the filter function is too slow for the SF time buffer
find.all can't yield mid-filter (it wraps GLua's find then builds a table). Call find.all without a filter, then apply your own filtering in a coroutine that monitors quota - e.g. process a few entities per tick.