Page 2 of 4

Re: SDL & Linux ARM

Posted: Thu Jan 25, 2018 6:38 pm
by Allanon
Andreas & SamuraiCrow thank you both for your time :)

This time the program runs without errors and artifacts, the frame rate is still a bit low but I have to compare it how it performs on the pi2, there is not much on the screen a part the background rendered as an hardware brush at each frame and some smaller hardware brushes on the screen.

Anyway thank you again, at least there are no errors or glitches :)

Re: SDL & Linux ARM

Posted: Thu Jan 25, 2018 7:01 pm
by SamuraiCrow
When I tried the demos from RebelSDL, they worked on the ODroid but the frame rate was many times faster than what they were supposed to be.

Re: SDL & Linux ARM

Posted: Thu Jan 25, 2018 9:07 pm
by Allanon
I will try them on my odroid just to be sure that my distro isn't messed up :)

Re: SDL & Linux ARM

Posted: Sun Jan 28, 2018 9:49 pm
by airsoftsoftwair
SamuraiCrow wrote:When I tried the demos from RebelSDL, they worked on the ODroid but the frame rate was many times faster than what they were supposed to be.
If that is the case, maybe the ODroid doesn't support correct vsyncing? In that case you'd have to implement a manual throttle because by default all those RebelSDL examples expect vsync to be working so there is no throttle because they expect the double buffer to be flipped with the vsync.

Re: SDL & Linux ARM

Posted: Fri Feb 02, 2018 5:45 pm
by SamuraiCrow
testing from the command line reveals an error message:
ALSA lib pcm.c:7963:(snd_pcm_recover) underrun occurred
It runs the correct speed until this error message is given a split-second later.

Re: SDL & Linux ARM

Posted: Sat Feb 03, 2018 12:07 pm
by airsoftsoftwair
Hmm, which example are you talking about? Does it even use sound? If it does, have you tried disabling sound and see if it works correctly then?

Re: SDL & Linux ARM

Posted: Sat Feb 03, 2018 12:38 pm
by SamuraiCrow
It was the Beast scrolled. I'll try without music tomorrow.

Re: SDL & Linux ARM

Posted: Sat Feb 03, 2018 6:06 pm
by SamuraiCrow
Flase alarm. It wasn't the audio, it was pausing when I moved the mouse over the window.

Re: SDL & Linux ARM

Posted: Thu Feb 08, 2018 8:50 pm
by airsoftsoftwair
My bet is that this is an issue in the GL driver on the Odroid. Can you try to compile SDL2 and its samples on the Odroid and see if they show the same issue?

Re: SDL & Linux ARM

Posted: Mon Feb 12, 2018 4:50 pm
by SamuraiCrow
It appears to be a driver issue. The --vsync option on ./testgles and ./testgles2 did nothing and the framerate was stuck at 400+ FPS.