How do message interrupts work under the hood?

Since Lua isn’t thread safe, we must always interact with it on the main thread.
So, there is no other calling your script at the same time you are receiving a message.

When a message interrupt

To be clear, these are not interrupts. We simply send the messages at certain points during the update loop (basically before and after each component type update).

1 Like