Minor changes from porting

This commit is contained in:
Wojtek Figat
2024-01-18 16:03:27 +01:00
parent 3bdc70a4c6
commit 6d6b678b29
3 changed files with 9 additions and 1 deletions

View File

@@ -163,7 +163,7 @@ bool ContentLoadingManagerService::Init()
// Calculate amount of loading threads to use
const CPUInfo cpuInfo = Platform::GetCPUInfo();
const int32 count = Math::Clamp(static_cast<int32>(LOADING_THREAD_PER_LOGICAL_CORE * (float)cpuInfo.LogicalProcessorCount), 1, 12);
const int32 count = Math::Clamp(Math::CeilToInt(LOADING_THREAD_PER_LOGICAL_CORE * (float)cpuInfo.LogicalProcessorCount), 1, 12);
LOG(Info, "Creating {0} content loading threads...", count);
// Create loading threads