Files
UnrealEngine/Engine/Source/Editor/UnrealEd/Private/Commandlets/DDCCleanupCommandlet.cpp
Brandyn / Techy fcc1b09210 init
2026-04-04 15:40:51 -05:00

28 lines
723 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "Commandlets/DDCCleanupCommandlet.h"
#include "CoreGlobals.h"
#include "DerivedDataCache.h"
#include "DerivedDataCacheKey.h"
#include "DerivedDataCacheMaintainer.h"
#include "HAL/PlatformProcess.h"
#include "HAL/ThreadManager.h"
#include "Misc/OutputDeviceRedirector.h"
#include UE_INLINE_GENERATED_CPP_BY_NAME(DDCCleanupCommandlet)
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;
}