How, when and where the Unreal Engine loads actor's assets when you spawn it by SpawnActor?

2.1k Views Asked by At

I'm trying to undestand when and in which thread Unreal loading assets of Actors. I have Spawner that call's SpawnActor for different actors (which have Meshes, Sounds, etc) in the game thread in runtime. As I understood Unreal loads that assets when first object containing it was spawned. So, it reads data from filesystem which can take a long time. Will it freeze the Game Thread? Does Unread load it in separate thread to prevent Game Thread freezing?

If freezing of Game Thread is possible, what can I do to prevent it? Should I create all actors in Spawner after load and then just clone it in runtime?

0

There are 0 best solutions below