VERSION 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. V1.12 [2021-07-16]
  2. - where-allocation removed. will be optional in the future.
  3. - Tests: don't depend on Unity anymore
  4. - fix: #26 - Kcp now catches exception if host couldn't be resolved, and calls
  5. OnDisconnected to let the user now.
  6. - fix: KcpServer.DualMode is now configurable in the constructor instead of
  7. using #if UNITY_SWITCH. makes it run on all other non dual mode platforms too.
  8. V1.11 rollback [2021-06-01]
  9. - perf: Segment MemoryStream initial capacity set to MTU to avoid early runtime
  10. resizing/allocations
  11. V1.10 [2021-05-28]
  12. - feature: configurable Timeout
  13. - allocations explained with comments (C# ReceiveFrom / IPEndPoint.GetHashCode)
  14. - fix: #17 KcpConnection.ReceiveNextReliable now assigns message default so it
  15. works in .net too
  16. - fix: Segment pool is not static anymore. Each kcp instance now has it's own
  17. Pool<Segment>. fixes #18 concurrency issues
  18. V1.9 [2021-03-02]
  19. - Tick() split into TickIncoming()/TickOutgoing() to use in Mirror's new update
  20. functions. allows to minimize latency.
  21. => original Tick() is still supported for convenience. simply processes both!
  22. V1.8 [2021-02-14]
  23. - fix: Unity IPv6 errors on Nintendo Switch
  24. - fix: KcpConnection now disconnects if data message was received without content.
  25. previously it would call OnData with an empty ArraySegment, causing all kinds of
  26. weird behaviour in Mirror/DOTSNET. Added tests too.
  27. - fix: KcpConnection.SendData: don't allow sending empty messages anymore. disconnect
  28. and log a warning to make it completely obvious.
  29. V1.7 [2021-01-13]
  30. - fix: unreliable messages reset timeout now too
  31. - perf: KcpConnection OnCheckEnabled callback changed to a simple 'paused' boolean.
  32. This is faster than invoking a Func<bool> every time and allows us to fix #8 more
  33. easily later by calling .Pause/.Unpause from OnEnable/OnDisable in MirrorTransport.
  34. - fix #8: Unpause now resets timeout to fix a bug where Mirror would pause kcp,
  35. change the scene which took >10s, then unpause and kcp would detect the lack of
  36. any messages for >10s as timeout. Added test to make sure it never happens again.
  37. - MirrorTransport: statistics logging for headless servers
  38. - Mirror Transport: Send/Receive window size increased once more from 2048 to 4096.
  39. V1.6 [2021-01-10]
  40. - Unreliable channel added!
  41. - perf: KcpHeader byte added to every kcp message to indicate
  42. Handshake/Data/Ping/Disconnect instead of scanning each message for Hello/Byte/Ping
  43. content via SegmentEquals. It's a lot cleaner, should be faster and should avoid
  44. edge cases where a message content would equal Hello/Ping/Bye sequence accidentally.
  45. - Kcp.Input: offset moved to parameters for cases where it's needed
  46. - Kcp.SetMtu from original Kcp.c
  47. V1.5 [2021-01-07]
  48. - KcpConnection.MaxSend/ReceiveRate calculation based on the article
  49. - MirrorTransport: large send/recv window size defaults to avoid high latencies caused
  50. by packets not being processed fast enough
  51. - MirrorTransport: show MaxSend/ReceiveRate in debug gui
  52. - MirrorTransport: don't Log.Info to console in headless mode if debug log is disabled
  53. V1.4 [2020-11-27]
  54. - fix: OnCheckEnabled added. KcpConnection message processing while loop can now
  55. be interrupted immediately. fixes Mirror Transport scene changes which need to stop
  56. processing any messages immediately after a scene message)
  57. - perf: Mirror KcpTransport: FastResend enabled by default. turbo mode according to:
  58. https://github.com/skywind3000/kcp/blob/master/README.en.md#protocol-configuration
  59. - perf: Mirror KcpTransport: CongestionControl disabled by default (turbo mode)
  60. V1.3 [2020-11-17]
  61. - Log.Info/Warning/Error so logging doesn't depend on UnityEngine anymore
  62. - fix: Server.Tick catches SocketException which happens if Android client is killed
  63. - MirrorTransport: debugLog option added that can be checked in Unity Inspector
  64. - Utils.Clamp so Kcp.cs doesn't depend on UnityEngine
  65. - Utils.SegmentsEqual: use Linq SequenceEqual so it doesn't depend on UnityEngine
  66. => kcp2k can now be used in any C# project even without Unity
  67. V1.2 [2020-11-10]
  68. - more tests added
  69. - fix: raw receive buffers are now all of MTU size
  70. - fix: raw receive detects error where buffer was too small for msgLength and
  71. result in excess data being dropped silently
  72. - KcpConnection.MaxMessageSize added for use in high level
  73. - KcpConnection.MaxMessageSize increased from 1200 bytes to to maximum allowed
  74. message size of 145KB for kcp (based on mtu, overhead, wnd_rcv)
  75. V1.1 [2020-10-30]
  76. - high level cleanup, fixes, improvements
  77. V1.0 [2020-10-22]
  78. - Kcp.cs now mirrors original Kcp.c behaviour
  79. (this fixes dozens of bugs)
  80. V0.1
  81. - initial kcp-csharp based version