Follower Entity, getting/setting performance overhead

Hello, I recall reading somewhere that getting/setting entity values from outside the entity environment can add unnecessary overhead. Does this apply to FollowerEntity properties like updateRotation and moveSpeed? I could most likely solve it without checking/setting per frame, but at this point I’m just curious.

Hi

It applies to basically every property. The reason is that it needs to synchronize with the entity component system. However, unless you have a very large number of agents, this does not tend to be particularly noticable.

1 Like

Understood, appreciate the quick and concise reply!