Takes a couple of minutes to open a bigger scene

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Liemaeu

In Godot 3.2.2 I have one bigger scene (with a gridmap with a lot of objects) and it takes around 5 minutes to open this scene. Can I do anything to improve this?

My PC:
-i7 7700K
-GTX 1080
-16GB RAM
-SSD
-Ubuntu 18.04

Without access to your project, it’ll be very difficult to diagnose this.

If you can share your project or create a minimal reproduction project, please create an issue on GitHub. (Create an issue only if you can share some kind of project that exhibits the issue.)

Calinou | 2020-09-17 21:32

Sorry, can’t publish it right now. Are there any logs or something like that?

Liemaeu | 2020-09-17 22:57

Not that I know of. Does the scene take as long to load even when loading the second time? (without actually re-launching the game!)
Is it taking that long in game AND in editor?

I can only think of shader compilation, driver bug or some unbearably heavy thing stored in the scene (btw, how heavy is your scene file?).

If you can’t share your project then I cant think of something else than opening up the engine code and putting traces to measure time taken by each step.
Mayyybe you can have a look at the profiler tab in the debugger, where the loading may look like a giant spike.

Zylann | 2020-09-18 12:35

The .tscn file is just 17KB big. Ingame it loads fast (as normal).

I have a gridmap with one object (tree) in it, placed this object very often (couble of hundret times).

Liemaeu | 2020-09-21 07:10