Use XrTime for all time data

This commit is contained in:
Patrick Nicolas
2024-03-24 14:01:44 +01:00
parent f951034de4
commit 8e3979cc8c
11 changed files with 47 additions and 63 deletions
-6
View File
@@ -211,12 +211,6 @@ void wivrn_session::operator()(from_headset::inputs && inputs)
right_hand->set_inputs(inputs, offset);
}
template <typename Rep, typename Period>
static auto lerp(std::chrono::duration<Rep, Period> a, std::chrono::duration<Rep, Period> b, double t)
{
return std::chrono::duration<Rep, Period>(Rep(std::lerp(a.count(), b.count(), t)));
}
void wivrn_session::operator()(from_headset::timesync_response && timesync)
{
offset_est.add_sample(timesync);