VOGONS


sound stutters on a Quad Opteron!

Topic actions

First post, by sehh

User metadata
Rank Newbie
Rank
Newbie

So, why not run dosbox on my quad opteron machine, full of SCSI RAID volumes and shit loads of other expensive gear.

I started a simple sierra adventure, Codename: ICEMAN. Run it with 10.000 cycles and the game works fine. CPU usage is 2 to 5%.

Unfortunately sound stutters.... !?... so i read the FAQ and it says that my cpu is too slow. WHAT?!? my quad opteron is too slow? c'mon that can't be..

Here is what the FAQ has to say:

1. Get a faster machine.
2. Lower the number the CPU cycles used by DOSBox, freeing some for the actual sound generation.
3. Try the new dynamic CPU core emulation (if it works with your game).
4. Skip frames
5. Increase the pre-buffer in the configuration file

number 1 is plain stupid, if a quad opteron isn't fast enough...
number 2 is plain stupid, with 10.000 cycles my cpu usage is 2 to 5% so this isn't an issue of using too much cpu that none of it is left to play the audio correctly.
number 3... well didn't try that 😀
number 4 did the trick!! i raised my pre-buffer from 10 to 100 and audio is not stuttering any more.

so this is a warning to others, if you believe the issue isn't about the speed of your computer or the dosbox cycles but you still get stuttering audio then try a ten times bigger pre-buffer. It worked for me.

PS:
interesting, because my Athon 64 X2 3800+ is also having audio stutter, i'll try this trick and see if that fixes it.

--
sehh

Reply 1 of 29, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

You could have 100 CPU's in that server, and DOSBox would still only use 1 CPU core.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 3 of 29, by DosFreak

User metadata
Rank l33t++
Rank
l33t++
MiniMax wrote:

You could have 100 CPU's in that server, and DOSBox would still only use 1 CPU core.

Exactly, and sorry if I offend you but try not to call something "stupid" if you don't understand it. It makes you look ignorant.

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

Reply 4 of 29, by collector

User metadata
Rank l33t
Rank
l33t

Codename: ICEMAN runs great on my machine, without stuttering on normal core. ICEMAN is a pretty undemanding game. I only have a dual Opteron, so # of CPUs as mentioned does nothing for DOSBox. If you had looked at your task manager while DOSBox was running, you would have seen that the load of DOSBox was all on just ONE CPU.

Reply 5 of 29, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

the prebuffer variable is depended on your soundcard.
you might want to lower or increase the blocksize as well.

The stuttering sound is in your case a problem between your own soundcard and DOSBox.

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

Reply 6 of 29, by sehh

User metadata
Rank Newbie
Rank
Newbie

i believe ignorant are those people who are stuck in their minds that my post was related to number of CPUs.

it is not, in fact, it tries to help other people with sound stutters and fast machines, thus their problem isn't related to CPU at all.

Qbix, thanks for the explanation. It seems pre-buffer is a very important option in dosbox, i've used dosbox in three computers already and all three computers had audio stutters that i fixed by changing this setting only.

Isn't there a way to make the pre-buffer automatic? so that its no longer an option in the configuration thus dosbox uses whatever value is required for the audio to play correctly?

--
sehh

Reply 7 of 29, by avatar_58

User metadata
Rank Oldbie
Rank
Oldbie

Well no offence, but multi-core doesn't equal more speed. All multi-core CPUs do is run many things at once if they are threaded and developed that way. However that doesn't mean they run one program faster, especially if that program isn't built from the ground up to be threaded. One of the many reasons why I feel multi-cores aren't really nessesary for desktop PCs unless everything heads that way.

Your 3800+ should NOT stutter on 10,000 cycles unless your PC has something running in the background. I have an FX-53 (equiv to a 4000 about) and I can go as high as 40,000 without stuttering so I would blame something besides Dosbox in this case. What soundcard do you have? What O/S are you running? How many other programs do you have loaded in memory? I would suggest optimizing windows before blaming dosbox if your 3800 stutters because I can pull at least 20,000 from a celeron 2.4 which is much slower.

Don't go thinking that because your CPU was expensive = massive speed. If so, you've been ripped off my friend. Unless you run many programs at once in seperate threads I don't see how a quad core is needed.

Reply 8 of 29, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

sehh well it's a bit odd.
prebuffer doesn't change that much but it introduces a small delay for the soundeffects.
try setting the blocksize to some other power of 2 to see if that differs as well.
It can't detected unfortunately . Perharps we could increase it when we detect that the sounds gets out of sync. but that would require some testing from people affected by it.

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

Reply 9 of 29, by sehh

User metadata
Rank Newbie
Rank
Newbie

avatar_58, why are you even talking about cores? my post was about the pre-buffer. We already know everything you described, the issue here isn't the fast cpu as i've already said but my pre-buffer affects all three systems.

Qbix, here are my results:

blocksize=8192, prebuffer=10 : stutters every few seconds
blocksize=2048, prebuffer=10 : stutters every second
blocksize=128, prebuffer=10 : completely broken sound

blocksize=8192, prebuffer=100 : perfect sound but delayed a bit
blocksize=2048, prebuffer=100 : perfect sound
blocksize=128, prebuffer=100 : completely broken sound

anything else you'd like me to try?

--
sehh

Reply 10 of 29, by swaaye

User metadata
Rank l33t++
Rank
l33t++

I've had stuttering problems with some AC97 audio chips. Most work fine though. Maybe go find yourself some PCI sound card? A cheap Live! would do nicely. Get one that does real hardware audio acceleration. Not much point in upgrading sound chips if you don't get hardware accel out of it.

