1
0
mirror of https://github.com/lidgren/lidgren-network-gen3.git synced 2026-05-16 07:06:30 +09:00

Message/storage recycling capped to NetConfiguration.RecycledCacheMaxCount number of arrays/messages

This commit is contained in:
lidgren
2015-01-11 17:56:06 +00:00
parent 984e70fd52
commit c15e4cb2c8
4 changed files with 55 additions and 39 deletions

View File

@@ -157,7 +157,8 @@ namespace Lidgren.Network
bdr.AppendLine("Received (n/a) bytes in (n/a) messages in (n/a) packets");
#endif
bdr.AppendLine("Storage allocated " + m_bytesAllocated + " bytes");
bdr.AppendLine("Recycled pool " + m_peer.m_storagePoolBytes + " bytes");
if (m_peer.m_storagePool != null)
bdr.AppendLine("Recycled pool " + m_peer.m_storagePoolBytes + " bytes (" + m_peer.m_storageSlotsUsedCount + " entries)");
return bdr.ToString();
}
}