Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Get network receive rate?

Asked by
Derci 5
8 years ago

Is it possible to access a player's network receive rate with code?

(When you go in game and press shift + f5, it's the fourth thing on the list.)

1 answer

Log in to vote
0
Answered by 8 years ago

That number looks like the number of times per second that a client receives an update from the server. You can determine this number by having the server repeatedly/frequently activate a RemoteEvent and see how many times per second the client receives this event, ignoring repeat activations during the same workspace.DistributedGameTime (ie if you receive 5 event activations during the same workspace.DistributedGameTime, you've only received information from the server once).

The number of event activations at different times divided by the time elapsed (in seconds) gives you the rate per second.

Ad

Answer this question