We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have something that technically works, but currently I can choose between two problems, neither of them good. Either the movement seems laggy, and skips multiple steps. This seems to be caused by the program either "lagging behind" and receiving future coordinates before it has time to display those it has (usually because of
clientEvent()). It is also caused by
client.clear() which often deletes the most recently sent data.
However, when I use neither
client.clear(), the buffer seems to fill up, and the positions on the receiving device drift slowly out of sync. While doing this the movement seems a lot smoother, but it's as if the ping is slowly increasing.
Is there any way I could make sure all data is read and used, but the receiver doesn't drift behind the actual time of the sender?