Reducing the dmengine size for web

Hi the dmengine size for a web bundle is about 4mb. Is there a way to reduce this? Any custom manifest available for instant games?

This is for a new games but I did testing on the tic tac toe app.

Thanks in advance

Did you already try one from here?

https://britzl.github.io/manifestation/

2 Likes

The tic tac toe example comes with a manifest made from that site and has pretty much everything stripped out. The engine is still 4mb but on the defold site it is saying it is 700k size https://www.defold.com/instant-games/

I believe the 700k size refers to the gzipped bundle sent over the wire from Facebook servers to the client browser. It’s bigger unzipped. Do note that you currently also get both a webassembly version and a standard version when you bundle, which basically amounts to two engines, not one.

3 Likes

And the WASM version can be stripped out manually.

2 Likes