Files
UnrealEngineUWP/Engine/Source/Programs/LiveLinkHub/Private/LiveLinkHubRun.cpp
jeremie roy 0061482367 LiveLinkHub - Improve boot time by disabling shared DDC and autosdk
Add some cpu scopes
Add optional monolithic mode

#rb jason.walter

[CL 30155621 by jeremie roy in ue5-main branch]
2023-12-06 10:31:59 -05:00

25 lines
646 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "LiveLinkHubRun.h"
#include "LaunchEngineLoop.h"
DEFINE_LOG_CATEGORY_STATIC(LogLiveLinkHub, Log, All);
int32 RunLiveLinkHub(const TCHAR* CommandLine)
{
FTaskTagScope Scope(ETaskTag::EGameThread);
// Start up the main loop, adding some extra command line arguments:
const int32 Result = GEngineLoop.PreInit(*FString::Printf(TEXT("%s %s"), CommandLine, TEXT("LiveLinkHubCommandlet -Messaging -DDC=NoShared -NoShaderCompile")));
if (Result != 0)
{
UE_LOG(LogLiveLinkHub, Error, TEXT("EngineLoop PreInit failed!"));
return Result;
}
GEngineLoop.Exit();
return Result;
}