Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphics glitches seen in Flycast and Mupen64plus/Next on Amlogic QBox #299

Open
Cee123 opened this issue Sep 21, 2020 · 28 comments
Open

Graphics glitches seen in Flycast and Mupen64plus/Next on Amlogic QBox #299

Cee123 opened this issue Sep 21, 2020 · 28 comments

Comments

@Cee123
Copy link

Cee123 commented Sep 21, 2020

Describe the bug
On Flycast, both Dreamcast and Naomi games can be glitchy. Most games are fine, or have a tiny glitch here and there. But some games are so bad they are basically unplayable. Some examples of what I mean by glitches are like missing textures, flickering, flashing and garbled graphics. Games for example Dynamite Cop, House of the Dead 2, Sega Bass Fishing, Unreal Tournament and Naomi games such as Asian Dynamite, Heavy Metal Geomatrix, both Melty Blood games are unplayable due to massive glitching.

And on Mupen64plus and Mupen64plus Next, there is an issue (not in all games but quite a lot) where distant textures are blacked out or darkened until you get right up close to them. But they are still dark. An example where you would get blackened textures would be in Banjoe Kazooie, Banjo Tooie, Beetle Adventure Racing, Donkey Kong 64, San Francisco Rush.

I'm using the arch64 test build.

To Reproduce
Android Q Box
OpenGles2 I think is the only supported option
Previous builds of Emuelec, up until the latest Arch64 test build
Seen in cores

  • Flycast
  • Mupen64plus
  • Mupen64plus-next

Expected behavior
Should run fine.

Screenshots
image

image

image

20200921_200801-20200921-201813574

20200921_200902-20200921-201811537

20200921_200904-20200921-20181211

GetAttachmentThumbnail

20200921_201328-20200921-201812810

20200921_201335-20200921-201813195

20200921_201603-20200921-201812418

20200921_201658-20200921-201814368

20200921_201733-20200921-201813969

EmuELEC version:
All the versions I've tried. Even on the latest
3.8-TEST-09112020

Device (please complete the following information):
Android 5.1
Amlogic s905 quad-core cortex-A53 2.0 Ghz
Mali-450 5-Core GPU
2GB DDR3 16GB EMMC
2.4G +5G WIFI,802.11 B/G/N
100/1000M LAN
Bluetooth4.0
Hardward 3D graphics acceleration
2K*4K Support
Dolby/ 3G/ SPDIF/ IEC958/ Coaxial

Additional context
Not sure. Any questions I'll be happy to help.

@shantigilbert
Copy link
Collaborator

what CPU is this? I do not know anything about "Q-box"

@Cee123
Copy link
Author

Cee123 commented Sep 22, 2020

what CPU is this? I do not know anything about "Q-box"

Ah yeah, of course sorry. I just looked up the specs for the Android box. I've updated the OP with the details too.

Android 5.1
Amlogic s905 quad-core cortex-A53 2.0 Ghz
Mali-450 5-Core GPU
2GB DDR3 16GB EMMC
2.4G +5G WIFI,802.11 B/G/N
100/1000M LAN
Bluetooth4.0
Hardward 3D graphics acceleration
2K*4K Support
Dolby/ 3G/ SPDIF/ IEC958/ Coaxial

@Cee123
Copy link
Author

Cee123 commented Sep 24, 2020

This is the device I have. (Edit: Sorry about that, I posted an image of the wrong device /facepalm)
https://androidtvbox.eu/sunvell-q-box-review-android-tv-box-powered-amlogic-s905/

image

The image I posted before was of the AllWinner Q Box PLUS (it looks almost identical except for the little + on it). That's the newer model up, I also have one of those but EmuElec isn't supported with that as it's an AllWinner CPU and not Amlogic.

@Cee123
Copy link
Author

Cee123 commented Sep 28, 2020

I think these few issues could be related to libhybris, like it is on Odroid N2.

Amlogic-ng: Goodbye libhybris! - Use proper GLES headers, this fixes some gfx errors on some cores, like Mupen64

@shantigilbert
Copy link
Collaborator

No, this is different, I just haven't had time to test my s905, since its in a box somewhere.

@shantigilbert
Copy link
Collaborator

didn't you said you could not run Mupen64plus-next?

@shantigilbert
Copy link
Collaborator

shantigilbert commented Oct 1, 2020

I just tested all of this on my s905 and I do not have any glitches on the games I tried, if this is only on certain games, this might be an emulator issue and not something I can fix on EmuELEC. Granted I do not have many games as you to test.

Mupen64plus-next is already fixed, at leas the black screen bug you reported on #300

You could also test v3.8 (not aarch64) and see if you have the same issues there so we can narrow it down.

@Cee123
Copy link
Author

Cee123 commented Oct 1, 2020

didn't you said you could not run Mupen64plus-next?

Yeah well I mean in the previous versions when it worked. Sorry.

@Cee123
Copy link
Author

Cee123 commented Oct 19, 2020

I don't know there's anything that can be done to fix this. Did you test out the games that I mentioned, or other ones? Because it seems to be only in those specific games that I mentioned. I'm now thinking it either could be certain drivers or have something to do with this Android Box's inability to accurately render certain features of OpenGles2.0.

@AlienatedDiego
Copy link

I have an s905x and that problem, as you say, is reproduced in some flycast games on old generation Amlogic s905 devices with mali 450. It seems that the drivers are not compatible with the current code. maybe the developer can fix that, but ... I don't think so. Dreamcast emulation seems a bit stagnant now.

@Cee123
Copy link
Author

Cee123 commented Oct 19, 2020

