Raptor Computing Systems Community Forums (BETA)

Software => Applications and Porting => Topic started by: MauryG5 on December 22, 2019, 07:46:32 am

Title: MAME for Power
Post by: MauryG5 on December 22, 2019, 07:46:32 am
Sorry guys but at the level of software dedicated to Power, I was looking for Mame for Power some time ago, I had seen something inherent in our beloved architecture but in the end I did not find anything really downloadable, I read that currently there is not but as usual I will have 'read news that as for VLC is not said correspond to truth so I wonder if you know something more about the MAME situation on Power ... Thanks
Title: Re: MAME for Power
Post by: q66 on December 22, 2019, 07:11:31 pm
MAME works on POWER just fine.
Title: Re: MAME for Power
Post by: ClassicHasClass on December 22, 2019, 10:08:06 pm
https://www.talospace.com/2018/12/no-love-for-powerpc-from-mame.html
Title: Re: MAME for Power
Post by: MauryG5 on December 23, 2019, 06:30:33 am
you say it works but I still can't find the version for pc64le, I only see the versions for the other architectures ... where is ours?
Title: Re: MAME for Power
Post by: MPC7500 on December 23, 2019, 08:39:44 am
Have you read the link above?
If you don't wanna build it by your own, there is only one option: VoidLinux, IIRC
Title: Re: MAME for Power
Post by: q66 on December 23, 2019, 12:29:12 pm
I patch it with -mlong-double-64 for glibc systems and it seems to be pretty harmless. Glibc supports dual ABI, so for pure libc consumers it's 100% harmless, and there aren't many libraries using long double in their APIs, as far as MAME dependencies go it's none, as far as I can tell.
Title: Re: MAME for Power
Post by: MauryG5 on December 23, 2019, 02:45:00 pm
MPC sorry but apart from that as I said several times I am not a Linux expert let alone a programmer, but I don't think I will install a distro just to use Mame ... There is no patience maybe they will do it later and later  in any case I read that Void is not compatible with Power in any case I do not care Void
Title: Re: MAME for Power
Post by: ClassicHasClass on December 23, 2019, 09:24:28 pm
q66 is the Void Power maintainer, so.
Title: Re: MAME for Power
Post by: MauryG5 on December 24, 2019, 06:52:22 am
So I turn to Q66 which I have already seen to be one of the most experienced of both Linux and Power architecture, if you have any links where you can go find something, give me a nod ...
Title: Re: MAME for Power
Post by: q66 on December 24, 2019, 01:34:48 pm
If your distro doesn't build it, you'll have to build it yourself; if you can't build it yourself, make a request in your distro. I don't know if Fedora builds it, as I don't use Fedora. The patches are out there, in Void it works for ppc64le as well as ppc64 and ppc, I tested it on my Talos and Blackbird.
Title: Re: MAME for Power
Post by: MauryG5 on December 24, 2019, 02:49:27 pm
on Fedora if I remember correctly, there is an x86 version of course, it is missing for Power.  No I can't build it myself ...
Title: Re: MAME for Power
Post by: MauryG5 on April 12, 2021, 04:03:20 pm
Guys sorry, is there a site without registration, where you can download the sources of the MAME for Power by chance? Thank you
Title: Re: MAME for Power
Post by: ClassicHasClass on April 12, 2021, 10:51:52 pm
https://github.com/mamedev/mame
Title: Re: MAME for Power
Post by: MauryG5 on April 13, 2021, 03:35:28 pm
Hei Classic hi, yes up to that part I was there too, I just don't understand where to get the Tarball folder that should be used for the compilation ... I don't see it in this list ...
Title: Re: MAME for Power
Post by: MauryG5 on April 17, 2021, 04:02:35 pm
Guys then, I found on the web this RPM source of mame that seems to be version 0.229 for PPC64le. But if i try to install it, it asks me besides some libraries, also the package called "mame-data.229 but i don't find this package anywhere. I found also the 197 version but I have the same problem, I can't find the package mame-data, that are the repositories that mame needs to be able to work. I've tried to run the command "dnf install mame-data" as a site recommends but it doesn't find anything unfortunately... I would like to understand at this point if this dependencies package exists or not... But if it doesn't exist, how come there is this source 229.rpm for our architecture?

