perf: eliminate string allocation GC spikes in healthbar refreshing and remove full UI rebuilds on target change

This commit is contained in:
Bluewhale1337
2026-07-18 13:35:59 +02:00
parent 2e35be6516
commit c8a5e4f0eb
3 changed files with 16 additions and 8 deletions
+1 -1
View File
@@ -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);