-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard response progressively slows down #20
Comments
I also did see this behavoir fast... the first keys come quick, but then it take "ages" in 60Hz Mode On the latest commit from the 17th of June vidoe.c with 15Hz doesnt help anymore :( Also my Ordroid C2 (S905-CPU QuadCore 1.54Ghz) couldnt handle the 60HZ in all versions. |
When I try the latest commits on a Raspberry Pi 4, it will not handle 60 Hz either. I seem to recall I tried the GPU shader at some point and it seemed fine at that point. With the new option |
Thanks for the new commit. I dont know if its really supported (or its a feature-bug :) ) BUT when I try With "./vt100 -Q -N6 bash" I got a working htop and a long "ls -l /usr/bin" without errors Could we also have an option to disable the sound? For me htop seems to work better than top :) |
and it has nothing to do with the following compile-warning? :
|
Yes, sound could also be disabled. The cracking noise is really indicative of a deeper problem but as a band-aid or if you just don't want the sound it can be silenced. The warning is harmless. It's just an unused function I have kept around. It's for disabling sound, actually. |
Heads up I'm working on a fix for the sound crackle/sound disable, but still needs a little more work to be 100% accurate. The slowing keyboard response seems to result from the emulator falling behind "wall time", for the moment you can increase "frameskip" -Nx until it stops, but even then if the emulator falls behind due to say, some momentary lag from a large gcc compile on the same machine, it can still fall behind and have trouble catching up. Still wrapping my head around whats happening there and how to fix it. |
Thanks! As you may have noted, the simulator relies on the sound output to synchronize simulated time (8080 cycles) against real time. I suspected the slowdown could be because of falling behind as you describe, but since the main/SDL thread is rarely at 100% I didn't look into it. |
I'm probably quite late to the party but I will note the slowdown occurs roughly an order of magnitude sooner If I disable audio output. I'm also running this on a laptop from 2010 that struggles to run Firefox, so probably the fault of my slow hardware. |
@rricharz discovered that patching the LOG calls in keyboard.c to printf seems to alleviate the problem. |
Reported by @kidmirage, and I have also seen something similar with the Knight TV console emulator.
(I have only seen this when run on Raspberry Pi, but then I rarely keep the emulators running long on a PC.)
The text was updated successfully, but these errors were encountered: