FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.61k stars 340 forks source link

Reduce wasm size #421

Open otabekgb opened 1 year ago

otabekgb commented 1 year ago

How can I reduce the size of generated wasm file? For example when I don't need complete features, say only 2d stuff. Current wasm in examples folder generates wasm size of 5.1 MB. image

mrDIMAS commented 1 year ago

Is this already optimized with wasm-pack (wasm-pack build --target web --release)? If so, then the answer is - no, not yet. There's no way to exclude some of the engine features from builds yet.