Skip to content

Commit

Permalink
Adding log message for when the lancache has been detected.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpill90 committed Jan 3, 2025
1 parent e9a5abe commit f567a63
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions DepotDownloader/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,16 @@ static async Task<int> Main(string[] args)
if (HasParameter(args, "-use-lancache"))
{
await Client.DetectLancacheServerAsync();
// Increasing the number of concurrent downloads when the cache is detected since the downloads will likely
// be served much faster than over the internet. Steam internally has this behavior as well.
if (!HasParameter(args, "-max-downloads"))
if (Client.UseLancacheServer)
{
ContentDownloader.Config.MaxDownloads = 25;
Console.WriteLine("Detected Lancache server! Downloads will be directed through the Lancache.");

// Increasing the number of concurrent downloads when the cache is detected since the downloads will likely
// be served much faster than over the internet. Steam internally has this behavior as well.
if (!HasParameter(args, "-max-downloads"))
{
ContentDownloader.Config.MaxDownloads = 25;
}
}
}

Expand Down

0 comments on commit f567a63

Please sign in to comment.