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.
-
- Posts: 24
- Joined: Wed Feb 22, 2023 5:39 am
-
- 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
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!
-
- 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
@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.
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.
-
- 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
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!
Re: Is it possible to run a Java videogame with Open GL on Raspberry Pi OS 32 bit without Desktop environment
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.