Look for:
Live! (not the "24-bit" one) or Live! Value
Audigy
Audigy 2 or Audigy 2 ZS, or Audigy 2 Value
Audigy 4 SE, Audigy 4
X-Fi

Reply 11 of 29, by sehh

User metadata
Rank Newbie
Rank
Newbie

system 1: SB Live!
system 2: NVIDIA nForce Pro (VAPU / Sonata)
system 3: Intel AC97 chip (this is a laptop)

Based on what you said, only system 3 should have problems with its audio. Anyway, i dont believe its related to the sound cards or sound chipsets.

All my software that use audio one way or another are all working fine. I'm doing video editing, sound editing, games, applications, music playback, videos/movies you name it.

The only application that i have to tweak with prebuffers or any sort of parameters is dosbox and its the only software that has problems... *hint* *hint* 😉

--
sehh

Reply 12 of 29, by avatar_58

User metadata
Rank Oldbie
Rank
Oldbie
sehh wrote:

avatar_58, why are you even talking about cores? my post was about the pre-buffer. We already know everything you described, the issue here isn't the fast cpu as i've already said but my pre-buffer affects all three systems.

Its only because I've seen people always make these points about "What? My CPU isn't enough?" without having any real knowledge of just how fast it is.

Reply 13 of 29, by sehh

User metadata
Rank Newbie
Rank
Newbie

No worries, i'm a long time developer and i perfectly know how fast are current processors. Every time someone tells me his Windoze doesn't go fast enough, i let them play with my IBM 8086 😉

Unfortunately my system is way ahead in terms of hardware than anything current software can use.

This is a bit off-topic but oh well...

I'm currently using this machine to do video editing. Unfortunately there isn't anything that can take on 4 cpu's at the same time. Rendering happens on a single thread and as a result, on a single cpu.

I've tried to find applications that can properly take advantage of SMP, so far i've come up with nothing interesting.

I did find a bunch of funky applications, like a Chess emulature (Deep Freeze?) that could use whole gigs of memory and supports SMP and scales well at 4 cpu's.

Another application was Ultra Fractal, unfortunately while it fully supports SMP, its not a 64bit application. At least i managed to render some HUGE images in several seconds, while a friend takes a few days to do generate the same image.

A system like mine can be used for some Java applications that i'm working on (fully threaded) and running a web server + SQL server. Those are the only things that can really use the SMP at its full potential.

sorry for the off-topic.

--
sehh

Reply 14 of 29, by avatar_58

User metadata
Rank Oldbie
Rank
Oldbie

I think the only way to get the best from multi-core CPUs is if they bundled each core with the speed of the latest single core CPUs. As of right now each core on a multi-core CPU isn't exactly blazing fast, which is probably why you aren't seeing much in the ways of results - unless of course the program is multi-threaded. 😉

Which of those three systems is the 3800+ btw sound card wise? I have audigy 2 zs without issues, but I would be wary of any onboard sound chips as they have issues all on their own.

Reply 15 of 29, by sehh

User metadata
Rank Newbie
Rank
Newbie

system 1 runs an "AMD Athlon(tm) 64 X2 Dual Core Processor 3800+" with 1GB of ram, NVIDIA GeForce 6200 TurboCache(TM) and SATA RAID. It only has one PCI slot taken by the SB Live!.

system 2 is a "Dual AMD Dual Core Opteron(tm) 270" (4 logical cpu's) with 4GB of ram, NVIDIA GeForce 7800GTX and SCSI RAID and SATA RAID.

system 3 is an IBM ThinkPad A31p (P4M 2ghz, 1GB ram, etc).

I do believe there is an issue with dosbox and audio. Its the only application that has these kind of problems (not to mention its the only application that tweaks buffers or whatever).

--
sehh

Reply 16 of 29, by swaaye

User metadata
Rank l33t++
Rank
l33t++

I could not get Ascendancy to run without audio probs on a friend's system with the nforce2 MCP (w/o NVAPU). He was using the same DOSBOX build as I but it was not working right. So I know some AC97 chips are worse than others.

Just make sure you are running <80% CPU for testing cuz it will start to stutter up around there. Also try a few different builds. I like Gulikoza's build the most I think (google his nick).

Default settings should work for ya. It could also be something with the game, btw. Try all the sound options you can.

Reply 17 of 29, by avatar_58

User metadata
Rank Oldbie
Rank
Oldbie

Well the reason I asked sehh is that I've tried dosbox on far weaker systems without any audio lag (not on beefy dos games of course) and on this current PC (Fx-53, Audigy 2 ZS) I get no audio stuttering even on the most advanced games with upwards of 35000+ cycles. So I don't know about blaming dosbox.

I also wouldn't count on pre-buffer because like qbix mentioned it makes a lag in sound effects. In other words you'd do an action such as fire a gun and hear the sound effect 2 seconds after the fact.

I want to blame the soundcards, but you say you have an SB Live! which is the exact card I have in my older celeron which has no sound stuttering on games up to the 94-95 era.

Any intensive virus scanners or other such programs running in the background? Try disabling them for a second and see if it helps. Some programs (like Symantec's brand) like to eat up resources and constantly scan and use CPU activity.

Reply 18 of 29, by franpa

User metadata
Rank Oldbie
Rank
Oldbie

i can play settlers2 at 61000 cpu cycles with no audio stuttering... minus the main menu. this was acheived with both onboard ac97 and with a x-fi x-treme gaming s/c.

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

my website

Reply 19 of 29, by ih8registrations

User metadata
Rank Oldbie
Rank
Oldbie

What's your system franpa?