realXtend / tundra

realXtend Tundra SDK, a 3D virtual world application platform.
www.realxtend.org
Apache License 2.0
84 stars 70 forks source link

Scene + EC Editor windows really slow when dealing with lots of entities #726

Open Stinkfist0 opened 10 years ago

Stinkfist0 commented 10 years ago

I have a scene which has 4000 entities, pretty much all of them are relatively simple entities containing Name, Mesh, Placeable and DynamicComponent ECs. The usability of Scene and EC editors get really slow. F.ex.: -Opening Scene editor takes many seconds. -When attributes are shown and components are unticked, Tundra stalls for many tens of seconds, even minutes -When I select a certain subset (around 1200) of these entities and choose to edit them, Tundra freezes for couple minutes. Majority of the time is spent in the Highlight component creation (and Scene structure listening to Scene changes and creating new component items to the Scene editor); if I disable highlighting of selected entites, the EC editor pops up quite fast.

jonnenauha commented 10 years ago

As we discussed on skype I think if you select lots of entities and open them in a new EC editor (right click -> Open in new window...) the highlight component addition should be left out. If you really want highlight and the gizmo to manipulate them you can hit the § shortcut to do so. Maybe the threshold should be like ~20-50 entities, something that is still quite snappy :)

I'm sure you are already doing this by now, just wanted to bring the discussion to the open.