joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.53k stars 371 forks source link

DOSBOX-X Windows gaming bug related to MMX and soundcard #4985

Open superlucker opened 2 months ago

superlucker commented 2 months ago

Describe the bug

Some games result crash or have glitch graphic in windows 9x when have those features enabled: MMX and soundcard(no matter it's ess688 or sb16 or sb vibra, same issue occurs).

Those games normally utilized diectshow(using MMX to decode video) may have graphic issue or crashes in some ways. However disable soundcard in device manager fixes the issue.

Feels like something is interfering the memory space when soundcard is enabled. I double checked MMX codes, all instructions are working exactly based on the intel x86 manual. Also soundcard code seems good, no memory leak as well.

I suppose it's something related deep down to CPU‘s memory management and it's out of my ability to debug it. Besides, it feels could be memory writing was delayed or multi threads or something similar happens here causing the issue.

Any suggestions?

Steps to reproduce the behaviour

Install Windows 9x follow the Win9x instruction on dosbox-x official website. Install games.

Expected behavior

No response

What operating system(s) this bug have occurred on?

Windows 10

What version(s) of DOSBox-X have this bug?

Latest Windows version

Used configuration

[sdl]
autolock=true

[dosbox]
title=Windows 95
memsize=256
fastbioslogo = true
startbanner = false

[video]
vmemsize=8
vesa modelist width limit=0
vesa modelist height limit=0

[dos]
# Set 'ver=7.1' if using Win95 OSR2 (95B) or later
ver=7.1
hard drive data rate limit=0
floppy drive data rate limit=0

[cpu]
cputype=pentium_mmx
core=normal
apmbios=false

[sblaster]
sbtype=sb16vibra

[fdc, primary]
int13fakev86io=true

[ide, primary]
int13fakeio=true
int13fakev86io=true

[ide, secondary]
int13fakeio=true
int13fakev86io=true
cd-rom insertion delay=4000

[render]
scaler=none

Output log

No response

Additional information

No response

Have you checked that no similar bug report(s) exist?

Code of Conduct & Contributing Guidelines