From f262e40f7549ba9e787f5302b083958154103a0f Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 21 May 2020 12:06:10 +0200 Subject: [PATCH] nameplates: add timer based updates --- modules/nameplates.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 494e54ad..097a16ae 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -569,6 +569,12 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function () local target = UnitExists("target") and frame:GetAlpha() == 1 or nil local mouseover = UnitExists("mouseover") and original.glow:IsShown() or nil + -- use timer based updates + if not nameplate.tick or nameplate.tick < GetTime() then + nameplate.tick = GetTime() + .2 + update = true + end + -- queue update on visual target update if nameplate.cache.target ~= target then nameplate.cache.target = target