Without this implementation the client emits coordinates every millisecond and the server emits an array with all blobs every 10 milliseconds which is heavily unefficient.
The client now only emits an event when the user changes the direction. It calculates the X/Y position by using the UNIX timestamp of when the direction was changed and where it was changed (coordinates).
Without this implementation the client emits coordinates every millisecond and the server emits an array with all blobs every 10 milliseconds which is heavily unefficient. The client now only emits an event when the user changes the direction. It calculates the X/Y position by using the UNIX timestamp of when the direction was changed and where it was changed (coordinates).