Skip to content

Commit

Permalink
Restore CPU Affinity limit to 8
Browse files Browse the repository at this point in the history
  • Loading branch information
MeTonaTOR committed Jul 2, 2020
1 parent d208e58 commit b942886
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GameLauncher/App/MainScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1842,7 +1842,7 @@ private void LaunchGame(string userId, string loginToken, string serverIp, Form

//if(!DetectLinux.LinuxDetected()) {
var processorAffinity = 0;
for (var i = 0; i < Math.Min(Math.Max(1, Environment.ProcessorCount), 20); i++)
for (var i = 0; i < Math.Min(Math.Max(1, Environment.ProcessorCount), 8); i++)
{
processorAffinity |= 1 << i;
}
Expand Down
4 changes: 2 additions & 2 deletions GameLauncher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
[assembly: ComVisible(false)]
[assembly: Guid("0a114c5c-3566-4a62-b05d-cba311988d8a")]

[assembly: AssemblyVersion("2.1.3.2")]
[assembly: AssemblyFileVersion("2.1.3.2")]
[assembly: AssemblyVersion("2.1.3.4")]
[assembly: AssemblyFileVersion("2.1.3.4")]

0 comments on commit b942886

Please sign in to comment.