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
+4 -1
View File
@@ -378,7 +378,10 @@ function HealBot_OnEvent_PlayerRegenEnabled(this)
end
function HealBot_OnEvent_PlayerTargetChanged(this)
HealBot_RecalcParty();
if HealBot_Action_UnitButtons and HealBot_Action_UnitButtons["target"] then
HealBot_Action_RefreshButtons("target");
HealBot_OnEvent_UnitAura(nil, "target");
end
end
function HealBot_OnEvent_PartyMembersChanged(this)