The link where I found those sources: https://www.rpmfind.net/linux/rpm2html/search.php?query=mame%28ppc-64%29+data&submit=Cerca+...+&system=&arch=
Title: Re: MAME for Power
Post by: MauryG5 on April 26, 2021, 05:55:06 am
Guys I tried to take the MAME source and compile it myself but unfortunately it doesn't work, it gives an error as you can see in the section dedicated to our architecture. I don't know at this point how for example Daniel Kolesa managed to get the version of him on Void LInux, it seems that there were errors in the source and therefore it is not compile and installable as a result. Finally, I don't know where to find the dependencies and libraries it needs ...

Title: Re: MAME for Power
Post by: MauryG5 on June 14, 2021, 02:52:12 pm
Guys, I finally found Mame in the games section of the Ubuntu software store. This is version 0.220, quite recent therefore considering that they have arrived at version 0.232. It works quite well, certainly lacks optimization as well, games like Street Fighter 3 for example, run badly, the same game on Mac with X86 from 2012, runs perfect. In any case it is quite good and above all it is available directly and without having to download additional repositories or anything else.
Title: Re: MAME for Power
Post by: tle on August 01, 2021, 08:12:20 pm
Guys then, I found on the web this RPM source of mame that seems to be version 0.229 for PPC64le. But if i try to install it, it asks me besides some libraries, also the package called "mame-data.229 but i don't find this package anywhere. I found also the 197 version but I have the same problem, I can't find the package mame-data, that are the repositories that mame needs to be able to work. I've tried to run the command "dnf install mame-data" as a site recommends but it doesn't find anything unfortunately... I would like to understand at this point if this dependencies package exists or not... But if it doesn't exist, how come there is this source 229.rpm for our architecture?

The link where I found those sources: https://www.rpmfind.net/linux/rpm2html/search.php?query=mame%28ppc-64%29+data&submit=Cerca+...+&system=&arch=

I believe the RPM packages are built for OpenSUSE and the mame-data thus is only available in OpenSUSE registry. You would have to find that package and manually install it on Fedora. Lastly I am not even sure if the RPM for OpenSUSE would work with Fedora
Title: Re: MAME for Power
Post by: MauryG5 on August 02, 2021, 08:11:36 am
Hi TLE, I thought that being files with RPM extensions, they were also usable on Fedora but obviously this is not the case. In the end I was unable to use it on Fedora but as I wrote in the previous post, now I use it successfully on Ubuntu which is regularly available and does not need any particular dependencies to install ... Thanks anyway!
Title: Re: MAME for Power
Post by: MPC7500 on August 05, 2021, 10:24:41 am
A while ago I installed the shortwave package from OpenSUSE on Fedora without a problem. So it works, as long as you have all dependencies installed, of course.
Title: Re: MAME for Power
Post by: MauryG5 on August 06, 2021, 03:03:26 pm
Yes MPC in fact when I tried to install this version of OpenSuse, then I tried to find all the dependencies but unfortunately I couldn't, I have no idea where to get them honestly. I solved inveve with Ubuntu, which has version 0.220 already nice and ready in the software store and doesn't need any dependencies.
Title: Re: MAME for Power
Post by: MPC7500 on August 08, 2021, 07:35:00 am
I dunno what the problem is. I never tried to install MAME.
Title: Re: MAME for Power
Post by: MauryG5 on August 08, 2021, 10:42:48 am
From what I have seen, the problem exists on Fedora, mainly because it takes the famous dependencies as often happens when you use Fedora. I also found a version 0.190 or 193 now I don't remember well, which still worked on Fedora. I tried to install it and I was also successful but then he asked me about the dependencies that I tried to look for but that I did not find. Probably I was wrong to look for the source, but being that few use MAME on Power, no one has been able to tell me exactly where to get them. I had also tried to compile but it gave me that error that also on the GITLAB site is mentioned and shown so I abandoned the idea on Fedora. When I managed to get Ubuntu running smoothly on Power, I solved this problem and now I regularly use MAME on Powerm too, a bit like Daniel does on Void.In any case the main problem is the dependencies and then the fact that there is no recent version on Fedora as they have problems compiling at the moment. Maybe they will do something about Fedora 35 to correct this problem but we don't know anything yet ...
Title: Re: MAME for Power
Post by: tle on February 16, 2022, 11:49:34 pm
Rejoice foiks, Fedora 36 (rawhide as of today 17 Feb 2022) has re-enabled the ppc64le RPM build

