-
Notifications
You must be signed in to change notification settings - Fork 675
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
Slow reliable peer #183
Comments
Sending large data with UDP will always be much slower than with TCP, especially in less-than-ideal situations. I don't think ENet is designed to provide fast UDP file downloads. |
It's likely you are not calling enet_host_service/enet_host_check_events often enough or in an optimal pattern. |
I tested different patterns and last one is: if (peer->reliableDataInTransit > 512 * 500) And anyway speed almost the same (increased up to 2.5MBps from 2MBps). So I believe problem is different from pattern usage. Could you hint where I should check in source code ? |
I tested ENet library with 2 clients located far from each other: TTL 53, Ping 280 and got maximum bandwidth of reliable packets about 2Mbps
With the same conditions I got about 9MBps with LiteNetLib (C#). And TCP gives about 9-10MBps between same clients.
Local tests (localhost<->localhost) give about 300MBps.
I guess something wrong with buffering or window processing.
The text was updated successfully, but these errors were encountered: