mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 12:10:01 +00:00
tick.time adjustments
tick.time adjustments
This commit is contained in:
+1
-1
@@ -70,7 +70,7 @@ pfUI:RegisterModule("castbar", "vanilla", function ()
|
||||
cb:SetScript("OnUpdate", function()
|
||||
-- Throttle for performance
|
||||
if (this.tick or 0) > GetTime() then return end
|
||||
this.tick = GetTime() + 0.025 -- ~60 FPS for smooth castbar
|
||||
this.tick = GetTime() + 0.020 -- ~60 FPS for smooth castbar
|
||||
|
||||
if this.drag and this.drag:IsShown() then
|
||||
this:SetAlpha(1)
|
||||
|
||||
@@ -984,7 +984,7 @@ pfUI:RegisterModule("nameplates", "vanilla", function ()
|
||||
-- Nutze Alpha >= 0.99 statt == 1 um Flackern durch Fließkomma-Ungenauigkeiten zu verhindern
|
||||
-- (Nicht-Targets werden explizit auf 0.95 gesetzt, Targets auf 1.0)
|
||||
local target = UnitExists("target") and frame:GetAlpha() >= 0.99 or nil
|
||||
local throttle = target and 0.025 or 0.025
|
||||
local throttle = target and 0.020 or 0.020
|
||||
|
||||
if (nameplate.lasttick or 0) + throttle > now then return end
|
||||
nameplate.lasttick = now
|
||||
|
||||
Reference in New Issue
Block a user