Navigation
API > API/Runtime > API/Runtime/RenderCore
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.
| Name | FInputLatencyTimer |
| Type | struct |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderTimer.h |
| Include Path | #include "RenderTimer.h" |
Syntax
struct FInputLatencyTimer
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FInputLatencyTimer
(
float InUpdateFrequency |
Constructor | RenderTimer.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bInitialized | bool | Whether GInputLatencyTimer is initialized or not. | RenderTimer.h | |
| DeltaTime | uint32 | Last delta time that was measured (in FPlatformTime::Cycles). | RenderTimer.h | |
| GameThreadTrigger | bool | Whether a measurement has been triggered on the gamethread. | RenderTimer.h | |
| LastCaptureTime | double | Last time we did a measurement (in seconds). | RenderTimer.h | |
| RenderThreadTrigger | bool | Whether a measurement has been triggered on the renderthread. | RenderTimer.h | |
| StartTime | uint32 | Start time (in FPlatformTime::Cycles). | RenderTimer.h | |
| UpdateFrequency | float | How often we should do a measurement (in seconds). | RenderTimer.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GameThreadTick() |
Potentially starts the timer on the gamethread, based on the UpdateFrequency. | RenderTimer.h | |
float GetDeltaSeconds() |
RenderTimer.h |