Comment by CSSer
2 years ago
This is more a question of curiosity than one of judgment: why does it take so long to load? I guess I expected it to be very fast because of the relative simplicity. Forgive me, I know nothing about Godot or Unity. This is still very cool.
Godot packs the whole engine runtime when packing the game no matter the platform, but in this case it's also probably because the internet connection on the server is slow - https://lfgslots.com/classicvideopoker/index.wasm (26MB, main engine runtime) took me 22s to load, and https://lfgslots.com/classicvideopoker/index.pck (16MB, game resources) 34s.
Must be the bandwidth to the server. On my PC, it took 18 s to load.
Cross-compilation to webassembly doesn't typically produce small binaries at this point (although it's possible to make small webassembly programs, compiling arbitrary C code to wasm results in large binaries).
Maybe, but Godot does particularly poorly in this area. Unity can go below 3MB out of the box and that is with bunch of engine systems in use.
https://github.com/JohannesDeml/UnityWebGL-LoadingTest
Couldn't this be reduced with LTO?
As a gamedev in Unreal Engine since 2014, this is my only feedback. The demo took way too long to load I almost gave up.
It took less than a second to load for me (on Firefox). I was actually impressed with the loading speed since it usually takes 10-15 seconds for Unity's Webplayer to load.
looks like the loading is the 45mb download it needs to do.
I wondered this too. 45 MB is a huge download for a poker game, even with nice graphics.
took < 5 secs for me