Request tracking extrapolation on client

Add the timestamp where data was requested, use this to compute how far
in the future the application is requesting samples.
With this information, client requests 2 tracking samples: one at the
current time and one in the future.
Server now keeps track of actual samples + one predicted sample, and is
most of the time in the interpolation use case.
This commit is contained in:
Patrick Nicolas
2024-04-04 13:41:36 +02:00
parent b9c4e04a14
commit 7658f427e6
11 changed files with 126 additions and 45 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ void view_list::update_tracking(const from_headset::tracking & tracking, const c
view.fovs[eye] = xrt_cast(tracking.views[eye].fov);
}
add_sample(tracking.timestamp, view, offset);
add_sample(tracking.production_timestamp, tracking.timestamp, view, offset);
return;
}
}