Unet: How can I know the percentage of packets lost?
I am aware of the fact that the class NetworkTransport implements GetNetworkLostPacketNum in order to know the total number of packet lost.
However, in order to collect useful information, I need to know the percentage of packets lost compared to the total number of packets sent.
Is there a way to know this information with Unity 5.2?
Also I noticed that NetworkClient has a function called GetConnectionStats which could be really useful for us. However, while it works in the Editor, It doesn't return any information when it runs in the window standalone client. Can you tell me why?
Answer by aabramychev · Dec 03, 2015 at 04:15 PM
Iam aware of the fact that the class NetworkTransport implements GetNetworkLostPacketNum in order to know the total number of packet lost.
Yes You are right :( My fault, I didn't expose this function for user, will add it...
Will ask colleagues why not. Pretty sure that this function was implemented to be used in profiler only...Also I noticed that NetworkClient has a function called GetConnectionStats which could be really useful for us
thank you, do you mean you will add the GetTotalPacketNum function or something like this? Or a function that actually gives the packet lost ratio directly?
$$anonymous$$eans will add 3 functions: Total packet sent, % of packets lost due network condition (dropped by internet) % of packet dropped due internal conditions (dropped by library due lack spaces in receiver inco$$anonymous$$g queues). All these values have been already calculated but not exposed to user...
great any clue when it could be available? 5.4 or 5.3.x?
Did anything get added for this? I can't seem to find anything in documentation or the source.
Your answer
Follow this Question
Related Questions
spawning a gun in a multiplayer game 1 Answer
Multiplayer Random Generated Maze 0 Answers
How to add realtime game events without updating build? 1 Answer
What are some best practices for static variables in multiplayer? 0 Answers
Simple Question: Is the Unity 5.4+ "NetworkLobbyManager" bugged? 0 Answers