diff options
author | Sven Gothel <[email protected]> | 2015-03-28 02:08:11 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2015-03-28 02:08:11 +0100 |
commit | 450aa6f7df9e67dd256b86f94e65eaf707032aad (patch) | |
tree | 04aa207d84ddc8ca246d2573aaaf756b3ce8a0b5 /LibOVR/Src/Util/Util_LatencyTest2State.h | |
parent | 3c7b8a17e907f4ef2afd9f77db566a3f6179cbe4 (diff) | |
parent | 4207f9c279e832e3afcb3f5fc6cd8d84cb4cfe4c (diff) |
Merge branch 'vanilla_0.5.0.1' into jogamp_0.5.0.1
Conflicts:
LibOVR/Include/OVR_CAPI_0_5_0.h
LibOVR/Src/CAPI/CAPI_HMDState.cpp
LibOVR/Src/Displays/OVR_Win32_Dxgi_Display.h
LibOVR/Src/Kernel/OVR_System.cpp
LibOVR/Src/OVR_CAPI.cpp
LibOVR/Src/OVR_Profile.cpp
LibOVRKernel/Src/Kernel/OVR_ThreadsWinAPI.cpp
LibOVRKernel/Src/Kernel/OVR_Types.h
Diffstat (limited to 'LibOVR/Src/Util/Util_LatencyTest2State.h')
-rw-r--r-- | LibOVR/Src/Util/Util_LatencyTest2State.h | 17 |
1 files changed, 8 insertions, 9 deletions
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<FrameTimeRecordSet, FrameTimeRecordSet> LockessRecordUpdater; - - }} // namespace OVR::Util #endif // OVR_Util_LatencyTest2_State_h |