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: Does compiling for various processors really make a performance difference?  (Read 2509 times)

0 Members and 1 Guest are viewing this topic.

retrometro

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 487
  • Last login:May 24, 2024, 09:11:44 pm
    • Arcade, mame, retro... and the gp2x.
I naturally believe that a faster process makes for faster mame games (at least the more recent ones).  But given the same processor/system, has anyone done any testing to see if specifying the processor type makes a measurable difference?

My cab has an old Pentium 4 2.4GHz and when I compile for the hi score patch, i've tried specifying the processor and without and can't tell the difference.

Maybe it makes a bigger difference in substantially faster or slower cpu's?


-------- gp2x and retro... play it forever! ------------------------
http://www.youtube.com/view_play_list?p=0EE573E86D5A86E0
--------------------------------------------------------------------

brian_hoffman

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 131
  • Last login:July 02, 2011, 09:02:20 pm
Yes it does... Maybe 5% but it still helps..

64bit does wonders tho... But you need a 64bit cpu and OS to take advantage

9innail

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 49
  • Last login:September 22, 2011, 11:18:53 am
When I compile for my specific processors I can get as much as a 10-15% speed increase. :cheers:

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
btw, anyone know what cpu I should compile for AMD 64 bit (32bit os) opteron?  (the extra cache workspace versions)?

retrometro

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 487
  • Last login:May 24, 2024, 09:11:44 pm
    • Arcade, mame, retro... and the gp2x.
Yes it does... Maybe 5% but it still helps..

64bit does wonders tho... But you need a 64bit cpu and OS to take advantage

Do you know if anyone's done a matrix measuring fps for various processors and mame compiling options? 

How much of a gain do you get compiling for 64bit?  do you have to run your OS at 64bit also?


-------- gp2x and retro... play it forever! ------------------------
http://www.youtube.com/view_play_list?p=0EE573E86D5A86E0
--------------------------------------------------------------------

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
You can only run 64 bit apps on a 64 bit OS, and there has been a fair amount of discussion of the speed benefits of 64 bit already, so have a look.

