![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#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 |
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.
|
inline |
Constructor
| InUpdateFrequency | How often the timer should be updated (in seconds). |
| void FInputLatencyTimer::GameThreadTick | ( | ) |
Potentially starts the timer on the gamethread, based on the UpdateFrequency.
|
inline |
| uint32 FInputLatencyTimer::DeltaTime = 0 |
Last delta time that was measured (in FPlatformTime::Cycles).
Whether a measurement has been triggered on the gamethread.
| double FInputLatencyTimer::LastCaptureTime = 0.0f |
Last time we did a measurement (in seconds).
Whether a measurement has been triggered on the renderthread.
| uint32 FInputLatencyTimer::StartTime = 0 |
Start time (in FPlatformTime::Cycles).
| float FInputLatencyTimer::UpdateFrequency |
How often we should do a measurement (in seconds).