New Enchanment? I like that one. Got my vote!
...Oooo how funny. *Ahem*
Sorry. Sorry. I'll chip in something to that later..
Silentwings wrote:I get a spike of lag when I select an unit or building that can construct things.
Check the widget profiler when you do this maybe? Does it depend on the faction?
It's the SelectMenu. I can kneel my computer by just keeping "Ctrl+C" down to continously re-select my commander. Smaller spike of lag is evident after going through a few units and then again selecting an unit that can construct.
In more detail and when profiling, bgu_smenu.lua's loadPanels, AddInSequence and parseCmds take the icing on the cake in regards to performance. My Lua is very poor, but when I skim that code file, perhaps something there was cacheable? It seems to recreate a lot of data every time that the unit menu is opened..
object.Lua's and control.Lua's "New" take a lot of time, too, but I'd suspect that it's a secondary effect caused by the menu reload or profiling.