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: Will mame ever be multithreaded?  (Read 5068 times)

0 Members and 1 Guest are viewing this topic.

markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
Will mame ever be multithreaded?
« on: June 08, 2009, 07:00:22 pm »
Does anyone know if there are plans to ever make mame truly multithreaded.   It works great as is already, and I am already appreciative for what mame is now, but I was just wondering if anyone knows if that's at all on the horizon for mame?    I know there is the multithreading option now, but it doesn't do a ton really, and it's not using both or all processors as well as a true multithreaded app would...

Anyone have any idea?   :dunno

youki

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1612
  • Last login:November 19, 2016, 01:07:33 pm
  • Atomic Front End Creator
    • Atomic Front End
Re: Will mame ever be multithreaded?
« Reply #1 on: June 09, 2009, 03:15:11 am »
Multithreading would usefull only if the game emulated is multithreaded too , and if it is managed correctly.

So surely some modern 3d game are, but most of the other are not. So you won't see any difference , except may be a slow down in these cases.




u_rebelscum

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3633
  • Last login:April 21, 2010, 03:06:26 pm
  • You rebel scum
    • Mame:Analog+
Re: Will mame ever be multithreaded?
« Reply #2 on: June 09, 2009, 03:22:52 pm »
Mame is multiple right now.  However, you don't see super speed jumps on most games ATM because one or more of the following, depending on the exact game, of course:

  • Arcade hardware does not split into threads well (what youki said)
  • Arcade hardware could thread, but the driver doesn't do it (rare, most drivers that could be helped with threading have been AFAIK)
  • You're not running a 64 bit mame on a 64 bit OS on a 64 bit CPU, so the threading does help much.
  • You are running a 64 bit mame on a 64 bit OS on a 64 bit CPU, and the mame driver is 32 bit favored. (not true now on current mame AFAIK, but was true but rare on a few games in older mames)
  • PC isn't powerful enough to speed up the bottleneck; IOW, there's one thread that takes 95% of the core, and all the threading of the rest of the stuff would only help 5% at the absolute maximum case.  (related to first point)
  • Aaron's computer runs the game just fine, so the only person in the world who could figure how to multithread the unmultithreadable doesn't need to (hyperbole, slightly)
Robin
Knowledge is Power

Lilwolf

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4945
  • Last login:July 31, 2022, 10:26:34 pm
Re: Will mame ever be multithreaded?
« Reply #3 on: June 11, 2009, 05:57:49 pm »
btw, the reason they haven't multithreaded just everything (and they could, pretty easy) is that they synchronizing the cores would actually slow everything down.

processor emulation is very low level... and timing is critical.  Threading works best when you can send a chunk of stuff to do to another core...

But you have to sync the cores to pass data between them... memory ect.  And that is down right slow.


markronz

  • We traced the call, and it came from....INSIDE YOUR ARCADE MACHINE!
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 821
  • Last login:April 12, 2019, 12:03:08 am
  • Game on!
Re: Will mame ever be multithreaded?
« Reply #4 on: June 11, 2009, 06:01:48 pm »
Alright that answers that question!

Thanks everyone for your responses!

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: Will mame ever be multithreaded?
« Reply #5 on: June 14, 2009, 07:58:18 pm »
This was all discussed at length a year or two ago at MW.
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.