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: MAME V0.130 - Stuttering sound - Advice please!  (Read 11267 times)

0 Members and 1 Guest are viewing this topic.

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
MAME V0.130 - Stuttering sound - Advice please!
« on: March 17, 2009, 08:41:45 pm »
Just installed my compiled Mame v0.130 on my new computer (I had 0.84 previously installed on it and thought it was about time I got up-to-date!)

The computer is 2.39GHZ with only a poor 256 RAM. Now, the games seem to run well on the whole (havent tried anything silly mind you... I really can't see it running Tekken, can you?)... however, when trying some of my old favs from 0.84 (that previously worked fine) they didn't run quite as smoothly...

Examples -

Mortal Kombat 2 - plays just as well but stutter-y sound

Grand Striker 2 (love this game - probably the only one !;D) - this has got a bit slow and stuttery in sound and gameplay

Now, I understand MAME is now more system hungry than it used to be but my question is - from the examples given - if I was to upgrade my RAM to 1gig (that is the max you can go on this PC!) - would that solve the problem? Would it be enough to return the cab to smooth operating on most games? (obviously not including the 3D games!!)

Please help... really need advice on this, its concerning me and don't want to fork out for the extra RAM if it isn't going to solve the problem!

Turnarcades

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1973
  • Last login:May 13, 2017, 08:14:29 am
  • Craig @ Turnarcades
    • Turnarcades
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #1 on: March 17, 2009, 08:55:14 pm »
Quote
if I was to upgrade my RAM to 1gig (that is the max you can go on this PC!) - would that solve the problem? Would it be enough to return the cab to smooth operating on most games?

Doubtful. It's mostly due to the post-0.106 graphics and sound core. There are still a few classics that inexplicably went tits-up with the big re-write too, look at my other recent posts for my comments on the performance in MAME/PC spec argument.

It's things like that that have kept me sticking with 0.105. Nothing worth bothering with was really added after 0.100 and I don't see the point of having to effectively double your PC spec (and hence cost) after this point for a few games. I'm especially bored with the lack of consistency with performance in Midway games that use those boards, so instead stick with the console versions.

severdhed

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2975
  • Last login:December 14, 2024, 05:01:52 pm
  • RIP Dinosaur Hippo
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #2 on: March 17, 2009, 11:56:12 pm »
i dont know if that will fix your problem entirely, but upgrading the ram will definitely help with your mame performance.  what version of windows are you running?  256mb of ram just isnt enough to properly run anything above win98.  max that thing out..ram is cheap.  i noticed a difference in performance in MK2 going from 512mb to 1gb in my old motherboard.  (athlon xp 2500+).   i have since upgraded again to a different board and  3ghz p4, with 2gb of ram, and once again, i noticed performance increases, especially with mk3 and umk3. 

definitely go for the ram upgrade...i dont know what type of ram your pc takes...but if it maxes out a 1gb, then it is probably either two 512mb sticks of either  PC100/PC133 SDRAM, or DDR.  looking at newegg.com, PC100/133 is more expensive than DDR, and you can get 512mb sticks for about $32 each....DDR is about half that.  so either way it is pretty cheap to max that thing out, which will make everything run better.

if it matters, i'm running mame .124

Current Projects:      Zak-Man | TMNT Pedestal | SNES Pi | N64 Odroid
Former Projects:     4 Player Showcase | Donkey Kong | iCade

ViciousXUSMC

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 213
  • Last login:July 28, 2009, 10:25:53 am
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #3 on: March 17, 2009, 11:57:19 pm »
I know MK2 works fine for me on the pre-compiled .129

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #4 on: March 18, 2009, 04:37:15 am »
Darn it! I only just figured out how to compile v0.130 so I'm really going to struggle with downgrading to 0.105 - I think that, from the sounds of it, I should still consider upgrading the RAM when I have the disposable income but downgrade to MAME before the big update!

Turnarcades - would you be able to help me - I really just want a compiled version of 0.105 which doesn't have nag screens, rom loading boxes, white boxes, error messages on roms which don't quite run at full emulation (this one was really important to me!!) and hi score support. It sounds as though the MAME you compiled is just this? Is there any possibility you could send it me? I would be very grateful if you could! It would be a massive help.

Thanks for the feedback guys - kind of bad news but its best to know these things!

BASS!

  • Just have fun.
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 837
  • Last login:August 10, 2013, 03:12:33 am
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #5 on: March 18, 2009, 06:03:01 pm »
Hey you can always compile a .105 using the same method. You just need the 105 source code, and a rollback romset. Compile mame and then run your roms through clrmamepro, and your set. Your almost there:-). Hey turncades, you sure about that mame revision? I have used many, including some of the .8 series. I think there is a post on the mameworld forums that has a breakdown of the versions compared to system specs.

