From aced71a75f6d2ffcbbff1cc4aaf066880d92c1a7 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Sun, 22 Mar 2026 01:29:10 +0100 Subject: [PATCH] full control over castbar nameplate throttle --- modules/nameplates.lua | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index e1c93817..c9d80ab5 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -1292,17 +1292,14 @@ nameplates:RegisterEvent("ZONE_CHANGED_NEW_AREA") throttle = pfUI.throttle:Get("nameplates") -- Default: 10 FPS end - -- castbar has its own throttle (independent of target throttle) - local castbarThrottle = pfUI.throttle:Get("nameplates_castbar") -- Default: 20 FPS - local castbarReady = (nameplate.castLastTick or 0) + castbarThrottle <= now - if nameplate.castUpdate and castbarReady then - nameplate.castLastTick = now - elseif nameplate.castUpdate and not castbarReady then - nameplate.castUpdate = nil -- defer castUpdate until castbar throttle allows it + -- When a castbar is actively shown, use the castbar throttle if it's faster + -- than the general throttle, so the castbar animation stays smooth + local castbarThrottle = pfUI.throttle:Get("nameplates_castbar") + if isCasting and castbarThrottle < throttle then + throttle = castbarThrottle end -- Check for pending event updates (these bypass throttle for immediate response) - -- castUpdate is now handled by its own throttle above, not the general bypass local hasEventUpdate = nameplate.eventcache or nameplate.auraUpdate or nameplate.castUpdate or nameplate.targetUpdate or nameplate.comboUpdate -- Event updates bypass throttle