Bike-X
0.8
|
#include "CAPI_FrameTimeManager.h"
Data Structures | |
struct | Timing |
struct | TimingInputs |
Public Member Functions | |
FrameTimeManager (bool vsyncEnabled=true) | |
void | Init (HmdRenderInfo &renderInfo) |
void | ResetFrameTiming (unsigned frameIndex, bool dynamicPrediction, bool sdkRender) |
void | SetVsync (bool enabled) |
double | BeginFrame (unsigned frameIndex) |
void | EndFrame () |
Timing | GetFrameTiming (unsigned frameIndex) |
double | GetEyePredictionTime (ovrEyeType eye) |
Transformf | GetEyePredictionPose (ovrHmd hmd, ovrEyeType eye) |
void | GetTimewarpPredictions (ovrEyeType eye, double timewarpStartEnd[2]) |
void | GetTimewarpMatrices (ovrHmd hmd, ovrEyeType eye, ovrPosef renderPose, ovrMatrix4f twmOut[2]) |
bool | NeedDistortionTimeMeasurement () const |
void | AddDistortionTimeMeasurement (double distortionTimeSeconds) |
unsigned char | GetFrameLatencyTestDrawColor () |
void | UpdateFrameLatencyTrackingAfterEndFrame (unsigned char frameLatencyTestColor, const Util::FrameTimeRecordSet &rs) |
void | GetLatencyTimings (float latencies[3]) |
const Timing & | GetFrameTiming () const |
Private Member Functions | |
double | calcFrameDelta () const |
double | calcScreenDelay () const |
double | calcTimewarpWaitDelta () const |
Private Attributes | |
HmdRenderInfo | RenderInfo |
TimeDeltaCollector | FrameTimeDeltas |
TimeDeltaCollector | DistortionRenderTimes |
FrameLatencyTracker | ScreenLatencyTracker |
bool | VsyncEnabled |
bool | DynamicPrediction |
bool | SdkRender |
double | VSyncToScanoutDelay |
double | NoVSyncToScanoutDelay |
double | ScreenSwitchingDelay |
Timing | FrameTiming |
LocklessUpdater< Timing > | LocklessTiming |
double | RenderIMUTimeSeconds |
double | TimewarpIMUTimeSeconds |
Definition at line 130 of file CAPI_FrameTimeManager.h.
OVR::CAPI::FrameTimeManager::FrameTimeManager | ( | bool | vsyncEnabled = true | ) |
Definition at line 212 of file CAPI_FrameTimeManager.cpp.
void OVR::CAPI::FrameTimeManager::AddDistortionTimeMeasurement | ( | double | distortionTimeSeconds | ) |
Definition at line 585 of file CAPI_FrameTimeManager.cpp.
double OVR::CAPI::FrameTimeManager::BeginFrame | ( | unsigned | frameIndex | ) |
Definition at line 405 of file CAPI_FrameTimeManager.cpp.
|
private |
Definition at line 257 of file CAPI_FrameTimeManager.cpp.
|
private |
Definition at line 282 of file CAPI_FrameTimeManager.cpp.
|
private |
Definition at line 309 of file CAPI_FrameTimeManager.cpp.
void OVR::CAPI::FrameTimeManager::EndFrame | ( | ) |
Definition at line 422 of file CAPI_FrameTimeManager.cpp.
Transformf OVR::CAPI::FrameTimeManager::GetEyePredictionPose | ( | ovrHmd | hmd, |
ovrEyeType | eye | ||
) |
Definition at line 478 of file CAPI_FrameTimeManager.cpp.
double OVR::CAPI::FrameTimeManager::GetEyePredictionTime | ( | ovrEyeType | eye | ) |
Definition at line 467 of file CAPI_FrameTimeManager.cpp.
|
inline |
Definition at line 208 of file CAPI_FrameTimeManager.h.
FrameTimeManager::Timing OVR::CAPI::FrameTimeManager::GetFrameTiming | ( | unsigned | frameIndex | ) |
Definition at line 440 of file CAPI_FrameTimeManager.cpp.
|
inline |
Definition at line 220 of file CAPI_FrameTimeManager.h.
|
inline |
Definition at line 216 of file CAPI_FrameTimeManager.h.
void OVR::CAPI::FrameTimeManager::GetTimewarpMatrices | ( | ovrHmd | hmd, |
ovrEyeType | eye, | ||
ovrPosef | renderPose, | ||
ovrMatrix4f | twmOut[2] | ||
) |
Definition at line 513 of file CAPI_FrameTimeManager.cpp.
void OVR::CAPI::FrameTimeManager::GetTimewarpPredictions | ( | ovrEyeType | eye, |
double | timewarpStartEnd[2] | ||
) |
Definition at line 493 of file CAPI_FrameTimeManager.cpp.
void OVR::CAPI::FrameTimeManager::Init | ( | HmdRenderInfo & | renderInfo | ) |
Definition at line 225 of file CAPI_FrameTimeManager.cpp.
bool OVR::CAPI::FrameTimeManager::NeedDistortionTimeMeasurement | ( | ) | const |
Definition at line 577 of file CAPI_FrameTimeManager.cpp.
void OVR::CAPI::FrameTimeManager::ResetFrameTiming | ( | unsigned | frameIndex, |
bool | dynamicPrediction, | ||
bool | sdkRender | ||
) |
Definition at line 235 of file CAPI_FrameTimeManager.cpp.
|
inline |
Definition at line 184 of file CAPI_FrameTimeManager.h.
void OVR::CAPI::FrameTimeManager::UpdateFrameLatencyTrackingAfterEndFrame | ( | unsigned char | frameLatencyTestColor, |
const Util::FrameTimeRecordSet & | rs | ||
) |
Definition at line 599 of file CAPI_FrameTimeManager.cpp.
|
private |
Definition at line 232 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 238 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 231 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 249 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 251 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 245 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 255 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 229 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 233 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 246 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 240 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 256 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 236 of file CAPI_FrameTimeManager.h.
|
private |
Definition at line 244 of file CAPI_FrameTimeManager.h.