mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 20:50:01 +00:00
nameplates: use tick events only as fallback
This commit is contained in:
@@ -887,12 +887,6 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
|||||||
nameplate:SetAlpha(tonumber(C.nameplates.notargalpha))
|
nameplate:SetAlpha(tonumber(C.nameplates.notargalpha))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- use timer based updates
|
|
||||||
if not nameplate.tick or nameplate.tick < GetTime() then
|
|
||||||
nameplate.tick = GetTime() + .25
|
|
||||||
update = true
|
|
||||||
end
|
|
||||||
|
|
||||||
-- queue update on visual target update
|
-- queue update on visual target update
|
||||||
if nameplate.cache.target ~= target then
|
if nameplate.cache.target ~= target then
|
||||||
nameplate.cache.target = target
|
nameplate.cache.target = target
|
||||||
@@ -942,9 +936,15 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- use timer based updates
|
||||||
|
if not nameplate.tick or nameplate.tick < GetTime() then
|
||||||
|
update = true
|
||||||
|
end
|
||||||
|
|
||||||
-- run full updates if required
|
-- run full updates if required
|
||||||
if update then
|
if update then
|
||||||
nameplates:OnDataChanged(nameplate)
|
nameplates:OnDataChanged(nameplate)
|
||||||
|
nameplate.tick = GetTime() + .5
|
||||||
end
|
end
|
||||||
|
|
||||||
-- target zoom
|
-- target zoom
|
||||||
|
|||||||
Reference in New Issue
Block a user