There really isn't any magical difference between the two ways of registering events. The Lua engine is just slow compared to the game's C code. Any time spent calling your Lua code eats up CPU power, even if your function has no instructions in it. This is why the specific unit event registration exists, to only call your function when the event fires for the unit you're watching.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
|
Last edited by SDPhantom : 10-11-20 at 01:01 AM.
|