SDL & Linux ARM

Discuss SDL programming with the RebelSDL plugin here

Re: SDL & Linux ARM

Postby 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 :)
User avatar
Allanon
 
Posts: 435
Joined: Sun Feb 14, 2010 8:53 pm
Location: Italy

Re: SDL & Linux ARM

Postby 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.
SamuraiCrow
 
Posts: 124
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: SDL & Linux ARM

Postby 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 :)
User avatar
Allanon
 
Posts: 435
Joined: Sun Feb 14, 2010 8:53 pm
Location: Italy

Re: SDL & Linux ARM

Postby 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.
User avatar
airsoftsoftwair
 
Posts: 2415
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: SDL & Linux ARM

Postby 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.
SamuraiCrow
 
Posts: 124
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: SDL & Linux ARM

Postby 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?
User avatar
airsoftsoftwair
 
Posts: 2415
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: SDL & Linux ARM

Postby SamuraiCrow » Sat Feb 03, 2018 1:38 pm

It was the Beast scrolled. I'll try without music tomorrow.
SamuraiCrow
 
Posts: 124
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: SDL & Linux ARM

Postby 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.
SamuraiCrow
 
Posts: 124
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: SDL & Linux ARM

Postby 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?
User avatar
airsoftsoftwair
 
Posts: 2415
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: SDL & Linux ARM

Postby 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.
SamuraiCrow
 
Posts: 124
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Previous

Return to RebelSDL

Who is online

Users browsing this forum: No registered users and 1 guest