MP Map transfer with TCP

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
ritonlajoie
Inserter
Inserter
Posts: 46
Joined: Tue Mar 29, 2016 10:31 am
Contact:

MP Map transfer with TCP

Post 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 !

ratchetfreak
Filter Inserter
Filter Inserter
Posts: 952
Joined: Sat May 23, 2015 12:10 pm
Contact:

Re: MP Map transfer with TCP

Post 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.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: MP Map transfer with TCP

Post 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.

Senshi
Burner Inserter
Burner Inserter
Posts: 11
Joined: Fri Apr 01, 2016 11:44 am
Contact:

Re: MP Map transfer with TCP

Post by Senshi »

How is map transfer "clearly bugged"? I had no trouble with it so far.

ritonlajoie
Inserter
Inserter
Posts: 46
Joined: Tue Mar 29, 2016 10:31 am
Contact:

Re: MP Map transfer with TCP

Post 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 ?

Grey
Long Handed Inserter
Long Handed Inserter
Posts: 68
Joined: Mon Jun 17, 2013 5:11 pm
Contact:

Re: MP Map transfer with TCP

Post 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.

sillyfly
Smart Inserter
Smart Inserter
Posts: 1099
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: MP Map transfer with TCP

Post by sillyfly »

Related discussion: viewtopic.php?f=49&t=20643

Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: MP Map transfer with TCP

Post 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.

bobucles
Smart Inserter
Smart Inserter
Posts: 1669
Joined: Wed Jun 10, 2015 10:37 pm
Contact:

Re: MP Map transfer with TCP

Post 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.

sillyfly
Smart Inserter
Smart Inserter
Posts: 1099
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: MP Map transfer with TCP

Post 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).

Post Reply

Return to “Ideas and Suggestions”