mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 21:20:00 +00:00
New throttling menu
New throttling menu
This commit is contained in:
+2
-2
@@ -240,10 +240,10 @@ libpredict:SetScript("OnEvent", function()
|
||||
end)
|
||||
|
||||
libpredict:SetScript("OnUpdate", function()
|
||||
-- throttle cleanup to 0.1s - no need to check every frame
|
||||
-- throttle cleanup - no need to check every frame
|
||||
local now = pfUI.uf.now or GetTime()
|
||||
if (this.tick or 0) > now then return end
|
||||
this.tick = now + 0.1
|
||||
this.tick = now + 0.1 -- Default: 10 FPS
|
||||
|
||||
-- update on timeout events
|
||||
for timestamp, targets in pairs(events) do
|
||||
|
||||
Reference in New Issue
Block a user