Spawning actors on the fly vs pre-populating

foldifoldi Member Posts: 21
edited November -1 in Working with GS (Mac)
I'm interested if anyone can share some best practices related to spawning actors and maintaining playback performance. In my platform game, lower levels contain enemies that have been pre-positioned in specific locations. In higher levels, the enemies are dynamically spawned based on the player's proximity because there are many more enemies.

The thinking for the higher levels... enemies that have no chance of appearing on screen should not exist until absolutely necessary. However, I've noticed a sudden drop in frame rate (visible as an overall shudder) when these enemies are created on the fly.

Is it taxing for GameSalad to spawn new actors? Is the better practice to pre-position them in the scene rather than spawn them on the fly even if there are tons of enemies?

Thanks!
Sign In or Register to comment.