Hi all,
My html build size is about 9mb. I wanted to decrease it. So I used the manifest file and try to remove unused components from the project. But it doesn’t have significant impact on the build size. But the problem is final build size has increased a bit. this is a part of the manifest file.
js-web:
context:
excludeLibs: [“record”,“vpx”,“profilerext”,“engine”]
excludeSymbols: [“ProfilerExt”,“FacebookExt”]
libs: [“engine_release”,“record_null”]
Am I doing this in the wrong way ?
Yeah I have few sprites which cause the larger build size. But I wanted to remove the unwanted components using the manifest file. but it doesnt have effect on the build size.
I created my manifest file using the above url.(cant remove the physic engine as I use it)
I will look into the texture compression . Thank you very much
Make sure to generate a build report to get a better understanding of where those megabytes go. Perhaps you have large sound files? It is typically either sounds, images or fonts that take up a lot of space on disk.
I generated the build support and my assets are about 1.5mb. also the final build size is about 6.5 mb.(I removed few assets also). Then extra 5mb is from the engine.I think we cant do anything about it.can we?
Well, the engine can be reduced in size through stripping of the parts you don’t need. But you know that already. Are you bundling a release build? Also remember that gzip compression is likely to be applied for html5 when downloading.
Finally, you could split the download and exclude non vital starter content and download the rest using liveupdate.
I just made an update of the game (by above link) up to the latest version of Defold:
gzipped whole game size is 1.3 Mb
gzipped engine only (js file) 924 Kb