SirPeale

  • Green Mountain Man
  • Global Moderator
  • Trade Count: (+23)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 12963
  • Last login:August 04, 2023, 09:51:57 am
  • Arcade Repair in New England
    • Arcade Game and Other Coin-Op Projects
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #6 on: March 18, 2009, 06:17:32 pm »
Hold on now...it might be a config issue.  Post your mame.ini.

DeLuSioNal29

  • Global Moderator
  • Trade Count: (+6)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 4779
  • Last login:July 11, 2025, 09:17:44 am
  • Build the impossible -"There is no Spoon"
    • DeLuSioNaL's YouTube Videos
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #7 on: March 18, 2009, 06:29:25 pm »
Hold on now...it might be a config issue.  Post your mame.ini.
I agree with Peale.  It may be a matter of changing your sample rate in the mame.ini file from 44100 to 22100, which will improve performance.

Code: [Select]
samplerate              44100
Stop by my Youtube channel and leave a comment:

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #8 on: March 18, 2009, 07:06:20 pm »
This is the ini in full (sorry if thats a bit excessive - just thought I'd be on the safe side!) -

<UNADORNED0>             

#
# CORE CONFIGURATION OPTIONS
#
readconfig                1

#
# CORE SEARCH PATH OPTIONS
#
rompath                   roms
samplepath                samples
artpath                   artwork
ctrlrpath                 ctrlr
inipath                   .;ini
fontpath                  .
cheatpath                 cheat

#
# CORE OUTPUT DIRECTORY OPTIONS
#
cfg_directory             cfg
nvram_directory           nvram
memcard_directory         memcard
input_directory           inp
state_directory           sta
snapshot_directory        snap
diff_directory            diff
comment_directory         comments

#
# CORE STATE/PLAYBACK OPTIONS
#
state                     
autosave                  0
playback                 
record                   
mngwrite                 
aviwrite                 
wavwrite                 
snapname                  %g/%i
snapsize                  auto
snapview                  internal

#
# CORE PERFORMANCE OPTIONS
#
autoframeskip             0
frameskip                 0
seconds_to_run            0
throttle                  1
sleep                     1
speed                     1.0
refreshspeed              0

#
# CORE ROTATION OPTIONS
#
rotate                    1
ror                       0
rol                       0
autoror                   0
autorol                   0
flipx                     0
flipy                     0

#
# CORE ARTWORK OPTIONS
#
artwork_crop              0
use_backdrops             1
use_overlays              1
use_bezels                1

#
# CORE SCREEN OPTIONS
#
brightness                1.0
contrast                  1.0
gamma                     1.0
pause_brightness          0.65

#
# CORE VECTOR OPTIONS
#
antialias                 1
beam                      1.0
flicker                   0

#
# CORE SOUND OPTIONS
#
sound                     1
samplerate                48000
samples                   1
volume                    0

#
# CORE INPUT OPTIONS
#
coin_lockout              1
ctrlr                     
mouse                     0
joystick                  1
lightgun                  0
multikeyboard             0
multimouse                0
steadykey                 0
offscreen_reload          0
joystick_map              auto
joystick_deadzone         0.3
joystick_saturation       0.85

#
# CORE INPUT AUTOMATIC ENABLE OPTIONS
#
paddle_device             keyboard
adstick_device            keyboard
pedal_device              keyboard
dial_device               keyboard
trackball_device          keyboard
lightgun_device           keyboard
positional_device         keyboard
mouse_device              mouse

#
# CORE DEBUGGING OPTIONS
#
log                       0
verbose                   0
update_in_pause           0
debug                     0
debugscript               

#
# CORE MISC OPTIONS
#
bios                     
cheat                     0
skip_gameinfo             0
disable_hiscore_patch     1
disable_crosshair_patch   1
disable_nagscreen_patch   0
disable_loading_patch     0

#
# WINDOWS DEBUGGING OPTIONS
#
oslog                     0
watchdog                  0
debugger_font             "Lucida Console"
debugger_font_size        9

#
# WINDOWS PERFORMANCE OPTIONS
#
priority                  0
multithreading            0

#
# WINDOWS VIDEO OPTIONS
#
video                     d3d
numscreens                1
window                    0
maximize                  1
keepaspect                1
prescale                  1
effect                    none
waitvsync                 0
syncrefresh               0

#
# DIRECTDRAW-SPECIFIC OPTIONS
#
hwstretch                 1

#
# DIRECT3D-SPECIFIC OPTIONS
#
d3dversion                9
filter                    1

#
# PER-WINDOW VIDEO OPTIONS
#
screen                    auto
aspect                    auto
resolution                auto
view                      auto
screen0                   auto
aspect0                   auto
resolution0               auto
view0                     auto
screen1                   auto
aspect1                   auto
resolution1               auto
view1                     auto
screen2                   auto
aspect2                   auto
resolution2               auto
view2                     auto
screen3                   auto
aspect3                   auto
resolution3               auto
view3                     auto

#
# FULL SCREEN OPTIONS
#
triplebuffer              0
switchres                 0
full_screen_brightness    1.0
full_screen_contrast      1.0
full_screen_gamma         1.0

#
# WINDOWS SOUND OPTIONS
#
audio_latency             2

#
# INPUT DEVICE OPTIONS
#
dual_lightgun             0


Well, my sample rate is even higher than you expected. However, that doesn't quite explain the slowdown in Grand Striker 2 (however, this is the only game I have noticed any change in other than sound so far - and this hasn't achieved 100% perfect emulation in MAME yet anyway!) So, if I was to change the samplerate down to 22100 then that should rid me of stuttery sound?

