Is a 18MB pck expected?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ebaum

I’m exporting to HTML5 and it seems a little big. The size of my whole res:// folder is just over 1MB. I know the wasm has a minimum size since that’s the whole engine, but how is storing all the resources taking 18 times the space as it does uncompressed on my computer? Am I doing something crazy to get that kind of expansion factor or is that an expected amount?

How many resource files do you have in your project? What resolution are your textures, and which compression mode do they use?

If your textures use the Uncompressed or the VRAM compression mode (which has a fixed 1:4 or 1:6 ratio), they can grew very large depending on the resolution. In particular, VRAM compression does not behave like lossless (PNG/lossless WebP) compression. Due to its fixed compression ratio, it will not result in small files for simple drawings with few colors.

Calinou | 2021-11-12 00:53

I’ve got like a dozen mp3s and a dozen pngs, the largest of which are about 500x300. I switched from wav to mp3 and from lossless to lossy and that cut down just over half a MB

ebaum | 2021-11-12 01:56

18mb isn’t unduly big. HTML5 is a universal format so it’s always bigger. The only thing that you might need to check is if you duplicated scenes as that duplicates your resources, easy to fix though.

DaddyMonster | 2021-11-13 13:05