slideshow / rollovericons

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Post Reply
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

slideshow / rollovericons

Post 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
Last edited by netpipe on Fri May 29, 2020 10:11 pm, edited 1 time in total.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: slideshow / rollovericons

Post 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)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: slideshow / rollovericons

Post by netpipe »

http://www.netpipe.ca/apps/rollovericons/ it was working on localhost but not on server... will fix soon.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: slideshow / rollovericons

Post 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/
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: slideshow / rollovericons

Post 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).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: slideshow / rollovericons

Post 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.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: slideshow / rollovericons

Post by netpipe »

weird if i compile with codeblocks its only 10mb.
Last edited by netpipe on Mon Nov 25, 2019 10:07 pm, edited 3 times in total.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: slideshow / rollovericons

Post 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.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: slideshow / rollovericons

Post 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.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
Post Reply