On Tue, Jul 15, 2008 at 12:06 PM, Mateusz Viste <mateusz.viste@...> wrote:
> On Tuesday 15 July 2008, Jim Hall wrote:
>> Just grabbed it. (...) But the paddle control seems awfully jumpy - I would try to move my paddle up a little bit, and it would jump all the way to the top. Only happens sometimes.
> Honestly, I didn't tested it on DOSemu. I will that test soon, maybe I can reproduce it.
> EmPong is strongly basing on RDTSC cycles (at least in the DOS version). Does DOSemu emulate this? EmPong is also using time-calculated moves, so if it doesn't loop for a long time (say, several ms), and he see that a key is pressed, he just assumes that the key has been pressed for the whole time. Then, it moves the paddle accordingly to the time the key (he thinks) has been pressed.
That sounds like the behavior, right there. I don't move the paddle
when the ball is on the other side of the court, especially since the
AI is so bad and often misses. So when I finally tap the "up" or
"down" key, my paddle jumps immediately to the top or bottom of the
screen. That's a bug.
Doesn't seem to happen if I continually move my paddle during "idle"
times, even if it's just "up-down" to generate key input.