[Rseding91] Max upload speed has exponential decay
Posted: Sat Jun 30, 2018 5:26 am
Hi,
When you set "Max upload speed" for a multiplayer game any connecting players have to wait longer and longer for a "second" to pass.
Best way to exhibit the bug:
Launch Factorio.
Create multiplayer game and set "Max upload speed" to 1
Start the game
Launch a second Factorio instance
Connect to the first Factorio's game by connecting to 127.0.0.1
Watch how initially the downloads occur in 1KB chunks ever 1 seconds, but slowly each "second" becomes longer and longer.
The download will effectively stop at some random amount (ranges from 12KB to 34KB).
Few things of note:
I'm not 100% sure if this is the case BUT, it only happens IF the server is hosting a game where the max upload speed has JUST been set. For me to get it to work "100%" of the time I would have to (in the host instance)
1) load up a game with no download limit.
2) quit that game
3) load up a new game with the download limit
I have not included any log files as they all just end with:
385.780 Info ClientMultiplayerManager.cpp:573: MapTick(4294967295) changing state from(ConnectedWaitingForMap) to(ConnectedDownloadingMap)
It also happens on both Windows an Linux.
Thanks
When you set "Max upload speed" for a multiplayer game any connecting players have to wait longer and longer for a "second" to pass.
Best way to exhibit the bug:
Launch Factorio.
Create multiplayer game and set "Max upload speed" to 1
Start the game
Launch a second Factorio instance
Connect to the first Factorio's game by connecting to 127.0.0.1
Watch how initially the downloads occur in 1KB chunks ever 1 seconds, but slowly each "second" becomes longer and longer.
The download will effectively stop at some random amount (ranges from 12KB to 34KB).
Few things of note:
I'm not 100% sure if this is the case BUT, it only happens IF the server is hosting a game where the max upload speed has JUST been set. For me to get it to work "100%" of the time I would have to (in the host instance)
1) load up a game with no download limit.
2) quit that game
3) load up a new game with the download limit
I have not included any log files as they all just end with:
385.780 Info ClientMultiplayerManager.cpp:573: MapTick(4294967295) changing state from(ConnectedWaitingForMap) to(ConnectedDownloadingMap)
It also happens on both Windows an Linux.
Thanks