Loading resources is slow if engine is restarted via Editor (#4116)

If I press Cmd+B while the game is already running, it takes forever to restart and any subsequent collection load also takes a long time. If I close the engine, then Cmd+B it’s fine.

After some digging I found that loading resources via the network is unjustifiably slow (60MB/s in Interrogation and 10MB/s for the attached repro case) and CPU-bottlenecked (dmengine uses 100% CPU).

Here’s a simple repro case project that tries to load a large (128MB) file. Compare the first run to the second run (engine restart).

NetworkLoadingRepro.zip (266.8 KB)

Conversation on Slack started here: https://defold.slack.com/archives/C110FQT2Q/p1559059166081100

3 Likes

Thank you for the report. Created a new ticket (#4116) and added it to our next sprint for further investigation.

4 Likes

Found the issue and fixed it - your repocase went from 8s to load to 0.5s on my machine :slight_smile:

6 Likes

:heart_eyes_cat:

1 Like

That time sounds like restarting from the editor will be just as fast as the first run! (on my computer, it’s 0.23s first run, 4.3s second run) Lovely! :heart:

2 Likes

Yeah hopefully! Likely not exactly as fast but not far from :slight_smile:

2 Likes