Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/RenderCore.h |
Include |
#include "RenderCore.h" |
struct 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.
Name | Description | ||
---|---|---|---|
|
bInitialized |
Whether GInputLatencyTimer is initialized or not. |
|
|
DeltaTime |
Last delta time that was measured (in FPlatformTime::Cycles). |
|
|
GameThreadTrigger |
Whether a measurement has been triggered on the gamethread. |
|
|
float |
LastCaptureTime |
Last time we did a measurement (in seconds). |
|
RenderThreadTrigger |
Whether a measurement has been triggered on the renderthread. |
|
|
StartTime |
Start time (in FPlatformTime::Cycles). |
|
|
float |
UpdateFrequency |
How often we should do a measurement (in seconds). |
Name | Description | |
---|---|---|
|
FInputLatencyTimer ( |
Constructor |
Name | Description | ||
---|---|---|---|
|
GameThreadTick() |
Potentially starts the timer on the gamethread, based on the UpdateFrequency. |
|
|
float |
GetDeltaSeconds() |