VOGONS


First post, by DaveDoesIT

User metadata
Rank Newbie
Rank
Newbie

Hi people,

I need to run win3.1 in DosBox on an XP-Home machine. It works but it is slow. I have tweaked the conf file to the best of my ability and it is still slow.

I do not need joystick, sound etc, just the basic mouse, screen, keyboard and printer. When I am using win3.1 I do not care if everything in XP stops or slows to the minimum. Usually there is nothing else running on XP other than system internal apps anyway.

I need to be able to swap back to XP and do other stuff then back to DosBox but when back in DosBox I would like max speed.

Can someone please suggest what needs to be done to this conf file to get the max speed possible? Any other tweaks I can do for speed?

Thanks

Dave
Contents of dosbox.conf
[sdl]
fullscreen=false
fulldouble=false
fullresolution=original
windowresolution=original
output=surface
autolock=true
sensitivity=100
waitonerror=true
priority=highest
mapperfile=mapper.txt
usescancodes=true

[dosbox]
language=
machine=vga
captures=capture
memsize=500

[render]
frameskip=5
aspect=false
scaler=normal2x

[cpu]
core=auto
cycles=max
cycleup=500
cycledown=99

[mixer]
nosound=true
rate=22050
blocksize=2048
prebuffer=10

[midi]
mpu401=intelligent
device=default
config=

[sblaster]
sbtype=sb16
sbbase=220
irq=7
dma=1
hdma=5
mixer=true
oplmode=auto
oplrate=22050

[gus]
gus=false
gusrate=22050
gusbase=240
irq1=5
irq2=5
dma1=3
dma2=3
ultradir=C:\ULTRASND

[speaker]
pcspeaker=true
pcrate=22050
tandy=auto
tandyrate=22050
disney=false

[joystick]
joysticktype=none
timed=true
autofire=false
swap34=false
buttonwrap=true

[serial]
serial1=dummy
serial2=dummy
serial3=disabled
serial4=disabled

[parallel]
parallel1=reallpt
parallel2=disabled
parallel3=disabled

[dos]
xms=true
ems=true
umb=true
keyboardlayout=none

[ipx]
ipx=true

[autoexec]
mount c c:\win31 -t floppy
path=z:\;c:\;c:\windows;\c:\dos;c:\dosbox
c:
win

Reply 1 of 3, by doomer

User metadata
Rank Member
Rank
Member

I have not tried Windows 3.1 specifically, but I can give you some general performance guidelines that usually help dosbox behave better and more efficiently, nothing too fancy.

First thing you can do is to disable the scaler. Set it to none. In addition, you don't gain performance with nosound=true, it works rather as a mute, but sound is still emulated. Try disabling the game's sound instead using the game's setup.exe or install.exe, for instance. (In this case, do not install the sound card inside Win 3.1, ... xD)

From the Dosbox.conf with notes included:

[mixer]
# nosound -- Enable silent mode, sound is still emulated though.

Wow ...
from your configuration file

memsize=500

Set that to 16. You will very rarely need more than that. You will not be able to address those gargantuan 500 megabytes anyway.

That Mpu-401

[midi] mpu401=intelligent device=default config= […]
Show full quote

[midi]
mpu401=intelligent
device=default
config=

Set to none, unless you are really using it.

Cycles and core

core=auto
cycles=max

While that works for some protected games, not all will benefit. Instead try using auto,auto. Also dynamic for some while tweaking the cycles. Real-mode games work better with normal core, and a lower cpu cycle count. An additional problem you might encounter with some older titles concerns sound card initialization. Set it too high and sound will not be able to work properly. A good idea is to experiment on each individual game and find what works best for that game. (Again mostly game app feedback general guidelines)

output=surface

You might try experimenting with that setting too. = What to use for output: surface,overlay,opengl,openglnb,ddraw. =

Ddraw works best for me. But you might also try opengl, and the others as well. One side effect that some consider unnatural might produce a blurred image. Once again, find what works best for you.

I guess I really need to try using Windows 3.0, 3.1 and more inside dosbox.. hehe been so many many years since I installed those on real dos.

Well, I hope the above-mentioned brief notes have been useful for you.

Good luck.

Reply 2 of 3, by DaveDoesIT

User metadata
Rank Newbie
Rank
Newbie

Hi Doomer,

Thanks for the tips.

I had to laugh at the "WOW" I set that memory to 500 in desperation. I think it was 20 prior to that.

I will try your suggestions

Dave

Reply 3 of 3, by IIGS_User

User metadata
Rank Oldbie
Rank
Oldbie

From the AUTOEXEC part:

DaveDoesIT wrote:

mount c c:\win31 -t floppy

Are you sure you need the emulated drive C: as floppy drive?

DaveDoesIT wrote:

path=z:\;c:\;c:\windows;\c:\dos;c:\dosbox

Do you have folder structure "c:/win31/dosbox/" on your real drive C: ?
If not, just don't complain the emulated W31 with that non-existing directory to get more performance. 😉

Klimawandel.