remove bad thread affinity mask setting
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user