Page 4 of 9

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Tue Oct 01, 2013 11:56 am
by ric_rpi
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.

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Tue Oct 01, 2013 3:00 pm
by welshy
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).

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Tue Oct 01, 2013 3:19 pm
by ric_rpi
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.

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Tue Oct 01, 2013 7:33 pm
by welshy
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?

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Tue Oct 01, 2013 10:03 pm
by KitchUK
This sounds fantastic!

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Tue Oct 01, 2013 10:10 pm
by aguirrech
Anyone could post the binaries for testing pourpose. :shock:

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 5:54 am
by d0vr
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 :/

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 7:34 am
by welshy
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

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 9:06 am
by ric_rpi
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...

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 9:09 am
by welshy
ric_rpi
Its just a 'default' cfg produced when running mupen64plus, but I can post if you so wish.

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 9:11 am
by ric_rpi
OK, I'll try the default later then

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 9:15 am
by KitchUK
I've contacted Florian (petRockBlog) to see if he can add this emualator to the RetroPie script.

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 9:18 am
by welshy
KitchUK
I would ask ric_rpi first as he is still developing the code, i.e. its not finished!

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 9:25 am
by ric_rpi
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.

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 9:35 am
by KitchUK
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.

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Wed Oct 02, 2013 11:58 am
by teeth_03
What would really be nice is if it was added at a RetroArch core so you didn't need to configure the controls separately...

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Thu Oct 03, 2013 10:14 am
by chrische
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.

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Thu Oct 03, 2013 10:38 am
by welshy
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).

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Thu Oct 03, 2013 11:55 am
by chrische
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 :-)

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Thu Oct 03, 2013 2:05 pm
by forenbenutzer
Pics or it didn't happen. :)

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Thu Oct 03, 2013 2:16 pm
by welshy
forenbenutzer
"But it did happen, hey it was me who stole my Dad's Keys!"

Just compile it yourself, no further 'Proof' needed!

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Fri Oct 04, 2013 8:30 am
by forenbenutzer
I have no "free" rpi at the moment. :| Anyone with screenshots?

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Fri Oct 04, 2013 8:34 am
by ric_rpi
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 ...

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Sat Oct 05, 2013 9:17 am
by gyeben
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! :)

Re: Mupen64Plus - N64 Emulator for the Pi

Posted: Sat Oct 05, 2013 10:19 am
by welshy
gyeben
It should build without issues installing only SDL libraries (libsdl1.2-dev).