Releases: Xytabich/UNet
Releases · Xytabich/UNet
Udon version update
SByte encoding fix
- Fixed incorrect sbyte encoding
SByte encoding fix
- Fixed incorrect sbyte encoding
Version for Katsudon
UNet implementation for Katsudon.
- Removed NetworkInterface as unnecessary. All actions are now in NetworkManager.
- Events have been reworked and moved to NetworkManager.
- ByteBufferWriter and ByteBufferReader now implement static methods.
Udon Networking update
Removed:
- The logic of unreliable messages has been completely removed, since udon now supports the necessary functionality
Added:
- Events of the end of sending messages
- Ability to cancel message delivery
Changes:
- The number of connections has been increased to 64.
- Now the sending methods return the id of the message
- The maximum message size has been increased to 512 bytes, and a packet to 2048 bytes
Fixes:
- Fixed a possible situation in which messages could not be delivered to players if messages were sent to only one target for a very long time
Moving to Array api
Changes
- Some array operations, such as searching or copying, have been reworked to use array methods, which has slightly increased performance.
- It is now possible to transfer data buffers of any size to methods (previously there was a restriction due to the way data is copied).
Float encoding & send fixes
Fixes
- Fixed a bug with incorrect use of the mask for attempts to send reliable messages. This slowed down the rate at which messages were sent, resulting in a drop in throughput.
- Fixed incorrect encoding/decoding of single precision floating point numbers. Numbers with multiples of two were encoded incorrectly, which could lead to a halving of the total value.
Small fixes and changes
Fixes:
- Added check, when receiving a message, whether the network is initialized (sometimes messages arrive faster than the ownership event)
Changes:
- Added an exception if the input buffer is too large
Fixes and optimizations
Removed
- Confirmation of connection does not affect anything, it was removed as unnecessary.
Changes
- The "Flush not fit unreliable" parameter has been removed. Now the system tries to pack all messages, everything that does not fit is deleted.
- Some code optimizations.
Fixes
- Reliable messages have been reworked. Some of the first messages may not have been delivered, which is not "reliable".
- Sequenced reliable messages have also been reworked. Now they work according to a simpler and faster algorithm.
OnUNetConnected event changes
Changes
- OnUNetConnected will now only fire when a new player is ready to receive messages. Previously, some messages sent during OnUNetConnected did not reach the destination and were lost. Now the connected client sends a confirmation that it is ready to receive network messages. It takes some time, so the event will be triggered with a delay relative to the Udon event.