FInGameCycleHistory

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/InGamePerformanceTracker.h

Include

#include "InGamePerformanceTracker.h"

Syntax

struct FInGameCycleHistory

Variables

Name Description

Public variable

int32

 

CurrFrameCycles

Current number of cycles for this frame.

Public variable

TArray< uint32 ...

 

FrameCycles

Cycles for each frame in history.

Public variable

int32

 

FrameIdx

Index of next frame in history to replace.

Public variable

uint64

 

TotalCycles

Cached running total for an overall average.

Public variable

int32

 

ValidFrames

Number of current valid frames. A history is only valid when all it's frames are.

Constructors

Name Description

Public function

FInGameCycleHistory()

Public function

FInGameCycleHistory

(
    int32 InNumSamples
)

Functions

Name Description

Public function

void

 

AddCycles

(
    int32 NewCycles
)

Adds a number of cycles for the current frame. Thread safe.

Public function Const

uint32

 

GetAverageCycles()

Public function Const

bool

 

IsValid()

A history only becomes valid when all it's frames are in use.

Public function

void

 

NextFrame()

Places the current data on the history and advances to the next frame index. Not thread safe.

Public function

void

 

Reset()

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