Skip to content

Can .wasm and .data sizes be further reduced? #184

Answered by pthom
digitalsignalperson asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

  • About the .data file:
    The 6MB is due to the fact that all demos share the same resources (with lots of example images and fonts).
    It can be reduced to 350Ko if you do not include an assets folder. Those 350Ko will consist mainly of the default font (DroidSans) that is used by hello imgui. The Sokol demo does not include a font (but uses the inline imgui font, which can lead to pixelated results, as you can see on the sokol demo).

  • About the 2.6MB file: imgui bundle includes a lot more that the sokol demo you linked (OpenCV, freetype, imgui, node editor, implot, immvision, etc, etc). It also links with SDL (which is responsible for a good 1MB, I guess). This can be reduced to 2.2M i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@digitalsignalperson
Comment options

Answer selected by digitalsignalperson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants