energy tick throttle implemented

energy tick throttle implemented
This commit is contained in:
Meow
2026-01-10 14:35:26 +01:00
parent 7f93ebefaf
commit 6866a6de09
+4
View File
@@ -59,6 +59,10 @@ pfUI:RegisterModule("energytick", "vanilla:tbc", function ()
end)
energytick:SetScript("OnUpdate", function()
-- Throttle for performance
if (this.tick or 0) > GetTime() then return end
this.tick = GetTime() + 0.020
if this.target then
this.start, this.max = GetTime(), this.target
this.target = nil