How to create game loading?

Godot Version

Godot 4.3

Question

When my Godot game is loaded on my Android phone, the screen goes blank for 5-10 seconds. I want to fix this behavior by adding a loading screen, so the user might not think the game is frozen. I have searched for tutorials on YouTube and read the Godot Official Documentation, but nothing worked for me. What I found was mostly about the scene loading.

The loading is usually what makes the game lag. You can try to avoid it with Threading, but i dont know how well this is supported for mobile games

1 Like

I have a threaded loading screen for Seas of Reverence (which runs on the Quest), and it works fine. I was going to point to my YouTube video showing this, but I can’t find it. Anyway, threading and mobile work fine.

2 Likes

You can use ResourceLoader.load_threaded_request, ResourceLoader.load_threaded_get_status and ResourceLoader.load_threaded_get to load your scene on background while you put something on screen to show the scene is loading.

3 Likes

Although I was already using this method, it was correct. The problem was with my phone. When I tested it on other devices, it was smooth and fast. I thought that my device’s processing speed was low, so I switched to the Compatibility mode of Rendering. Then, I tested it again on my device, and it worked out great. Anyway, thanks for your answer. Thank you to all the guys for answering and helping me.

2 Likes

The compatibility renderer is the only one what works on mobile.