I think I understood the problem in that precise case:
A function called with EVENT_MANAGER:RegisterForUpdate was calling another function with EVENT_MANAGER:RegisterForUpdate so this made a loop inside the loop, calling the 2nd function with zo_callLater avoids the unnecessary loop.
I don't know if it is possible but can EVENT_MANAGER:RegisterForUpdate return something like a warning in case the timer of a function with the same identifier is repeatedly reset and never really triggers?
|