From 9fc161df217dd383ea2f379128015eba5ecaeed6 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sat, 10 Jan 2026 13:34:40 +0100 Subject: [PATCH] forgot raidframe throttle Added additionally a raidframe roster throttle --- modules/raid.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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