ref: https://src.fedoraproject.org/rpms/mame/c/ac389954f54811556b11548396329a86cc82dfae?branch=rawhide

That means Fedora 36 would have MAME out of the box
Title: Re: MAME for Power
Post by: MauryG5 on February 17, 2022, 12:58:47 am
Hi TLE, thanks for the news.  At the moment Fedora put it aside and am using Ubuntu and Debian more, due to that exasperated slowness issue of Gnome from 40 onwards.  We will see later anyway thanks for the good news.
Title: Re: MAME for Power
Post by: ClassicHasClass on February 18, 2022, 01:50:47 pm
Maury, I keep telling you: replace the libgraphene library. I even pre-built one, just replace the older one.
Title: Re: MAME for Power
Post by: tle on February 23, 2022, 10:01:00 pm
Maury, I keep telling you: replace the libgraphene library. I even pre-built one, just replace the older one.

It does improve the perf BUT it is still tad slower than GNOME 3.38
Title: Re: MAME for Power
Post by: MauryG5 on February 24, 2022, 06:34:42 am
Classic ok but I don't know the exact procedure to replace this library you speak of.  How should one remove that one and put another better one?  And then which one to put?  How to install?  I don't know anything about it ...
Title: Re: MAME for Power
Post by: tle on February 24, 2022, 04:57:27 pm
Classic ok but I don't know the exact procedure to replace this library you speak of.  How should one remove that one and put another better one?  And then which one to put?  How to install?  I don't know anything about it ...

Look in https://github.com/ebassi/graphene/pull/233, there is a comment from classic with attached link, download and extract that tgz then move the file to `/lib64/` folder. Problem solved
Title: Re: MAME for Power
Post by: MauryG5 on February 25, 2022, 08:11:48 am
Ok I will try as soon as I refit Fedora hardisk with version 35. Thanks TLE and Classic, always very precious and good!
Title: Re: MAME for Power
Post by: ClassicHasClass on February 26, 2022, 11:11:42 am
Maury, I keep telling you: replace the libgraphene library. I even pre-built one, just replace the older one.

It does improve the perf BUT it is still tad slower than GNOME 3.38

Well, I can't argue with that. But it's much more useable than without it.
Title: Re: MAME for Power
Post by: tle on June 21, 2022, 08:55:15 pm
Good news. We've finally had the official MAME RPM packages in Fedora 36. This forum threads have finally get to the end :)
Title: Re: MAME for Power
Post by: markr87 on June 21, 2022, 09:54:29 pm
Has anyone been able to get NFL Blitz to work?  Just wondering if it is a no go or more than likely pebcak?
Title: Re: MAME for Power
Post by: MauryG5 on June 22, 2022, 01:32:29 pm
Well TLE, so now finally Fedora can finally use MAME too, good news I would say. As you know by now I have switched to Debian, so I don't care much about what happens on Fedora anymore, but I am equally pleased that more software is coming. Unfortunately the main problem of MAME on Power is the poor general optimization, I noticed that several games that on the X86 version are very good, I am talking about old stuff above all, I am not talking about recent things for heaven's sake, but old stuff that unfortunately runs slow on Power and unplayable. Really a shame, it would be nice to know how to optimize the code and make better use of the available hardware, it would be really very nice!
Title: Re: MAME for Power
Post by: ClassicHasClass on June 23, 2022, 01:51:38 pm
Has anyone been able to get NFL Blitz to work?  Just wondering if it is a no go or more than likely pebcak?

