_setidealprocessor

This commit is contained in:
2023-05-21 20:28:38 +03:00
parent af326f934c
commit 279badf0f9
5 changed files with 18 additions and 4 deletions

View File

@@ -8,6 +8,7 @@
#include "Engine/Core/Collections/Dictionary.h"
#include "Engine/Engine/EngineService.h"
#include "Engine/Profiler/ProfilerCPU.h"
#include "Engine/Platform/Win32/IncludeWindowsHeaders.h"
#if USE_CSHARP
#include "Engine/Scripting/ManagedCLR/MCore.h"
#endif
@@ -155,7 +156,8 @@ void JobSystemService::Dispose()
int32 JobSystemThread::Run()
{
Platform::SetThreadAffinityMask(1ull << Index);
//Platform::SetThreadAffinityMask(1ull << Index);
Platform::SetThreadIdealProcessor((uint32)Index);
JobData data;
bool attachCSharpThread = true;