Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | brokenrobot | |
Old Version | Published before Godot 3 was released. |
Hello.
I’m new in Godot and I have big problem, didn’t find anything useful. How to make (if I can?) HTML5 export smaller?
I’m creating small 2D HTML5 game, and as I don’t have too much time, decided to use some engine with editor. I knew that Unity is creating big files, so thought that I’ll try Godot - new, open source, maybe fine. After changing “mindset” I realized that it’s probably my new love.
Until I finally exported my game - 27.5 mb JS file. I’d thought that there is 80% of unneeded functionality, like 3D for example. Is there anything what I can do with that? I’d like to get to 6-8 mb size of whole game.
Regards,
Mathew
Looks like it’s related to this other question https://forum.godotengine.org/7453/godots-exported-binary-is-a-little-bit-big
In the case of HTML5, you would have to compile export templates without 3D support for example, unfortunately I have no knowledge in how to do that yet.
Zylann | 2016-08-31 01:14
Thank you. But after reading on compiling templates, or even engine, I don’t think there is possibility to disable 3D support on this side. At least there is nothing in docs on this. You just compile whole engine. That’s bad. Really bad.
EDIT: Hm, there is option when you compile whole engine. Let me see if it’s what I’m looking for.
brokenrobot | 2016-08-31 09:02
WebAssembly (which Godot 3.0 will probably support) should make file sizes and loading times quite lower (the browser just has to load a binary, instead of parsing a JavaScript file), hopefully.
Calinou | 2016-08-31 20:26