Does it not start? What issue do you see?

I haven't thoroughly tested it (and my ROM set is for an older MAME, so it's possible I'll have some fallout migrating it from my G5 to the POWER9) but basic behaviour seems to be fine.
Title: Re: MAME for Power
Post by: tle on June 23, 2022, 08:41:18 pm
Well TLE, so now finally Fedora can finally use MAME too, good news I would say. As you know by now I have switched to Debian, so I don't care much about what happens on Fedora anymore, but I am equally pleased that more software is coming. Unfortunately the main problem of MAME on Power is the poor general optimization, I noticed that several games that on the X86 version are very good, I am talking about old stuff above all, I am not talking about recent things for heaven's sake, but old stuff that unfortunately runs slow on Power and unplayable. Really a shame, it would be nice to know how to optimize the code and make better use of the available hardware, it would be really very nice!

That's expected. Lots of optimisation in many emulators are very architecture-specific. Everything needs time to build momentum, once PowerPC is more popular, those engineers behind MAME would be likely to further optimise it
Title: Re: MAME for Power
Post by: MauryG5 on June 24, 2022, 01:01:26 am
I hope so much then, it would be a good thing.  But instead sorry, how should you do to keep it updated?  I have version 0.220 that comes with Debian 11 and I have noticed that if you do not advance in the operating system version first, MAME never updates ... Are there any specific repositories to install?  Thanks always.
Title: Re: MAME for Power
Post by: markr87 on June 26, 2022, 11:24:46 am
Has anyone been able to get NFL Blitz to work?  Just wondering if it is a no go or more than likely pebcak?

Does it not start? What issue do you see?

I haven't thoroughly tested it (and my ROM set is for an older MAME, so it's possible I'll have some fallout migrating it from my G5 to the POWER9) but basic behaviour seems to be fine.

