BlindTerran / JayWalk_Processing

A 2D interactive game made with Java Processing library
MIT License
1 stars 0 forks source link

Pedestrian movement laggy #1

Closed BlindTerran closed 2 years ago

BlindTerran commented 2 years ago

The pedestrian has delayed responding to a move instruction. When the keypress is released the pedestrian continues going for another 1/2 second, this might be due to the input buffer caused by the latency between the input hardware and the operating system. When the keyPressed function is called in draw(), the moving operation is to be frame rate dependent. The precision of the moving process will be subject to the sampling rate of the OS.

BlindTerran commented 2 years ago

https://discourse.processing.org/t/smooth-moving-code/7126/6