Skip to content

Commit

Permalink
feature: ConnectionQuality details
Browse files Browse the repository at this point in the history
  • Loading branch information
mischa committed Oct 6, 2023
1 parent 52e3697 commit c312b6b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Assets/Mirror/Core/NetworkManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ protected virtual void CalculateConnectionQuality()
// users can overwrite this to display connection quality warnings, etc.
protected virtual void OnConnectionQualityChanged(ConnectionQuality previous, ConnectionQuality current)
{
Debug.Log($"[Mirror] Connection Quality changed from {previous} to {current}");
// logging the change is very useful to track down user's lag reports.
// we want to include as much detail as possible for debugging.
Debug.Log($"[Mirror] Connection Quality changed from {previous} to {current}:\n rtt={(NetworkTime.rtt*1000):F1}ms\n rttVar={(NetworkTime.rttVariance*1000):F1}ms\n bufferTime={(NetworkClient.bufferTime*1000):F1}ms");
}

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit c312b6b

Please sign in to comment.