Will I get better performance from one component or lots of components

Having lots of includes have no runtime performance implications.
Most performance implication of having multiple components comes from having to call virtual functions like Tick that engine has to find and call every frame.
But if its data only components like abilities, stats and moments, you can create multiple components and disable their tick (if they aren’t doing anything in tick).
Setting bCanEverTick to false means that that component can never tick, so UE4 will optimize this by removing that component from it’s list of objects that will tick.
The same optimization works for actors too. Disable tick for any actor in your game that doesn’t use tick can improve your performance.

1 Like