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

UDP protocol latency and garbage generation issues #196

Closed
prodigga opened this issue Apr 26, 2018 · 4 comments
Closed

UDP protocol latency and garbage generation issues #196

prodigga opened this issue Apr 26, 2018 · 4 comments

Comments

@prodigga
Copy link

Hello there, we are using the latest Unity 2018 b13 with the latest Nakama/Cockroach versions (N: 1.4.1, CR: 2.0.1).

Latency issues:
When we test with Websockets, the RTT from clientA > Nakama > ClientB > Nakama > ClientA is 80ms.
When we test with rUDP, the RTT from clientA > Nakama > ClientB > Nakama > ClientA is 250ms.

We noticed that if we sent messages unreliably then the RTT was comparable to Websockets. But we still need to be able to send messages reliably in a timely manner. (Weapon fire event, damage events, etc).

In our test scene, we treat positional updates as unreliable and weapon events as reliable. The movement is super responsive and smooth (Our Networked Transform code can handle dropped packets just fine), but the shooting feels really laggy because the RTT is 250ms when it should really be 80ms~.

Garbage generation:
It looks like there is about 10kb's of garbage being generated for every event being sent (Reliable and unreliable)

@ex
Copy link

ex commented Dec 20, 2018

hi @prodigga , were you able to solve this issue? I'm interested in using nakama but this kind of issues worry me.

@prodigga
Copy link
Author

prodigga commented Dec 20, 2018 via email

@ex
Copy link

ex commented Dec 21, 2018

We no longer use Nakama so I can't say whether it has been resolved or not.

oh, can you tell me what are you using now?

@zyro
Copy link
Member

zyro commented Dec 21, 2018

This refers to the old Nakama 1.x rUDP protocol and no longer applies. The Nakama 2.x version is not yet open-source but is not based on the 1.x protocol and not subject to this issue.

@ex If you want to chat to Tim off-topic I know he's active on Twitter and Reddit so reach out there.

@zyro zyro closed this as completed Dec 21, 2018
@heroiclabs heroiclabs locked as off-topic and limited conversation to collaborators Dec 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants