Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs

How to compress WebAssembly game code?

A topic by Beuc created 13 days ago Views: 53 Replies: 1
Viewing posts 1 to 2

Hi,

As part of the RenPyWeb engine, I need to transmit a large-ish .wasm with browser-level gzip compression (75% gain).

Embedding a JS gzip decompressor is proving increasingly hard to maintain, is less efficient, and incompatible with .wasm streaming compilation.

I can't find documentation on how compression is meant to work at itch.io and my tests so far are not conclusive (I can't find a way to both get content-type=application/wasm and content-encoding=gzip).
What do you guys recommend?

I'd love to see an answer to this, too!