perf: eliminate remaining GC spikes by preventing layout rebuilds on combat toggle and zeroing hot-loop table allocations

This commit is contained in:
Bluewhale1337
2026-07-18 23:43:35 +02:00
parent 9f08b356e1
commit e6ad9e7506
2 changed files with 9 additions and 5 deletions
+5 -1
View File
@@ -2,6 +2,7 @@
-- Handles tracking buffs/debuffs (auras) on group/raid units
HealBot_MissingBuffs = {}
local StaticHasBuff = {}
function HealBot_UnitAffected(unit, effect)
if not effect then return nil; end
@@ -68,7 +69,10 @@ function HealBot_CheckBuffs(unit)
}
-- Gather buffs on unit
local hasBuff = {}
local hasBuff = StaticHasBuff
for k in pairs(hasBuff) do
hasBuff[k] = nil
end
local i = 1
while true do
local buffTexture = UnitBuff(unit, i)