I've compiled a 0.105 now anyway and I'm in the process of compiling the roms - what are people's suggestion to achieving the best perfromance for my cab? I will upgrade the RAM regardless, but what would be the best option? 0.105 or 0.130?

Thanks for all your help everyone, appreciate this!

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #9 on: March 18, 2009, 07:13:20 pm »
While I'm at it and I've got the ini posted up, I may as well ask, some of my games have a black bar to the left of the screen, I'm guessing this is a resolution problem? Is there anything inside the ini which I can change so that all games run at full screen? Thanks again! :)

Todd H

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 658
  • Last login:August 26, 2024, 02:23:32 pm
  • It's Gameday!
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #10 on: March 18, 2009, 07:20:52 pm »
Try setting triplebuffer to 1.

slapaham

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 576
  • Last login:January 31, 2012, 05:32:32 pm
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #11 on: March 18, 2009, 07:23:39 pm »
Will give it a go, cheers! :cheers:

SirPeale

  • Green Mountain Man
  • Global Moderator
  • Trade Count: (+23)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 12963
  • Last login:August 04, 2023, 09:51:57 am
  • Arcade Repair in New England
    • Arcade Game and Other Coin-Op Projects
Re: MAME V0.130 - Stuttering sound - Advice please!
« Reply #12 on: March 18, 2009, 07:53:27 pm »
Try these changes:



#
# CORE ARTWORK OPTIONS
#
artwork_crop              0
use_backdrops             0
use_overlays              0
use_bezels                0

#
# CORE SOUND OPTIONS
#
sound                     1
samplerate                44100
samples                   1
volume                    0

#
# WINDOWS PERFORMANCE OPTIONS
#
priority                  1
multithreading            0

#
# WINDOWS VIDEO OPTIONS
#
video                     ddraw
numscreens                1
window                    0
maximize                  1
keepaspect                1
prescale                  1
effect                    none
waitvsync                 0
syncrefresh               0


#
# FULL SCREEN OPTIONS
#
triplebuffer              1
switchres                 1
full_screen_brightness    1.0
full_screen_contrast      1.0
full_screen_gamma         1.0


That's a start...there are other things to try.  Hwstretch with DDRAW may or may not work.