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

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).

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback