RomanZhu / Entitas-Sync-Framework

Networking framework for Entitas ECS. Targeted at turnbased games or other slow-paced genres.
MIT License
162 stars 20 forks source link

Send bitmask to represent datatypes inside packet #1

Closed RomanZhu closed 5 years ago

RomanZhu commented 5 years ago

Currently server sends packet to each client each tick with those ushorts:

Meaning I send 20 bytes even when all of those counts is 0.

Will add bitmask as a first byte, that way when client will unpack packet - he will know what datatypes to look for. In other words if there is nothing to send - we will send only 1 byte from server. (In turnbased games this is the most common case)

RomanZhu commented 5 years ago

Completed.