diff --git a/modules/raid.lua b/modules/raid.lua index 7bda90ba..6c5f4c6f 100644 --- a/modules/raid.lua +++ b/modules/raid.lua @@ -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) \ No newline at end of file