You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
#rb Zousar.Shaker #rnx #ROBOMERGE-AUTHOR: devin.doucette #ROBOMERGE-SOURCE: CL 18194101 in //UE5/Release-5.0/... via CL 18194138 #ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469) #ROBOMERGE[STARSHIP]: UE5-Main [CL 18194155 by devin doucette in ue5-release-engine-test branch]
22 lines
559 B
C++
22 lines
559 B
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "Commandlets/DDCCleanupCommandlet.h"
|
|
#include "DerivedDataCache.h"
|
|
#include "DerivedDataCacheMaintainer.h"
|
|
#include "HAL/PlatformProcess.h"
|
|
#include "HAL/ThreadManager.h"
|
|
|
|
int32 UDDCCleanupCommandlet::Main(const FString& Params)
|
|
{
|
|
using namespace UE::DerivedData;
|
|
ICacheStoreMaintainer& Maintainer = GetCache().GetMaintainer();
|
|
Maintainer.BoostPriority();
|
|
while (!Maintainer.IsIdle())
|
|
{
|
|
FThreadManager::Get().Tick();
|
|
FPlatformProcess::SleepNoStats(0.05f);
|
|
GLog->Flush();
|
|
}
|
|
return 0;
|
|
}
|