Inflearn brand logo image

인프런 커뮤니티 질문&답변

Frontal Achivment님의 프로필 이미지
Frontal Achivment

작성한 질문수

[켠김에 출시까지] 유니티 캐주얼 모바일 MMORPG (M2)

Nagle Algorithm

해결된 질문

작성

·

45

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?

답변 1

1

Rookiss님의 프로필 이미지
Rookiss
지식공유자

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)

Frontal Achivment님의 프로필 이미지
Frontal Achivment

작성한 질문수

질문하기