Dynamic light creation limits and errors
🌙 Lua•Updated 2 days ago•0 views
There's a hard GLua dynamic-light limit and SF accounts for other addons' lights - exceeding it errors the chip. Wrap light:draw() in try() so failures don't ki…
How to limit dynamic light creation / handle errors when other addons consume the light budget
There's a hard GLua dynamic-light limit and SF accounts for other addons' lights - exceeding it errors the chip. Wrap light:draw() in try() so failures don't kill the chip, and stop spawning lights in the fail callback.