Graphic size in HTML games

Hi !
Maybe this is a trivial question,
but why all graphics are about 1.5 mega and after compilation almost 30 mega ? How can you reduce the size in HTML after compilation.

This has to do with texture compression.

We create atlas textures from the images you provide, and each atlas is stored as the format you choose (from the texture profiles).
By default, we don’t apply any compression, so the atlas texture are stored as full RGBA (or RGB).

If you wish to compress the data, then you need to apply texture compression.
Here is the documentation for texture profiles.

4 Likes