performance updates

performance updates
This commit is contained in:
Meow
2025-12-31 12:21:44 +01:00
committed by GitHub
parent a4cd49dbfd
commit 6eca163abd
8 changed files with 1938 additions and 18 deletions
+3
View File
@@ -2,6 +2,9 @@ pfUI:RegisterModule("skin", "vanilla:tbc", function ()
-- align UIParent panels
pfUI.panelalign = CreateFrame("Frame", "pfUIParentPanelAlign", UIParent)
pfUI.panelalign:SetScript("OnUpdate", function()
-- throttle to 5 updates per second instead of every frame
if (this.tick or 0.2) > GetTime() then return else this.tick = GetTime() + 0.2 end
local left = UIParent.left
local center = UIParent.center
local rbpos, ropos