WeakAuras 2

8 - Use RegisterUnitEvent when possible

Weak aura's has always had a strong point of focusing on cpu efficiency when PA did not. I think that can be further expanded by supporting Unit event filters for aura's when relevant. For example, If we are only tracking a buff on player, we Don't nessesarily need to do RegisterEvent("UNIT_AURA") we can simply do RegisterUnitEvent("UNIT_AURA", "player") thereby filtering all other Unit aura events and only parse the data we're interested in. Obviously it gets more complicated when you have multiple auras and once you have an aura that is checking EVERYONE, becomes moot. However, most aura usage is player, or target, or boss1, etc. and rarely are we interrested in unfiltered events

User When Change
InfusOnWow May 06, 2015 at 23:22 UTC Changed status from New to Invalid
mysticalos Sep 24, 2013 at 15:19 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of InfusOnWow InfusOnWow May 06, 2015 at 23:21 UTC - 0 likes

    I think that's not worth it.

    All multi auras depend on UNIT_AURA for every unit, and for every custom aura that reacts to UNIT_AURA, we don't know what to watch.

    So this would only be useful if the user has solely single buff/debuff auras.

    Also I'm not sure how big the performance benefit of that would be. If you can do tests where you add a e.g. RegisterUnitEvent("UNIT_AURA", player", "target") and show that it does drastically reduce cpu time, your case would be stronger.

    As is, I believe this is too complex for too little benefit.

  • 1 comment


Last updated
May 06, 2015
Sep 24, 2013
Invalid - This was not a valid report.
Enhancement - A change which is intended to better the project in some way
Medium - Normal priority.

Reported by

Possible assignees