﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	resolution	keywords	cc	phab_field
2179	"Optimization of ""gui sim update"" needed when large groups of units are selected."	RefinedCode		"If you open up the in game profiler, and then select a large number of units you can see a huge increase to ""gui sim update"".  In my case selecting 100 Longbowmen causes the msec/turn to increase from ~1 to ~48 which is more than a third of what the rendering takes. This causes a very noticeable choppiness in game.  

I measured execution time of various functions and determined the cause of this lag stems from the many calls to GetEntityState from EntitySelection.prototype.update in selection.js.  Every turn this function is called for every one of the selected units. 

There is a much larger performance hit when the jsdebugger is enabled but when I took my measurements when it was off, so it would be a pretty good performance increase if the cause of this lag is fixed."	task	new	Should Have	Backlog	UI & Simulation				
