From 729f7261351b38ccc59182196fa6306c99f85ea8 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Mon, 23 Nov 2020 01:53:00 +0100 Subject: [PATCH] steamvr: Request hmd pose at current time instead of 1 --- src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp b/src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp index 5ff9dcf9e..b9df633ff 100644 --- a/src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp +++ b/src/xrt/state_trackers/steamvr_drv/ovrd_driver.cpp @@ -1036,8 +1036,9 @@ vr::DriverPose_t CDeviceDriver_Monado::GetPose() { + timepoint_ns now_ns = os_monotonic_get_ns(); struct xrt_space_relation rel; - xrt_device_get_tracked_pose(m_xdev, XRT_INPUT_GENERIC_HEAD_POSE, 1, + xrt_device_get_tracked_pose(m_xdev, XRT_INPUT_GENERIC_HEAD_POSE, now_ns, &rel); struct xrt_pose *offset = &m_xdev->tracking_origin->offset;