There are a few bugs remaining (feature synchronization isn't perfect yet), a few things to rewrite in order to make it endian safe, use compression, etc..., but this won't change the sync protocol !!
I've just won (and lost) a game against myself, here are the network statistics:
Code: Select all
network statistics :
average bytes/sec. received : 835 bytes/sec.
maximum bytes/sec. received : 6670 bytes/sec.
total bytes received : 2044057 bytes
average bytes/sec. sent : 2518 bytes/sec.
maximum bytes/sec. sent : 14118 bytes/sec.
total bytes sent : 3644330 bytes
So now we should test playing over the Internet, just to see if it plays smoothly .
Next steps:
- * testing all this on win32
* add support for external lobby (passing a file as parameter)
* add support for internet games discovery (we'll need a server that will monitor requests)