mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-24 00:26:55 +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)
|
||||
|
||||
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 ""
|
||||
|
||||
-- focus unit detection
|
||||
|
||||
Reference in New Issue
Block a user