Merge branch 'momo5502:main' into main

This commit is contained in:
Liam 2023-02-17 07:39:24 +00:00 committed by GitHub
commit a4bd285ee7

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);
}