Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
1
Question by sebas77 · Dec 02, 2015 at 05:10 PM · networkingmultiplayer

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?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by aabramychev · Dec 03, 2015 at 04:15 PM

@sebas77

I

am 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...

Also I noticed that NetworkClient has a function called GetConnectionStats which could be really useful for us

Will ask colleagues why not. Pretty sure that this function was implemented to be used in profiler only...
Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sebas77 · Dec 03, 2015 at 04:18 PM 0
Share

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?

avatar image aabramychev sebas77 · Dec 03, 2015 at 04:24 PM 0
Share

$$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...

avatar image sebas77 aabramychev · Dec 03, 2015 at 05:02 PM 0
Share

great any clue when it could be available? 5.4 or 5.3.x?

Show more comments
avatar image MechEthan · Mar 13, 2017 at 07:53 PM 0
Share

Did anything get added for this? I can't seem to find anything in documentation or the source.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

52 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges