Once again, don't RegisterAllEvents because it causes a huge amount of CPU waste on nothing. Instead, only register events that have actually been asked for.
For "special" events like Aura, Cast, etc, don't set them up unless there's a something actually utilizing them. This detection utilizes the EventRequested event being added in https://github.com/parnic/LibDogTag-3.0/pull/1.
Leaving as a draft until the LDT changes are merged.
Note: When viewing the diff, make sure to ignore whitespace changes:
Dependent upon https://github.com/parnic/LibDogTag-3.0/pull/1. See that PR's description for more details on the premise here.
Notes on the changes here specifically:
Aura
,Cast
, etc, don't set them up unless there's a something actually utilizing them. This detection utilizes theEventRequested
event being added in https://github.com/parnic/LibDogTag-3.0/pull/1.Leaving as a draft until the LDT changes are merged.
Note: When viewing the diff, make sure to ignore whitespace changes: