Release Mupen64 Config Testing


PokeParadox

Founder of Pirate Games - Penjin Coder
Staff member
Joined
Dec 8, 2005
Messages
6,603
Age
40
Location
UK
Website
pokeparadox.itch.io
WEBSITE
https://github.com/pokeparadox
YOUTUBE
pokeparadox
Hi guys,


We all know that mupen64 can be a little hit and miss about what it can run well... and the default config is pretty... shit.


So the idea is that we try and collaborate here to get a GOOD default configuration that can be included in the PND when we are ready so that the default experience for someone wanting to play some N64 goodness will be better...


So attached to this post is what I have to start us off!


gles2n64.conf

#gles2n64 Graphics Plugin for N64


#by Orkin / glN64 developers and Adventus.


config version=2


#Screen Settings:


screen width=800


screen height=480


#Window Settings:


window enable x11=1


window fullscreen=1


window centre=1


window xpos=0


window ypos=0


window width=640


window height=480


#Framebuffer Settings:


framebuffer enable=0


framebuffer bilinear=0


framebuffer width=320


framebuffer height=240


#VI Settings:


video force=0


video width=320


video height=240


#Render Settings:


enable fog=0


enable primitive z=1


enable lighting=1


enable alpha test=1


enable clipping=0


enable face culling=1


enable noise=0


#Texture Settings:


texture 2xSAI=0


texture force bilinear=0


texture max anisotropy=0


texture use IA=0


texture fast CRC=1


texture pow2=1


#Frame skip:


auto frameskip=1


auto maxskip=2


auto minskip=1


auto adjust fps=1


auto delay frames=6


auto upper trigger=1200


auto lower trigger=600


target FPS=25


frame render rate=1


vertical sync=0


#Other Settings:


update mode=1


ignore offscreen rendering=0


force screen clear=0


flip vertical=0


#Hack Settings:


hack banjo tooie=0


hack zelda=0


hack alpha=0


hack pilotwing=0


hack papermario=0


hack z=0

I used 320x240 to give an aspect correct image, frameskipping is enabled using tweaks by Wally and a little bit more tweaking by myself, seems to run games nicely on my CC-256MB Pandora.


gles2n64rom.conf (rom specific settings)

#rom specific settings


rom name=SUPER MARIO 64


target FPS=25


rom name=SM64 Star Road


target FPS=25


enable lighting=0


rom name=Kirby64


target FPS=25


rom name=Banjo-Kazooie


framebuffer enable=1


update mode=4


target FPS=25


rom name=BANJO TOOIE


hack banjo tooie=1


ignore offscreen rendering=1


framebuffer enable=1


frame render rate=3


update mode=4


rom name=STARFOX64


window width=694


window height=520


target FPS=25


rom name=MARIOKART64


target FPS=25


rom name=THE LEGEND OF ZELDA


frame render rate=2


texture use IA=0


hack zelda=1


target FPS=15


rom name=ZELDA MAJORA'S MASK


frame render rate=2


texture use IA=0


hack zelda=1


rom name=F-ZERO X


window width=694


window height=520


target FPS=50


rom name=WAVE RACE 64


window width=694


window height=520


target FPS=25


rom name=SMASH BROTHERS


framebuffer enable=1


window width=694


window height=520


target FPS=25


rom name=1080 SNOWBOARDING


update mode=2


target FPS=25


rom name=PAPER MARIO


update mode=4


rom name=STAR WARS EP1 RACER


video force=1


video width=320


video height=480


rom name=JET FORCE GEMINI


framebuffer enable=1


update mode=2


ignore offscreen rendering=1


target FPS=25


rom name=RIDGE RACER 64


window width=694


window height=520


enable lighting=0


target FPS=25


rom name=Diddy Kong Racing


target FPS=25


rom name=MarioParty


update mode=4


rom name=MarioParty3


update mode=4


rom name=Beetle Adventure Rac


window width=694


window height=520


target FPS=25


rom name=EARTHWORM JIM 3D


frame render rate=2


rom name=LEGORacers


rom name=GOEMONS GREAT ADV


window width=694


window height=520


frame render rate=2


rom name=Buck Bumble


window width=694


window height=520


rom name=BOMBERMAN64U2


window width=694


window height=520


rom name=ROCKETROBOTONWHEELS


window width=694


window height=520


frame render rate=2


rom name=GOLDENEYE


