mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-11-21 17:41:54 -08:00
Limit client extrapolation to 80ms
This commit is contained in:
1 parent
4c9f24499e
commit
1e294ddcae
1 file changed
+1
-1
@@ -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))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user