02-14-2025, 10:15 AM
(02-14-2025, 09:26 AM)stevantosic Wrote: Sometimes animation action takes two or three (cell) steps in a chunk instead of single one.
Hi, I assume this is using the 'animate' command with an angle direction input and not the 'forward' command. Also I assume it appears like repeating an animation command rather than being jumpy but ending up in the right place.
If it is as I assume then it looks like the commands are being sent too quickly from your controller code, first would be to put much longer delays in your code to be sure each command completes before the next is sent. If you can then create a simple example that show the issue I would like to see it.
On the client side I take care not to poll for or receive the next command until all animations have fully completed.
On the server side, the next request sent to the client is its current state, not previous commands queued as I may have suggested in an earlier post.
So, my thinking is perhaps you are sending animate=0, then animate=90, then animate=0 for example. The first animate=0 starts and say takes 1.05 sec (total time including some latency), you send the second command at 0.5 sec and the 3rd after 1 sec. Therefore the next command the client receives is command 3 and it moves forward again in the same direction.