FInputLatencyTimer

Encapsulates a latency timer that measures the time from when mouse input is read on the gamethread until that frame is fully displayed by the GPU.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/RenderCore.h

Include

#include "RenderCore.h"

Syntax

struct FInputLatencyTimer

Remarks

Encapsulates a latency timer that measures the time from when mouse input is read on the gamethread until that frame is fully displayed by the GPU.

Variables

Name Description

Public variable

bool

 

bInitialized

Whether GInputLatencyTimer is initialized or not.

Public variable

uint32

 

DeltaTime

Last delta time that was measured (in FPlatformTime::Cycles).

Public variable

bool

 

GameThreadTrigger

Whether a measurement has been triggered on the gamethread.

Public variable

float

 

LastCaptureTime

Last time we did a measurement (in seconds).

Public variable

bool

 

RenderThreadTrigger

Whether a measurement has been triggered on the renderthread.

Public variable

uint32

 

StartTime

Start time (in FPlatformTime::Cycles).

Public variable

float

 

UpdateFrequency

How often we should do a measurement (in seconds).

Constructors

Name Description

Public function

FInputLatencyTimer

(
    float InUpdateFrequency
)

Constructor

Functions

Name Description

Public function

void

 

GameThreadTick()

Potentially starts the timer on the gamethread, based on the UpdateFrequency.

Public function Const

float

 

GetDeltaSeconds()

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