aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/Util/Util_LatencyTest2State.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-28 01:43:35 +0100
committerSven Gothel <[email protected]>2015-03-28 01:43:35 +0100
commit4207f9c279e832e3afcb3f5fc6cd8d84cb4cfe4c (patch)
treecf3671058d55b47ab6cb6f36f369928606137628 /LibOVR/Src/Util/Util_LatencyTest2State.h
parentc29cd1a2fbff6282bab956ad61661ac9d48c4e6e (diff)
Bump OculusVR RIFT SDK to 0.5.0.1vanilla_0.5.0.1
Diffstat (limited to 'LibOVR/Src/Util/Util_LatencyTest2State.h')
-rw-r--r--LibOVR/Src/Util/Util_LatencyTest2State.h17
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