NewCreature / JoyNet

A base networking engine which synchronize input over a network to produce duplicate games.
3 stars 2 forks source link

Optimize Input Messages #4

Open NewCreature opened 12 years ago

NewCreature commented 12 years ago

We don't need to send redundant input messages when the input hasn't changed. For the mouse driver, this is likely to save a lot of bandwidth for turn-based games. Simultaneous multi-player games are likely to benefit less but any bandwidth saved is good. Not sure if this will cause more jitter but it's worth looking into.

NewCreature commented 12 years ago

Should keep track of previous input state and only update if it is changed. This should be implemented on both the client and server. This should be handled in the functions joynet_update_game() and joynet_update_game_server().