Page 1 of 1
slideshow / rollovericons
Posted: Sun Nov 24, 2019 8:35 pm
by netpipe
https://github.com/netpipe/IrrlichtDemo ... lOverIcons
can automatically slideshow and a bunch of pictures placed in a zip file.
emscripten version is working
Re: slideshow / rollovericons
Posted: Sun Nov 24, 2019 11:32 pm
by CuteAlien
Looks cool :-)
Minor notes:
- If you add listFileSwitch.cpp to Makefile (and maybe rename Target) then people can use that one. I also kicked out BinPath so it places binary directly in that folder.
- Crashes here when you click slightly left-top of first image (I did not debug)
Re: slideshow / rollovericons
Posted: Mon Nov 25, 2019 12:34 am
by netpipe
http://www.netpipe.ca/apps/rollovericons/ it was working on localhost but not on server... will fix soon.
Re: slideshow / rollovericons
Posted: Mon Nov 25, 2019 12:44 am
by netpipe
i have not pinpointed why sometimes irrlicht wasm is 6mb compared to 36, might be when guienv is used. i might make a secondary launcher for wasm because that 36 mb file will still 7z down to 5mb
a couple links i've found sofar.
https://github.com/mbasso/wasm-worker
https://github.com/drbh/wasm-flate.git
https://www.reddit.com/r/godot/comments ... ake_html5/
Re: slideshow / rollovericons
Posted: Mon Nov 25, 2019 11:05 am
by CuteAlien
Sounds a bit like release vs debug. That was once in the range 30MB vs 5MB on Linux. Though I just checked and with my new Debian it has become 83MB vs 13MB (debug with/without strip, but don't remember it ever being that huge, strange stuff).
Re: slideshow / rollovericons
Posted: Mon Nov 25, 2019 6:46 pm
by netpipe
http://ptspts.blogspot.com/2013/12/how- ... aries.html
CPPFLAGS="-D_IRR_COMPILE_WITH_EMSCRIPTEN -m32 -W -Wall -Os -s" using these i was only able to shrink libsize down to 30mb maybe im missing something ? after running strip --strip-all minimal libIrrlicht.a it went down to 28mb
strip -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag
then run sstrip for more ? or maybe use -W -Wall when compiling the wasm to make it smaller.
Re: slideshow / rollovericons
Posted: Mon Nov 25, 2019 7:00 pm
by netpipe
weird if i compile with codeblocks its only 10mb.
Re: slideshow / rollovericons
Posted: Mon Nov 25, 2019 8:13 pm
by CuteAlien
Compare compileflags with C::B? I've not yet experimented much with compile-flags there myself.
But for emscripten it's really worth it to define out stuff in IrrCompileConfig (or with -DNO_xxx flags) until only the stuff you really need from the engine is left.
Re: slideshow / rollovericons
Posted: Mon Nov 25, 2019 10:09 pm
by netpipe
will try that next, the wasm's have shrank down to 12mb now with guienv enabled , may try UPX on it next.
http://www.muppetlabs.com/~breadbox/sof ... ckers.html this too
make NDEBUG=1
strip --strip-all minimal libIrrlicht.a
emranlib libIrrlicht.a
came out to be 8.9mb, amazing! XZ = 1.4Mb , 7z 1.4Mb , Tar was same and zip = 2.4Mb.