Exported size in megabytes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Aris Kallergis
:warning: Old Version Published before Godot 3 was released.

I’m playing around with the Godot 101 tutorial on youtube, and decided to export the project for the heck of it. The only asset used is the Godot icon. I exported a win64 .exe.
The size is 16mb. Could someone tell me what those megabytes are used for? The .pck file exported along with the .exe is only 6kb.

16mb is nothing for an executable, it has to carry around an entire runtime!

indolering | 2017-05-17 19:50

You can always edit the engine and strip all the things you don’t need, like you will do with Unreal.

eons | 2017-05-18 20:26

:bust_in_silhouette: Reply From: volzhs

.pck contains any resources you created for game.
the .exe of 16mb is engine itself for handling everything and contains default theme.
default theme contains small images and default fonts.
the images for button, checkbox, panel, window, tab… etc.
and default fonts for any characters you don’t assign specific font for it.

you can see images from here.
https://github.com/godotengine/godot/tree/master/scene/resources/default_theme

and fonts from here.

would it be possible to have an option that would exclude the default theme from the build ?

MrMonk | 2017-05-18 04:51

for what purpose?

volzhs | 2017-05-18 17:35

just to have a smaller size project. I tried removing stuff, but sometimes results in projects not working on android / ios… and so on. Such an option will be “better” controlled.

MrMonk | 2017-05-19 06:21

it won’t be easy but there might be a way.
but it won’t help your game size smaller especially ios and android.
because it is zipped.
you might have about 1mb smaller apk or ipa. not sure.

are you trying to make your game less than 10mb?
or it is not worth to make engine size smaller.
it is better to optimize your game assets.

volzhs | 2017-05-19 07:12