max-mapper / voxel-server

multiplayer server for voxel-engine
74 stars 25 forks source link

TODO: Have client only send player's position/rotation on change #9

Closed gabehollombe closed 2 years ago

gabehollombe commented 11 years ago

Currently the player is sending positional updates to the server 22 times per second? It would be good to change this slightly and only transmit positional changes when they happen, so players standing still don't send unnecessary redundant positional messages to the server.

max-mapper commented 11 years ago

@chrisdickinson would the new voxel-control stuff let us do something like:

keyboardInput.pipe(serverConnection)
mouseInput.pipe(serverConnection)
chrisdickinson commented 11 years ago

it would be game.controls.pipe(connection), (though you'd want to pipe it to a through stream that annotated the timestamp), but yes!