force screen clear=1


framebuffer enable=1


window width=694


window height=520


target FPS=25


rom name=Mega Man 64


framebuffer enable=1


target FPS=25


rom name=Pilot Wings64


window width=694


window height=520


hack pilotwing=1


target FPS=25


rom name=Dexanoid - ProtestD


target FPS=25


ignore offscreen rendering=0


enable lighting=0


framebuffer enable=0


rom name=Killer Instinct Gol


target FPS=25

I have added a couple of tweaks to get other ROMs working/improve performance. Note that here we can correct aspect on a per-game basis too to get rid of black borders...


EDIT: Added 4:3 Aspect corrections to all the games that already had a custom resolution. Thanks to dgame.


notaz_audio.conf

# minimum sample rate to use. Higher values sound better on Pandora's DAC.


minimum_rate = 8000


# sound playback speed compared to normal (10-200%)


# this will affect gameplay speed and sound pitch


pich_percent = 100

I have set minimum rate to 8000 because this will squeeze even a tiny bit more performance out of the emulator since it won't upsample the sounds. Basically it will play the sounds at their native rate.


ppsp_input.conf

#PPSP Input Plugin for N64


#by JayFoxRox and Adventus.


#These values specify the analog mapping:


N64 ANALOG=ANALOG LEFT


#These values specify the button mapping:


N64 DPAD UP=BUTTON DPAD UP


N64 DPAD DOWN=BUTTON DPAD DOWN


N64 DPAD LEFT=BUTTON DPAD LEFT


N64 DPAD RIGHT=BUTTON DPAD RIGHT


N64 A=BUTTON RIGHT


N64 B=BUTTON DOWN


N64 L=KBOARD P


N64 R=BUTTON R


N64 Z=BUTTON L


N64 C UP=ANALOG RIGHT UP : 64


N64 C DOWN=ANALOG RIGHT DOWN : 64


N64 C LEFT=ANALOG RIGHT LEFT : 64


N64 C RIGHT=ANALOG RIGHT RIGHT : 64


N64 START=BUTTON START


EXIT EMULATOR=KBOARD ESC


#These values specify the analog calibration function


#in = [0,255], out = [0, 255]


#out = in*v[0] + in^2 * v[1] + in^3 * v[2] ....


CALIB LEFT[0]=0.000000


CALIB LEFT[1]=0.000000


CALIB LEFT[2]=1.000000


CALIB LEFT[3]=1.000000


CALIB RIGHT[0]=0.000000


CALIB RIGHT[1]=0.000000


CALIB RIGHT[2]=1.000000


CALIB RIGHT[3]=1.000000

Finally I have tweaked the controls so that ESCAPE (FN + Q) quits the emulator and drops you back to PickleLauncher. AND I have fixed Nub control to give you the full range of sensitivity... it would appear that the values were reversed all this fucking time... >_>


EDIT: dgame suggested the Escape key would be better to avoid accidental presses.


Please give feedback, improvements on these configs and please test them out!
 
Last edited by a moderator:
@ ppsp_input.conf:


I really don't get these calibration variables. According to the comment above them the output is a polynomial function out(in)=in*CALIB_X[0] + in^2 * CALIB_X[1] + in^3 * CALIB_X[2] + in^4 * CALIB_X[3] (or the other way around as you said... The more I try the more I think you're right.) What is the maximum output value of the nubs? 32 like in the input tester or 255 (in=[0,255])? Logically you'd need to tweak the function to roughly have out(32)=255 or out(255)=255 but nothing I try makes sense ingame :eek: One of best sets of values I could find for Ocarina of Time was CALIB_LEFT[0]=0.4, [1]=0.25, [2]=0, [3]=0.
 
To be honest I can't say I understand the values - but in my oppinion, the values that I posted at least give desirable results for in-game. Please try it - Load this config or modify your own and then load up Mario 64 or any other game where you can test fine analogue control and try to tip toe, then gradually push a bit further. You'll find that my config lets you do this just fine.
 
As I see there's at least some interest in N64 Emulation now.


Isn't there any developer willing to end Stradian's work and update the emulator?


Let's go to topic:


C-Buttons:


I want to use


Y for C down


9 for C left


0 for C Up


Backspace for C right.


3 of them wirk but 0 doesn't.


What do I have to do to map 0 as C up.


I tried "Kboard 0" and "Kboard Zero". Both don't work.


"Kboard 9" and "Kboard backspace" work fine.
 
Tnx a lot for the settings, the games run a lot better now :)


I tested it on a 1ghz unit on 1100 mhz.
 
Last edited by a moderator:
Thanks a lot! Now i'm finally able to play Harvest Moon 64 - before config tweaking there were only black screens...
 
PokeParadox,


These are really good settings. Goldeneye in particular plays really nice.


Is there a reason the gles2n64rom.conf (rom specific settings) sets some games to 864x520?


Goldeneye loses the correct aspect with the 864x520 setting.


694x520 seems better as it maximizes the screen height with correct (~4:3) aspect ratio.


This is very subjective but in ppsp_input.conf I set "EXIT EMULATOR=KBOARD ESC" to use the Escape key to exit as it requires two keys (Fn,Q) instead of one to quit.


I find it easier to accidentally press Q due to its proximity to Down on the Dpad.


Thanks for the tips!
 
gles2n64rom.conf (rom specific settings)

May I copy this into my config file below the usual stuff or do I have to change it manually before playing the specific game?
This file exists alongside the main config, so no, you don't copy these settings into the main config file - You should have a similar file in appdata already.

These are really good settings. Goldeneye in particular plays really nice.


Is there a reason the gles2n64rom.conf (rom specific settings) sets some games to 864x520?


Goldeneye loses the correct aspect with the 864x520 setting.


694x520 seems better as it maximizes the screen height with correct (~4:3) aspect ratio.


This is very subjective but in ppsp_input.conf I set "EXIT EMULATOR=KBOARD ESC" to use the Escape key to exit as it requires two keys (Fn,Q) instead of one to quit.


I find it easier to accidentally press Q due to its proximity to Down on the Dpad.
Yes there is a good reason - before it was found that the X renderer caused couple of crashes and the framebuffer was enabled, those values pushed the black borders outside of the screen so you had a nice fullscreen(and to aspect) image. Sadly these need adjusting now that the framebuffer is enabled - so please post your tweaks - also I don't know if there is a performance cost to adjusting these values to crop off the black borders, it would be nice if you guys can aso experiment with this too, I will also try and have a look.


I will test your goldeneye screen values - they are probably good.


As for the Escape suggestion - good call that makes sense.


EDIT: I updated the configs on the first post regarding your suggestions. I will put them to the test on my Pandora later.
 
Last edited by a moderator:
I don't have any of the rest of the games installed to test but 696x522 is also good for Goldeneye.


This is an integer scaled value that uses maximum screen height.


The previous values were good as well, but I wasn't sure if any pixels were being left off of the top and bottom of the screen.


With 696x522 the blue line around the bottom of the screen when in-game is at the very edge of the Pandora's screen.


It's also 2 pixels wider than 694x520. :ph34r:


Edit gles2n64rom.conf (rom specific settings):


rom name=GOLDENEYE


force screen clear=1


framebuffer enable=1


window width=696


window height=522


target FPS=25
 
I wonder if the people doing the testing (or someone else) could then update the compatibly list that's linked on the wiki here
 
Last edited by a moderator:
Isn't there any trick or config to play Blast Corps? Man that would be soo awesome. :wub:
 
Isn't there any trick or config to play Blast Corps? Man that would be soo awesome. :wub:
I've not personally had any luck! :( I agree, awesome game! I only got as far as the moon on it.

I wonder if the people doing the testing (or someone else) could then update the compatibly list that's linked on the wiki here

I doubt I'd personally have the time, especially atm. But I want to package the new PND at the end of this week, so bring on the configs(especially per game configs)!
 
Thanks I found the rom specific data.


Most stuff is already what you have.


I don't want to change my window settings to below 840. I like my fullscreen :) .


The audio settings to 8000 gave some noticeable performance boost to me. Tested it with Super Smash Bros. Now I can can play it with sound at least on my Giga Pandora with 1200 MHz. Unfortunately sound is ugly. Better ugly sound than no sound ;) .
 
Playing goldeneye. I get slow downs every now and then.. Same with the music :( I'm running at 1100


Any ideas? I'm assuming I don't need to mess about with the configs??


Also the controls are a nightmare for me :(
 
Stupid question time, do I need to rename my roms to exactly match the rom names mentioned in these config files for them to work under these optimised conditions?
 
Back
Top