forgot raidframe throttle

Added additionally a raidframe roster throttle
This commit is contained in:
Meow
2026-01-10 13:34:40 +01:00
parent 02e5ecdbeb
commit 9fc161df21
+5 -1
View File
@@ -87,6 +87,10 @@ pfUI:RegisterModule("raid", "vanilla:tbc", function ()
pfUI.uf.raid:RegisterEvent("VARIABLES_LOADED")
pfUI.uf.raid:SetScript("OnEvent", function() this:Show() end)
pfUI.uf.raid:SetScript("OnUpdate", function()
-- Throttle raid roster updates to 5 FPS
if (this.tick or 0) > GetTime() then return end
this.tick = GetTime() + 0.2
-- don't proceed without raid or during combat
if not UnitInRaid("player") or (InCombatLockdown and InCombatLockdown()) then return end
@@ -136,4 +140,4 @@ pfUI:RegisterModule("raid", "vanilla:tbc", function ()
pfUI.uf.raid:Show()
end
end)
end)
end)