I’m in need of help in finding ways to optimize an entity system that spawns in enemies every wave (just like a TD game) as every now and then huge lag spikes happen a lot.
The system uses AlignPosition and Heartbeat.
It is unclear the source of the problem, if you have any answers to sudden lag spikes for spawning entities, please help!