mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 02:36:02 +00:00
added throttle of 60fps update rate for swing timer
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user