Improve timesync
Initial timesync algorithm assumed that latency was symmetrical, but it appears that it is not. Add a mechanism to estimate where latency happens, which leads to much more stable values: about 200µs variation between estimations.
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
namespace xrt::drivers::wivrn
|
||||
{
|
||||
|
||||
struct clock_offset
|
||||
{
|
||||
std::chrono::nanoseconds epoch_offset{};
|
||||
@@ -34,4 +35,4 @@ struct clock_offset
|
||||
to_headset(uint64_t timestamp_ns) const;
|
||||
};
|
||||
|
||||
}
|
||||
} // namespace xrt::drivers::wivrn
|
||||
|
||||
Reference in New Issue
Block a user