diegoquintanav / go-joystick

a d-pad controller in go to send commands using websockets
1 stars 0 forks source link

Pressing right repeatedly works half the time #15

Open quimnuss opened 9 hours ago

quimnuss commented 9 hours ago

Lowering the interval rate makes it much better for the jump (#12) but it still doesn't solve it for left and right, which makes it very hard to clear level 4 because you can't do small steps since depending on where you fall on the frontend polling interval it makes big or small steps or doesn't move at all if one presses and releases the button within the 20ms window.

I think it won't be responsive enough for a platformer if we don't switch from fixed interval polling to events as suggested in #13. The network latency will be problematic enough than to add a [0,20ms] latency on the frontend i think.

What are our options?

quimnuss commented 8 hours ago

Mmh, lowering the sensitivity to 5 ms still has this issue. Unsure why...