Skip to content

Commit

Permalink
Fix adjusted affinity mask to exclude the first two cores
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Dec 21, 2023
1 parent fd08d7c commit 9eeb388
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion init_faf.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion init_fafbeta.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion init_fafdevelop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion init_shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9eeb388

Please sign in to comment.