You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
IoStore: Added some missing cpu scopes and fixed very poor performance when creating the disk layout
#rnx #rb none [CL 16755050 by CarlMagnus Nordin in ue5-main branch]
This commit is contained in:
@@ -722,6 +722,8 @@ static void AssignPackagesDiskOrder(
|
||||
bool bClusterByOrderFilePriority
|
||||
)
|
||||
{
|
||||
IOSTORE_CPU_SCOPE(AssignPackagesDiskOrder);
|
||||
|
||||
struct FCluster
|
||||
{
|
||||
TArray<FLegacyCookedPackage*> Packages;
|
||||
@@ -972,8 +974,11 @@ static void CreateDiskLayout(
|
||||
}
|
||||
}
|
||||
}
|
||||
SortedTargetFiles.Insert(PackageUniqueShaders, Index + 1);
|
||||
Index += PackageUniqueShaders.Num();
|
||||
if (!PackageUniqueShaders.IsEmpty())
|
||||
{
|
||||
SortedTargetFiles.Insert(PackageUniqueShaders, Index + 1);
|
||||
Index += PackageUniqueShaders.Num();
|
||||
}
|
||||
}
|
||||
++Index;
|
||||
}
|
||||
@@ -4156,6 +4161,8 @@ static bool ParsePakResponseFile(const TCHAR* FilePath, TArray<FContainerSourceF
|
||||
|
||||
static bool ParsePakOrderFile(const TCHAR* FilePath, FFileOrderMap& Map)
|
||||
{
|
||||
IOSTORE_CPU_SCOPE(ParsePakOrderFile);
|
||||
|
||||
TArray<FString> OrderFileContents;
|
||||
if (!FFileHelper::LoadFileToStringArray(OrderFileContents, FilePath))
|
||||
{
|
||||
@@ -4681,6 +4688,7 @@ int32 CreateIoStoreContainerFiles(const TCHAR* CmdLine)
|
||||
}
|
||||
else
|
||||
{
|
||||
IOSTORE_CPU_SCOPE(FindCookedAssets);
|
||||
UE_LOG(LogIoStore, Display, TEXT("Searching for cooked assets in folder '%s'"), *Arguments.CookedDir);
|
||||
FCookedFileVisitor CookedFileVistor(Arguments.CookedFileStatMap, nullptr, Arguments.bFileRegions);
|
||||
IFileManager::Get().IterateDirectoryStatRecursively(*Arguments.CookedDir, CookedFileVistor);
|
||||
|
||||
Reference in New Issue
Block a user