From 6866a6de097b7b6ab32d34b93b07b47d88fadc25 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sat, 10 Jan 2026 14:35:26 +0100 Subject: [PATCH] energy tick throttle implemented energy tick throttle implemented --- modules/energytick.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/energytick.lua b/modules/energytick.lua index d3c8e24d..825a4257 100644 --- a/modules/energytick.lua +++ b/modules/energytick.lua @@ -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