Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiteNetLib vs TCP for streaming data #114

Closed
mgamache opened this issue Dec 7, 2017 · 1 comment
Closed

LiteNetLib vs TCP for streaming data #114

mgamache opened this issue Dec 7, 2017 · 1 comment

Comments

@mgamache
Copy link

mgamache commented Dec 7, 2017

I realize this is probably not a typical use-case for the library, however...

I am currently streaming data over the internet via TCP. I am evaluating switching to the LiteNetLib (using ReliableOrdered), however, It seems like I am getting much better throughput using TCP. For example, I can get sustained 40mbs/sec using standard .net TCP code, but only 13mbs using LiteNetLib (before the Queues start to backup). Is this expected, due to the packet checking? I've set the UpdateTime to 4 and the PollEvents to 4ms. My test is sending 100 packets/sec.

Note, I am able to get 20-30mbs/sec using iperf UDP:

  • 0% packet loss at 20mbs
  • 3.8% packet loss at 30mbs
@RevenantX
Copy link
Owner

@mgamache i know about this thing. This because i not implemented "sliding" window technology.
And

I realize this is probably not a typical use-case for the library...

yes. In almost all cases - transfering large amount of data will be better with TCP.
This issue is same as #110

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants