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:
Patrick Nicolas
2023-10-21 17:53:04 +02:00
parent 5b527fdfcf
commit 4e233d99c2
16 changed files with 151 additions and 19 deletions
+3 -3
View File
@@ -7,13 +7,13 @@
*/
#include "xrt/xrt_config_build.h"
#include "xrt/xrt_instance.h"
#include "xrt/xrt_system.h"
#include "main/comp_main_interface.h"
#include "os/os_time.h"
#include "util/u_debug.h"
#include "util/u_system_helpers.h"
#include "util/u_misc.h"
#include "util/u_trace_marker.h"
#include "util/u_builders.h"
@@ -32,7 +32,7 @@ extern std::unique_ptr<TCP> tcp;
static xrt_result_t
wivrn_instance_create_system(struct xrt_instance * xinst,
struct xrt_system_devices ** out_xsysd,
struct xrt_space_overseer ** out_xspovrs,
struct xrt_space_overseer ** out_xspovrs,
struct xrt_system_compositor ** out_xsysc)
{
assert(out_xsysd != NULL);