Probably no matrix exists, and IMO no need really. If you are experiencing performance issues with any games, then try compiling your own version with whatever options apply and see if it helps (it's so easy to do). Use the fps display for a before and after comparison. But if you're not experiencing performance issues and don't otherwise want to compile your own, then don't even worry about it.

People have told you their experiences with compiler options; now it's your turn to measure the difference. :)
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

retrometro

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 487
  • Last login:May 24, 2024, 09:11:44 pm
    • Arcade, mame, retro... and the gp2x.
Probably no matrix exists, and IMO no need really. If you are experiencing performance issues with any games, then try compiling your own version with whatever options apply and see if it helps (it's so easy to do). Use the fps display for a before and after comparison. But if you're not experiencing performance issues and don't otherwise want to compile your own, then don't even worry about it.

Thanks TheShanMan.  I should add that one of the reason to ask for a matrix is to gauge how much money will make the best bang for the buck in terms of replacing my current setup.  The only thing I've found in terms of benchmarks are the the better the process the better the fps...   Plus a lot of the comparisons are with video and audio turned off to focus on the processor's performance.  Finally, they don't list old processors like my Pentium 4 2.4GHz.

What I want to do is see where my setup stands and see how much a cheap new or old system will bring it up to speed...   especially for some of the benchmark games like cruisin' usa, gauntlet legends, or star blade.  I don't care to buy the most expensive CPU/mb for my cab.

Finally, soft15KHz works great and I want to make sure if I find a bare bones system, the gfx card in the new one will be supported by it.  I know there's a compat gfx chart out there already beginning with her wiki on it.

thanks everyone.
-------- gp2x and retro... play it forever! ------------------------
http://www.youtube.com/view_play_list?p=0EE573E86D5A86E0
--------------------------------------------------------------------

retrometro

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 487
  • Last login:May 24, 2024, 09:11:44 pm
    • Arcade, mame, retro... and the gp2x.

looks like compiling mame specifically for my P4 2.4 makes a 5-10% diff in some games.  maybe when i tested before, the games were maxed out.


-------- gp2x and retro... play it forever! ------------------------
http://www.youtube.com/view_play_list?p=0EE573E86D5A86E0
--------------------------------------------------------------------

TheShanMan

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1912
  • Last login:October 22, 2024, 11:51:12 am
    • My Arcade (updated 1/30/13)
Ah, that's an interesting reason for wanting that info. I can tell you that I built my system in January and didn't exactly go top of the line. I spent around $200 for case, mb, processor, memory, and video card (I think that's all I bought - rest of the stuff I had on hand). It plays all non-chd games I've ever tried without a hiccup, and several chd games as well. I don't care about many chd games, though I did try California Speed and noticed some hiccups. I don't have a steering wheel yet, so I didn't care about trying to optimize for that game or figure out if it was something I could solve. Probably if and when I get to the point of caring about that or other problematic games, I'll make the switch to 64 bit.

So as always it obviously depends on what you want to play, but probably for the vast majority of people you don't have to have some top end gaming system to get perfect performance for your games.

Hope that's helpful. Good luck choosing your hardware!

P.S. I went with an AMD processor. I'm not as up on processors as I used to be, but it used to be that AMD gave better bang for the buck, so I used that logic in my choice and I'm totally happy with it.
My Collection: Mame cab, 38 dedicated vids, pin, skeeball, coin op air hockey table, Ice Cold Beer, Megatouch, 2 token machines, and payphone (VAPS, pics at Arcade Crusade)

Add Ambience to your mame cab setup

Jdurg

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1127
  • Last login:October 04, 2020, 09:26:27 pm
  • A young guy feeling older than sin......
Yeah, for a good while the AMD line of processors was the best you could get for your money, but that era ended when the Core2Duo CPUs from Intel hit the market.  When that happened, AMD got hit hard as those Intel CPUs now offer the greatest "bang for your buck".  AMD now only has the lead on the very low end processor market which anyone building a cab for MAME should avoid if they want to run anything.

Basically, the gist of compiling in 64 bit and specifically for a processor is if the standard build of MAME gets you to about 95-96% of full speed with your current setup.  In that situation, compiling specifically for your processor class can give you the final % points needed to be runnign smoothly and flawlessly.  If you are struggling to run a certain game, don't be fooled into thinking that a custom compiled 64-bit build will suddenly make it playable.
Donkey Kong High Scores:
1): 49,500
2): 35,600
3): 30,100
4): 29,400
5): 28,200

massive88

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 938
  • Last login:February 26, 2024, 02:21:01 pm
Yes it does... Maybe 5% but it still helps..

64bit does wonders tho... But you need a 64bit cpu and OS to take advantage

Do you know if anyone's done a matrix measuring fps for various processors and mame compiling options? 

How much of a gain do you get compiling for 64bit?  do you have to run your OS at 64bit also?




Heres a link to the tests I did when I built my newer mame computer - http://forum.arcadecontrols.com/index.php?topic=72776.msg826587#msg826587

Its a small sample size, but I saw a 5%-20% increase in performance depending on games using the 64bit binary and OS.

It depends on the specific driver how much of an increase you will get, but if you want to push your performance, going 64bit is definitely the way to go.  You always have the option of running the 32-bit binary on some of the games if you need to (like gradius 4).

retrometro

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 487
  • Last login:May 24, 2024, 09:11:44 pm
    • Arcade, mame, retro... and the gp2x.
Thanks to everyone for their input.

BTW brian_hoffman, what cpu were you running your benchmarks on?


-------- gp2x and retro... play it forever! ------------------------
http://www.youtube.com/view_play_list?p=0EE573E86D5A86E0
--------------------------------------------------------------------