Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::Util::LatencyTest2 Class Reference

#include "Util_LatencyTest2.h"

Inheritance diagram for OVR::Util::LatencyTest2:
Inheritance graph
Collaboration diagram for OVR::Util::LatencyTest2:
Collaboration graph

Data Structures

class  PixelReadHandler
 

Public Member Functions

 LatencyTest2 (SensorDevice *device=NULL)
 
 ~LatencyTest2 ()
 
bool SetSensorDevice (SensorDevice *device)
 
bool SetDisplayDevice (LatencyTestDevice *device)
 
bool HasDisplayDevice () const
 
bool HasDevice () const
 
bool DisplayScreenColor (Color &colorToDisplay)
 
void BeginTest (double startTime=-1.0f)
 
bool IsMeasuringNow () const
 
double GetMeasuredLatency () const
 
FrameTimeRecordSet GetLocklessState ()
 

Private Types

enum  LatencyTestMessageType { LatencyTest_None, LatencyTest_Timer, LatencyTest_ProcessInputs }
 

Private Member Functions

LatencyTest2getThis ()
 
void handleMessage (const MessagePixelRead &msg)
 

Private Attributes

PixelReadHandler Handler
 
Ptr< SensorDeviceHmdDevice
 
Ptr< LatencyTestDeviceLatencyTesterDev
 
Lock TesterLock
 
bool TestActive
 
unsigned char RenderColorValue
 
MessagePixelRead LastPixelReadMsg
 
double StartTiming
 
unsigned int RawStartTiming
 
UInt32 RawLatencyMeasured
 
double LatencyMeasuredInSeconds
 
int NumMsgsBeforeSettle
 
unsigned int NumTestsSuccessful
 
FrameTimeRecordSet RecentFrameSet
 
LocklessUpdater
< FrameTimeRecordSet
LockessRecords
 

Detailed Description

Definition at line 165 of file Util_LatencyTest2.h.

Member Enumeration Documentation

Enumerator
LatencyTest_None 
LatencyTest_Timer 
LatencyTest_ProcessInputs 

Definition at line 194 of file Util_LatencyTest2.h.

Constructor & Destructor Documentation

OVR::Util::LatencyTest2::LatencyTest2 ( SensorDevice device = NULL)

Definition at line 39 of file Util_LatencyTest2.cpp.

OVR::Util::LatencyTest2::~LatencyTest2 ( )

Definition at line 55 of file Util_LatencyTest2.cpp.

Member Function Documentation

void OVR::Util::LatencyTest2::BeginTest ( double  startTime = -1.0f)

Definition at line 101 of file Util_LatencyTest2.cpp.

bool OVR::Util::LatencyTest2::DisplayScreenColor ( Color colorToDisplay)

Definition at line 183 of file Util_LatencyTest2.cpp.

FrameTimeRecordSet OVR::Util::LatencyTest2::GetLocklessState ( )
inline

Definition at line 189 of file Util_LatencyTest2.h.

double OVR::Util::LatencyTest2::GetMeasuredLatency ( ) const
inline

Definition at line 186 of file Util_LatencyTest2.h.

LatencyTest2* OVR::Util::LatencyTest2::getThis ( )
inlineprivate

Definition at line 192 of file Util_LatencyTest2.h.

void OVR::Util::LatencyTest2::handleMessage ( const MessagePixelRead msg)
private

Definition at line 123 of file Util_LatencyTest2.cpp.

bool OVR::Util::LatencyTest2::HasDevice ( ) const
inline

Definition at line 178 of file Util_LatencyTest2.h.

bool OVR::Util::LatencyTest2::HasDisplayDevice ( ) const
inline

Definition at line 177 of file Util_LatencyTest2.h.

bool OVR::Util::LatencyTest2::IsMeasuringNow ( ) const
inline

Definition at line 185 of file Util_LatencyTest2.h.

bool OVR::Util::LatencyTest2::SetDisplayDevice ( LatencyTestDevice device)

Definition at line 83 of file Util_LatencyTest2.cpp.

bool OVR::Util::LatencyTest2::SetSensorDevice ( SensorDevice device)

Definition at line 63 of file Util_LatencyTest2.cpp.

Field Documentation

PixelReadHandler OVR::Util::LatencyTest2::Handler
private

Definition at line 212 of file Util_LatencyTest2.h.

Ptr<SensorDevice> OVR::Util::LatencyTest2::HmdDevice
private

Definition at line 214 of file Util_LatencyTest2.h.

MessagePixelRead OVR::Util::LatencyTest2::LastPixelReadMsg
private

Definition at line 220 of file Util_LatencyTest2.h.

double OVR::Util::LatencyTest2::LatencyMeasuredInSeconds
private

Definition at line 224 of file Util_LatencyTest2.h.

Ptr<LatencyTestDevice> OVR::Util::LatencyTest2::LatencyTesterDev
private

Definition at line 215 of file Util_LatencyTest2.h.

LocklessUpdater<FrameTimeRecordSet> OVR::Util::LatencyTest2::LockessRecords
private

Definition at line 231 of file Util_LatencyTest2.h.

int OVR::Util::LatencyTest2::NumMsgsBeforeSettle
private

Definition at line 225 of file Util_LatencyTest2.h.

unsigned int OVR::Util::LatencyTest2::NumTestsSuccessful
private

Definition at line 226 of file Util_LatencyTest2.h.

UInt32 OVR::Util::LatencyTest2::RawLatencyMeasured
private

Definition at line 223 of file Util_LatencyTest2.h.

unsigned int OVR::Util::LatencyTest2::RawStartTiming
private

Definition at line 222 of file Util_LatencyTest2.h.

FrameTimeRecordSet OVR::Util::LatencyTest2::RecentFrameSet
private

Definition at line 230 of file Util_LatencyTest2.h.

unsigned char OVR::Util::LatencyTest2::RenderColorValue
private

Definition at line 219 of file Util_LatencyTest2.h.

double OVR::Util::LatencyTest2::StartTiming
private

Definition at line 221 of file Util_LatencyTest2.h.

bool OVR::Util::LatencyTest2::TestActive
private

Definition at line 218 of file Util_LatencyTest2.h.

Lock OVR::Util::LatencyTest2::TesterLock
private

Definition at line 217 of file Util_LatencyTest2.h.


The documentation for this class was generated from the following files: