BeardedManStudios / ForgeNetworkingRemastered

See various forks, also please join the Forge Community fork of Forge Alloy! -> https://github.com/ForgeAlloyCommunity/ForgeAlloy
https://twitter.com/FarrisFaulds
Apache License 2.0
1.49k stars 305 forks source link

NetworkerStatistics.BandwidthInOut BREAKS at High Ping! #403

Open TheYellowArchitect opened 3 years ago

TheYellowArchitect commented 3 years ago

Version Number and Operating System(s):

Windows 7 x64 Unity 2018.1.1f1 Forge Version 3/10/2018 - 19.53.38,04 (I downloaded it in 2021, it is the latest version of master branch)

Expected behavior:

Ping increases, bytes sent are the same amount, they are just delayed

Actual behavior:

Ping increases, bytes sent are almost exponentially more
https://user-images.githubusercontent.com/25630803/115296011-40486600-a10f-11eb-826d-41402ebc6c81.mp4

Steps to reproduce:

I made a reproducible project from scratch to confirm the above, so as to not give you a bloated project to reproduce (though you can reproduce it on your project too)
It is the same as the video above.

https://github.com/TheYellowArchitect/ForgePositionInterpolation

Only scenes used is the multiplayer menu, and default scene.
Build and run 2 instances (windowed so you can see them side-by-side)

Use clumsy to emulate ping, and you should see bytes received going skyhigh

[Optional] Discord Username:

Balroth Thorlar#6572