Hey Guys!
I’m making a simple shoot em’ up game to learn more about UE4 and there’s a small problem that I’m not sure how to fix:
My game will randomly spawn asteroids and spaceships on screen and the player needs to dodge/shoot them before he’s hit. The thing is, every time I spawn an actor or particle system that was never spawned before, the game freezes for a split second (while it’s loading I think?). This only happens the first time I span an actor, subsequent uses causes no problem. It’s small, but it’s not cool to see small freezes every time a new thing appears or something explodes while you’re trying to dodge a lot of bullets. =(
Am I corrent in assuming that this is happening because the engine needs to load the asset to memory on it’s first use? If yes, is there a way to load everything that will be used beforehand?
Thanks!