Hey all.
Me, Norbyte, and Ameranth were having a discussion earlier today, and it would really be nice if one of the engine developers could clear this up.
What is the performance impact of a custom event (CallFunction, CharacterEvent, ItemEvent, etc)?
Coming from a Node background, I am used to this type of thing being O(1) with respect to other events and O(n) within it's own scope (So it iterates every event of the same type, but not others).
But in the scope of the custom event calls, you kind of have both scenarios. CharacterEvent is, itself, an "event". But you also have an identifier in the parameter which I could see being used as an "event" as well.
So when I have CallFunction('Function1'), and I have 5 event listeners listening for Function1, 2, 3, 4, and 5, am I iterating over each of those listeners and checking what event they are subscribed to, or does the logic know to instantly jump to each listener registered specifically for Function1?