Open ItsPepperpot opened 9 months ago
ArchiveEditor.SetSelectedIndices
is causing asset selection to take a long time.
When you click in the 3D view, it will also change the selected layer on the layer combo box in the Archive Editor window.
This triggers the ArchiveEditor.comboBoxLayers_SelectedIndexChanged
event - presumably causing every item in the Archive Editor asset list to be updated?
This takes about 800ms with BB02.hip and BB02.hop when selecting a Simple Object.
It seems a large proportion of the time is spent here: https://github.com/igorseabra4/IndustrialPark/blob/ec5bb8be72f6e0d78ca10ce2173c8afba2b51339/IndustrialPark/ArchiveEditor/ArchiveEditor.cs#L570 adding the items to listViewAssets takes a long time.
Sometimes selecting an asset in levels with many assets can take a long time (several seconds) before it appears selected with the gizmo + selection tint, especially in scenes with many objects.
To Reproduce