💬

Community answer

Collected from the ACE community Discord archive around 2024-02-26. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

Dynamic light creation limits and errors

🌙 LuaUpdated 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.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.