Update client_patches.cpp

This commit is contained in:
Maurice Heumann 2023-02-17 08:36:58 +01:00 committed by GitHub
parent 8c4748a0e4
commit 888bb6c14d

View File

@ -14,7 +14,7 @@ namespace client_patches
{
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);
}