Castbar update

- Reduces castbar updates from 50 times per second to 40 times per second (still looks smooth but gives us more performance)
This commit is contained in:
Meow
2026-01-08 13:12:29 +01:00
parent 07f23db45f
commit 2f91e85a35
+1 -1
View File
@@ -944,7 +944,7 @@ pfUI:RegisterModule("nameplates", "vanilla", function ()
-- OPTIMIZED: Minimal throttle - only skip if very recent update
local target = UnitExists("target") and frame:GetAlpha() == 1 or nil
local throttle = target and 0.02 or 0.02
local throttle = target and 0.025 or 0.025
if (nameplate.lasttick or 0) + throttle > GetTime() then return end
nameplate.lasttick = GetTime()