Originally Posted by Haleth
You definitely shouldn't use OnUpdate for this. OnUpdate functions run every time a new frame is drawn, so at 60 frames per second, each OnUpdate function is run 60 times per second which is a burden on the processor. It should be reserved for timers and similar things.
|
This is sort of worrying because I am using many OnUpdate KgPanel scripts such as this:
Code:
if IsAddOnLoaded("Chatter") then
if LibStub("AceAddon-3.0"):GetAddon("Chatter").db:GetCurrentProfile() == "MayronUI" then
self:Show()
else
kgPanels:FetchFrame("chatB"):Show()
Bazooka.db:SetProfile("MayronUI2")
self:Hide()
end
end
I know this might be off topic but should I be worrying about this? If so what should I be doing instead?