Hi Everyone, I would just like to know if there is a specific timeframe/window, after the game state is received, in which the command for a specific game tick must be submitted.
Most of the time there is a delay of 1 game tick between a command being sent and the command being used by the game engine. And other times there is no delay of 1 game tick before the command is used. This leads me to believe the game engine only has a very limited window in which the command must be sent for the command to be processed in the same tick as which it is sent? See example below (all commands were sent within 3ms after receiving game state):
Game tick: 1
Received at: 63764290079936 ms
Player Size: 10 Player Position X: 424 Y: 424
Player Speed: 20 Player Heading: 0
Command: Forward 250
Game tick: 2
Received at: 63764290084771 ms
Player Size: 10 Player Position X: 418 Y: 406
Player Speed: 20 Player Heading: 250
Command: Forward 248
Game tick: 3
Received at: 63764290084779 ms
Player Size: 13 Player Position X: 418 Y: 390
Player Speed: 16 Player Heading: 250
Command: Forward 161
Game tick: 4
Received at: 63764290084789 ms
Player Size: 13 Player Position X: 413 Y: 375
Player Speed: 16 Player Heading: 250
Command: Forward 139
Game tick: 5
Received at: 63764290084841 ms
Player Size: 13 Player Position X: 407 Y: 361
Player Speed: 16 Player Heading: 248
Command: Forward 122
Game tick: 6
Received at: 63764290084952 ms
Player Size: 13 Player Position X: 399 Y: 374
Player Speed: 16 Player Heading: 122
Command: Forward 123
Game tick: 7
Received at: 63764290085032 ms
Player Size: 13 Player Position X: 390 Y: 387
Player Speed: 16 Player Heading: 123
Command: Forward 122
State set time=0
Game tick: 8
Received at: 63764290085090 ms
Player Size: 16 Player Position X: 378 Y: 400
Player Speed: 13 Player Heading: 123
Command: Forward 77