VOGONS


P4 and Core 2 in DOSBox

Topic actions

First post, by Standard Def Steve

User metadata
Rank Oldbie
Rank
Oldbie

I normally set DOSBox to run at 8000 CPU cycles. The other day, I was running it on a 2.4GHz P4 and was kind of surprised to see CPU usage in the 4-72% range. On my 1.83GHz C2D laptop (same game at 8000 cycles), CPU usage was only 0-8%.

I know there's a big difference in IPC between Netburst and Core 2, but I didn't think it was that dramatic. Does DOSBox actually make use of SSSE3?

Reply 1 of 17, by Gamecollector

User metadata
Rank Oldbie
Rank
Oldbie

I don't know what you did with your PC...
On my P4 3.00E/Xp Pro Sp3 Dosbox is using 1-3% of CPU for "cycles"=8000.

Asus P4P800 SE/Pentium4 3.2E/2 Gb DDR400B,
Radeon HD3850 Agp (Sapphire), Catalyst 14.4 (XpProSp3).
Voodoo2 12 MB SLI, Win2k drivers 1.02.00 (XpProSp3).

Reply 2 of 17, by robertmo

User metadata
Rank l33t++
Rank
l33t++

core dynamic/normal?
or output

Reply 3 of 17, by leileilol

User metadata
Rank l33t++
Rank
l33t++

Maybe he accidentally hit the core changing hotkeys in a certain build

apsosig.png
long live PCem

Reply 4 of 17, by Standard Def Steve

User metadata
Rank Oldbie
Rank
Oldbie

Here are the settings used on both PCs

core=auto
cputype=auto
cycles=8000
cycleup=10
cycledown=20

fullscreen=false
fulldouble=false
fullresolution=original
windowresolution=1280x960
output=ddraw
autolock=true
sensitivity=100
waitonerror=true
priority=higher,normal
mapperfile=mapper-0.74.map
usescancodes=true

The P4 in question is a Northwood A (2.4/400MHz FSB, 512L2)
The C2D is a T5600 (1.83/667MHz FSB, 2MB L2)

I'm definitely not hitting any hotkeys. There are no other programs running on the P4; as soon as I exit DOSBox, the CPU idles at 0%.

"A little sign-in here, a touch of WiFi there..."

Reply 5 of 17, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

Perhaps there is graphics hardware acceleration on the one computer, but not on the other? (Does that make sense?)

Reply 6 of 17, by Standard Def Steve

User metadata
Rank Oldbie
Rank
Oldbie

DOSBox uses 3D acceleration in ddraw mode?
The P4 has a PCI Radeon 9250 in it, and the C2D uses integrated GMA950, so neither of them have very much graphics horsepower.

"A little sign-in here, a touch of WiFi there..."

Reply 7 of 17, by robertmo

User metadata
Rank l33t++
Rank
l33t++

try with
windowresolution=original
output=surface

Reply 8 of 17, by Standard Def Steve

User metadata
Rank Oldbie
Rank
Oldbie

Surface output @ original resolution does not make a difference. It's still peaking at 72% (and average usage is around 55-60%).

Just tried DOSBox on my Opteron 185 (a dual core @ 3GHz) and CPU usage was only 0-2%. The Opteron and C2D (and Gamecollector's P4 3.00E) have SSE3, but my P4-A only has SSE2. Maybe the instruction set is making the difference?

Reply 10 of 17, by Standard Def Steve

User metadata
Rank Oldbie
Rank
Oldbie
DosFreak wrote:

Which version of DOSBox? (and where did you download it?)
Are the graphics card drivers updated?
Which OS?

0.74, downloaded from sourceforge. Graphics drivers are reasonably up to date on all three machines. (like most Vogons members, I have my favourite driver versions. 😜)

The P4 runs XP. The C2D and Opteron both run Win7.

The P4 does run DOSBox smoothly, despite the much higher CPU utilization. Just wondering why the P4 needs ~64% CPU to do what the Opteron and C2D can do with ~2%.

Reply 11 of 17, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie

That P4 probably has an AC'97 "codec" audio card...in reality, that's the CPU working, also, on a multicore system when only one core gets extremely loaded the total CPU usage won't reach 100% (look at the attached pic. I'm using ~100% of one core).

Reply 12 of 17, by robertmo

User metadata
Rank l33t++
Rank
l33t++

bloodbat are all 6 cores uses when you play .mp4 movies? do all go to max when you use fast forward? If you switch to 12 threads are they all also fully used? And what is your cpu?

Reply 13 of 17, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Does CPU usage drop significantly when you set frameskip to 10?

1+1=10

Reply 14 of 17, by Standard Def Steve

User metadata
Rank Oldbie
Rank
Oldbie

CPU usage is 4-22% when frameskip=10.

"A little sign-in here, a touch of WiFi there..."

Reply 15 of 17, by h-a-l-9000

User metadata
Rank DOSBox Author
Rank
DOSBox Author

Does the DOSBox status window report an error, like something with windib?

1+1=10

Reply 16 of 17, by Standard Def Steve

User metadata
Rank Oldbie
Rank
Oldbie

No errors in the status window.

"A little sign-in here, a touch of WiFi there..."

Reply 17 of 17, by bloodbat

User metadata
Rank Oldbie
Rank
Oldbie
robertmo wrote:

bloodbat are all 6 cores uses when you play .mp4 movies? do all go to max when you use fast forward? If you switch to 12 threads are they all also fully used? And what is your cpu?

I don't know what that has to do with this thread, as I was only demonstrating what I explained by using a program I wrote to set the core to max usage; but...to answer your question...no. I'm watching a 1920 x 800 mp4 while I type this and total CPU usage is at ~7-10%, divided among all six cores. They didn't go to max when seeking (not even halfway). The CPU is a Phenom II X6 1090T. The program used to play the mp4 is Media Player Classic Home Cinema x64, whatever the latest version on their website is. Now...why do you ask?