remove bad thread affinity mask setting

This commit is contained in:
Lunkhound
2017-05-30 00:09:05 -07:00
parent ba88d332fb
commit 562858251a

View File

@@ -279,9 +279,9 @@ void b3Win32ThreadSupport::startThreads(const Win32ThreadConstructionInfo& threa
} }
DWORD mask = 1; //SetThreadAffinityMask(handle, 1 << 1); // this is what it was doing originally, a complete disaster for threading performance!
mask = 1<<mask; //SetThreadAffinityMask(handle, 1 << i); // I'm guessing this was the intention, but is still bad for performance due to one of the threads
SetThreadAffinityMask(handle, mask); // sometimes unable to execute because it wants to be on the same processor as the main thread (my guess)
threadStatus.m_taskId = i; threadStatus.m_taskId = i;
threadStatus.m_commandId = 0; threadStatus.m_commandId = 0;