the3dfxdude / 7kaa

Seven Kingdoms: Ancient Adversaries - Go to the main source repository at https://sourceforge.net/projects/skfans/ for source code and builds
https://7kfans.com
Other
253 stars 71 forks source link

- Allow to disable networking - needed for WASM version #239

Closed nintyfan closed 2 years ago

nintyfan commented 2 years ago

Only pre-configure system updates to create airtifacts needed to invoke build process. It does not build yet.

the3dfxdude commented 2 years ago

I'm not going to tie the ability to turn off enet to the compiler being used. Please check this commit out instead. f127845d3a142cfb72f439c1d522c246f4c65d49

Not sure what will happen when you enable emscripten as cross compiler. It probably detects no 387 support and turns off multiplayer automatically. But you also have --disable-multiplayer and --disable-enet.

nintyfan commented 2 years ago

Hi. There is a problem. We cannot only rely on disable enet to compile for the web. We must also generate web page and use ASYNCIFY to do not block browser main loop. When not use asyncify, game could take 100% of CPU and do hang browser on entire OS.