Update client_patches.cpp
This commit is contained in:
parent
8c4748a0e4
commit
888bb6c14d
@ -14,7 +14,7 @@ namespace client_patches
|
|||||||
{
|
{
|
||||||
void reduce_process_affinity()
|
void reduce_process_affinity()
|
||||||
{
|
{
|
||||||
const DWORD_PTR affinity = (2ULL << (std::min(std::thread::hardware_concurrency(), 4U))) - 1;
|
const DWORD_PTR affinity = (1ULL << (std::min(std::thread::hardware_concurrency(), 4U))) - 1;
|
||||||
SetProcessAffinityMask(GetCurrentProcess(), affinity);
|
SetProcessAffinityMask(GetCurrentProcess(), affinity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user