Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-26-18, 07:06 AM   #1
Gello
A Molten Giant
AddOn Author - Click to view addons
Join Date: Jan 2005
Posts: 521
Huge garbage creation from map data providers

edit: I meant to post this in the Lua/XML help forum. Sorry!

I don't know if this is a bug or accepted behavior, but it appears that using a data provider will create many MB of garbage over a short period of time while the mouse is over the world map.

To test:
1. Create an addon with one line of code (I've noticed this behavior in more fleshed out addons too):
Code:
WorldMapFrame:AddDataProvider(CreateFromMixins(MapCanvasDataProviderMixin))
2. Disable all addons as you log in aside from this one. (For a less rigorous test you can enable an addon to track memory usage too.)
3. Note the memory usage of the single addon. (From mouseover of Game Menu microbutton if you don't have an memory usage addon enabled.)
4. Open the world map and put the mouse over it.
5. Periodically check memory usage.

On my client, the 3k attributed to the addon balloons to 3 MB within a minute. It will reset periodically (meaning it's likely garbage being collected) and then march back up.

With multiple addons having a data provider, one unlucky addon gets the blame and I've seen it add 5MB within a minute before dropping back.

Has anyone else noticed this behavior? Is there something we can do to minimize it? Or is it accepted behavior and we should ignore it?

Last edited by Gello : 07-26-18 at 07:15 AM.
  Reply With Quote
 

WoWInterface » PTR » PTR UI Bugs » Huge garbage creation from map data providers

Thread Tools
Display Modes

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