Open level taking too long

Hey so I have a Play button that when pressed is set to OpenLevel(“GameLevel”) but when I press the Play button everything freezes and it takes 30 seconds to 1 minute to open the level which is way too long and it looks like a bug the way it just freezes.

Does anyone know how to fix this so open level doesn’t take so long, thank you! :smiley:

It probably means there’s too much of something in your level.

Also, have you tried it in a packaged version?

1 Like

Yeah its the exact same problem in a packaged build and that can’t be the problem there’s literally nothing in the level at the moment…

Do you have anything in there? Does it also happen with a dummy test level?

Is the code straighforward?

1 Like

Sorry for the late response.

I just realised I had a different game mode with a different game state and player controller in the other level and when I use a dummy test level it is pretty much instant which is what I want.

The code for openening the level is here:
UGameplayStatics::OpenLevel(GameMode, "DummyTestMap", false);

However there isn’t much in that player controller + game state code so I didn’t think it would take that long for a few blocks of code :frowning:

Do I need to add a loading screen or something like that or is that possible since it freezes?

Thanks anyways.

Ok, must have something to do with it.

You can put up loading screens and such, but to do that you need to use level streaming.

1 Like

Can you please explain to me what level streaming is and how I can use it?



1 Like