PaulsCode Forum

Mupen64Plus AE => Support => Topic started by: lordnicols1 on June 09, 2016, 06:09:50 PM

Title: Low FPS on Mupen64+
Post by: lordnicols1 on June 09, 2016, 06:09:50 PM
Hi! My name is Nicolas and My smartphone is a LG G3 D855 (Snapdragon 801, Adreno 330, 2.5ghz and 2gb ram).
Mupen64+ and N64oid are the most know 64 Emulator for Android. I tested both Of them, and N64oid had an incredible performance while Mupen64 was terrível.
I tested with Zelda OoT, SSB, 007, Mário Kart, Mário 64, Star Fox... All Of them runs much better on n64oid
The problem is... recently i bought another gamepad (i already had one) and n64oid doensn't support 2 controllers (actually it does, but it needs an app called Bluez IME and this app doensn't work since KitKat). Mupen64+ does support multiple controllers but... it's terrible playing on it!!
I tested with many plugins, none Of them can work like n64oid works! Is there a way to improve the Emulator? An specific version?

Obs: Besides running better than mupen64, n64oid run the games with better textures. How can this happen?

Thanks for your attention:)
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 09, 2016, 08:09:54 PM
Please try this build:

https://dri​ve.google.co​m/file/d/0B5​7Ioy26LWegZG​12UTNyYm5XWl​E/view?usp=s​haring

