Chesco
Chesco4mo ago

How do I check the latency of the connected player?

How do I check the latency of the connected player?
Solution:
---------------------- You can check the latency of the connected player in NormalVR by using the ping property of the Realtime class. This property returns the local client's last known ping with the server in milliseconds. Here is how you can access it: ...
Jump to solution
5 Replies
kapa.ai
kapa.ai4mo ago
Hi @Chesco. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Solution
kapa.ai
kapa.ai4mo ago
---------------------- You can check the latency of the connected player in NormalVR by using the ping property of the Realtime class. This property returns the local client's last known ping with the server in milliseconds. Here is how you can access it:
float latency = Realtime.ping;
float latency = Realtime.ping;
This will give you the latency in milliseconds. For more information, you can refer to the Realtime class documentation (https://normcore.io/documentation/reference/classes/Normal.Realtime.Realtime). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4mo ago
<@584767573556592640> kapa.ai is still learning and improving, please let us know how it did by reacting below
Yrt
Yrt4mo ago
@Chesco if you are connected to a room, you can just access the ping property with room.ping
Towellie
Towellie4mo ago
Thanks for the follow up, that's some good information. I'll see if I can edit future responses from the bot to include that