mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-16 01:50:48 +00:00
forgot raidframe throttle
Added additionally a raidframe roster throttle
This commit is contained in:
@@ -87,6 +87,10 @@ pfUI:RegisterModule("raid", "vanilla:tbc", function ()
|
|||||||
pfUI.uf.raid:RegisterEvent("VARIABLES_LOADED")
|
pfUI.uf.raid:RegisterEvent("VARIABLES_LOADED")
|
||||||
pfUI.uf.raid:SetScript("OnEvent", function() this:Show() end)
|
pfUI.uf.raid:SetScript("OnEvent", function() this:Show() end)
|
||||||
pfUI.uf.raid:SetScript("OnUpdate", function()
|
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
|
-- don't proceed without raid or during combat
|
||||||
if not UnitInRaid("player") or (InCombatLockdown and InCombatLockdown()) then return end
|
if not UnitInRaid("player") or (InCombatLockdown and InCombatLockdown()) then return end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user