mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 01:34:44 +00:00
perf: eliminate string allocation GC spikes in healthbar refreshing and remove full UI rebuilds on target change
This commit is contained in:
@@ -246,7 +246,7 @@ function HealBot_CheckCasting(unit)
|
||||
local ag = HealBot_Config.babortcolg[HealBot_Config.Current_Skin] or 0.1;
|
||||
local ab = HealBot_Config.babortcolb[HealBot_Config.Current_Skin] or 0.5;
|
||||
local aa = HealBot_Config.babortcola[HealBot_Config.Current_Skin] or 1;
|
||||
bar.txt = getglobal(bar:GetName() .. "_text");
|
||||
if not bar.txt then bar.txt = getglobal(bar:GetName() .. "_text") end
|
||||
|
||||
if HealBot_IsCasting == false and HealBot_AbortButton == 0 then
|
||||
bar:SetStatusBarColor(ar, ag, ab, 0);
|
||||
|
||||
Reference in New Issue
Block a user