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

New gfx engine won't work on Orange Pi 5 #73

Closed
Fredrum opened this issue Apr 9, 2023 · 3 comments
Closed

New gfx engine won't work on Orange Pi 5 #73

Fredrum opened this issue Apr 9, 2023 · 3 comments

Comments

@Fredrum
Copy link

Fredrum commented Apr 9, 2023

Hello!!
Thank you a million times for making your awesome emulator available for people to try! :)
I just spotted someone posting videos running it on a Orange Pi 5 so I thought I have to try it too on mine!

I just got Sega Rally 2 going to start with and it runs at mostly 60fps when using your legacy 3d engine option. Very Cool!
There are some graphical things that seem broken (like the speedometer and doubling up flickering cars) on the old engine but I'm sure you're aware of that or it's possible that it's the 'Panfork' mesa drivers on my system that's not fully working. (The GPU does not yet have full proper Panfrost support so Armbian has been using this 'Panfork' version)

When I try with the new engine using default or explicit with -new3d it doesn't want to start at all and gives a message,

Error: Unable to create OpenGL context: Could not create GL context: GLXBadFBConfig

The SBC is run on Armbian with Ubuntu gnome desktop.
This is my glxinfo output if you're interested:

name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: Panfrost (0xffffffff)
Device: Mali-G610 (Panfrost) (0xffffffff)
Version: 23.0.0
Accelerated: yes
Video memory: 7689MB
Unified memory: yes
Preferred profile: compat (0x2)
Max core profile version: 0.0
Max compat profile version: 3.0
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.1
OpenGL vendor string: Panfrost
OpenGL renderer string: Mali-G610 (Panfrost)
OpenGL version string: 3.0 Mesa 23.0.0-devel
OpenGL shading language version string: 1.30
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 23.0.0-devel
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10

Cheers and Thanks again this was fun to try!

@Fredrum
Copy link
Author

Fredrum commented Apr 11, 2023

On suggestion by a youtuber I tried using commit 4c727ab and it fixes probably all those gfx glitches under legacy3d mode. Nice.
I can also run Sega Rally 2 with the new gfx mode but like you suggest the frame rate is lower so I'll probably stick with legacy until maybe one day the Mesa drivers for the system gets updated.

Maybe with some granular graphics settings users on lower spec system could benefit from cheaper improvements like texture filtering only without the bigger hit to fps? Or maybe there's other things happening too that are not so easy to break out?

@trzy
Copy link
Owner

trzy commented Apr 12, 2023

I didn't write the new rendering engine but my understanding is that it now requires OpenGL 4.x and therefore will not work on systems that only support OpenGL ES. Apart from the legacy engine, which is unfortunately years out of date, there is probably no simple path to making it work.

@trzy trzy closed this as completed Apr 12, 2023
@dukeeeey
Copy link
Collaborator

I could maybe try and port the engine to opengl ES

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

3 participants