View Single Post
05/12/21, 07:16 AM   #1
Phinix
 
Phinix's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 186
[open] Request new event filter (performance)

I wanted to request adding a MsgEffectResult (changeType) event filter for EVENT_EFFECT_CHANGED. Use case would be, registering the unfiltered event only for EFFECT_RESULT_GAINED.

This way a local table of gained abilityIds per unitTag can be kept by an aura-tracking addon like Srendarr, and each could be registered for EVENT_EFFECT_CHANGED in its own namespace by abilityId and unregistered when the effect ends.

This should significantly improve performance, as you are only then open-listening for EFFECT_RESULT_GAINED events in EVENT_EFFECT_CHANGED (which is a heavy event), along with a pre-filtered list of specific abilityIds.
  Reply With Quote