The short answer
- Make the first scene tiny so it draws within a frame of the engine starting, then load the real game with
ResourceLoader.load_threaded_request()while that scene keeps the screen alive. - Show something meaningful while loading: Tibblo shows a small picture of the room as the player left it.
- Load what is not needed yet later: thirty mini-games are compiled only when one is played.
- Log timestamps in release builds, so startup can be measured on a real phone.
- Cap the frame rate when nothing is happening, and lift the cap the moment the player touches the screen.
These numbers come from Tibblo, a pocket pet game that is opened many times a day.
1. Why a Godot game can open slowly on a phone
When the engine starts, it loads the main scene and everything that scene references. In a game written mostly in GDScript, that means compiling a lot of scripts, and on a phone that takes seconds. During those seconds, a naive setup shows the boot splash and nothing else, and on some devices it looks like the app has frozen.
In Tibblo the first thing to run is a small autoload, and the first scene is a boot scene that is small on purpose.
2. A boot scene that loads the game on a thread
The boot scene does very little, quickly:
- It paints exactly what the boot splash painted, the same background colour and picture, so the handover from the operating system's splash is invisible.
- It adds a small loader: three dots that bounce in turn, drawn in code, so the screen visibly moves.
- It waits two frames, so that picture is really on screen, and only then calls
ResourceLoader.load_threaded_request("res://main.tscn"). - Every frame it asks
load_threaded_get_status(). When the scene is loaded, it instantiates the game and adds it to the tree. - When the game has drawn its first frame, the boot scene fades out over a quarter of a second, on top of the live game.
If threaded loading cannot start or fails, it falls back to a plain change_scene_to_file(). Slower, but never stuck.
3. Show the room the player left
A loader is better than a frozen splash. Even better is showing the thing the player came for. When the app loses focus, Tibblo keeps a small picture of the current room: 360 pixels wide, about 30 KB as a JPG, in the cache folder, which is never backed up and never sent anywhere. On the next start, the boot scene shows that picture under a soft white veil that says "not live yet", and the live room fades in over it.
Two rules keep it honest:
- An old picture is not shown. After six hours the time of day and the pet's mood will have changed, so the boot scene falls back to the normal splash.
- The picture is captured on the main thread and written on a worker thread, through a temporary file, so a half-written image is never read.
That worker thread taught me a lesson. A task left in Godot's worker pool when the app closes is freed only when the engine shuts down, after GDScript itself, and its lambda then crashed the app as iOS closed it. Crash reports came in before I understood why. The fix is simple and strict: every task is waited for, before the next picture is written and when the game screen leaves the tree.
4. Load later what is not needed now
The picker, the album and the score board need the names, rules, icons and medal goals of all thirty mini-games. They do not need the games. A generated registry holds those facts, and a game's script is loaded the first time it is played. I wrote more about that in one base class, thirty mini-games.
5. Measure on the phone, in a release build
Startup in the editor tells you very little. Tibblo prints one line at each step, prefixed TIBBLO_BOOT with the milliseconds since the engine started: the autoload, the boot scene, the boot frame on screen, the game loaded, the game ready, the game built and the first frame of the live room. Those lines appear in the phone's system log in release builds, so a change can be measured where it matters. A debug build can also log mini-game frame times every few seconds when a marker file exists on the device.
6. A frame cap that lifts on touch
Most of the time the pet breathes and blinks and nothing else moves. Drawing that at the screen's full rate, 120 times a second on a ProMotion iPhone, burns battery for no visible gain. So a small power saver autoload sets Engine.max_fps by situation:
| Situation | Frame rate |
|---|---|
| Nobody has touched the screen for 3 seconds | Capped at 60 |
| Within 3 seconds of any touch, drag or key | Uncapped, paced by V-Sync |
| During a mini-game run | Uncapped, for the whole run |
Room slides, feeding drags and toasts all start from a touch, so they always run at full speed. A mini-game keeps the game at full speed by joining a node group the saver checks, so it never drops frames mid-run.
Two numbers came from testing on phones, not from theory. The idle cap was 30 at first; at 30 the pet's small movements no longer read as smooth, so it is 60. And in active mode there is no cap at all, not even 60: a 60 cap on top of V-Sync made frame times uneven, and mini-games looked like they stuttered. Getting the full 120 Hz in the first place took a renderer change on iOS.
Common questions
How do I make a loading screen in Godot 4?
Make a small first scene, start ResourceLoader.load_threaded_request() for the real scene, poll load_threaded_get_status() each frame, then instantiate with load_threaded_get() when it is loaded.
How do I reduce battery drain in a Godot mobile game?
Lower Engine.max_fps while nothing moves, and lift it on input and during action. Check the result on a real device: a cap that is too low looks choppy, and a cap on top of V-Sync can cause stutter.
Should I use low processor mode for a game?
It suits apps whose screen is mostly static. A pet that breathes is never fully static, so a frame cap that changes with activity fits better.
What I learned
Perceived startup is a design problem. The same seconds feel much shorter when the screen shows the player's own room and moves.
Threads need owners. Every background task must be awaited by something that outlives it.
Tune on the device. The right idle frame rate and the wrong active cap were both found by looking at a phone, not at a profiler.