Merge pull request #2015 from CookiePLMonster/affinity-fix
Fix affinity for EmuCreateDeviceProxy thread
This commit is contained in:
commit
38242d48f9
|
@ -1605,12 +1605,11 @@ void EmuD3DInit()
|
||||||
{
|
{
|
||||||
// create the create device proxy thread
|
// create the create device proxy thread
|
||||||
{
|
{
|
||||||
DWORD dwThreadId;
|
HANDLE thread = CreateThread(nullptr, 0, EmuCreateDeviceProxy, nullptr, 0, nullptr);
|
||||||
|
|
||||||
CreateThread(nullptr, 0, EmuCreateDeviceProxy, nullptr, 0, &dwThreadId);
|
|
||||||
// Ported from Dxbx :
|
// Ported from Dxbx :
|
||||||
// If possible, assign this thread to another core than the one that runs Xbox1 code :
|
// If possible, assign this thread to another core than the one that runs Xbox1 code :
|
||||||
SetThreadAffinityMask(&dwThreadId, g_CPUOthers);
|
SetThreadAffinityMask(thread, g_CPUOthers);
|
||||||
|
CloseHandle(thread);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialise CreateDevice Proxy Data struct
|
// Initialise CreateDevice Proxy Data struct
|
||||||
|
|
Loading…
Reference in New Issue