upbge icon indicating copy to clipboard operation
upbge copied to clipboard

Smaller Export Size

Open ywmaa opened this issue 3 years ago • 9 comments

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

ywmaa avatar Dec 06 '21 20:12 ywmaa

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.

BluePrintRandom avatar Dec 06 '21 21:12 BluePrintRandom

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

ywmaa avatar Dec 06 '21 22:12 ywmaa

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.

lordloki avatar Dec 07 '21 11:12 lordloki

Removing everything that i consider unnecessary for a simple cube "game", I got the following: 121MB uncompressed and 29MB compressed image

image

image

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.

lordloki avatar Dec 08 '21 18:12 lordloki

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

ywmaa avatar Dec 08 '21 20:12 ywmaa

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: image

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 :-)

lordloki avatar Dec 09 '21 18:12 lordloki

that's great news

ywmaa avatar Dec 11 '21 20:12 ywmaa

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?

will-ca avatar Sep 11 '22 22:09 will-ca