demoth / jake2

Quake 2 java port
GNU General Public License v2.0
59 stars 9 forks source link

Network messages (both reliable & non reliable) are staged in a collection instead of the byte buffers. #65

Closed demoth closed 3 years ago

demoth commented 3 years ago

Mostly you will see changes like NetworkMessage.writeTo(buffer) -> messages.add(NetworkMessage) But also important was to get rid of datagram/multicast and other temp byte buffers and defer message serialization to the very moment they are ready to be transmitted over the network (Netchan.Transmit)