-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
very high latency when reading from CDs (Win95) (slow CD reads) #5361
Comments
What you're probably seeing is the intentional delay added by DOSBox-X whenever the virtual CD-ROM drive has "spun down" as real drives do when they're not in use. When the guest issues a read to the drive, the drive has to spin back up before it can provide data to the OS. DOSBox-X emulates that as well. If you run with the --debug option with the console window open, you should see messages that appear when the virtual CD-ROM drive spins down, and spins up again. |
oh ok, thanks is there a way to disable this similar to
also, is this really emulating the original hardware? I can't imagine the game freezing when loading audio tracks was the original behavior on real hardware (all the official installation options for the game leave the audio tracks on the CD, and the game also has a no-install play-straight-from-CD option). The game is SimCopter btw so it's not some random low budget title |
Yes, there are dosbox.conf options to control spin down and spin up delay. Under the ide sections of dosbox.conf, such as [ide, primary] or [ide, secondary] are options "cd-rom spinup time" and "cd-rom spindown timeout". There is also one to control the delay in swapping CDs needed for Window 95 to detect a CD change (it doesn't detect a change if it's too fast). See the reference conf file for details. |
Hey thanks for the help, but I still have the same issue (it takes 5 seconds to play the audio from my test file on the CD vs less than 2 seconds from the emulated HDD) I checked the reference conf file, and added the options to my
then I launched with Now, when playing the
and eventually
|
Describe the bug
There is very high latency when reading files from a CD in Windows 95. I'm using the almost default win95.conf from the guide
I tested this with a 5.5 MB
.wav
file, copied from the CD to the C: drive. I opened the file 10 times on the CD, then 10 times on the C: driveon the CD it takes an average of 5 seconds to play the audio after opening the file
on the C: drive it take around 1.20 seconds
enabled and commented out in
win95.conf
On my game with audio tracks on the CD, the game sometimes freezes for a second or so when it loads another track. If I turn the in-game radio off it doesn't freeze anymore when loading audio tracks. This game has an optional installer that can save some files to the hard drive (which by default doesn't include the radio audio), but if I copy the
.wav
audio tracks into its Program Files folder on the HDD it will use them instead of the CD tracks (no more audio load freezing).macOS 11, DOSBox-X 2024.12.04 SDL2
Steps to reproduce the behaviour
play an audio file from a CD and compare the same file read from the HDD (I tested this with an actual file, not a music CD audio track that plays on regular CD players)
Expected behavior
it should take the same amount of time to play the audio
What operating system(s) this bug have occurred on?
macOS 11
What version(s) of DOSBox-X have this bug?
DOSBox-X 2024.12.04 SDL2
Used configuration
No response
Output log
No response
Additional information
No response
Have you checked that no similar bug report(s) exist?
Code of Conduct & Contributing Guidelines
The text was updated successfully, but these errors were encountered: