SDL & Linux ARM

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

Re: SDL & Linux ARM

Post 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 :)
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: SDL & Linux ARM

Post 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.
I'm on registered MorphOS using FlowStudio.
User avatar
Allanon
Posts: 732
Joined: Sun Feb 14, 2010 7:53 pm
Location: Italy
Contact:

Re: SDL & Linux ARM

Post by Allanon »

I will try them on my odroid just to be sure that my distro isn't messed up :)
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SDL & Linux ARM

Post 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.
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: SDL & Linux ARM

Post 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.
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SDL & Linux ARM

Post 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?
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: SDL & Linux ARM

Post by SamuraiCrow »

It was the Beast scrolled. I'll try without music tomorrow.
I'm on registered MorphOS using FlowStudio.
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: SDL & Linux ARM

Post by SamuraiCrow »

Flase alarm. It wasn't the audio, it was pausing when I moved the mouse over the window.
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: SDL & Linux ARM

Post 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?
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: SDL & Linux ARM

Post 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.
I'm on registered MorphOS using FlowStudio.
Post Reply