zhevron / Threat

WildStar threat meter
http://www.curse.com/ws-addons/wildstar/223651-threat
2 stars 0 forks source link

Performance #3

Closed mscv closed 8 years ago

mscv commented 10 years ago

Throwing this together as one issue, since most of it is small.

1) map globals to upvalues 2) set references to most commonly used forms and use them instead of wnd:FindChild() 3) possibly limit the number of bars created? 4) the most important: do not destroy and recreate forms on each update! it's very costly and in your use case you can just reset bar values and hide them if they aren't needed.

zhevron commented 10 years ago

Let's see here, tons of feedback to look at:

1) Yeah, this is on my todo list already. 2) I will look into this. I do not like seeing that many FindChild calls either. 3) Yes, this is also something on my todo list. 4) Also something I've been planning on.