View Single Post
02-28-13, 10:47 AM   #4
Mayron
A Frostmaul Preserver
 
Mayron's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2010
Posts: 275
Originally Posted by Haleth View Post
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?
  Reply With Quote