Page 1 of 1

Latest Oolite 1.90 on Debian 10

Posted: Tue Apr 30, 2024 9:10 pm
by Pasquale
Hi all, i have downloaded and installed with success Oolite 1.90 on Debian 10, it works very well, however i have noticed sometime problems with keyboard, i have to press a key two or more time to get it working, for example "enter" or "F1", etc... This problem is common with all keys.

Re: Latest Oolite 1.90 on Debian 10

Posted: Tue Apr 30, 2024 9:59 pm
by Cholmondely
Pasquale wrote: Tue Apr 30, 2024 9:10 pm
Hi all, i have downloaded and installed with success Oolite 1.90 on Debian 10, it works very well, however i have noticed sometime problems with keyboard, i have to press a key two or more time to get it working, for example "enter" or "F1", etc... This problem is common with all keys.
Welcome!

Can't help (AppleMac, I'm afraid), but there are many others who can.

Re: Latest Oolite 1.90 on Debian 10

Posted: Wed May 01, 2024 7:14 am
by hiran
Pasquale wrote: Tue Apr 30, 2024 9:10 pm
Hi all, i have downloaded and installed with success Oolite 1.90 on Debian 10, it works very well, however i have noticed sometime problems with keyboard, i have to press a key two or more time to get it working, for example "enter" or "F1", etc... This problem is common with all keys.
I run Oolite on Ubuntu 22 LTS, and I notice after game startup I have to press the first key twice. After that it behaves normally so I never bothered.
Seems to be persistent throughout the game for you?

Unfortunately I have no clue what might be the cause for it.

Re: Latest Oolite 1.90 on Debian 10

Posted: Wed May 01, 2024 10:01 am
by Pasquale
hiran wrote: Wed May 01, 2024 7:14 am
I run Oolite on Ubuntu 22 LTS, and I notice after game startup I have to press the first key twice. After that it behaves normally so I never bothered.
Seems to be persistent throughout the game for you?

Unfortunately I have no clue what might be the cause for it.
It behaves normally also for me, however, if i get time beetween two key press, i have noticed problems, for example after 1 or 2 minutes of relative keyboard inactivity.

Re: Latest Oolite 1.90 on Debian 10

Posted: Wed May 01, 2024 6:55 pm
by hiran
I just looked up the relationships.

Ubuntu 22 is based on bookworm which equals to Debian 12.
If you are on Debian 10 you are more similar to a Ubuntu 18. Looking at the amount of changes that happened meanwhile I am not sure the Linux builds we provide will run there without problems.
https://askubuntu.com/questions/445487/ ... s-based-on

Have you tried compiling yourself?

(and note that Ubuntu 24 LTS has been released. It is just a matter of time until Github will switch to that release to provide the builds)

Re: Latest Oolite 1.90 on Debian 10

Posted: Thu May 02, 2024 9:18 am
by Pasquale
hiran wrote: Wed May 01, 2024 6:55 pm
I just looked up the relationships.

Ubuntu 22 is based on bookworm which equals to Debian 12.
If you are on Debian 10 you are more similar to a Ubuntu 18. Looking at the amount of changes that happened meanwhile I am not sure the Linux builds we provide will run there without problems.
https://askubuntu.com/questions/445487/ ... s-based-on

Have you tried compiling yourself?

(and note that Ubuntu 24 LTS has been released. It is just a matter of time until Github will switch to that release to provide the builds)
No, I downloaded the precompiled binary package for Linux and installed libglu1-mesa, nothing else. It works fine but I have to be "active" all the time, otherwise there are problems with the keys. However, with low details graphics it seems to work better, even the keyboard. I use the universal frame buffer video driver, without acceleration, because the one for my chipset doesn't work on Debian 10.

Re: Latest Oolite 1.90 on Debian 10

Posted: Thu May 02, 2024 3:11 pm
by hiran
Pasquale wrote: Thu May 02, 2024 9:18 am
No, I downloaded the precompiled binary package for Linux and installed libglu1-mesa, nothing else. It works fine but I have to be "active" all the time, otherwise there are problems with the keys. However, with low details graphics it seems to work better, even the keyboard. I use the universal frame buffer video driver, without acceleration, because the one for my chipset doesn't work on Debian 10.
Hmm. Could it be a performance issue? What framerate do you get? Who knows how to activate the display of the framerate?

I still believe the main issue is that you are trying to run code compiled on Ubuntu 22 on a platform more resembling Ubuntu 18.

