Limit client extrapolation to 80ms

This commit is contained in:
Patrick Nicolas committed 2024-06-25 21:07:47 +02:00
1 parent 4c9f24499e
commit 1e294ddcae
1 file changed
+1 -1
+1 -1
View File
@@ -166,7 +166,7 @@ void scenes::stream::tracking()
timer t(instance);
XrDuration prediction = tracking_prediction_offset;
XrDuration prediction = std::min<XrDuration>(tracking_prediction_offset, 80'000'000);
// 1 or 2 samples
for (XrDuration Δt = 0; Δt <= prediction; Δt += std::max<XrDuration>(1, prediction))
{