Unity Web Stripping Tool Feedback

Hey Marcel,

Thanks a lot for your thorough answer, this helps a lot! I took you settings and started some new builds (Which you can easily reproduce by using the Menu Item Tools->Build WebGL->minsize-stripping-webgl2). Here are the new results:

Normal Stripped
Demo 6000.1.11f1-minsize-webgl2 (2.93 MB) 6000.1.11f1-minsize-stripping-webgl2-v3 (2.85 MB)
Compressed wasm size 2.483.309 bytes (2.37MB) 2.404.593 bytes (2.29MB)
Uncompressed wasm size 9.233.180 bytes (8.80MB) 8.589.730 bytes (8.19MB)

so the reduction is ~600KB uncompressed and ~80KB compressed. I guess I was hoping for a bit more than 3% size reduction, but looking at the uncompressed size I can see that this is quite an improvement.

Yes, I was using Optimize Code after Stripping, here is the file I’m using.

Depending on what you are building the WebGL / WebGPU submodule will be added in the build script.

Since this is a project with very little custom user code. Do you have rough numbers for how e.g. a 10 MB compressed wasm file will change?

Yep exactly, running game.ci, you can see the workflow here. I also could imagine that the problem comes from the settings not being properly loaded. Side note: The settings file somehow duplicates the data and is not nice from a version control perspective (one line which is hard to read).

I tried it, but somehow got all modules listed as being strippable, therefore I didn’t try it any further, but maybe something else was off at that time :man_shrugging: