Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FGenericPlatformMisc
Description
Parse CoreLimit from CommandLine or from the SetCoreLimit value. The real number of physical cores and logical cores must be provided so that CommandLine arguments can be translated.
| Name | GetConfiguredCoreLimits |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h |
| Include Path | #include "GenericPlatform/GenericPlatformMisc.h" |
| Source | /Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMisc.cpp |
static void GetConfiguredCoreLimits
(
int32 PlatformNumPhysicalCores,
int32 PlatformNumLogicalCores,
bool & bOutFullyInitialized,
int32 & OutPhysicalCoreLimit,
int32 & OutLogicalCoreLimit,
bool & bOutSetPhysicalCountToLogicalCount
)
Parameters
| Name | Remarks |
|---|---|
| bOutFullyInitialized | True if commandline was available. If false, values are set to defaults. |
| OutPhysicalCoreLimit | The maximum number of physical cores to report in NumberOfCores. Non-negative. 0 indicates unlimited. |
| OutLogicalCoreLimit | The maximum number of logical cores to report in NumberOfCoresIncludingHyperthreads. Non-negative. 0 indicates unlimited. |
| bOutSetPhysicalCountToLogicalCount | Whether NumberOfCores should be overridden to return NumberOfCoresIncludingHyperthreads. |