Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jgbt committed Nov 4, 2020
1 parent e9173ad commit ac86c1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/ReliabilityLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2573,6 +2573,8 @@ BitSize_t ReliabilityLayer::GetMessageHeaderLengthBits( const InternalPacket *co
// unsigned short s; s = (unsigned short) internalPacket->dataBitLength; bitStream->WriteAlignedVar16((const char*)& s);
bitLength += 8*2;

// When a large packet is of type RELIABLE_SEQUENCED, the byte size can be one byte more than MTU (1501 bytes), which can cause massive network latency.
// The change is introduced by observations and experiments, not by understanding of the code.
if (internalPacket->reliability == RELIABLE_SEQUENCED)
bitLength += 8 * 1;

Expand Down

0 comments on commit ac86c1d

Please sign in to comment.