MGDS Studio
Posts: 24
Joined: Wed Feb 22, 2023 5:39 am

Is it possible to run a Java videogame with Open GL on Raspberry Pi OS 32 bit without Desktop environment

Sun May 14, 2023 11:25 am

I have created a videogame for an arcade cabinet. It must use Raspberry Pi 3. I have tested the game on the Raspberry Pi OS 32bit with desktop environment. I want to improve the performance of the videogame and I think I should try to launch it on the Raspberry Pi OS 32bit without Desktop environment to compare the performance. Is it possible?

I have installed a Java (Liberica JDK 17) but by a launch of the game I got an error. If I right understood the game can not create the Open GL window for the game. Can you please explain me what should I install on this Raspberry Pi OS to have the ability to launch my videogame? Is it possible?

The game was created using LibGDX.

NotRequired
Posts: 397
Joined: Sat Apr 29, 2017 10:36 am
Location: Denmark

Re: Is it possible to run a Java videogame with Open GL on Raspberry Pi OS 32 bit without Desktop environment

Sun May 14, 2023 12:48 pm

If you have no desktop environment (DE), you do not have the ability to create windows. If you want your game to run without DE, you must figure out how to create a OpenGL surface which is not bound to a window. My guess is that it is not that simple.
Glowing in the dark!

MGDS Studio
Posts: 24
Joined: Wed Feb 22, 2023 5:39 am

Re: Is it possible to run a Java videogame with Open GL on Raspberry Pi OS 32 bit without Desktop environment

Sun May 14, 2023 6:30 pm

@NotRequered
My customer has an image of one of the old Raspbian operating systems. It has no desktop environment but has the ability to launch created using Löve2D videogames. Löve2D uses OpenGl for the graphic output. That is why I thought that it is possible but I can not launch my videogames on this old OS.

NotRequired
Posts: 397
Joined: Sat Apr 29, 2017 10:36 am
Location: Denmark

Re: Is it possible to run a Java videogame with Open GL on Raspberry Pi OS 32 bit without Desktop environment

Tue May 16, 2023 8:57 am

Sorry for the late reply.. You could take a look at this project which demonstrates how to run an OpenGL app without X/Wayland - whether this can be done with Java I have no clue..
Glowing in the dark!

Heater
Posts: 19415
Joined: Tue Jul 17, 2012 3:02 pm

Re: Is it possible to run a Java videogame with Open GL on Raspberry Pi OS 32 bit without Desktop environment

Sun May 21, 2023 5:04 pm

I have used OpenGL on a Pi with no X or desktop environment installed. It displayed directly into the frame buffer. I used C++ and Qt. So in theory this is possible. Sorry I have no idea how one might do in in Java.
Slava Ukrayini.

Return to “Java”