Skip to content

Commit 1b1e3f7

Browse files
committed
adding transport stats
1 parent d26d8e6 commit 1b1e3f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/BossRoom/Scripts/Shared/Net/NetworkStats.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ void FixedUpdate()
103103

104104
if (m_TextStat != null)
105105
{
106-
textToDisplay = $"{textToDisplay}RTT: {(LastRTT * 1000f).ToString()} ms ";
106+
var transportRTT = NetworkManager.NetworkConfig.NetworkTransport.GetCurrentRtt(NetworkManager.ServerClientId);
107+
textToDisplay = $"{textToDisplay}RTT: {(LastRTT * 1000f).ToString()} ms; UTP RTT {transportRTT} ms";
107108
}
108109
}
109110

0 commit comments

Comments
 (0)