added throttle of 60fps update rate for swing timer

This commit is contained in:
Meow
2026-02-21 15:23:19 +01:00
parent 1f2ded45c5
commit 50daec8b61
+4
View File
@@ -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