ref: b32512697498726fbfa7a6790c1015eac8d77f4f
parent: fea3b29487c305a535b7b270f220ef88dbadb908
author: Simon Howard <fraggle@soulsphere.org>
date: Wed Jan 30 14:07:42 EST 2019
net: Add logging for PID sync parameters.
--- a/src/net_client.c
+++ b/src/net_client.c
@@ -215,7 +215,8 @@
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