FEngineLoop

Implements the main engine loop.

Windows
MacOS
Linux

References

Module

Launch

Header

/Engine/Source/Runtime/Launch/Public/LaunchEngineLoop.h

Include

#include "LaunchEngineLoop.h"

Syntax

class FEngineLoop

Remarks

Implements the main engine loop.

Variables

Name Description

Protected variable

TArray< float >

 

FrameTimes

Holds a dynamically expanding array of frame times in milliseconds (if FApp::IsBenchmarking() is set).

Protected variable

uint32

 

LastFrameCycles

Holds the number of cycles in the last frame.

Protected variable

uint64

 

MaxFrameCounter

Holds the maximum number of frames to render in benchmarking mode.

Protected variable

double

 

MaxTickTime

Holds the maximum number of seconds engine should be ticked.

Protected variable

double

 

TotalTickTime

Holds the total time spent ticking engine.

Constructors

Name Description

Public function

FEngineLoop()

Default constructor.

Destructors

Name Description

Public function Virtual

~FEngineLoop()

Functions

Name Description

Public function Static

void

 

AppExit()

Shuts down the application.

Public function Static

bool

 

AppInit()

Initializes the application.

Public function Static

void

 

AppPreExit()

Prepares the application for shutdown.

Public function

void

 

CleanupPreInitContext()

Clean up PreInit context.

Public function

bool

 

LoadCoreModules()

Load core modules.

Public function

void

 

LoadPreInitModules()

Load all modules needed before Init.

Public function Static

void

 

PostInitRHI()

RHI post-init initialization

Public function

int32

 

PreInit

(
    const TCHAR* CmdLine
)

Pre-Initialize the main loop - parse command line, sets up GIsEditor, etc.

Public function

int32

 

PreInit

(
    int32 ArgC,
    TCHAR* ArgV,
    const TCHAR* AdditionalCommand...
)

Pre-Initialize the main loop, and generates the commandline from standard ArgC/ArgV from main().

Public function Static

void

 

PreInitHMDDevice()

Pre-init HMD device (if necessary).

Public function

int32

 

PreInitPostStartupScreen

(
    const TCHAR* CmdLine
)

Second part of PreInit.

Public function

int32

 

PreInitPreStartupScreen

(
    const TCHAR* CmdLine
)

First part of PreInit.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss