SDL & Linux ARM

Discuss SDL programming with the RebelSDL plugin here
User avatar
Allanon
Posts: 441
Joined: Sun Feb 14, 2010 8:53 pm
Location: Italy
Contact:

Re: SDL & Linux ARM

Post by Allanon » Thu Jan 25, 2018 7:38 pm

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 :)
----------------------------
[Allanon] Fabio Falcucci
AMC - Creative Development // Docs Site // Support Forum
Support me on Patreon for Hollywood libraries!

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: SDL & Linux ARM

Post by SamuraiCrow » Thu Jan 25, 2018 8:01 pm

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.

User avatar
Allanon
Posts: 441
Joined: Sun Feb 14, 2010 8:53 pm
Location: Italy
Contact:

Re: SDL & Linux ARM

Post by Allanon » Thu Jan 25, 2018 10:07 pm

I will try them on my odroid just to be sure that my distro isn't messed up :)
----------------------------
[Allanon] Fabio Falcucci
AMC - Creative Development // Docs Site // Support Forum
Support me on Patreon for Hollywood libraries!

User avatar
airsoftsoftwair
Posts: 2570
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: SDL & Linux ARM

Post by airsoftsoftwair » Sun Jan 28, 2018 10:49 pm

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.

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: SDL & Linux ARM

Post by SamuraiCrow » Fri Feb 02, 2018 6:45 pm

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.

User avatar
airsoftsoftwair
Posts: 2570
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: SDL & Linux ARM

Post by airsoftsoftwair » Sat Feb 03, 2018 1:07 pm

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?

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: SDL & Linux ARM

Post by SamuraiCrow » Sat Feb 03, 2018 1:38 pm

It was the Beast scrolled. I'll try without music tomorrow.

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: SDL & Linux ARM

Post by SamuraiCrow » Sat Feb 03, 2018 7:06 pm

Flase alarm. It wasn't the audio, it was pausing when I moved the mouse over the window.

User avatar
airsoftsoftwair
Posts: 2570
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: SDL & Linux ARM

Post by airsoftsoftwair » Thu Feb 08, 2018 9:50 pm

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?

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: SDL & Linux ARM

Post by SamuraiCrow » Mon Feb 12, 2018 5:50 pm

It appears to be a driver issue. The --vsync option on ./testgles and ./testgles2 did nothing and the framerate was stuck at 400+ FPS.

Post Reply