From 50daec8b614c1b03859586c13d74f9fb25f85616 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sat, 21 Feb 2026 15:23:19 +0100 Subject: [PATCH] added throttle of 60fps update rate for swing timer --- modules/swingtimer.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/swingtimer.lua b/modules/swingtimer.lua index 25a428ba..e4a1aa3a 100644 --- a/modules/swingtimer.lua +++ b/modules/swingtimer.lua @@ -328,7 +328,11 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function () pfUI.swingtimer:Show() end + local swingThrottle = 0 pfUI.swingtimer:SetScript("OnUpdate", function() + swingThrottle = swingThrottle + arg1 + if swingThrottle < 0.016 then return end + swingThrottle = 0 local now = GetTime() local anyActive = false