mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-17 18:20:49 +00:00
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:
@@ -944,7 +944,7 @@ pfUI:RegisterModule("nameplates", "vanilla", function ()
|
|||||||
|
|
||||||
-- OPTIMIZED: Minimal throttle - only skip if very recent update
|
-- OPTIMIZED: Minimal throttle - only skip if very recent update
|
||||||
local target = UnitExists("target") and frame:GetAlpha() == 1 or nil
|
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
|
if (nameplate.lasttick or 0) + throttle > GetTime() then return end
|
||||||
nameplate.lasttick = GetTime()
|
nameplate.lasttick = GetTime()
|
||||||
|
|||||||
Reference in New Issue
Block a user