Thread Tools Display Modes
10-21-10, 07:55 AM   #1
Andanor
A Defias Bandit
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 3
Heavy CPU load

I'm having some strange behavior which causes heavy CPU load (tested with Addon Profiler) as soon as my raidframes show up.

It seems that every update function which is registered to raid frames fires up multiple times each second even if the related event has not been triggered (like ricons or aura for instance).

Anybody an idea where this may come from?
Thx in advance!
  Reply With Quote
10-21-10, 08:01 AM   #2
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Have you set .frequentupdates at a small interval on multiple elements/tags?

Posting you code would mean we wouldn't have to guess....
  Reply With Quote
10-21-10, 08:24 AM   #3
Andanor
A Defias Bandit
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 3
No .frequentUpdates used at all.

I've also tested this behavior with various other layouts...same thing there. Headers get updated multiple times per second even if the related event has not been fired.
  Reply With Quote
10-21-10, 08:30 AM   #4
yj589794
A Rage Talon Dragon Guard
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 314
Originally Posted by Andanor View Post
Headers get updated multiple times per second
This is a known bug that is caused by Blizzards code. It is the same reason why
  • portraits on headers flicker and constantly restart
  • clicks on header units sometimes get lost
  • other weird stuff happens

Just sit back and wait for Blizzard to fix it.
  Reply With Quote
10-27-10, 04:34 AM   #5
Andanor
A Defias Bandit
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 3
Just curious: Why does this header update bug does not affect other unit frames like Grid or SUF?
  Reply With Quote
10-27-10, 05:37 AM   #6
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Originally Posted by Andanor View Post
Just curious: Why does this header update bug does not affect other unit frames like Grid or SUF?
oUF runs full updates on :OnShow(), which is why it gets bitten by this. I've been thinking about reworking this, but haven't decided how yet, or if it's worth it.

I can't answer your question about other unit frames as I don't know their internals.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
11-01-10, 03:00 AM   #7
therealspanner
A Kobold Labourer
Join Date: Apr 2009
Posts: 1
Originally Posted by haste View Post
oUF runs full updates on :OnShow(), which is why it gets bitten by this. I've been thinking about reworking this, but haven't decided how yet, or if it's worth it.

I can't answer your question about other unit frames as I don't know their internals.
SUF does it by caching the unit's guid and only running a full update if the guid changes. I did a quick and dirty test (used AddOn Profiler for 5 minutes in AV/WG) and it makes a big difference:

http://img822.imageshack.us/img822/1248/oufperftest.jpg

Top part is standard oUF, bottom is with very basic guid caching.
  Reply With Quote
11-01-10, 06:35 AM   #8
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
I'm honestly not sure if it's worth the effort to fix. The only reason it currently is an issue is because of the bug in the secure group header, and that should be fixed in 4.0.3, which shouldn't be too far from now.

Changing the OnShow to use the GUID would also mean that we need to implement more unit specific force updates. Currently oUF only had like two (target and mouseover).

The CPU cycles saved would probably not be to high after the bug is fixed as well.

(sent from my phone)
__________________
「貴方は1人じゃないよ」
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Heavy CPU load


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off