mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-17 18:20:49 +00:00
unitframes: set limit to onupdate speed
This commit is contained in:
@@ -218,6 +218,8 @@ function pfUI.uf:CreateUnitFrame(unit, id, config, tick)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
f:SetScript("OnUpdate", function()
|
f:SetScript("OnUpdate", function()
|
||||||
|
if ( this.fpscontrol or 1) > GetTime() then return else this.fpscontrol = GetTime() + .02 end
|
||||||
|
|
||||||
local unitname = ( this.label and UnitName(this.label) ) or ""
|
local unitname = ( this.label and UnitName(this.label) ) or ""
|
||||||
|
|
||||||
-- focus unit detection
|
-- focus unit detection
|
||||||
|
|||||||
Reference in New Issue
Block a user