From 4207f9c279e832e3afcb3f5fc6cd8d84cb4cfe4c Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 28 Mar 2015 01:43:35 +0100 Subject: Bump OculusVR RIFT SDK to 0.5.0.1 --- LibOVR/Src/Util/Util_LatencyTest2State.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'LibOVR/Src/Util/Util_LatencyTest2State.h') diff --git a/LibOVR/Src/Util/Util_LatencyTest2State.h b/LibOVR/Src/Util/Util_LatencyTest2State.h index 0b4ffd6..ced3d70 100644 --- a/LibOVR/Src/Util/Util_LatencyTest2State.h +++ b/LibOVR/Src/Util/Util_LatencyTest2State.h @@ -27,7 +27,7 @@ limitations under the License. #ifndef OVR_Util_LatencyTest2_State_h #define OVR_Util_LatencyTest2_State_h -#include "../Kernel/OVR_Lockless.h" +#include "Kernel/OVR_Lockless.h" namespace OVR { namespace Util { @@ -45,10 +45,11 @@ enum LatencyTester2Constants // FrameTimeRecord // Describes frame scan-out time used for latency testing. -struct FrameTimeRecord +struct OVR_ALIGNAS(8) FrameTimeRecord { - int ReadbackIndex; - double TimeSeconds; + int32_t ReadbackIndex; + int32_t Pad; + double TimeSeconds; // Utility functions to convert color to readBack indices and back. // The purpose of ReadbackIndex is to allow direct comparison by value. @@ -63,14 +64,15 @@ struct FrameTimeRecord // FrameTimeRecordSet is a container holding multiple consecutive frame timing records // returned from the lock-less state. Used by FrameTimeManager. -struct FrameTimeRecordSet +struct OVR_ALIGNAS(8) FrameTimeRecordSet { enum { RecordCount = 4, RecordMask = RecordCount - 1 }; FrameTimeRecord Records[RecordCount]; - int NextWriteIndex; + int32_t NextWriteIndex; + int32_t Pad4; FrameTimeRecordSet(); @@ -88,9 +90,6 @@ struct FrameTimeRecordSet bool IsAllZeroes() const; }; -typedef LocklessUpdater LockessRecordUpdater; - - }} // namespace OVR::Util #endif // OVR_Util_LatencyTest2_State_h -- cgit v1.2.3