Go Back   Forums > Abandonia.com > Troubleshooting
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

Reply
 
Thread Tools Display Modes
Old 08-06-2012, 06:41 PM   #1
Aldaraia
Newbie

 
Join Date: Jun 2012
Posts: 4
Default 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.
Aldaraia is offline                         Send a private message to Aldaraia
Reply With Quote
Old 08-06-2012, 11:02 PM   #2
The Fifth Horseman
FUTURE SCIENCE BASTARD
 
The Fifth Horseman's Avatar


 
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
Default

Default DOSBox configuration?
__________________

"God. Can't you people see I'm trying to commit a crime against science and nature here?"
-- Reed Richards
The Fifth Horseman is offline                         Send a private message to The Fifth Horseman
Reply With Quote
Old 08-06-2012, 11:55 PM   #3
Eagle of Fire
Friendly Fire
 
Eagle of Fire's Avatar

 
Join Date: Sep 2004
Location: Valleyfield, Canada
Posts: 4,892
Default

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?
__________________
I'm on a hot streak... Literally.
Proud member of The Abandoned since 2005.
Eagle of Fire is offline                         Send a private message to Eagle of Fire
Reply With Quote
Old 09-06-2012, 03:18 AM   #4
Aldaraia
Newbie

 
Join Date: Jun 2012
Posts: 4
Default

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.
Aldaraia is offline                         Send a private message to Aldaraia
Reply With Quote
Old 09-06-2012, 04:22 AM   #5
Eagle of Fire
Friendly Fire
 
Eagle of Fire's Avatar

 
Join Date: Sep 2004
Location: Valleyfield, Canada
Posts: 4,892
Default

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.
__________________
I'm on a hot streak... Literally.
Proud member of The Abandoned since 2005.
Eagle of Fire is offline                         Send a private message to Eagle of Fire
Reply With Quote
Old 09-06-2012, 05:19 AM   #6
Aldaraia
Newbie

 
Join Date: Jun 2012
Posts: 4
Default

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:
"vga" is not a valid value for variable: machine.
It might now be rest it to default value: svga_s3
Aldaraia is offline                         Send a private message to Aldaraia
Reply With Quote
Old 09-06-2012, 06:59 AM   #7
The Fifth Horseman
FUTURE SCIENCE BASTARD
 
The Fifth Horseman's Avatar


 
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
Default

Quote:
Originally Posted by Aldaraia View Post
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.
Unlikely.
Quote:
EDIT: CPU spikes that cause DOSBOX to momentarily lag, should these lags ever be capable of temporarily disabling keyboard input?
I don't think they should.
Quote:
I'm guessing somewhere around 3500-4000 is the sweet spot for this game if the cycles are to blame.
The cycles aren't to blame.
Quote:
Should DOSBOX usually be ran without any other programs running?
Depend on what programs those are. Any more resource (and CPU) demanding ones should be closed down before starting DOSBox. If you are experiencing issues, that's one of the first things to check. Another is scanning your system for malware. Another yet is checking if the issue happens with a different keyboard (just to make sure).
__________________

"God. Can't you people see I'm trying to commit a crime against science and nature here?"
-- Reed Richards
The Fifth Horseman is offline                         Send a private message to The Fifth Horseman
Reply With Quote
Old 09-06-2012, 07:02 AM   #8
Aldaraia
Newbie

 
Join Date: Jun 2012
Posts: 4
Default

Quote:
Originally Posted by The Fifth Horseman View Post
Unlikely.
I don't think they should.The cycles aren't to blame. Depend on what programs those are. Any more resource (and CPU) demanding ones should be closed down before starting DOSBox. If you are experiencing issues, that's one of the first things to check. Another is scanning your system for malware. Another yet is checking if the issue happens with a different keyboard (just to make sure).
I think it just might be the game itself. After playing Masters of Orion for awhile, I haven't encountered the problem once. It probably just depends on the type of game apparently.
Aldaraia is offline                         Send a private message to Aldaraia
Reply With Quote
Old 09-06-2012, 08:05 AM   #9
DarthHelmet86
SuperFishMod
 
DarthHelmet86's Avatar




 
Join Date: May 2009
Location: Perth, Australia
Posts: 1,830
Default

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.
DarthHelmet86 is offline                         Send a private message to DarthHelmet86
Reply With Quote
Old 09-06-2012, 01:31 PM   #10
Scatty
Treasure hunter
 
Scatty's Avatar

 
Join Date: Jan 2006
Location: Little big small world
Posts: 1,906
Default

Quote:
Originally Posted by Aldaraia View Post
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?
Set the CPU cycles to 10.000 or 15.000 instead of auto, with the processor you mentioned it should be no problem, and the option auto not always works well. What you need is more cycles, not less than 3000. Also try setting the core to core=dynamic, with auto it happens to be set to normal, and that is slower.
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.
Scatty is offline                         Send a private message to Scatty
Reply With Quote
Reply


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


Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump
 


The current time is 03:24 PM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.