-
The exe size of a release build on windows with no extra code (boilerplate only) is ~2.5mb. (Like, it would be nice if any feature that's not being used is not included or something like that...also, i currently assume that the size is due to the way egui is implemented because of which it has to use lot's of code to get it running/ or it includes the rendering api or something idk) Someone please let me know if it is possible to cut down the size further any how (i am expecting ~500kb at max) // -------------------------------------- Is it possible to use GDI for rendering? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
egui/epaint comes bundled with fonts, but you can turn it off: https://github.com/emilk/egui/blob/master/egui/Cargo.toml#L38 |
Beta Was this translation helpful? Give feedback.
-
The Lines 34 to 43 in 707cd03 as well as in egui: Line 27 in 707cd03 Disable the default features in your As an exemple for future readers, here's what I have so far:
My binary size is about 7.5MiB (for ~100 LoC and no images) with debug symbols not stripped and the compilation process not optimized for size, just the cargo defaults. |
Beta Was this translation helpful? Give feedback.
egui/epaint comes bundled with fonts, but you can turn it off: https://github.com/emilk/egui/blob/master/egui/Cargo.toml#L38