28 #ifndef OVR_Util_LatencyTest2_h
29 #define OVR_Util_LatencyTest2_h
31 #include "../OVR_Device.h"
33 #include "../Kernel/OVR_String.h"
34 #include "../Kernel/OVR_List.h"
35 #include "../Kernel/OVR_Lockless.h"
37 namespace OVR {
namespace Util {
66 *readbackIndex =
index;
97 void AddValue(
int readValue,
double timeSeconds)
123 if ((*
this)[*i].ReadbackIndex == readbackIndex)
132 if (
Records[i].ReadbackIndex != 0)
184 void BeginTest(
double startTime = -1.0f);
238 #endif // OVR_Util_LatencyTest2_h
FrameTimeRecordSet GetLocklessState()
Ptr< SensorDevice > HmdDevice
const FrameTimeRecord & GetMostRecentFrame()
double GetMeasuredLatency() const
virtual void OnMessage(const Message &msg)
Ptr< LatencyTestDevice > LatencyTesterDev
static unsigned char ReadbackIndexToColor(int readbackIndex)
PixelReadHandler(LatencyTest2 *latencyTester)
MessagePixelRead LastPixelReadMsg
void BeginTest(double startTime=-1.0f)
static bool ColorToReadbackIndex(int *readbackIndex, unsigned char color)
bool HasDisplayDevice() const
LocklessUpdater< FrameTimeRecordSet > LockessRecords
void AddValue(int readValue, double timeSeconds)
LatencyTest2(SensorDevice *device=NULL)
FrameTimeRecordSet RecentFrameSet
bool IsMeasuringNow() const
UInt32 RawLatencyMeasured
FrameTimeRecord Records[RecordCount]
double LatencyMeasuredInSeconds
bool DisplayScreenColor(Color &colorToDisplay)
unsigned int RawStartTiming
bool IsHandlerInstalled() const
__BEGIN_NAMESPACE_STD void void __END_NAMESPACE_STD void __BEGIN_NAMESPACE_STD void * memset(void *__s, int __c, size_t __n) __THROW __nonnull((1))
bool SetDisplayDevice(LatencyTestDevice *device)
void handleMessage(const MessagePixelRead &msg)
int char * index(const char *__s, int __c) __THROW __attribute_pure__ __nonnull((1))
const FrameTimeRecord & operator[](int i) const
unsigned char RenderColorValue
bool SetSensorDevice(SensorDevice *device)
LatencyTest2 * pLatencyTestUtil
unsigned int NumTestsSuccessful
bool FindReadbackIndex(int *i, int readbackIndex) const