unitframes: set limit to onupdate speed

This commit is contained in:
shagu
2017-07-29 14:57:51 +02:00
parent 5e0231570b
commit c1ca648fdd
+2
View File
@@ -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