BigDebuffs

BigDebuffs

20M Downloads

Utilize new optimized APIs

rtroberts opened this issue ยท 3 comments

commented

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

commented

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.

commented

Maybe this could fix the huge CPU usage it has, espacially the more unit it has to track ?

Like reported in #599 #500 #495 #434 #410 #321 #89 #651