You've already forked lidgren-network-gen3
mirror of
https://github.com/lidgren/lidgren-network-gen3.git
synced 2026-05-16 07:06:30 +09:00
Crude Path MTU detection added
This commit is contained in:
@@ -33,8 +33,9 @@ namespace Lidgren.Network
|
||||
|
||||
// create fragmentation specifics
|
||||
int totalBytes = msg.LengthBytes;
|
||||
int mtu = m_configuration.MaximumTransmissionUnit;
|
||||
|
||||
|
||||
// determine minimum mtu for all recipients
|
||||
int mtu = GetMTU(recipients);
|
||||
int bytesPerChunk = NetFragmentationHelper.GetBestChunkSize(group, totalBytes, mtu);
|
||||
|
||||
int numChunks = totalBytes / bytesPerChunk;
|
||||
|
||||
Reference in New Issue
Block a user