tick.time adjustments

tick.time adjustments
This commit is contained in:
Meow
2026-01-11 00:09:08 +01:00
parent ce0c2104fa
commit b1540c4b4c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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