View Single Post
05/22/20, 04:33 AM   #8
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,976
Exactly about the time limit and amount of anchors processed.

The addons recreate the anchors at defined events like moving a control or resizing etc.
Beside this you'd manually need to create a function reanchorAllControls e.g. in your addon which most likely is not going to happen
As you need to find all your controls and list them there, call ClearAnchors and then reanchor them properly.
As this is very time consuming and not a good way to do (some controls will be anchored automatically to their parent controls, others won't, some only need to anchor as they are moved etc.).

What I meant was to check the addons (enable/disable) and see which ones together might be a problem.
Do some more tests than in order to find out if single addons of these, enabled with other addons, also produce the problem to find out which one of them really anchors a lot.
It's hard to find out and you need to invest a lot of time...

And after you e.g. found one or a few addons which seem to anchor/re-anchor controls a lot you coudl tell the devs about it in the addon comments .
They would need to check their code then and find out which are the controls that are created/updated and anchored/re-anchored. If they are able to they might also be able to add a delay in there.
Like if the addon adds textures to exisitng controls, which will make the texture controls set their anchors, they might delay the creation of the texture controls in packages so e.g. 10 will be created in a row and then there is a small delay (200ms) before the next package gets created.
This is what I know some mapPins related addons (like HarvestMap or others) are already using.
  Reply With Quote