Rename variable for recentering
This commit is contained in:
@@ -1049,6 +1049,6 @@ void scenes::stream::on_reference_space_changed(XrReferenceSpaceType space, XrTi
|
|||||||
{
|
{
|
||||||
if (space == XrReferenceSpaceType::XR_REFERENCE_SPACE_TYPE_LOCAL)
|
if (space == XrReferenceSpaceType::XR_REFERENCE_SPACE_TYPE_LOCAL)
|
||||||
{
|
{
|
||||||
local_dirty = true;
|
recenter_requested = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ private:
|
|||||||
std::thread network_thread;
|
std::thread network_thread;
|
||||||
std::mutex tracking_control_mutex;
|
std::mutex tracking_control_mutex;
|
||||||
to_headset::tracking_control tracking_control;
|
to_headset::tracking_control tracking_control;
|
||||||
std::atomic<bool> local_dirty = false;
|
std::atomic<bool> recenter_requested = false;
|
||||||
std::atomic<XrDuration> display_time_phase = 0;
|
std::atomic<XrDuration> display_time_phase = 0;
|
||||||
std::atomic<XrDuration> display_time_period = 0;
|
std::atomic<XrDuration> display_time_period = 0;
|
||||||
std::optional<std::thread> tracking_thread;
|
std::optional<std::thread> tracking_thread;
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ void scenes::stream::tracking()
|
|||||||
packet.view_flags = flags;
|
packet.view_flags = flags;
|
||||||
|
|
||||||
packet.state_flags = 0;
|
packet.state_flags = 0;
|
||||||
if (local_dirty.exchange(false))
|
if (recenter_requested.exchange(false))
|
||||||
packet.state_flags = wivrn::from_headset::tracking::recentered;
|
packet.state_flags = wivrn::from_headset::tracking::recentered;
|
||||||
|
|
||||||
packet.device_poses.clear();
|
packet.device_poses.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user