UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FInputLatencyTimer Struct Reference

#include <RenderTimer.h>

Public Member Functions

 FInputLatencyTimer (float InUpdateFrequency)
 
RENDERCORE_API void GameThreadTick ()
 
float GetDeltaSeconds () const
 

Public Attributes

bool bInitialized = false
 
bool GameThreadTrigger = false
 
bool RenderThreadTrigger = false
 
uint32 StartTime = 0
 
uint32 DeltaTime = 0
 
double LastCaptureTime = 0.0f
 
float UpdateFrequency
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FInputLatencyTimer()

FInputLatencyTimer::FInputLatencyTimer ( float  InUpdateFrequency)
inline

Constructor

Parameters
InUpdateFrequencyHow often the timer should be updated (in seconds).

Member Function Documentation

◆ GameThreadTick()

void FInputLatencyTimer::GameThreadTick ( )

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

◆ GetDeltaSeconds()

float FInputLatencyTimer::GetDeltaSeconds ( ) const
inline
Returns
The number of seconds of input latency.

Member Data Documentation

◆ bInitialized

bool FInputLatencyTimer::bInitialized = false

Whether GInputLatencyTimer is initialized or not.

◆ DeltaTime

uint32 FInputLatencyTimer::DeltaTime = 0

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

◆ GameThreadTrigger

bool FInputLatencyTimer::GameThreadTrigger = false

Whether a measurement has been triggered on the gamethread.

◆ LastCaptureTime

double FInputLatencyTimer::LastCaptureTime = 0.0f

Last time we did a measurement (in seconds).

◆ RenderThreadTrigger

bool FInputLatencyTimer::RenderThreadTrigger = false

Whether a measurement has been triggered on the renderthread.

◆ StartTime

uint32 FInputLatencyTimer::StartTime = 0

Start time (in FPlatformTime::Cycles).

◆ UpdateFrequency

float FInputLatencyTimer::UpdateFrequency

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


The documentation for this struct was generated from the following files: