I have space game with a lot of asteroids (500), it is for mobile.
Recently i found out that spawning 500 asteroids that are not “awake” (ie. do not move at spawn at all) is fine with even android devices.
But then i tried to add slow random spin to them (added random angular impulse at begin play). And fps dropped dramatically.
It was even worse when they were clustered and got some collisions, this was just beyond bad (could not write stat fps).
For Spinning asteroids fps was 12, while for inactive i got 60+. I do not do any calculations for them on event tick, i plan instead to use dispatchers and events that i tell asteroids to hook when pawn is nearbly.
So my questions is if i add damping to asteroids and they stop all movement after few seconds do they stay active or go back into sleep mode. Because some persistent player could theoretically wake them all in game.
Or there is a way to put them into inactive mode from blueprints?