Go Back   Forums > Community Chatterbox > Tech Corner
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

Reply
 
Thread Tools Display Modes
Old 18-04-2005, 09:07 PM   #1
MdaG
Abandonia Homie

 
Join Date: Mar 2005
Location: ,
Posts: 545
Send a message via ICQ to MdaG Send a message via AIM to MdaG Send a message via MSN to MdaG Send a message via Yahoo to MdaG
Default

I've been wondering why DOSbox takes up all that CPU power? Sure it's an entire OS on top of the running one, but still. Is MS-DOS that demanding? It could run well off of a 386 and with todays computers it shouldn't be that demanding. Or am I underestimating the complexity of the OS?

OS = Operating System
__________________
-=Firthy2002=-
------------------
My LiveJournal
MdaG is offline                         Send a private message to MdaG
Reply With Quote
Old 18-04-2005, 10:23 PM   #2
bojster
Forum hobbit

 
Join Date: Mar 2005
Location: ,
Posts: 42
Default

Well, it depends on how many cycles you set it to... However, I must agree that dosbox takes far more CPU power than dosemu or, if you prefer, works slower. But I think it's because it puts the emphasis on accuracy in emulating hardware (not only DOS) and that's the most CPU-consuming part. The best proof is that a lot of games work fine in dosbox, while only a few (though usually faster) in dosemu.
bojster is offline                         Send a private message to bojster
Reply With Quote
Old 19-04-2005, 08:01 AM   #3
Reup
10 GOSUB Abandonia
20 GOTO 10
 
Reup's Avatar

 
Join Date: Dec 2004
Location: Eindhoven, Netherlands
Posts: 1,508
Default

It's not MS-DOS that's demanding, it's the emulating that's demanding. DOSBox emulates the entire PC, with Soundcards, Mousedrivers, VESA etc. The guideline is that it takes about four times the amount of computer power of the emulated system to do a proper emulation. However, since the DOSBox emulator has to emulate the DOS Protected Mode, it takes up even more power. DOSBOx-site explaining this
Reup is offline                         Send a private message to Reup
Reply With Quote
Old 19-04-2005, 09:10 AM   #4
Data
retired
 
Data's Avatar


 
Join Date: Jun 2004
Location: Jan Mayen, Svalbard and Jan Mayen
Posts: 2,167
Default

Reup is right.
dosbox is full pc emulator with it's own built-in dos.
Many parts take power away from the emulation of the cpu.
especially the emulation of the videocard.
__________________
Flowing with the stream of life
Data is offline                         Send a private message to Data
Reply With Quote
Old 19-04-2005, 09:51 AM   #5
MdaG
Abandonia Homie

 
Join Date: Mar 2005
Location: ,
Posts: 545
Send a message via ICQ to MdaG Send a message via AIM to MdaG Send a message via MSN to MdaG Send a message via Yahoo to MdaG
Default

Aaaaah it's emulating an entire PC. Now I'm even more impressed by DOSbox.
__________________
-=Firthy2002=-
------------------
My LiveJournal
MdaG is offline                         Send a private message to MdaG
Reply With Quote
Old 19-04-2005, 12:14 PM   #6
Rogue
10 GOSUB Abandonia
20 GOTO 10
 
Rogue's Avatar

 
Join Date: Nov 2004
Location: Afrim, Albania
Posts: 2,113
Default

The easiest way to understand why is taking that much of CPU power and memory is to think how it all works.

For one cycle in real DOS machine, DOSBox emulates the same cycle plus video output, sound output, keyboard, joystick and mouse inputs, hard disk I/O, CD-Rom drive, plus it manages DOS memory. All of this requires a lot of work behind what we see, and that's why it takes so much power.

But if it takes all of your CPU (100%) then DOSBox will run slower, so you should adjust your cycles. Use this as guide on how to do it.
Rogue is offline                         Send a private message to Rogue
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not 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 Off
Forum Jump
 


The current time is 02:41 AM (GMT)

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