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 10:56 am

welshy wrote:It should build without issues installing only SDL libraries (libsdl1.2-dev).
That's true.
I installed libsdl1.2-dev from a .deb package, and forgot to install the dependencies (which include libglu1-mesa-dev and libx11-dev, for example). D'oh! ;)

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

Re: Mupen64Plus - N64 Emulator for the Pi

Sun Oct 06, 2013 9:34 am

Wich dependencies are necessary to compile? Can't get to compile after installling the SDL libraries.

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

Re: Mupen64Plus - N64 Emulator for the Pi

Sun Oct 06, 2013 10:09 am

That's odd, I compiled with no problems using the latest Wheezy Image (2013-09-25), completing the 'Fix' (See Here - http://www.raspberrypi.org/phpBB3/viewt ... 78&t=57035), then the only dependency I installed was SDL (libsdl1.2-dev). Don't forget to apt-get update either so the SDL dependences download/install correctly.
"The list of things I have heard now contains everything!"

marqs
Posts: 211
Joined: Sat Jun 09, 2012 11:34 am

Re: Mupen64Plus - N64 Emulator for the Pi

Sun Oct 06, 2013 1:42 pm

I get this to compile and run (even with real N64 controller connected to GPIO), but unable get performance on the level mentioned in earlier posts. Mario64 startscreen results to around 30-40 VI/s, even though I have moderately high overclock (1GHz ARM, 400MHz GPU/core, 500MHz sdram) and disable sound+pads.

Lauszus
Posts: 7
Joined: Tue Feb 12, 2013 12:40 am

Re: Mupen64Plus - N64 Emulator for the Pi

Sun Oct 06, 2013 2:35 pm

marqs wrote:I get this to compile and run (even with real N64 controller connected to GPIO), but unable get performance on the level mentioned in earlier posts. Mario64 startscreen results to around 30-40 VI/s, even though I have moderately high overclock (1GHz ARM, 400MHz GPU/core, 500MHz sdram) and disable sound+pads.
I also tried the code with medium overclock, but I also had problems with latency. Btw how did you disable the sound and pads?

@ric_rpi thanks for all your hard work!

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

Re: Mupen64Plus - N64 Emulator for the Pi

Sun Oct 06, 2013 3:51 pm

The speed is very dependant on window resolution and the timings mentioned earlier were when using 640x480 in cfg file. The sound plug-in reduces the fps by around 10. A capture from 'top' may allow us to diagnose the problem.

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

Re: Mupen64Plus - N64 Emulator for the Pi

Mon Oct 07, 2013 1:30 pm

Lauszus
The easiest way is to just take the 'plugin-name' .so file from the Test folder, mupen will then just run without that plugin.
"The list of things I have heard now contains everything!"

marqs
Posts: 211
Joined: Sat Jun 09, 2012 11:34 am

Re: Mupen64Plus - N64 Emulator for the Pi

Mon Oct 07, 2013 4:16 pm

Lauszus wrote:Btw how did you disable the sound and pads?
I changed AudioPlugin and InputPlugin to "dummy" in ~/.config/mupen64plus/mupen64plus.cfg

Lauszus
Posts: 7
Joined: Tue Feb 12, 2013 12:40 am

Re: Mupen64Plus - N64 Emulator for the Pi

Mon Oct 07, 2013 4:22 pm

Thanks to both of you. I didn't thought it would be that simple :)

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

Re: Mupen64Plus - N64 Emulator for the Pi

Mon Oct 07, 2013 8:11 pm

More updates, the screen is now scaled up to fit the tv. The resolution is set in the cfg file but would recommend keeping it low.

I have also been cutting my teeth on some assembler and managed to gain another 5 fps in the graphics plugin.

Lauszus
Posts: 7
Joined: Tue Feb 12, 2013 12:40 am

Re: Mupen64Plus - N64 Emulator for the Pi

Mon Oct 07, 2013 8:47 pm

ric_rpi wrote:More updates, the screen is now scaled up to fit the tv. The resolution is set in the cfg file but would recommend keeping it low.

I have also been cutting my teeth on some assembler and managed to gain another 5 fps in the graphics plugin.
I just tried to build it, but I think you forgot to add rpiGLES.c and rpiGLES.h?

tinkernaut
Posts: 74
Joined: Fri May 10, 2013 5:58 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Mon Oct 07, 2013 11:45 pm

Yep, I also seem to be missing the rpiGLES.h file.

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 7:12 am

Missing files should be in repo now.

Just a word of warning, I have found it difficult to close the application as it runs full screen and Ctrl+C doesn't work (I assume due to X windows).

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 7:12 am

