comes into play.
Emscripten is a tool that comes with a promise: one can compile C code to run in the browser. It supports many of the tools needed by Freeciv, and zoltan could actually add the only one that was missing
. But the Web as a platform is vastly different from native operating systems, and what you get when you try to run the SDL client is a black, unresponsive browser tab using 100% CPU. Not nice.
Once enough wait commands were converted into their Web-compatible counterpart, I was able to start the first hex-based Freeciv game ever played in a browser:
That early version was painfully slow, downloaded 300MB of data every time it was started, and used a ridiculous 4GB of RAM. All this to display a 640x480 window. There was clearly some room for improvement, but the initial success was enough to drive me away from development as I was enjoying the game