Page 1 of 1
MP Map transfer with TCP
Posted: Fri Apr 01, 2016 4:22 pm
by ritonlajoie
Hi guys !
Would it be possible to transfer the map (in multiplayer) in TCP maybe ?
I guess that would increase the speed of it.
What do you think of this idea ?
Thanks !
Re: MP Map transfer with TCP
Posted: Fri Apr 01, 2016 4:29 pm
by ratchetfreak
TCP and UDP don't have any real speed difference.
In fact it's possible to get higher speeds on UDP because there isn't any built in throttling. Though that may cause your ISP to throttle your network.
Re: MP Map transfer with TCP
Posted: Fri Apr 01, 2016 10:47 pm
by DaveMcW
TCP is 2-3 times slower than UDP on a good connection. But the current map download is clearly bugged, so a working TCP implementation would be better.
Re: MP Map transfer with TCP
Posted: Fri Apr 01, 2016 11:30 pm
by Senshi
How is map transfer "clearly bugged"? I had no trouble with it so far.
Re: MP Map transfer with TCP
Posted: Fri Apr 01, 2016 11:54 pm
by ritonlajoie
Senshi wrote:How is map transfer "clearly bugged"? I had no trouble with it so far.
It's very slow. Sometimes it seems that the more we are on the server, the slower it is for a new guy to join.
Not sure why, but because the game 'stops' I would except the transfer to cap out my upload speed, no ?
Re: MP Map transfer with TCP
Posted: Sat Apr 02, 2016 8:36 am
by Grey
i wonder if it would be possible to use a "torrent" like Distribution algorithm of the map. I know that the "peer to peer" stuff is already a start in this direction, but i think there are torrent like libs available which could increase the download Speed a lot especially on "private" hosted games. Our save is actually about 50 MB which is quite a pain to download with a slow Connection. Apart from that those Connections are more likely to drop, the Client has to reconnect making the fact even worse.
Re: MP Map transfer with TCP
Posted: Sat Apr 02, 2016 9:02 am
by sillyfly
Re: MP Map transfer with TCP
Posted: Sat Apr 02, 2016 10:15 am
by Zeblote
Senshi wrote:How is map transfer "clearly bugged"? I had no trouble with it so far.
It randomly slows down for a lot of people.
For example, I have 10mbit upload, they have over 10mbit download, and factorio sends the map at... 0.5mbit.
Re: MP Map transfer with TCP
Posted: Sat Apr 02, 2016 11:13 am
by bobucles
TCP is 2-3 times slower than UDP on a good connection.
I don't know how you manage to get over 50% overhead on TCP. Clearly something else is screwing up.
Anyway it is much easier to reduce transfer time by running the map through a compression algorithm.
Re: MP Map transfer with TCP
Posted: Sat Apr 02, 2016 11:20 am
by sillyfly
bobucles wrote:TCP is 2-3 times slower than UDP on a good connection.
I don't know how you manage to get over 50% overhead on TCP. Clearly something else is screwing up.
Anyway it is much easier to reduce transfer time by running the map through a compression algorithm.
Pretty sure it's the saved game file that is sent, in which case it is already compressed (zip).