I've not built or tried this emulator yet as I want to wait until it's finished, but what is the current average fps with sound currently at?

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 8:20 am

The sound won't work constantly until an average of 60 fps is achieved. I currently get ~45fps with the Legend of Zelda but other games may be playable with sound now.

I still need to integrate keyboard/mouse input and there are several issues with X windows I need to fix.

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 8:29 am

Did the orignal N64 games run at 60fps?

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 9:17 am

They do with mupen64plus on a PC in the UK.

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 2:46 pm

ric_rpi wrote: Just a word of warning, I have found it difficult to close the application as it runs full screen and Ctrl+C doesn't work (I assume due to X windows).
Yup it corrupted my card! However, if running straight from Console Ctrl Alt Delete will reboot the RPi safely.

KitchUK
The NTSC console (JAP/UAS) did, the UK version however ran at 50 FPS due to the 50Hz Frequency PAL TV system (As did most consoles and computers using TV Modulators until the late 90's) and if the code wasn't optimised the Image wasn't fullscreen either due to having more scan lines* (it wasn't because they were Widescreen!).

* NTSC 525 (486 Visible) PAL 625 (576 Visible)
"The list of things I have heard now contains everything!"

marqs
Posts: 211
Joined: Sat Jun 09, 2012 11:34 am

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 3:13 pm

welshy wrote:KitchUK
The NTSC console (JAP/UAS) did, the UK version however ran at 50 FPS due to the 50Hz Frequency PAL TV system (As did most consoles and computers using TV Modulators until the late 90's) and if the code wasn't optimised the Image wasn't fullscreen either due to having more scan lines (it wasn't because they were 'Widescreen!).
Let's not mix fps and Hz. While NTSC N64 games are 60Hz and PAL games 50Hz, only a handful of games ran at full 60/50fps (F-Zero X is the only one that comes to my mind). Most games updated the screen only at every other or third vertical sync interrupt (results to 30/20fps on ntsc).
Last edited by marqs on Tue Oct 08, 2013 3:17 pm, edited 1 time in total.

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 3:14 pm

welshy wrote:
ric_rpi wrote: Just a word of warning, I have found it difficult to close the application as it runs full screen and Ctrl+C doesn't work (I assume due to X windows).
Yup it corrupted my card! However, if running straight from Console Ctrl Alt Delete will reboot the RPi safely.

KitchUK
The NTSC console (JAP/UAS) did, the UK version however ran at 50 FPS due to the 50Hz Frequency PAL TV system (As did most consoles and computers using TV Modulators until the late 90's) and if the code wasn't optimised the Image wasn't fullscreen either due to having more scan lines (it wasn't because they were 'Widescreen!).
Sorry about that, I'll see if I can get it drawing in a window instead of full screen to make closing it easier.

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 3:26 pm

ric_rpi
No Probs! That's testing for you!
"The list of things I have heard now contains everything!"

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 3:29 pm

marqs wrote:
welshy wrote:KitchUK
Let's not mix fps and Hz. While NTSC N64 games are 60Hz and PAL games 50Hz, only a handful of games ran at full 60/50fps (F-Zero X is the only one that comes to my mind). Most games updated the screen only at every other or third vertical sync interrupt (results to 30/20fps on ntsc).
Agreed, it all gets very complicated for the non-technical, I was trying to summerise for simplicity without writing a whole page of exposition!
"The list of things I have heard now contains everything!"

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

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 4:20 pm

ric_rpi
Update - Running from Console Ctrl & c quits with no issues. Users just be aware running in XWindows doesn't allow quit or reboot resulting in possible Card Corruption (As happened to me!).
"The list of things I have heard now contains everything!"

mystara
Posts: 1
Joined: Tue Oct 08, 2013 4:27 pm

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 4:31 pm

ric_rpi
I literally made an account to tell you that these projects are the reason I'm planning on a minor in CS; seriously awesome work!

I'll be sure to post my input for your debugging, as with my limited knowledge of CS, that's probably the most I can do. Keep it up!

User avatar
liz
Raspberry Pi Foundation Employee & Forum Moderator
Raspberry Pi Foundation Employee & Forum Moderator
Posts: 5189
Joined: Thu Jul 28, 2011 7:22 pm
Contact: Website

Re: Mupen64Plus - N64 Emulator for the Pi

Tue Oct 08, 2013 7:16 pm

mystara wrote:ric_rpi
I literally made an account to tell you that these projects are the reason I'm planning on a minor in CS; seriously awesome work!
You have *no idea* how good that makes us feel - thank you very much, and good luck with the CS part of your course!
Director of Communications, Raspberry Pi

Return to “Gaming”