Originally Posted by Rainrider
If UNIT_HEALTH_FREQUENT is a hidden polling, why would Blizzard not just register for it but rather poll it in lua in UnitFrame.lua and the like?
|
Because it's way more efficient to do the polling C-side and fire off events, than for 5, 10, or 100 addons to run identical OnUpdate scripts in Lua. I mean, in theory you could just use OnUpdate for everything instead of responding to events... but I'm pretty sure even the UI coders at Blizzard, with their inexplicable love for ugly and inefficient code, would laugh at you if you did that.