mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 09:44:44 +00:00
perf: eliminate remaining GC spikes by preventing layout rebuilds on combat toggle and zeroing hot-loop table allocations
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user