mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-09-14 19:08:01 +00:00
Fix: expand table pooling across modules to reduce garbage collection
This commit is contained in:
@@ -184,7 +184,7 @@ function HealBot_OnEvent_UnitAura(this, unit)
|
||||
local iconCount = 0
|
||||
local i = 1;
|
||||
HealBot_UnitDebuff[unit] = nil;
|
||||
local trackedTextures = {}
|
||||
local trackedTextures = HealBot_GetTable()
|
||||
|
||||
while true do
|
||||
local debuff, tmp, debuff_type = UnitDebuff(unit, i, 1)
|
||||
@@ -301,5 +301,6 @@ function HealBot_OnEvent_UnitAura(this, unit)
|
||||
|
||||
-- Defer UI updates
|
||||
HealBot_View_DirtyUnits[unit] = true
|
||||
HealBot_ReleaseTable(trackedTextures)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user