Skip to content

Commit dbc792b

Browse files
committed
Set game thread affinity to first cpu core
1 parent 6ef46f8 commit dbc792b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client/core/CCore.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1144,6 +1144,9 @@ void CCore::DoPostFramePulse()
11441144
ApplyGameSettings();
11451145

11461146
m_pGUI->SelectInputHandlers(INPUT_CORE);
1147+
1148+
// Change the main thread affinity to first core
1149+
SetThreadAffinityMask(GetCurrentThread(), 0x1);
11471150
}
11481151

11491152
if (m_pGame->GetSystemState() == 5) // GS_INIT_ONCE

0 commit comments

Comments
 (0)