tpill90 / steam-lancache-prefill

CLI tool to automatically prime a Lancache with Steam games
https://tpill90.github.io/steam-lancache-prefill/
MIT License
273 stars 22 forks source link

[Feature] Bandwidth Limit #104

Closed Flupster closed 1 year ago

Flupster commented 1 year ago

Some including myself have a weak internet connection and use Lancache as a means to pre-download games so when I decide to actually download them via steam I get blazingly fast speeds

The problem is that downloading the games saturates the internet connections speed which causes massive latency to the point the connection becomes unusable

Adding a launch flag to limit download speed would be handy to limit the speed and allow the connection to be usable

The main problem I foresee is limiting the speed on already cached apps

Example:

SteamPrefill prefill --rate 5000

Expectation:

Starts the prefill operation with a limit of 5000KB/s

physk commented 1 year ago

Personally, I use Proxmox LXC container to run lancache & the prefills and then set a rate limit on the container network

image

Note: if you are running lancache on the same container as the prefill you will have to un-limit it again when you want to download the game through the cache, or it will be limited to what you set

Hope this works as a temporary work around.

tpill90 commented 1 year ago

Hi @Flupster,

I appreciate you taking the time to create an issue for this request. Unfortunately with the way that SteamPrefill is designed it isn't possible to implement a way to throttle it's download speed. At least not with a very significant complete overhaul of how downloads are handled.

However, despite this there are other methods of achieving what you are looking for. I've documented some of these methods in the project readme, which can be found here : New readme section

I would appreciate any feedback you may have on the documentation, so that I can make it as helpful as possible for others who might have the same idea.

I'm closing this for now, but if you have any feedback please feel free to re-open and leave the feedback here.