![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <LaunchEngineLoop.h>
Public Member Functions | |
| FEngineLoop () | |
| virtual | ~FEngineLoop () |
| int32 | PreInit (int32 ArgC, TCHAR *ArgV[], const TCHAR *AdditionalCommandline=nullptr) |
| int32 | PreInit (const TCHAR *CmdLine) |
| int32 | PreInitPreStartupScreen (const TCHAR *CmdLine) |
| int32 | PreInitPostStartupScreen (const TCHAR *CmdLine) |
| void | LoadPreInitModules () |
| bool | LoadCoreModules () |
| void | OverrideProjectModule (const FString &InOriginalProjectModuleName, const FString &InReplacementProjectModuleName) |
| void | CleanupPreInitContext () |
Static Public Member Functions | |
| static void | PostInitRHI () |
| static void | PreInitHMDDevice () |
| static bool | AppInit () |
| static void | AppPreExit () |
| static void | AppExit () |
Protected Attributes | |
| TArray< float > | FrameTimes |
| double | TotalTickTime |
| double | MaxTickTime |
| uint64 | MaxFrameCounter |
| uint32 | LastFrameCycles |
Implements the main engine loop.
| FEngineLoop::FEngineLoop | ( | ) |
Default constructor.
|
inlinevirtual |
|
static |
Shuts down the application.
This function called outside guarded exit code, during all exits (including error exits).
|
static |
Initializes the application.
|
static |
Prepares the application for shutdown.
This function is called from within guarded exit code, only during non-error exits.
| void FEngineLoop::CleanupPreInitContext | ( | ) |
Clean up PreInit context.
| bool FEngineLoop::LoadCoreModules | ( | ) |
Load core modules.
| void FEngineLoop::LoadPreInitModules | ( | ) |
Load all modules needed before Init.
| void FEngineLoop::OverrideProjectModule | ( | const FString & | InOriginalProjectModuleName, |
| const FString & | InReplacementProjectModuleName | ||
| ) |
Allow override of the project module loaded from project file
Pre-Initialize the main loop - parse command line, sets up GIsEditor, etc.
| CmdLine | The command line. |
| int32 FEngineLoop::PreInit | ( | int32 | ArgC, |
| TCHAR * | ArgV[], | ||
| const TCHAR * | AdditionalCommandline = nullptr |
||
| ) |
Pre-Initialize the main loop, and generates the commandline from standard ArgC/ArgV from main().
| ArgC | The number of strings in ArgV. |
| ArgV | The command line parameters (ArgV[0] is expected to be the executable name). |
| AdditionalCommandLine | Optional string to append to the command line (after ArgV is put together). |
|
static |
Pre-init HMD device (if necessary).
Holds a dynamically expanding array of frame times in milliseconds (if FApp::IsBenchmarking() is set).
|
protected |
Holds the number of cycles in the last frame.
|
protected |
Holds the maximum number of frames to render in benchmarking mode.
|
protected |
Holds the maximum number of seconds engine should be ticked.
|
protected |
Holds the total time spent ticking engine.