Closed Cyklan closed 2 years ago
I've had another optimization idea.
Maybe we only spawn enemies once the player is in a certain range to the enemies. Then enemies could theoretically be pooled to save on memory and cpu usage
I did a similar thing.
All spawned enemies will be disabled by default. If the player is close to them they get enabled. Once the player is to far away the enemies get disabled again.
I also tried doing that with the ground and walls, but there were to many objects so performance was even worse.
Add enemy ideas and what type of attacker they are / what kind of loot they could drop in the comments