I’m doing a very simple Board game for android, so I want it to be fit. After struggling to configure scons , I’ve used bloaty to discover that FSR2
6.3% 1.92Mi 6.0% 1.92Mi [section .rela.dyn]
6.0% 1.84Mi 5.7% 1.84Mi [section .rodata]
4.8% 1.45Mi 4.5% 1.45Mi servers/rendering/renderer_rd/effects/fsr2.cpp
is one of the largest compile unit of my build (although i don’t care about FSR).
Is there any solution to reduce the size of the binary further ?
Did you check out this guide:
Yup! It’s great. I’m down to < 14MB gzipped:
-rw-r--r-- 1 197609 7.6M Jun 10 13:11 index.pck.gz
-rw-r--r-- 1 197609 5.9M Jun 10 13:11 index.wasm.gz
Yeah, but since i’m using the Mobile renderer with Vulkan, it grows the binary. But maybe i could use compatibility renderer instead. I don’t know what I will lose with it but my game is mostly a simple 2D board game
How far ahead are you? If you just started your project not too long ago, I recommend switching to compatibility renderer early to avoid issues later down the line. It will probably help with a lot of things.
Does it really reduce size a lot to use Compatibility over Mobile ?