I have a web-socket server sending object positions to all clients at a fixed rate (say 40 Hz).
Client side (HTML5 browsers) I receive these messages and draw the object (canvas) at that new position.
My problem is that sometimes, if there is not a great deal of other JavaScript processing activity on the client, the objects seem to skip a bunch of updates and get transported over a large range. So instead of a nice smooth animation, I get stuttery movements.
I have some code to handle lagging updates using linear interpolation - but this problem is different, this is not where the updates are coming in too slow, its where they are coming in too fast!
How the heck do I solve this without resorting to decreasing the server update rate, which I really don't want to have to do?!
Any suggestions greatly appreciated!
Paulus_newbieus
Member Since 04 Aug 2002Offline Last Active Nov 18 2012 04:11 PM

Find content
Not Telling