only rely on history if clock_offset is stable

This commit is contained in:
galister
2024-09-03 18:00:28 +02:00
committed by xytovl
parent 9689cbf822
commit 3f25fed6df
5 changed files with 27 additions and 26 deletions
+3 -3
View File
@@ -32,13 +32,13 @@ struct clock_offset
{
// y: headset time
// x: server time
// y = ax+b
// y = x+b
int64_t b = 0;
double a = 1;
bool stable = false;
operator bool() const
{
return b != 0;
return stable;
}
XrTime from_headset(XrTime) const;