Limit client extrapolation to 80ms
This commit is contained in:
@@ -166,7 +166,7 @@ void scenes::stream::tracking()
|
|||||||
|
|
||||||
timer t(instance);
|
timer t(instance);
|
||||||
|
|
||||||
XrDuration prediction = tracking_prediction_offset;
|
XrDuration prediction = std::min<XrDuration>(tracking_prediction_offset, 80'000'000);
|
||||||
// 1 or 2 samples
|
// 1 or 2 samples
|
||||||
for (XrDuration Δt = 0; Δt <= prediction; Δt += std::max<XrDuration>(1, prediction))
|
for (XrDuration Δt = 0; Δt <= prediction; Δt += std::max<XrDuration>(1, prediction))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user