Create a new emulation profile by copying GLideN64 GLES 3.0 profile. In that new profile, use these options (If I don't mention something, leave it default):
Bilinear filtering: Standard
Anisotropic filtering: 0
Texture cache: 100MB
Widescreen hack: off
Noise emulation: on
LOD emulation: on
Per-pixel lightning: off
Persistent storage for compiled shaders: on
Make texrect coordinates continuous: auto
Fix texrect image misalignment: off
Enable frame buffer emulation: on
Swap frame buffers: on buffer update
Copy color buffer to RDRAM : async
Native resolution factor: 3x
Texture filter: smooth 1
Texture enhancement: 4xBRZ
Deposterize texture before enhancement: on

Hit back after you are done.

Click on this new profile and make it default M

Try a game and let me know how it goes.

Title: Re: Low FPS on Mupen64+
Post by: lordnicols1 on June 10, 2016, 11:52:06 AM
Hello again
Well, i can't download this version and i couldb't follow your steps because i don't find the options you Said here onthe  version im using
-------+++++-+++++edit----++++++--++-++---
I found a build on the shoutbox, i don't know if it is the same version you tried to Send me but i found every option you Said
But... the Emulator is slower than before. Super Smash Bros was in slow motion and Diddy Kong Racing and Mário Kart were if black screeb
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 10, 2016, 06:48:37 PM
Hmmm, interesting. My phone is older than yours and I get full speed with GLideN64 GLES 3.0. My phone has a snapdragon 800 with the Adreno 330 GPU.

Does it make a difference if you use the GLES 2.0 version of the plugin?
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 14, 2016, 10:12:30 AM
Please try this build:

https://dri​ve.google.co​m/file/d/0B5​7Ioy26LWegZG​12UTNyYm5XWl​E/view?usp=s​haring

Create a new emulation profile by copying GLideN64 GLES 3.0 profile. In that new profile, use these options (If I don't mention something, leave it default):
Bilinear filtering: Standard
Anisotropic filtering: 0
Texture cache: 100MB
Widescreen hack: off
Noise emulation: on
LOD emulation: on
Per-pixel lightning: off
Persistent storage for compiled shaders: on
Make texrect coordinates continuous: auto
Fix texrect image misalignment: off
Enable frame buffer emulation: on
Swap frame buffers: on buffer update
Copy color buffer to RDRAM : async
Native resolution factor: 3x
Texture filter: smooth 1
Texture enhancement: 4xBRZ
Deposterize texture before enhancement: on

Hit back after you are done.

Click on this new profile and make it default M

Try a game and let me know how it goes.

I would be interested in trying this if I can get better performance on my NVidia Shield Portable, but the link gave an error file not present. Could you provide another link?
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 14, 2016, 10:56:37 AM
Here you go:
https://dri​ve.google.co​m/file/d/0B5​7Ioy26LWegZG​12UTNyYm5XWl​E/view?usp=s​haring (https://dri​ve.google.co​m/file/d/0B5​7Ioy26LWegZG​12UTNyYm5XWl​E/view?usp=s​haring)

The shield portable only supports GLES 2.0 by the way, so you won't see GLES 3.0 in it.
Title: Re: Low FPS on Mupen64+
Post by: lordnicols1 on June 14, 2016, 05:51:19 PM
Hi, i'm back :p
I tried using vídeo plugin Of es 2.0 on OpegGL3 config, and tried to change the OpenGLES2.0 emulation plugin using the configs you put here. Same result, terrible gameplay... :(
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 14, 2016, 06:44:20 PM
What kind of fps are you getting with Mario 64?
Title: Re: Low FPS on Mupen64+
Post by: lordnicols1 on June 14, 2016, 06:56:07 PM
Well, don't know what happened but the Emulator isn't showinf the fps in any option Of touchscreen profile.
I can only say that the games are extremely slow and most Of them are with graphical glitches, i can only see some lines across the screen
But with the standard configs that came with the Emulator the games are working fine, but with low FPS 15~21 (Heavy games runs even more slow(
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 14, 2016, 11:18:10 PM
That's really interesting. The option to show FPS is under display options now. What kind of FPS are you getting with Mario 64 with the settings I posted earlier?
Title: Re: Low FPS on Mupen64+
Post by: lordnicols1 on June 15, 2016, 01:49:35 PM
Hm, good FPS. Mario 64 was about 26-33fps, but with slow motion and with only 1/4 Of the screen being showed, the other 3/4 were Black. Same for Super Smash Bros
Most part Of the time the game was at 29~31 fps (on Mario64, cause on smash Bros the fps was changing all the time)
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 15, 2016, 06:30:01 PM
Can you set native resolution to off and see if that fixes the issue with half of the image being black?
Title: Re: Low FPS on Mupen64+
Post by: lordnicols1 on June 15, 2016, 09:10:59 PM
Ohhh, it works, the screen is ok now. But i still have the slow motion problem. Also, the FPS is low 15~31 on Mário 64, most Of time around 24/25
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 16, 2016, 06:41:47 AM
Yeah, it would be almost impossible to determine the cause of the slow down without having your device in hand.
Title: Re: Low FPS on Mupen64+
Post by: lordnicols1 on June 16, 2016, 06:09:44 PM
Ok, thank you :)
Title: Re: Low FPS on Mupen64+
Post by: lordnicols1 on June 17, 2016, 09:44:53 AM
I have Android 6.0 and i use My SD Card as Adoptable Storage, some games that are on sd Card slow down, but the emulator is on the internal memory, the games are on SD and i don't know how to move, but i don't think that it is the problem
Title: Re: Low FPS on Mupen64+
Post by: lordnicols1 on June 17, 2016, 09:54:57 AM
Can't this help?
Device: Virtual
Id: -1
Descriptor: a718a782d34bc767f4689c232d64d527998ea7fd
Class: BUTTON

Device: qpnp_pon
Id: 1
Descriptor: fb60d4f4370f5dbe8267b63d38dea852987571ab
Class: BUTTON

Device: gpio-keys
Id: 3
Descriptor: 485d69228e24f5e46da1598745890b214130dbc4
Class: BUTTON

Device: max14688
Id: 4
Descriptor: f3bde89cc63661fd1ef5271dd2f7c14e09f61152
Class: BUTTON

Processor   : ARMv7 Processor rev 1 (v7l)
processor   : 0
BogoMIPS   : 38.40

processor   : 1
BogoMIPS   : 38.40

processor   : 2
BogoMIPS   : 38.40

processor   : 3
BogoMIPS   : 38.40

Features   : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt
CPU implementer   : 0x51
CPU architecture: 7
CPU variant   : 0x2
CPU part   : 0x06f
CPU revision   : 1

Hardware   : Qualcomm MSM8974PRO-AC
Revision   : 000a
Serial : XXXX

Board: MSM8974
Brand: lge
Device: g3
Display: MRA58K
Host: LGEACI5R11
ID: MRA58K
Manufacturer: LGE
Model: LG-D855
Product: g3_global_com
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 17, 2016, 07:39:03 PM
That doesn't really help much. Having games in the sdcard will not affect in-game performance. The games are loaded into RAM before they start.
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 21, 2016, 06:02:59 AM
Hi, i'm back :p
I tried using vídeo plugin Of es 2.0 on OpegGL3 config, and tried to change the OpenGLES2.0 emulation plugin using the configs you put here. Same result, terrible gameplay... :(

Maybe I left it too long to check back and download, but I'm getting file does not exist again for your link :-(
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 21, 2016, 06:43:03 PM
Here is the latest one:

https://drive.google.com/file/d/0B57Ioy26LWegdHVodUhhOUhqRHc/view?usp=sharing

Try making a backup of your Mupen64plus-v3-alpha folder in your sdcard, deleting it, uninstalling the app, then installing the latest version. This may help the performance issues. This will delete all your settings and game saves though, you would have to put them back manually from the backup.
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 22, 2016, 08:53:17 AM
fzurita, the version from your Google drive does not work with GlideN64-GLES-2.0 emulation profile on Nvidia Shield Portable (tried Conker and Banjo Kazooie). I just get a black screen but I can hear the audio. I tried Glide64_accurate and that works ok.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 22, 2016, 11:20:24 AM
Ok, looks like something broke in the latest GLideN64. Can you try disabling frame buffer emulation and see if that fixes it?
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 22, 2016, 12:00:34 PM
Disabling frame buffer emulation allowed graphics to be shown, but heavily glitched with moving characters not being erased and white boxes instead of most objects.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 22, 2016, 02:48:47 PM
That's a known issue. Try exiting the game and then re-opening it. Also, make sure that depth buffer emulation is set to disabled in that new build.
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 23, 2016, 04:14:09 AM
With frame and/or depth buffer emulation unchecked and disable buffers read/write with FBInfo checked I'm getting a blank screen with Conker and the white blocks in Diddy Kong Racing
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 23, 2016, 12:01:52 PM
With frame and/or depth buffer emulation unchecked and disable buffers read/write with FBInfo checked I'm getting a blank screen with Conker and the white blocks in Diddy Kong Racing

So other games work ok? The white blocks issue is already known. We need to figure out though, why you are getting a black screen with FB emulation enabled. Have you tried the default GLideN64 2.0 profile? Can you tell me if that one works any better?
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 23, 2016, 07:36:31 PM
Conker, Zelda, Aerogauge are all black screen with both default GlideN64 2.0 and with buffer settings changed. The only game I've tried that produces any graphics is Diddy Kong Racing and only with buffer settings changed and then everything is rough polygons with no textures, all moving objects are white.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 23, 2016, 07:53:54 PM
There are some framebuffer issues that have been identified with GLideN64. I'm testing a fix for it. If it works, I should have a builds soon to test.
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 24, 2016, 10:13:08 AM
Excellent, will look forward to trying it out.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 25, 2016, 12:23:12 AM
Please let me know if this build fixes your black screen problems with frame buffer emulation enabled:

https://drive.google.com/file/d/0B57Ioy26LWegSm9OcDFGSGg5YlU/view?usp=sharing
Title: Re: Low FPS on Mupen64+
Post by: retroben on June 25, 2016, 11:18:26 AM
Anything else unique I could also test that build for? :-\

Also,LOL 420th post! ;D
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 25, 2016, 02:52:16 PM
That build only "improves" frame buffer emulation in GLES 2.0 mode in GLideN64. I dusted off some old devices and it actually seems to have broken FB emulation on old devices. I don't think the build I posted will fix anything.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 25, 2016, 04:36:27 PM
Please try this build: It should fix the black screen:

https://drive.google.com/file/d/0B57Ioy26LWegeFVGMUw1WGtkVzQ/view?usp=sharing
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 27, 2016, 10:42:24 PM
Unfortunately it didn't fix the black screen.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 27, 2016, 11:08:55 PM
Hmm... not good. It will be hard to debug which change broke your device without having it in hand.
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 28, 2016, 11:03:49 AM
That's a shame. I'm using Tendo64 currently because of issues with Mupen64 and that has pretty good frame rate and no issues with GlideN64, perhaps there's some source code available to look at? I understand their project is a Mupen64 port.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 28, 2016, 05:01:05 PM
They are just using an older version that works fine in your device. It's an exact replica of this app with ads that lags behind.

Once they update to the latest version, they will break your device as well.

If you want to use the same build as what they use  you can always go back to this version:

http://www.paulscode.com/source/Mupen64Plus-AE/AutoBuilds/Mupen64PlusAE_master_201604240803_2474cf1.apk
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on June 28, 2016, 06:15:47 PM
Thanks for the info, I'll try the version you listed. I've been struggling with the versions as I had one that worked and later updated and never really got as good performance but I couldn't remember which version I had that was OK. Hopefully this will be it.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on June 29, 2016, 10:46:28 AM
Dr_Bunsen, can you write an issue for what you are experiencing with the Shield Portable here?

https://github.com/gonetz/GLideN64/issues
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on July 05, 2016, 01:06:12 PM
Will do
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 10, 2016, 11:20:08 PM
Dr_Bunsen, can you try this build and tell me if it fixes your graphic glitches?

https://drive.google.com/file/d/0B57Ioy26LWegcnRfd2FOU0JBQ1E/view?usp=sharing
Title: Re: Low FPS on Mupen64+
Post by: hehk1234 on July 17, 2016, 03:52:14 PM
Sir Fzurita, can you explain why N64oid have more performance than Mupen64 ? I love mupen64 because the compatibility is betten than N64oid, but the performance N64oid wins. Can you create topic with the latest beta builds ? Because the server on "autobuilds" is broken, no more updates..... I would like to testando new versions and give you feedback about performance. Thanks sir.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 17, 2016, 06:59:40 PM
N64oid uses a highly optimized version of glN64. Unfortunately, we don't know what they did because they didn't share their source code, which is not legal.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 18, 2016, 12:14:21 AM
@hehk1234 Please see here for the latest auto build:

https://github.com/mupen64plus-ae/mupen64plus-ae/issues/562
Title: Re: Low FPS on Mupen64+
Post by: hehk1234 on July 18, 2016, 08:28:17 AM
Thanks for the info, but I get here the source code from N64oid, if you want I can share with security without cause any problems here.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 18, 2016, 09:20:22 AM
Interesting, I was under the impression that the source code wasn't available. But since you said you had it, I googled it and I found it too right here: https://code.google.com/archive/p/n64oid/source/default/commits

Is that the same thing you found?

I'll take a look at their source code and see what they are doing differently.

Also, is there a specific game that runs a lot faster when using N64oid?

Edit: Hmmm, I was wrong, it's actually based off Rice video plugin.

Edit 2: The source code in the google code webpage is very out of date. hehk1234, do you have a newer version of the source code? I believe he made many improvements after this source code was posted.
Title: Re: Low FPS on Mupen64+
Post by: hehk1234 on July 18, 2016, 06:01:19 PM
Here the latest source code:
https://mega.nz/#!KdJWzaJC!mAhPm1T6kqwUZXDonrZfbK6S7aQiFjf7VJoYdjAZPsI
The password is: hehk1234

Conker bad fur day, run more fast, and sound is smooth. The only problem on N64oid, is compatibility with my joystick Ípega, and It doesn't able to run Rayman 2. But in performance It fly.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 18, 2016, 06:31:49 PM
It seems to be missing the rice video plugin which is where most the performance enhancements are probably at.
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on July 18, 2016, 06:35:42 PM
Dr_Bunsen, can you try this build and tell me if it fixes your graphic glitches?

https://drive.google.com/file/d/0B57Ioy26LWegcnRfd2FOU0JBQ1E/view?usp=sharing

Graphics are showing up with the build you posted, but framerate is very low, at about 5fps max.
Title: Re: Low FPS on Mupen64+
Post by: hehk1234 on July 18, 2016, 06:39:19 PM
So, if you find the plugin, you will try improve muppen64 ?
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 18, 2016, 06:42:55 PM
Dr_Bunsen, can you try this build and tell me if it fixes your graphic glitches?

https://drive.google.com/file/d/0B57Ioy26LWegcnRfd2FOU0JBQ1E/view?usp=sharing

Graphics are showing up with the build you posted, but framerate is very low, at about 5fps max.

Try the latest:

https://drive.google.com/file/d/0B57Ioy26LWegMDVNc2tYY1NINDg/view?usp=sharing
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 18, 2016, 06:45:44 PM
So, if you find the plugin, you will try improve muppen64 ?

Yes, if I could find his latest version I could add the improvements he made to the rice video plugin. The Google code page I found only had source code up to 2011 which I'm not sure is the latest. Either way, I'm going to compare what I found to what we have to see where he made changes.
Title: Re: Low FPS on Mupen64+
Post by: hehk1234 on July 18, 2016, 09:24:32 PM
OK, I hope it works on muppen64. When you finish the beta test, release here please, I would like to test :)
Title: Re: Low FPS on Mupen64+
Post by: hehk1234 on July 18, 2016, 10:02:27 PM
This is latest version N64oid, please compare the game Conker Bad fur day, Muppen64 vs N64oid, with the same plugin "Rice", You Will seen the big difference with them.
http://m.apkhere.com/down/com.androidemu.n64_2.7_paid
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 19, 2016, 06:01:32 PM
Yep, I'm aware performance is better.
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on July 19, 2016, 07:25:45 PM
@fzurita latest build on your google drive is much quicker even in Shield Portable native resolution varying between about 17 and 30fps in conker, however the conker character looks very blocky, it's particularly noticeable on the tail and ears. This is in normal mode.  Widescreen hack doesn't work so well, with severe glitching on conker so that it looks like he's coming apart and some smearing of the background.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 19, 2016, 08:11:29 PM
@Dr_Bunsen, can your mupen64plus.cfg for this game?

Actually, I think I see the problem. The lighting is all wrong.

Do you see any other games with this problem?

Edit: I think I found the problem, please try this build: https://drive.google.com/file/d/0B57Ioy26LWegNWczYWtsR3p3a0U/view?usp=sharing
Title: Re: Low FPS on Mupen64+
Post by: Dr_Bunsen on July 21, 2016, 10:05:54 AM
@fzurita I tried your latest build and it's pretty similar, works fine in normal mode but severe glitches in widescreen in conker. I think the problem is that conker is not really being squeezed back to normal screen proportions as he still looks stretched sideways, but the individual polygon shaped graphics that make him up may be attempting to shrink at times so opens up gaps. The background still also smears in sections.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 22, 2016, 07:07:14 AM
Not all games are meant to run widescreen.
Title: Re: Low FPS on Mupen64+
Post by: hehk1234 on July 25, 2016, 12:20:30 AM
Any progress with source code from N64oid ?
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 25, 2016, 01:43:38 AM
I looked, all the source available doesn't actually have any of his changes. Maybe some day he will release the real source code,
Title: Re: Low FPS on Mupen64+
Post by: hehk1234 on July 25, 2016, 05:46:28 PM
On APK 2.7 N64oid have the plugins, you can try test it on Muppen 64.
Title: Re: Low FPS on Mupen64+
Post by: hehk1234 on July 25, 2016, 06:13:39 PM
I have an idea, if you put on Muppen 64 a options to read external plugins, maybe we can improve a lot of the performance
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 25, 2016, 10:32:05 PM
That's an option. I'll give it a shot. It may or may not work since he could have changed the API.
Title: Re: Low FPS on Mupen64+
Post by: retroben on July 25, 2016, 10:53:48 PM
That would be great because N64oid's Rice is REALLY well polished for speed and visual accuracy,even for how old it is,just compare the two running Smash64 ,unless that issue in AE got fixed.
Title: Re: Low FPS on Mupen64+
Post by: fzurita on July 26, 2016, 07:04:09 PM
I just tried loading the N64oid rice video plugin and it doesn't work. The app crashes right away, it could be because N64oid was based off the Mupen64plus 2.0 instead of 2.5. We are based off Mupen64plus  2.5.