mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-16 09:50:50 +00:00
performance updates
performance updates
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user