View Single Post
04-02-13, 04:23 PM   #19
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Rainrider View Post
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.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote