[raiguard] [2.0.11] Large in-game downloads could be much faster

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
DeHackEd
Inserter
Inserter
Posts: 41
Joined: Sun Dec 13, 2020 12:31 am
Contact:

[raiguard] [2.0.11] Large in-game downloads could be much faster

Post by DeHackEd »

For context, I have fiber to the home at high speed (gigabit or so). But while inside factorio, downloads (eg: large mods, or game updates) are often self-throttling to about 3 megabytes/second. I know it could go faster because the TCP receive buffers are highly full when I check them:

Code: Select all

tcp   2357492      0 192.168.0.14:54156      138.199.57.66:443       ESTABLISHED 3985/bin/x64/factor 
I also tried direct downloading the same content from a linux shell (factorio logs contain the URL, and I have my own authentication token). I can hit full speed consistently. However the game itself throttles.

My speculation as to a reason is that the menu screen still runs at 60 fps and as a result the network buffers are only checked periodically, resulting in a lot of available bandwidth being left on the table.
Attachments
factorio-current.log
(9.95 KiB) Downloaded 18 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14892
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.11] Large in-game downloads could be much faster

Post by Rseding91 »

I am not able to reproduce any such issue when downloading huge mods in-game. I suspect this might be operating system socket specific (I'm on windows)?
If you want to get ahold of me I'm almost always on Discord.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 669
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: [raiguard] [2.0.11] Large in-game downloads could be much faster

Post by raiguard »

I also cannot reproduce because Factorio is able to saturate my 200 Mbit/s internet connection. Your conjecture might be correct - we update libcurl on the main loop which only runs 60 times per second. Perhaps moving it to a dedicated thread would help things, but that is a fairly invasive change to fix a relatively minor issue.
Don't forget, you're here forever.
Post Reply

Return to “Minor issues”