On 29/12/15 03:06, Matthew Flatt wrote:
At Mon, 28 Dec 2015 18:54:10 +0100, Juan Francisco Cantero Hurtado wrote:
FYI, I also see the pauses in the game when I move the lateral bars
(with Racket 6.3 and git HEAD). I'm using Linux and the output of racket
only shows very small pauses.
Aha --- do you mean that bars pause, but the ball moves smoothly? In
that case, maybe it has to do with key-repeat events. I have my repeat
delay set to its shortest value, but I think I see what you mean if I
turn it up to medium.
If that's the issue, a better approach may be to keep track of which
keys are pressed, using `on-key` to add to the key-pressed set and
`on-release` to subtract from the key-pressed set. Then, move the
paddles during `on-tick` based on the currently pressed keys.
You're right. The problem is related to the key-repeat delay/rate
configuration.
--
You received this message because you are subscribed to the Google Groups "Racket
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.