_setidealprocessor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user