Viewing Issue Advanced Details
ID Category [?] Severity [?] Reproducibility Date Submitted Last Update
08417 Sound Minor Always Sep 17, 2022, 06:40 Sep 24, 2022, 03:04
Tester Augusto View Status Public Platform SDLMAME
Assigned To Resolution Open OS Linux (64-bit)
Status [?] Acknowledged Driver
Version 0.247 Fixed in Version Build 64-bit
Fixed in Git Commit Github Pull Request #
Summary 08417: ddragon3, ddragon3j: Game over and ending music are missing
Description Thanks for reading my bug report.
Not game over and ending music.
That bug happen since MAME several previous before 2010.
Debugging CPU Sound (Z80) overclocking 140 % happen game over music.
Testing cpu overclocking need soft reset in each value for game over music work. I had noticed that detail when testing from 101 % to 140 %.
Overclocking 120 % works too, but few times not will play game over music.
Value 140 % works better than even 120 %.

Have an nice day.
Steps To Reproduce
Additional Information
Github Commit
Flags
Regression Version
Affected Sets / Systems ddragon3, ddragon3j
Attached Files
 
Relationships
There are no relationship linked to this issue.
Notes
10
User avatar
No.20545
Haze
Senior Tester
Sep 18, 2022, 09:26
do you know that it plays reliably on real hardware?

maybe a sound command is being missed, higher cpu interleave might be a better solution if that also fixes it (haven't tested)
User avatar
No.20546
MetalGod
Senior Tester
Sep 18, 2022, 17:14
Real hardware:
User avatar
No.20548
Foxhack
Tester
Sep 19, 2022, 04:16
edited on: Sep 19, 2022, 04:22
Edit: Ran some tests on 0.247, and I got the music playing back -one time-, without doing any changes, so it seems to be extremely random.

I also tried the bootleg set and got no game over music.
User avatar
No.20550
hap
Developer
Sep 20, 2022, 11:59
CPU comms is one way traffic (main to sound), so it's not a 'quantum interleave' issue.
User avatar
No.20552
ICEknight
Tester
Sep 20, 2022, 21:50
I can't provide a savestate of this, but the ending music also doesn't seem to play when finishing the game.
User avatar
No.20553
Augusto
Tester
Sep 21, 2022, 07:07
@ICEknight
Thanks for add the detail not music in ending ... I had forgotten that detail

@Haze
I had played one or two times.
That game even configured for 1 coin 3 credits was much avoided.
Sprites moving much slow and skipping frames.
ddragon3 was much strange.

Not music in game over and ending happen since before MAME 0.66.
User avatar
No.20554
Haze
Senior Tester
Sep 21, 2022, 15:47
edited on: Sep 21, 2022, 17:28
hap> if you don't do a boost on 68k -> z80 comms then even one way communication can result in missed commands if the 68k writes multiple commands before the z80 gets any execution time, although that's usually for shared ram cases, not latched cases.

I don't however know if the driver is set up that way, it generates an interrupt on the command, which should sync things, and I'm pretty sure all sound latch comms used to provide some boost too, so if the bug dates back as far back as mentioned, it's unlikely, and if it ends up being timing related, could be waitstates instead.

Probably worth logging what gets sent to the sound CPU, and seeing if anything does get missed though.
User avatar
No.20555
Augusto
Tester
Sep 22, 2022, 03:07
Another detail is if doing cpu sound overclocking need to be "ahead" of the 68k.
If you overclock 68k to 120 % the z80 need to be overclocked above 120% plus 40 % using the value 160 %.
User avatar
No.20561
Mamesick
Senior Tester
Sep 23, 2022, 12:49
FWIW, at least here underclocking to around 90% the 68000 makes the game over jingle and the ending tune always play correctly.
User avatar
No.20564
Augusto
Tester
Sep 24, 2022, 03:04
Here 68k 90 % not play game over music.