From 9eeb388ec31d656531d665800f7e1c164406d9c7 Mon Sep 17 00:00:00 2001 From: "(Jip) Willem Wijnia" Date: Thu, 21 Dec 2023 12:55:53 +0100 Subject: [PATCH] Fix adjusted affinity mask to exclude the first two cores --- init.lua | 2 +- init_faf.lua | 2 +- init_fafbeta.lua | 2 +- init_fafdevelop.lua | 2 +- init_shared.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index edcaf03dbb..1d1b87e271 100644 --- a/init.lua +++ b/init.lua @@ -53,7 +53,7 @@ if SetProcessPriority and GetProcessAffinityMask and SetProcessAffinityMask then -- system has 6 (logical) computing units or more, skip first two computing units elseif (systemAffinityMask >= 63) then - processAffinityMask = systemAffinityMask - 4 -- 2 ^ 6 - 3 - 1 + processAffinityMask = systemAffinityMask - 3 -- (2 ^ 6 - 1) - 3 end -- update the afinity mask diff --git a/init_faf.lua b/init_faf.lua index d0edf7fd4a..104d12cb02 100644 --- a/init_faf.lua +++ b/init_faf.lua @@ -54,7 +54,7 @@ if SetProcessPriority and GetProcessAffinityMask and SetProcessAffinityMask then -- system has 6 (logical) computing units or more, skip first two computing units elseif (systemAffinityMask >= 63) then - processAffinityMask = systemAffinityMask - 4 -- 2 ^ 6 - 3 - 1 + processAffinityMask = systemAffinityMask - 3 -- (2 ^ 6 - 1) - 3 end -- update the afinity mask diff --git a/init_fafbeta.lua b/init_fafbeta.lua index dbf89082f5..08d879c3a8 100644 --- a/init_fafbeta.lua +++ b/init_fafbeta.lua @@ -53,7 +53,7 @@ if SetProcessPriority and GetProcessAffinityMask and SetProcessAffinityMask then -- system has 6 (logical) computing units or more, skip first two computing units elseif (systemAffinityMask >= 63) then - processAffinityMask = systemAffinityMask - 4 -- 2 ^ 6 - 3 - 1 + processAffinityMask = systemAffinityMask - 3 -- (2 ^ 6 - 1) - 3 end -- update the afinity mask diff --git a/init_fafdevelop.lua b/init_fafdevelop.lua index ec2ca4109c..df797a22b8 100644 --- a/init_fafdevelop.lua +++ b/init_fafdevelop.lua @@ -53,7 +53,7 @@ if SetProcessPriority and GetProcessAffinityMask and SetProcessAffinityMask then -- system has 6 (logical) computing units or more, skip first two computing units elseif (systemAffinityMask >= 63) then - processAffinityMask = systemAffinityMask - 4 -- 2 ^ 6 - 3 - 1 + processAffinityMask = systemAffinityMask - 3 -- (2 ^ 6 - 1) - 3 end -- update the afinity mask diff --git a/init_shared.lua b/init_shared.lua index ce61d83043..689c529efe 100644 --- a/init_shared.lua +++ b/init_shared.lua @@ -53,7 +53,7 @@ if SetProcessPriority and GetProcessAffinityMask and SetProcessAffinityMask then -- system has 6 (logical) computing units or more, skip first two computing units elseif (systemAffinityMask >= 63) then - processAffinityMask = systemAffinityMask - 4 -- 2 ^ 6 - 3 - 1 + processAffinityMask = systemAffinityMask - 3 -- (2 ^ 6 - 1) - 3 end -- update the afinity mask