commit b32512697498726fbfa7a6790c1015eac8d77f4f
Author: Simon Howard <fraggle@soulsphere.org>
AuthorDate: Wed Jan 30 19:07:42 2019 -0500
Commit: Simon Howard <fraggle@soulsphere.org>
CommitDate: Wed Jan 30 19:07:42 2019 -0500
net: Add logging for PID sync parameters.
---
src/net_client.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/net_client.c b/src/net_client.c
index 62915eab..c3b2517f 100644
--- a/src/net_client.c
+++ b/src/net_client.c
@@ -215,7 +215,8 @@ static void UpdateClockSync(unsigned int seq,
last_error = error;
last_latency = latency;
- //printf("%i,%i,%i\n", latency, remote_latency, offsetms);
+ NET_Log("client: latency %d, remote %d -> offset=%dms, cumul_error=%d",
+ latency, remote_latency, offsetms / FRACUNIT, cumul_error);
}
// Expand a net_full_ticcmd_t, applying the diffs in cmd->cmds as