To be more specific it is NFL Blitz '99.  I am just wanting to see how our Power9's perform.  It loads and gives me the normal cpu, sound, ect., press any key to continue display.  I press a key and get a brief message about how there is no saved state as this would be the first time it has ran.  The screen goes blank and that's all she wrote.  I know it will take longer on the first run but I have let it sit for hours to no avail.  Also of note Esc will not respond.  Requires a reset to get out of it.  My romset and chd files are of the same version as mame.  I get the same behavior with the latter versions of the tekken series as well.
Title: Re: MAME for Power
Post by: MauryG5 on June 26, 2022, 12:51:53 pm
Hi markr87, sorry but how does Tekken turn to you? I tried the old 2 and it already runs very slow and therefore lacks optimization, just as I said in the previous posts, how does it turn to you? I oh noticed the poor performance on both Tekken 2 and 3 and both Street Fighter 3 ... They all run very poorly compared to the X86 counterpart ...
Title: Re: MAME for Power
Post by: markr87 on June 27, 2022, 12:59:59 pm
Hi markr87, sorry but how does Tekken turn to you? I tried the old 2 and it already runs very slow and therefore lacks optimization, just as I said in the previous posts, how does it turn to you? I oh noticed the poor performance on both Tekken 2 and 3 and both Street Fighter 3 ... They all run very poorly compared to the X86 counterpart ...
@MauryG5, I just tried Tekken 2 ver.B and can sadly report it is very slow, no sound and coin buttons not responding.  I didn't spend any time trying to figure out sound and buttons.  I compared it to a cheap i5 system I picked up to run an arcade cabinet I am building.  The i5 runs it at normal speed.
Title: Re: MAME for Power
Post by: ClassicHasClass on June 27, 2022, 01:45:29 pm
Well, the good news is that if there's a Fedora package, then it's buildable. I bet a little LTO and -O3 will go a long way. I'll experiment when I finally migrate my T2.
Title: Re: MAME for Power
Post by: MauryG5 on June 28, 2022, 12:44:18 pm
Markr87 yes that's right, what I was telling you too, unfortunately several games a little less old than others, I can say, like, from the late 90s up, they have different functioning problems and that's why in my previous post, I highlighted this thing or that currently our mame does not have optimizations for our processor and therefore it goes badly on slightly more recent games and especially from the late 90s onwards ... Even today the last mame does not have optimizations that improve the situation and if someone does not specifically take our Power version and works on it seriously, we will never have improvements unfortunately ... The code must be optimized for Power ... But nobody knows how to update it and what repository is needed to do it?
Title: Re: MAME for Power
Post by: ClassicHasClass on June 28, 2022, 01:06:45 pm
It depends on if it's bad build options or necessary new code. If it's unoptimized build options, it's your distro. If it's the code or stuff needs to be added, it's upstream ( https://github.com/mamedev/mame ). I don't like the MAME maintainers very much after the debacle when I tried to get a workaround upstreamed awhile ago, but they did at least look at the pull request even if they were jerks about it.
Title: Re: MAME for Power
Post by: MauryG5 on June 28, 2022, 03:32:58 pm
NO Classic, I'm sure the problem is upstream, both the Debian version and the Ubuntu version have the same identical type of problem, Markr87 confirmed what I said and I'm sure the version of other distros will also have the same problem. The problem will be upstream, the one who deals with the Power version must review some parts in my opinion ...
Title: Re: MAME for Power
Post by: ClassicHasClass on June 29, 2022, 03:32:08 pm
Can you be specific about the games you believe are affected? I imagine it's specific drivers rather than the "whole thing."
Title: Re: MAME for Power
Post by: MauryG5 on June 29, 2022, 04:51:39 pm
I don't think they are specific drivers because usually MAME when it needs something specific requires it and makes you put it together with the roms. As I told you, they are a whole series of slightly more recent games, from a certain year onwards everyone does it. I've noticed this on all titles that are newer and from the late 90's onwards. I am sure that it is about optimizing the code because you understand that being a bit bigger games, it is already difficult to manage everything and if you start them with a much more modest hardware but based on X86, then the same games, with the same Roma, they go perfect. It's all about MAME on Power!
In my opinion the main problem is that this MAME on Power is simply a transposition from X86, not being written on Power, it does not exploit our processor at all and being a simple transposition, it has all the limits of the case unfortunately ...
Title: Re: MAME for Power
Post by: ClassicHasClass on July 07, 2022, 10:57:49 pm
Okay, let me put it another way: if you want someone to look at it, it's got to be narrower than that. "Every game from the 90s on" is such a wide parameter that no one is ever going to go through all those possible drivers. If you have a specific game in mind, then that's a starting point.
Title: Re: MAME for Power
Post by: MauryG5 on July 08, 2022, 04:38:51 pm
Ok then a specific example that I can give you is the Street Fighter 3 game in its 3 incarnations and especially in its latest version which is called Street Fighter 3 third strike ... This is a game that goes very badly on our mame ...
Title: Re: MAME for Power
Post by: ClassicHasClass on July 13, 2022, 12:29:13 am
Okay, that's something to begin with. I still need to get some higher priority stuff done first, and I still haven't upgraded to F36 on this T2 yet, but that's something for me to check if someone else doesn't get to it first.
Title: Re: MAME for Power
Post by: MauryG5 on July 13, 2022, 05:30:57 am
Well classic, your contribution is always precious, thank you very much, we await news from you then ... if you need something you obviously ask as always ...
Title: Re: MAME for Power
Post by: MauryG5 on March 12, 2024, 01:02:19 pm
It's been a long time since the last post in this thread, does anyone have any news regarding any improvements in the performance of MAME on Power? Classic Has had said he wanted to work on it but to date he hasn't given any more news on the matter...
Title: Re: MAME for Power
Post by: ClassicHasClass on March 14, 2024, 10:08:25 pm
Sorry, it just hasn't been a priority for me yet. I have relatively low needs from MAME, just a couple very old systems that don't require very sophisticated emulation.
Title: Re: MAME for Power
Post by: MauryG5 on March 15, 2024, 04:35:32 am
I understand it would take a developer who knows how to write the code apart from you and who can dedicate a bit and at the moment there isn't unfortunately... I hope in the future at least :)