How to optimize mobile game?

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

I’d like to know if there are some ways to reduce the APK file size and optimize the mobile games in general.

:bust_in_silhouette: Reply From: kicknbrit

I mean the best advice I can give is to reduce the quality of some of your audio files if they are taking up alot of space, and to try to prevent overdraw when ever possible. Also if your game is 3d make sure you use a LOD system to increase performance.
Also, read this: 3D performance and limitations — Godot Engine (3.1) documentation in English

:bust_in_silhouette: Reply From: Zylann

About reducing APK size, you currently need to compile the engine yourself. This is because Godot comes as a single binary, there is no way to split it otherwise.
Once you get familiar building the engine, you can start doing a custom build which removes modules and features you don’t want: Optimizing a build for size — Godot Engine (3.1) documentation in English

Do I need to compile the engine itself or the export templates, or even both? There isn’t a precompiled one?

JulioYagami | 2019-08-16 12:48

An export template is the engine. The difference is, it’s compiled with a special option. Please read the doc, it should be explained.

Zylann | 2019-08-16 12:50