upbge
upbge copied to clipboard
Smaller Export Size
Better Export Size, because the current export size with the default cube scene without literally anything else the size is 370 MB
and that is an empty scene
and after including the dependencies it is 770 MB
I think this is very big export size for empty scene
I remember people were complaining about Unreal engine having minimum export size of 100 MB even though it is empty scene
and now we are talking about 400+ MB
maybe there is already a way to fix that, but I looked at the docs and I didn't find anything related to package size
UPBGE Version : 0.3 Platform : Linux
in upbge now, anything that works in the viewport works in game for the most part,
to reduce the size of upbge, we would I think need to reduce the size of blender itself.
I think cycles is removed but IDK.
I am not sure how it works in game engines
but I think game engines by default check which features are being used and includes them, and it discards the other features that are not being used
so by this logic it isn't related to the editor as the editor must have most of the features ready to use
but it should be applied on the game export only
We can investigate how many no necessary features we can remove from blenderplayer (translate, maybe cycles, etc). Additionally, we can add more option to game engine export to avoid the copy of unnecessary files (hdri, fonts, matcaps, etc). But I think in any case we will be under the 100MB. I will investigate anyway because is interesting.
Removing everything that i consider unnecessary for a simple cube "game", I got the following:
121MB uncompressed and 29MB compressed
Maybe, it is possible to be under 100Mb removing several python packages not used.
Anyway, If anyone needs to reduce the size of his/her game can ask us and we will try to help.
awesome 👍
but if there is a way to automate this process, It will be better, or at least add a guide to the docs for reducing packages
Even smaller!!!
If i compile without python we have limited functionality but we can do small games based in logic bricks. Then we have 44MB or 13MB compressed:
These tests have come in handy as the compilation without python and other libraries was broken. I've been fixing it while reducing the size :-)
that's great news
Maybe, it is possible to be under 100Mb removing several python packages not used.
Then we have 44MB or 13MB compressed:
That's a pretty big difference!
Even without removing all the Python stuff, might it be worth adding a checkbox and launch wrapper to compress it?