When looking up relationships I also found pages mentioning the differences between Debian and Ubuntu. I understood that Debian is considered more stable and supporting older computers, whereas Ubuntu is better on current hardware especially when it comes to hardware and drivers. Maybe if you switch your graphics card could run with hardware support.

Re: Latest Oolite 1.90 on Debian 10

Posted: Sun May 05, 2024 8:25 pm
by Pasquale
hiran wrote: Thu May 02, 2024 3:11 pm
...What framerate do you get?...
13 - 15 FPS
hiran wrote: Thu May 02, 2024 3:11 pm
...Maybe if you switch your graphics card could run with hardware support.
The game runs very well on my setup even with fbdev, which is very common in Linux. Only keys sometimes, I don't think recompiling fixes this little problem. I'm a Java programmer and would be happy to see everything ported to it, maybe I'll try to do that in the near future.

Re: Latest Oolite 1.90 on Debian 10

Posted: Sun May 05, 2024 10:02 pm
by hiran
Pasquale wrote: Sun May 05, 2024 8:25 pm
I'm a Java programmer and would be happy to see everything ported to it, maybe I'll try to do that in the near future.
Welcome aboard! We do already have some items covered which you can build on.
OoliteStarter is based on Java and comes with installers for all three operating systems.

Re: Latest Oolite 1.90 on Debian 10

Posted: Mon May 06, 2024 9:00 am
by another_commander
Pasquale wrote: Sun May 05, 2024 8:25 pm

13 - 15 FPS
Looks like you are running on software 3D acceleration; this framerate is extremely low and carries tremendous input lag, which probably explains why keys need to be presses more than once sometimes.

Oolite should easily be able to hit 60+ fps at the very least on any OS (assuming prudent use of oxps). I would suggest a driver upgrade, if possible, to at least ensure that you get hardware graphics acceleration.

Re: Latest Oolite 1.90 on Debian 10

Posted: Mon May 06, 2024 9:50 pm
by hiran
another_commander wrote: Mon May 06, 2024 9:00 am
Looks like you are running on software 3D acceleration; this framerate is extremely low and carries tremendous input lag, which probably explains why keys need to be presses more than once sometimes.
Do I understand correctly the FPS rate is not only used to render the graphics but resembles the speed of the game loop and therefore the rate for polling the input devices?

Re: Latest Oolite 1.90 on Debian 10

Posted: Tue May 07, 2024 11:01 am
by another_commander
hiran wrote: Mon May 06, 2024 9:50 pm
Do I understand correctly the FPS rate is not only used to render the graphics but resembles the speed of the game loop and therefore the rate for polling the input devices?
Render fps and game logic ticks are decoupled, the game can tick up to a minimum of 0.25 sec (which is why you will never see the fps counter dropping below 4). However, when both rendering and game logic are all run on the CPU then decoupled or not is of minor importance. The CPU will simply take the full load and generate whatever frames it can and this is what will result in lag.

Re: Latest Oolite 1.90 on Debian 10

Posted: Tue May 07, 2024 11:24 am
by hiran
another_commander wrote: Tue May 07, 2024 11:01 am
hiran wrote: Mon May 06, 2024 9:50 pm
Do I understand correctly the FPS rate is not only used to render the graphics but resembles the speed of the game loop and therefore the rate for polling the input devices?
Render fps and game logic ticks are decoupled, the game can tick up to a minimum of 0.25 sec (which is why you will never see the fps counter dropping below 4). However, when both rendering and game logic are all run on the CPU then decoupled or not is of minor importance. The CPU will simply take the full load and generate whatever frames it can and this is what will result in lag.
Interesting code architecture.
But the way you describe sounds applicable to one cpu/one process. If rendering and game logic are decoupled, can't they take advantage running on multiple cores?

Re: Latest Oolite 1.90 on Debian 10

Posted: Tue May 07, 2024 11:34 am
by another_commander
hiran wrote: Tue May 07, 2024 11:24 am
Interesting code architecture.
But the way you describe sounds applicable to one cpu/one process. If rendering and game logic are decoupled, can't they take advantage running on multiple cores?
Draw calls on the CPU will always be a lot, lot slower than on GPU no matter how well you might implement multi threading. Plus, Oolite is generally single threaded with just a few selected tasks being offloaded to separate cores (texture loading, logging, sound etc.).

Re: Latest Oolite 1.90 on Debian 10

Posted: Sat May 18, 2024 3:55 pm
by Pasquale
In Debian repository there are two packages, libdirectfb-1.7-7 and libdirectfb-extra, that provide hardware acceleration for most video cards on top of the frame buffer video driver. After installed i noticed better performances however the issue with keys does not seem to be 100% solved, it is better but not solved.