08-06-2012, 06:41 PM | #1 | ||
Join Date: Jun 2012
Posts: 4
|
DOSBOX freezes keyboard input
Recently I've been playing Duke Nukem II through DOSBOX 0.74, on W7. I've had several other issues getting it to work right such as inverted colors and black bars on the bottom which I've managed to solve.
There is still one problem that is proving very bothersome. Occasionally DOSBOX will freeze up just for a second. Afterwards, the keyboard will have no response, and whatever key I was last using, will be 'stuck'. For instance if I was moving right and DOSBOX froze up, my character would be endlessly moving to the right, even if I let go of the button. So far the only way to fix it is to hit the Windows button and get back into DOSBOX as fast as humanly possible before Duke Nukem ends up walking off a cliff. Since I cannot pause when this happens, this has caused me countless unnecessary deaths. Any help would be greatly appreciated. |
||
|
|
08-06-2012, 11:02 PM | #2 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
Default DOSBox configuration?
|
||
|
|
08-06-2012, 11:55 PM | #3 | ||
Join Date: Sep 2004
Location: Valleyfield, Canada
Posts: 4,892
|
I don't know that much about new systems... But it sounds like you have lag issues because you don't have enough CPU power. Of course I could be completely off track but that's what I'd guess out of it.
Now, mentioning a shortfall of CPU power for a new system might sound stupid but I don't know if DOSBox has been optimized for multi cores yet. If the answer is no then you might actually have less CPU power available for this program than I do with my old 10 years old rig. And by this I mean only one of your cores would be used by DOSBox, and that core is usually the one used by Windows too so if you have a dual core you simply divide your total megahertz by two and reduce from that all the resources currently used by the OS. So, long story short... Did you try reducing cycles manually to see if it increases performance? |
||
|
|
09-06-2012, 03:18 AM | #4 | ||
Join Date: Jun 2012
Posts: 4
|
Nah, I only got a 2.4ghz single-core processor, so I don't see the CPU being the problem. I usually have to crank the cycles up to about 5000 to get the game going in good playable speed, though the confg does mention that too high of a speed causes lag, I dunno if this lag is capable of causing the keyboard to become unresponsive until I alt-tab back to DOSBOX.
Currently I've got the output mode set to 'ddraw' with the aspect set to 'true', the scaler being set to 'supereagle forced'. Both the cores and cycles are set to auto as well. I suppose I can lower the cycles below the default 3000 to see what good it will do. EDIT: CPU spikes that cause DOSBOX to momentarily lag, should these lags ever be capable of temporarily disabling keyboard input? I've decided to give DNII another try and set the cycles to 4000 and I got a wonderful 20 minutes of playtime in before the lag happened again. I'm guessing somewhere around 3500-4000 is the sweet spot for this game if the cycles are to blame. Should DOSBOX usually be ran without any other programs running? Last edited by Aldaraia; 09-06-2012 at 03:44 AM. |
||
|
|
09-06-2012, 04:22 AM | #5 | ||
Join Date: Sep 2004
Location: Valleyfield, Canada
Posts: 4,892
|
Thing is, does it have that problem only with that specific game or with any game you run with DOSBox?
If CPU or cycles are not a problem then there might be a program interfering in the background while you play. Or it could simply be DOSBox which is acting up by itself too, y'know. Do you use a frontend like Boxer or whatever? Those are known to create problems you would not have if you would load the game normally. |
||
|
|
09-06-2012, 05:19 AM | #6 | ||
Join Date: Jun 2012
Posts: 4
|
I have not tested any other games yet since I downloaded DOSBOX just a few days. I plan to do it promptly though.
I load the game straight through the typical TUI of DOS itself. I did happen to notice something interesting in the status window just by chance though. Quote:
|
||
|
|
09-06-2012, 06:59 AM | #7 | ||||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
Quote:
Quote:
Quote:
Quote:
|
||||
|
|
09-06-2012, 07:02 AM | #8 | ||
Join Date: Jun 2012
Posts: 4
|
Quote:
|
||
|
|
09-06-2012, 08:05 AM | #9 | ||
Join Date: May 2009
Location: Perth, Australia
Posts: 1,830
|
I have Duke 2, I play it rather often as a place holder for videos about streaming and the like on my Youtube account, I have never run in to any input lag related to the game. Perhaps your copy of Duke is corrupted in some way or there still might be an issue. MoO isn't the most button heavy game, perhaps try another platformer like Duke that needs rapid presses of buttons.
|
||
|
|
09-06-2012, 01:31 PM | #10 | ||
Join Date: Jan 2006
Location: Diktel Bazar, Nepal
Posts: 1,906
|
Quote:
Vga isn't a valid option for machine, try vgaonly or svga_s3 as suggested by DosBox itself. See if all that above will be of any help. Good luck. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Semi-random freezes | Halindir | Tech Corner | 35 | 14-12-2011 04:19 PM |
DOSBox freezes on some games... | Simoneer | Troubleshooting | 18 | 11-03-2009 04:24 PM |
Need Keyboard Input Registering Program... | The Fifth Horseman | Tech Corner | 2 | 24-06-2005 01:32 PM |
Input Output | punch999 | Programming | 7 | 14-04-2005 07:06 PM |
|
|
||
  |