Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: So What Cause's The Stuttering Sound Problem With DirectDraw??  (Read 9254 times)

0 Members and 1 Guest are viewing this topic.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 01:05:18 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #40 on: August 16, 2007, 01:06:19 am »
-Edit-  Ok ok I missed a few important posts in this thread  apologies to anyone who saw that.  :-[  Andy I've been programming in direct3d for a while now and I've never ran into what you are talking about.  What exactly are you trying to do?  It was my understanding that mame worked on the sprite/poly level and didn't render one pixel at a time.  In either case you use polys or pre-transformed polys to render things.  Resolution should be irrelevant in such cases as you have all of your positioning setup in a percentage base.  If on the other hand, mame is using something like a sprite/blit method to render in d3d then it actually isn't using d3d, rather it's using left over remnants of direct-draw, which are not fully compatable with d3d, thus the problem.  I *might* be able to help with the issue but i'd need more info on exactly what you are trying to do. 




Regardless, and getting back on topic:

as of .118u2:

"NOTE: If you are experiencing sound stuttering due to not being able
to run your display at >60Hz, please give the -speed option a try.
You should be able to run MAME at a small emulation speed decrease
in order to get the game under your monitor's refresh rate."

So the issue is being addressed as we speak, so there is no need to argue over it anymore.





« Last Edit: August 16, 2007, 01:24:06 am by Howard_Casto »

ahofle

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4544
  • Last login:August 30, 2023, 05:10:22 pm
    • Arcade Ambience Project
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #41 on: August 16, 2007, 01:23:31 am »
The first thing anyone should do on a mame cab, regardless of the monitor is to turn off any blending effects, scanlines, ect.  Once you do this, all of these artifacts tend to magically disappear.  ;)

I assume you are talking about D3D here?  Please share your settings if so.  I already had all those things turned off when I took the Puckman screen shot.  The ONLY way to run at native resolutions on an arcade monitor with no artifacts that I've found is ddraw, nohwstrech, and switchres.  FWIW I would love to be able to switch to D3D since ddraw is falling out of favor with mamedev (and Microsoft apparently), but only if my Pacman dots are all the same size.  ;)

Tiger-Heli

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5447
  • Last login:January 03, 2018, 02:19:23 pm
  • Ron Howard? . . . er, I mean . . . Run, Coward!!!
    • Tiger-Heli
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #42 on: August 16, 2007, 07:00:41 am »
So the issue is being addressed as we speak, so there is no need to argue over it anymore.
And further down in the What's New:

Added new experimental control for overall emulation speed. This
lets you specify how fast/slow the gameplay should happen relative to
the original. -speed 1.0 means run at normal speed. -speed 2.0 means
run at 2x speed. -speed 0.5 means run at half speed. Note that the
sound pitch is shifted as a result. If you are running early Namco
games that normally run at 60.60Hz, you can run them at -speed 0.99
and it should run at under 60Hz, which should prevent sound stuttering
if your monitor is not capable of greater than 60Hz refresh rates.
If this turns out to be useful, future versions may support a
-speed refresh parameter that automatically tweaks the speed to keep
you under your monitor's refresh rate. [Aaron Giles]
It's not what you take when you leave this world behind you, it's what you leave behind you when you go. - R. Travis.
When all is said and done, generally much more is SAID than DONE.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #43 on: August 16, 2007, 08:35:39 am »
Do you guys get the feeling Aaron is reading our posts? hehe He seems to address all the issues raised here recently. Great work Aaron! :)

AndyWarne

  • Trade Count: (+18)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1938
  • Last login:April 11, 2021, 03:37:09 am
    • Ultimarc
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #44 on: August 16, 2007, 12:31:38 pm »
Andy I've been programming in direct3d for a while now and I've never ran into what you are talking about.  What exactly are you trying to do? 

I am not actually trying to do anything as such. I am just wondering why Mame using Ddraw gives a perfect, centered picture at native resolutions while D3D gives an unusable one. Seems to be a bug.
But I think Aaron might be able to throw some light on this, I will raise it with him.

The "speed" setting sounds like a great addition. This seems to be contrary to the intention that Aaron mentioned in his email about sticking rigidly to the original but its good news. In reply to his email I suggested that sticking to original is a great idea provided you can over-ride if necessary to enable the game to be more playable within the hardware limitations. This seems exactly what has been done.

Andy

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 01:05:18 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #45 on: August 16, 2007, 03:01:06 pm »
Yeah, the only way I can replicate the wierdness that mame is doing in my apps is if I turn off all scaling filters in d3d and scale an image below it's native resolution.  In d3d scaling filters are not the same thing as blending filters.  For something like mame it'd be a good idea to use one of the filters that uses complex math to scale. 


Just on a side note... it seems odd to me that mame is locking the sound to the video refresh.  Not that this isn't a good way to do it, but most lcd monitors, for example run at 60hz, so it seems like this stuttering would effect a lot of people, not just mame cab users.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #46 on: August 17, 2007, 06:40:04 pm »
Just on a side note... it seems odd to me that mame is locking the sound to the video refresh.  Not that this isn't a good way to do it, but most lcd monitors, for example run at 60hz, so it seems like this stuttering would effect a lot of people, not just mame cab users.

Most lcd monitors run at 60hz? Don't know if I agree with that one. All 3 of mine run at 75hz. Maybe most did a few years ago, but I doubt it's the case now. Technology is always better than last time we check ;)

Andy: If Aaron doesn't address the scaling issues in Direct3d you raised, what about the idea of using the bezel files to add them in. I thought it was a good idea and probably not such a difficult program to write to generate them. But if it can be addressed at the source (pardon the pun), that would be a good thing. While I don't think it's a huge issue (I'm not a big fan of Pacman and other games with more noticable defects of missing "vertical columns of pixels") I appreciate that others might find it annoying and probably should be addressed.

Avrus

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 400
  • Last login:September 07, 2011, 09:17:25 pm
  • Canada
    • The Avrus Arcade Project 'Conquest'
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #47 on: August 17, 2007, 10:47:28 pm »
The latest 118u2 of Mame allows incremental changes to throttling:

Quote
0.118u2
-------

NOTE: If you are experiencing sound stuttering due to not being able
to run your display at >60Hz, please give the -speed option a try.
You should be able to run MAME at a small emulation speed decrease
in order to get the game under your monitor's refresh rate.

Now you guys can go back to arguing about pixels.
______________________________
'Conquest' upright 4 player arcade project log:
http://avrus.blogspot.com/

lettuce

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1900
  • Last login:December 31, 2021, 01:46:10 pm
  • Make It So!
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #48 on: August 18, 2007, 01:40:40 pm »
Is there an effects setting with in mame ( i know Aarons done a few) that sharpens up the image. As using D3D make the image blurry, maybe using a 'effect' that sharpens the image may counter act this blurryness??

8way

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 219
  • Last login:February 03, 2017, 05:52:21 am
  • This is my BOOM stick!
Re: So What Cause's The Stuttering Sound Problem With DirectDraw??
« Reply #49 on: August 18, 2007, 06:59:44 pm »
Try "sharp". Not sure if this has changed in the latest build, but that’s it used to be.