1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

Removed initial average rtt over-estimation since it seems to overshoot first message anyway (due to other processing I suppose)

This commit is contained in:
lidgren
2011-03-04 22:17:06 +00:00
parent 226bb301ce
commit f4831a98a7

View File

@@ -108,7 +108,7 @@ namespace Lidgren.Network
if (m_averageRoundtripTime < 0)
{
m_remoteTimeOffset = diff;
m_averageRoundtripTime = rtt * 1.15f; // initially over-estimate
m_averageRoundtripTime = rtt;
m_peer.LogDebug("Initiated average roundtrip time to " + NetTime.ToReadable(m_averageRoundtripTime) + " Remote time is: " + (now + diff));
}
else