VOGONS


First post, by Smiling Spectre

User metadata
Rank Newbie
Rank
Newbie

Recently I test DosBox with some old games. Different games from several years. Named it, it was Heretic, Stonekeep, Duke Nukem 3D and Birthright: Gorgon's Alliance.

Results quite surprise me.

I thinks, Dosbox will give me results, similar that would give real PC. In that terms Heretic must plays best of all (it oldest and successfully played even on 40MHz), than goes Stonekeep (Still VGA, but with movies), Birthright (Bad SVGA) and worse at all - Duke Nukem (Heavy use of VESA up to 800x600).

In reality all was different. %)

Best of all was Birthright. My Athlon 2000+ gives it 40 000 or even 60 000 cycles without slight processor overworks.
Second place is Duke Nukem. 30 000 with slight overwork in crowded places with 640x480. 28 000 must work fine.
Third is Stonekeep, with it's 320x200 window. %) 25 000. Most of time Dosbox share is 60-70%, though, but not in dialogs. Voices lever it up to 99%.
And worse at all was most older game - Heretic. %) I don't succeded in smooth run of it - even on 12 000 cycles processor exceeded 100% each time as appears more than 2-3 enemies. Very strange.

Analysing results, I think, tight place of all games is sound system, and FX/Voice in particular. In Birthright, where sounds are scarce, and voices are absent DosBox gives incredible numbers, Heretic heavy-based on FX, and in Stonekeep it appears clear to me, that voice is only processor-eating component. DN3D is exception from this rule, but whole game seems different from others, so maybe it uses sound system somehow different too?

So I ask everyone: maybe I do something wrong? Is this exist a way to lower sound demand of games apart of disabling it? Or sound really now must difficult component for DosBox to reproduce?

Reply 1 of 5, by evo

User metadata
Rank Newbie
Rank
Newbie

I don't think sound drain the major part of CPU power, but you can easily check by disabling sound cards in dosbox.conf and compare your results. Or you can use a profiler if you're familiar with that.
I think most of the difference comes from the code and how efficient dynamic translation is (i'm assuming you were using the dyna core). Self modifying code for example slows down significantly, there are even cases when DOSBox spends more time translating than actually executing the code. It's wise to use normal core in that case (you should try that). Also, heavy video memory accessing will lead to lower cycles.

Reply 2 of 5, by DosFreak

User metadata
Rank l33t++
Rank
l33t++

Also your processor is good for what is is (I have an XP 2800+) but it is very slow for running protected mode games in DosBox. If you check out the Core 2 Duo thread, we are posting benchmarks of DosBox run on that processor and protected mode games run ALOT faster. Core 2 Duo chips are pretty cheap so there's no excuse not to run out and get one (Unless you don't have enough money of course... 😉 )

How To Ask Questions The Smart Way
Make your games work offline

Reply 3 of 5, by Tyler

User metadata
Rank Newbie
Rank
Newbie

Also, like I just found out, it's work slowing down a few 1000 CPU cycles to see if that helps smooth out both video and sound. I was using AUTO and DYNAMIC and it worked awesome with video but my sound stuttered regularly. I manually dropped to 40,000 CPU cycles and it seldom stutters now.

Asus P5E Deluxe (X48 & ICH9R)
Intel Core2Duo E8400 (3 GHz) w/ Zalman CNPS9500A LED
OCZ DDR2 PC2-8500 Platinum Edition (4GB)
Diamond ATI Radeon HD 3780 512MB PCI-E 2.0

Reply 4 of 5, by franpa

User metadata
Rank Oldbie
Rank
Oldbie

cant an option to give priority to the sound rather then the video be added to dosbox? as when i increase cpu cycles i get worse sound but better video output...

AMD Ryzen 3700X | ASUS Crosshair Hero VIII (WiFi) | 16GB DDR4 3600MHz RAM | MSI Geforce 1070Ti 8GB | Windows 10 Pro x64.

my website

Reply 5 of 5, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

next version it will be better

Water flows down the stream
How to ask questions the smart way!