ric_rpi
Posts: 206
Joined: Thu Jul 11, 2013 2:33 pm
Location: Bedford, UK

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 01, 2013 11:56 am

I have done some more bug removal and improvements when using HDMI with the Sound plug-in and this is now available.

Two weeks of investigating have shown that under intense graphics, the emulator runs at around 50% speed due to the graphics plug-in which is why the sound keeps cutting out. I have tried using the mupen64plus-ae gles2glide64 plug-in but the graphics have issues and the frame rate is lower than with gles2rice so I will continue working on the gles2rice plug-in.

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 01, 2013 3:00 pm

ric_rpi
WOW! that's impressive work man! I cant get the audio-sdl sound Module to build (says lilclient is missing?), but without sound its totally playable (FPS average 45-50) and the graphics now seem perfect! (so far only tested with Mario64).
"The list of things I have heard now contains everything!"

ric_rpi
Posts: 206
Joined: Thu Jul 11, 2013 2:33 pm
Location: Bedford, UK

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 01, 2013 3:19 pm

The ilclient was from the hello_pi examples, I have copied them into the project and added to the repo so the audio plug-in should compile.

The FPS needs to average 60 for the sound to work nicely. I also found my TV stops playing sound if it is not a continuous stream.

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 01, 2013 7:33 pm

ric_rpi
Man, kudos to you! Just recompiled and it seems to perform at the same FPS whether with/without a sound plugin! In the Castle rooms (I would assume as it has less to render) its 58 FPS (and the sound/music is pretty much faultless) on a 900MHz over clock (the highest I can run maintaining stability). VERY impressive!

However, using your supplied cfg file it runs slower, is that because its running in a bigger window?
"The list of things I have heard now contains everything!"

KitchUK
Posts: 256
Joined: Fri Jul 19, 2013 5:40 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 01, 2013 10:03 pm

This sounds fantastic!

aguirrech
Posts: 22
Joined: Sun Sep 02, 2012 11:51 am

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 01, 2013 10:10 pm

Anyone could post the binaries for testing pourpose. :shock:

d0vr
Posts: 26
Joined: Sun Oct 28, 2012 11:25 am

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 5:54 am

I'm not very knowledgeable about emulators unfortunately, but I was wondering if there is any hope of super smash bro working? I believe it might be a CPU intensive game :/

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 7:34 am

Guys
If you want to test ric_rpi's work for yourselves it isn't an onerous process as the latest version will autocompile not just the emulator core but all the required plugins as well.

Install the required dependancies
sudo apt-get install libsdl1.2-dev

Download the source from Github (on the right you will see a Cloud symbol with Download ZIP, that's the link for the WHOLE master) and extract (uncompress). Or you can 'clone' it if you know how to do that!
Here - https://github.com/ricrpi/mupen64plus-rpi

CD into the folder and run the build script
./m64p_build.sh

Once completed add some ROMs, unzip them
Then CD into the 'test' folder and run the program along with the name and location of the ROM
e.g. ./mupen64plus /home/pi/mario.n64 (you can change the file name for easy typing)

As with all N64 emulation performance will depend on complexity of the program code (many publishers used their own micro code resulting in difficulty emulating by HLE (High Level Emulation)). This affects EVERY N64 emulator, I have yet to find one that emulates GoldenEye 'perfectly'.

d0vr I will be conducting some further testing today and will try Smash Bros
"The list of things I have heard now contains everything!"

ric_rpi
Posts: 206
Joined: Thu Jul 11, 2013 2:33 pm
Location: Bedford, UK

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 9:06 am

I have not seen any major difference in performance when changing screen size but I have seen code in the gfx plug-in that loops every pixel. It could be this code isn't active.

welshy, if you could post your mupen64plus.cfg file, I'll see if it speeds up emulation on my PI.

I started to look at changing a running instance of mupen64plus to use FIFO scheduling yesterday using 'chrt -f -p 50 [pid]' in another terminal. I saw less Idle time on the processor and possibly higher framerates...

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 9:09 am

ric_rpi
Its just a 'default' cfg produced when running mupen64plus, but I can post if you so wish.
Attachments
mupen64plus.rar
(2.52 KiB) Downloaded 219 times
Last edited by welshy on Wed Oct 02, 2013 9:14 am, edited 2 times in total.
"The list of things I have heard now contains everything!"

ric_rpi
Posts: 206
Joined: Thu Jul 11, 2013 2:33 pm
Location: Bedford, UK

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 9:11 am

OK, I'll try the default later then

KitchUK
Posts: 256
Joined: Fri Jul 19, 2013 5:40 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 9:15 am

I've contacted Florian (petRockBlog) to see if he can add this emualator to the RetroPie script.

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 9:18 am

KitchUK
I would ask ric_rpi first as he is still developing the code, i.e. its not finished!
"The list of things I have heard now contains everything!"

ric_rpi
Posts: 206
Joined: Thu Jul 11, 2013 2:33 pm
Location: Bedford, UK

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 9:25 am

I would prefer to hold off adding it to retropi for the time being, I've still got quite a bit to do and its not in a very polished state.

I am hoping to get X11 integrated (since I stripped out SDL) in the next 2 weeks to give keyboad/mouse input. I also need to squeeze some more performance from the gfx plug-in to get more games running at an acceptable speed.

KitchUK
Posts: 256
Joined: Fri Jul 19, 2013 5:40 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 9:35 am

Ah, no problem. At this stage I only asked if he could eventually add the emulator to RetoPie. I also sent him a link to this forum thread to see the current level of the project.

teeth_03
Posts: 284
Joined: Sat Sep 08, 2012 12:02 am

Re: Mupen64Plus - N64 Emulator for the Pi

Wed Oct 02, 2013 11:58 am

What would really be nice is if it was added at a RetroArch core so you didn't need to configure the controls separately...

chrische
Posts: 2
Joined: Thu Oct 03, 2013 10:12 am

Re: Mupen64Plus - N64 Emulator for the Pi

Thu Oct 03, 2013 10:14 am

Tried to build on my raspberryPi (set up with RetroPie Installer) but run into following error:

Code: Select all

gcc: internal compiler error: Terminated (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make: *** [_obj/r4300/new_dynarec/new_dynarec.o] Fehler 4
make: Leaving directory `/home/pi/mupen64plus-rpi/source/mupen64plus-core/projects/unix'
Pulled newest changes from the Git-Repo and installed packages mentioned by welshy.

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Thu Oct 03, 2013 10:38 am

chrische
It could be the Raspbian Image RetroPie uses is out of date/conflicting with the build.
Try -
sudo rpi-update (then reboot: sudo reboot)
and/or
sudo apt-get update

If that doesn't help get a 'Fresh' Raspbian 'Wheezy' Image (NOT 'NOOBS') from the Download section (don't forget to sudo rpi-update because there's a bug which has been verified and corrected See Here - http://www.raspberrypi.org/phpBB3/viewt ... 78&t=57035).
"The list of things I have heard now contains everything!"

chrische
Posts: 2
Joined: Thu Oct 03, 2013 10:12 am

Re: Mupen64Plus - N64 Emulator for the Pi

Thu Oct 03, 2013 11:55 am

Thank you for your fast reply! I updated my Pi, even threw an apt-get dist-upgrade, but still the same issue. I will try a new, clean raspian install soon. A already had one, but forgot that i switched to a retroPi-image some time ago to track down a bug, that included savegame-files not being written on emulator exit an es freezing, but that is resolved now, so it's time to switch back ;-)

i'll let you know when i succeed :-)

forenbenutzer
Posts: 148
Joined: Thu Aug 02, 2012 7:08 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Thu Oct 03, 2013 2:05 pm

Pics or it didn't happen. :)
Pitendo - Case And Emulator Project - http://edv-huber.com/index.php/problemloesungen/12-pitendo

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Thu Oct 03, 2013 2:16 pm

forenbenutzer
"But it did happen, hey it was me who stole my Dad's Keys!"

Just compile it yourself, no further 'Proof' needed!
"The list of things I have heard now contains everything!"

forenbenutzer
Posts: 148
Joined: Thu Aug 02, 2012 7:08 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Fri Oct 04, 2013 8:30 am

I have no "free" rpi at the moment. :| Anyone with screenshots?
Pitendo - Case And Emulator Project - http://edv-huber.com/index.php/problemloesungen/12-pitendo

ric_rpi
Posts: 206
Joined: Thu Jul 11, 2013 2:33 pm
Location: Bedford, UK

Re: Mupen64Plus - N64 Emulator for the Pi

Fri Oct 04, 2013 8:34 am

I've added code to automatically set the scheduler to FIFO which gives me an extra 5-10fps. I currently run as sudo for real-time permissions but you could configure PAM or realtime-lsm to allow normal users to set.

I don't know how to do this though ...

gyeben
Posts: 150
Joined: Tue Jun 19, 2012 6:38 pm
Location: Hungary, Eger

Re: Mupen64Plus - N64 Emulator for the Pi

Sat Oct 05, 2013 9:17 am

Why are the standard OpenGL development libraries needed to build ric_rpi's version of Mupen64Plus?
Also, the build script complains about not finding "GL/gl.h". Which packages are needed to be able to build this application properly? Thanks! :)

welshy
Posts: 1667
Joined: Mon Oct 29, 2012 2:07 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Sat Oct 05, 2013 10:19 am

gyeben
It should build without issues installing only SDL libraries (libsdl1.2-dev).
"The list of things I have heard now contains everything!"

Return to “Gaming”