강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của nieskalany
nieskalany

câu hỏi đã được viết

[Từ lúc bắt đầu đến khi phát hành] Unity Casual Mobile MMORPG (M2)

Nagle Algorithm

Đã giải quyết

Viết

·

92

0

Is there a reason why its not switch off in socket? Isnt it a problem with mmo servers and we hold packets on our own?

C#unitymysqlMMORPGef-coreasp.net-web-api

Câu trả lời 1

1

Rookiss님의 프로필 이미지
Rookiss
Người chia sẻ kiến thức

In MMORPGs, packet latency is not as important as it is in other genres (like LOL, FPS,...)
Balancing packet speed and bandwidth is crucial.
Sending 1 byte doesn't mean you REALLY send 1 byte,
Because of network encapsulation there will be a huge amount of header data.
Nagle helps you send packets instantly, but this is not always an advantage when it comes to MMORPG. So you can choose whether to use nagle.
- Send packets instantly (Nagle ON), but try to send as many packets as possible at once from your contents code. This is possible because most MMOs use Job Systems, you can try to send as many jobs as possible. (= gathering packets from contents side)
- Turn off Nagle and send packets, then it will gather as many packets as possible before sending it. (= gathering packets from network side)

Hình ảnh hồ sơ của nieskalany
nieskalany

câu hỏi đã được viết

Đặt câu hỏi