Skip to content

LiteNetLib 0.9.4

Compare
Choose a tag to compare
@RevenantX RevenantX released this 02 Dec 18:27
· 289 commits to master since this release
  • Optimize CRC calculating
  • Added UnsyncedReceiveEvent for making only NetworkReceiveEvent unsynced, while other events called from PollEvents
  • Optimized packet pool to lock-free structure
  • Optimized net events pool to lock-free structure
  • Modified PacketLayerBase so that ProcessInboundPacket and ProcessOutboundPacket are both given the IPEndPoint of the sender/receiver, which is necessary for encryption layers that require per-connection state.
  • Made NetStatistics thread-safe using Interlocked, PacketLoss is now monotonically increasing (previously, NetManager.Statistics.PacketLoss would drop if a NetPeer was removed).
  • Flush method of NetManager replaced by NetManager.TriggerUpdate() which works asynchronously.
  • Fixed list of structs serialization
  • Some other fixes and optimizations