I have an s905x and that problem, as you say, is reproduced in some flycast games on old generation Amlogic s905 devices with mali 450. It seems that the drivers are not compatible with the current code. maybe the developer can fix that, but ... I don't think so. Dreamcast emulation seems a bit stagnant now.

Ahhh ok, interesting. Yeah i didnt think the issue would be confined to one particular tv box. Glad its not just mine and that you've also confirmed this. So it's a driver thing? I thought it could've been something to do with that too. Yeah seems to be a bit hit or miss with Flycast. But fortunately most games don't have these glitches. Have you also noticed a blackening of textures in mupen64plus and mupen64plus-next? Parallel seems to be glitch free.

@AlienatedDiego
Copy link

I do not know it, I use Parallel at 640x480 almost always and I do not see glitches problems except if I have activated the rice plugin, also now in s905x3.

@Cee123
Copy link
Author

Cee123 commented Oct 19, 2020

I do not know it, I use Parallel at 640x480 almost always and I do not see glitches problems except if I have activated the rice plugin, also now in s905x3.

Oh ok, nice. Yeah ive been using parallel as well for most games. Some games like Banjo kazooie and banjo tooie ran too slow even with parallel so i had to turn on rice for those.

@Cee123 Cee123 changed the title Graphics glitches seen in Flycast and Mupen64plus/Next on Android Q Box Graphics glitches seen in Flycast and Mupen64plus/Next on Amlogic QBox Nov 14, 2020
@shantigilbert
Copy link
Collaborator

Is this still an issue? I still cannot reproduce it on my boxes, maybe try the newest versions?

@Cee123
Copy link
Author

Cee123 commented Nov 27, 2020

It still does it. I'll try the newest versions and see what happens.

@Cee123
Copy link
Author

Cee123 commented Nov 27, 2020

Just tried the test version 4 and tested out a particular game that's unplayable due to this issue - Cannon Spike for Naomi, seems to be the same. This is one of the small handful of games with the issue.

20201127_103916-20201127-104002752

20201127_103905-20201127-104002351

I also tried Mupen64plus and Mupen NX to see if they had that blackened textures look, seems to be the same also. It's not such a big deal, since I can fix the problem just by using Parallel instead. Seems to be noticeable on Banjo Kazooie and San Francisco Rush.

20201127_104550-20201127-105002186

20201127_104722-20201127-105003236

20201127_104851-20201127-105002917

20201127_104931-20201127-105002571

It could be an issue with drivers, or even with this box's ability to accurately render certain graphics.

@AlienatedDiego
Copy link

Still there .in my case using s905x / mali 450 graphics .to reproduce in flycast running some like Soul Calibur

@Cee123
Copy link
Author

Cee123 commented Nov 27, 2020

Still there .in my case using s905x / mali 450 graphics .to reproduce in flycast running some like Soul Calibur

Yeah Soul Calibur is another one. Seems to be a bit of glitching there.

@shantigilbert
Copy link
Collaborator

shantigilbert commented Nov 27, 2020

I think this is related to emulators and not emuelec, Flycast "might" get fixed in the future, but I am not sure the issues are related, hence the "might" : libretro/flycast#985 (comment) but for Mupen I have no idea.

@AlienatedDiego
Copy link

In my tests (flycast), that problem in some games was always there, at least since my inception in 3.1. I have always believed that it is something related to emulator / mali 450 graphics. This does not happen on NG devices.

Apart from this, EmuELEC has an outstanding general performance in Amlogic Project, taking into account that in s905x it barely ran android 6.0 well

For my part the thread can be closed; maybe if there are news on flycast it could reopen.

@Cee123
Copy link
Author

Cee123 commented Nov 27, 2020

Interesting. I just tested out Flycast on retroarch for Android and same thing happens. So it's not just EmuElec. But I couldn't test mupen nx because i couldn't get it to stop crashing.

@kage2051
Copy link

Interesting. I just tested out Flycast on retroarch for Android and same thing happens. So it's not just EmuElec. But I couldn't test mupen nx because i couldn't get it to stop crashing.

The libretro core has been updated with a fix for Mali-400/450. Worth testing the new build.

@Cee123
Copy link
Author

Cee123 commented Dec 30, 2020

Interesting. I just tested out Flycast on retroarch for Android and same thing happens. So it's not just EmuElec. But I couldn't test mupen nx because i couldn't get it to stop crashing.

The libretro core has been updated with a fix for Mali-400/450. Worth testing the new build.

Really? Wow, that's great! Fantastic! But which core? Flycast or Mupen Next?

@Cee123
Copy link
Author

Cee123 commented Dec 30, 2020

Interesting. I just tested out Flycast on retroarch for Android and same thing happens. So it's not just EmuElec. But I couldn't test mupen nx because i couldn't get it to stop crashing.

The libretro core has been updated with a fix for Mali-400/450. Worth testing the new build.

Oh i see what you mean now. On the latest EmuElec test build, using the older version of flycast. I just checked the updated page. Cool. I might test it out.

@Cee123
Copy link
Author

Cee123 commented Jan 11, 2021

I tried the next test release but it's still the same. Glitches are still there.

@Langerz82
Copy link
Collaborator

Is this still an issue with 4.6?

@multigamesystem
Copy link

Any word on how to fix this on AML-S905X-CC (Le Potato)? Dreamcast games run really well aside from these weird sky box or background glitches.

@Cee123
Copy link
Author

Cee123 commented Mar 1, 2024

I fixed the shadow/dark patches problem on mupen64plus-next GLES2 by disabling the setting for LOD Emulation under the core options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants