Utilize new optimized APIs
rtroberts opened this issue ยท 3 comments
BigDebuffs continues to operate via old aura update methods, which are expensive and unnecessary.
Blizzard implemented optimized APIs to interact with changed auras only over two years ago: https://us.forums.blizzard.com/en/wow/t/new-unitaura-processing-optimizations/1205007
It is no longer necessary to iterate through all auras for every UNIT_AURA event. The API provides an additional parameter, which has an attribute containing the changed auras ONLY. Additionally, an extra helper function (AuraUtil.ShouldSkipAuraUpdate()
) can be used to return early if no relevant auras are changed.
Another helpful link: https://wowpedia.fandom.com/wiki/UNIT_AURA
I'll try my hand at producing a PR to implement this, but it may take me quite a while to work through LUA dev.