engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 所有成员列表
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. 更多...

#include <RenderCore.h>

Public 成员函数

 FInputLatencyTimer (float InUpdateFrequency)
 Constructor 更多...
 
RENDERCORE_API void GameThreadTick ()
 Potentially starts the timer on the gamethread, based on the UpdateFrequency.
 
float GetDeltaSeconds () const
 

Public 属性

bool bInitialized
 Whether GInputLatencyTimer is initialized or not.
 
uint32 DeltaTime
 Last delta time that was measured (in FPlatformTime::Cycles).
 
bool GameThreadTrigger
 Whether a measurement has been triggered on the gamethread.
 
float LastCaptureTime
 Last time we did a measurement (in seconds).
 
bool RenderThreadTrigger
 Whether a measurement has been triggered on the renderthread.
 
uint32 StartTime
 Start time (in FPlatformTime::Cycles).
 
float UpdateFrequency
 How often we should do a measurement (in seconds).
 

详细描述

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.

构造及析构函数说明

◆ FInputLatencyTimer()

FInputLatencyTimer::FInputLatencyTimer ( float  InUpdateFrequency)
inline

Constructor

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

成员函数说明

◆ GetDeltaSeconds()

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

该结构体的文档由以下文件生成: