return m_client_event_queue.pop_front();
}
+float Client::getRTT(void)
+{
+ con::Peer *peer = m_con.GetPeerNoEx(PEER_ID_SERVER);
+ if(!peer)
+ return 0.0;
+ return peer->avg_rtt;
+}
"(% .1f, % .1f, % .1f)"
" (% .3f < btime_jitter < % .3f"
", dtime_jitter = % .1f %%"
- ", v_range = %.1f)",
+ ", v_range = %.1f, RTT = %.3f)",
player_position.X/BS,
player_position.Y/BS,
player_position.Z/BS,
busytime_jitter1_min_sample,
busytime_jitter1_max_sample,
dtime_jitter1_max_fraction * 100.0,
- draw_control.wanted_range
+ draw_control.wanted_range,
+ client.getRTT()
);
guitext2->setText(narrow_to_wide(temptext).c_str());