Smart object performance

What are the best practices for scaling Smart Objects in scenes with 500+ active entities? Max number of smart objects / mass entities with smart object user traits? We found performance degraded sharply after a few thousand entities. Is that expected?

Is this a scene with 500 Smart Objects or 500 Mass entities? Or I guess even both might be the answer. I don’t believe we have a best practice for this currently. Where are you seeing the largest spike in performance? You could look to limit the number of Smart Objects active in the level by using Instanced Actors plugin to hydrate the Smart Object actor and component when players (or other sources are nearby) and only show a mesh of the object at other times. If it is in requests firing from MassStateTree, you can limit how often it checks for Smart Objects and limit the search range. You may look into having your StateTree only search for Smart Objects in certain circumstances such as proximity to the player or even a higher LOD level.

-James

We’ve tried combinations of both from 0-15k. Smart objects had a single slot. Mass entities had 7 fragments, including a state tree. Once we got over 1k mass entities, even with zero smart objects, frame time increased over 5ms. Our plan is to manage the smart objects with a custom system.

I do not know that we have tested with that many entities and Smart Objects at once. Are your entities using the visualization as well or only simulating currently? Could you share with us an Insights capture with the hitches and frame data?

-James