-
Notifications
You must be signed in to change notification settings - Fork 32
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
How often to poll WuUpdate #12
Comments
I think it depends on the maximum latency you're willing to accept when polling for new data. Currently WebUDP is sending SCTP heartbeats with 4 second intervals. If you're using it in a game, once per frame should be good I guess. |
Did a few tests, and here's what I came up with: 3 test runs with 1ms second intervals and 3 test runs with 10ms. They show an increase of min time using the greater interval running roundtrip_histogram.html
One interesting note is that is showed a noticeable performance improvement over the regular EchoServer
|
I am adapting WuNetwork.cpp to work using coroutines and I am currently calling WuUpdate via a timer. I am using 1ms intervals but haven't done enough testing to know if this is overkill, or even worse if it may cause issues when handling connection heartbeats. Do you have any input regarding a healthy/optimal interval for updating clients? Thanks
The text was updated successfully, but these errors were encountered: