I was hoping to get some input from the great minds on the forum who know more than me in this area. I’m working on a game that spawns a random dungeon made from prebuilt chunks and my concern is optimising enemies. Correct me if I am wrong but suppose my chunks have enemy spawns inside of them (These could be simple blueprint “turrets” or Behaviour tree AI enemies) all of the enemies around the dungeon will be firing ticks and slowing down the game tick?
I was wondering what the best practise is for having lots of enemies placed around a map? I would only expect at most 10 enemies could be on screen at once in my current gameplay but then if that volume of enemies existed all around the map and were ticking off screen I imagine it would begin to lag.
I thought about maybe having spawners that spawn the enemy once the player gets close but to be checking that information all of those spawners need to exist and tick so perhaps a single master blueprint some how gathering the spawn locations and doing the distance checks would be more efficient?
Rambling aside I would greatly appreciate any insight you might have on this subject. Thanks for reading!