The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
directfb rejected by the preprocessor
andoru


Joined: 23 Mar 2014
Posts: 12
Hello, first time posting here Smile

I've removed PulseAudio from my Debian system I've been trying to compile SDL-1.2 by myself as in turn I wanted to compile a game that it's precompiled versions normally have PulseAudio as a dependency. Although I've been successfull, the game is running very slow (at about 25-30 FPS) and it's basically unplayable.
After digging through the SDL config.log, I found out this:
Code:
checking for directfb-config... /usr/bin/directfb-config
checking directfb.h usability... yes
checking directfb.h presence... no
configure: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: directfb.h: proceeding with the compiler's result


Could this have a connection to my slow performance in-game? If yes then what should I do to fix this issue?

Full log here: http://s000.tinyupload.com/index.php?file_id=45289694825398753174
directfb rejected by the preprocessor
R Manard
Guest

Yes, easily. If this was my code it it would just crash. SDL is probably just coded too well and it tries to handle it but ends up waiting for something that's not going to happen On Mar 24, 2014 10:04 PM, "andoru" wrote:
Quote:
Hello, first time posting here

I've removed PulseAudio from my Debian system I've been trying to compile SDL-1.2 by myself as in turn I wanted to compile a game that it's precompiled versions normally have PulseAudio as a dependency. Although I've been successfull, the game is running very slow (at about 25-30 FPS) and it's basically unplayable.
After digging through the SDL config.log, I found out this:


Code:


checking for directfb-config... /usr/bin/directfb-config
checking directfb.h usability... yes
checking directfb.h presence... no
configure: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: directfb.h: proceeding with the compiler's result




Could this have a connection to my slow performance in-game? If yes then what should I do to fix this issue?

Full log here: http://s000.tinyupload.com/index.php?file_id=45289694825398753174


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

directfb rejected by the preprocessor
Jeffrey Carpenter
Guest

Greetings,

Sadly, it's been several years now since I've been on a Linux box, but *grins* if PulseAudio is anything like it was circa 2009..2010, then you definitely could have troubles (read: performance issues). PulseAudio was notorious for hanging your audio I/O in many different ways (not always its fault, mind you!), which in turn can potentially hang the underlying app, or even crash it.

Of course, under normal circumstances, I'd say your best bet would be to comb through the PulseAudio logs...

Perhaps the developer left debugging flags in the game that could shed some light on the matter?

Cheers,
Jeffrey Carpenter


On 2014/03/ 24, at 11:14, andoru wrote:

Quote:
Hello, first time posting here

I've removed PulseAudio from my Debian system I've been trying to compile SDL-1.2 by myself as in turn I wanted to compile a game that it's precompiled versions normally have PulseAudio as a dependency. Although I've been successfull, the game is running very slow (at about 25-30 FPS) and it's basically unplayable.
After digging through the SDL config.log, I found out this:







Code:
checking for directfb-config... /usr/bin/directfb-config
checking directfb.h usability... yes
checking directfb.h presence... no
configure: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: directfb.h: proceeding with the compiler's result


Could this have a connection to my slow performance in-game? If yes then what should I do to fix this issue?

Full log here: http://s000.tinyupload.com/index.php?file_id=45289694825398753174
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Re: directfb rejected by the preprocessor
andoru


Joined: 23 Mar 2014
Posts: 12
R Manard wrote:
Yes, easily. If this was my code it it would just crash. SDL is probably just coded too well and it tries to handle it but ends up waiting for something that's not going to happen


Alright, but any solutions to this problem? Razz

Jeffrey Carpenter wrote:
Greetings,

Sadly, it's been several years now since I've been on a Linux box, but *grins* if PulseAudio is anything like it was circa 2009..2010, then you definitely could have troubles (read: performance issues). PulseAudio was notorious for hanging your audio I/O in many different ways (not always its fault, mind you!), which in turn can potentially hang the underlying app, or even crash it.

Of course, under normal circumstances, I'd say your best bet would be to comb through the PulseAudio logs...

Perhaps the developer left debugging flags in the game that could shed some light on the matter?


Yes, I can guarantee you that Pulse hasn't changed much, I had the same problems around 2009 and 2010. I still have sound problems, even with Pulse disabled, but I figured I don't need Pulse anyway so I removed it just to make sure I tried it.
Anyway, when I compiled SDL, it wasn't built against Pulse, so that's not the problem, but as the first poster said, it's probably because of SDL not compiling against direcfb which is causing it to run slow. Funny thing is that one time when I tried playing the game it worked just fine with over 120FPS. I have no idea what caused it then to work.
andoru


Joined: 23 Mar 2014
Posts: 12
*bump*
directfb rejected by the preprocessor
MrOzBarry


Joined: 26 Jun 2010
Posts: 620
Are you using debian's pre-packaged directfb or did you build directfb from source?


On Mon, Mar 24, 2014 at 12:14 PM, andoru wrote:
Quote:
Hello, first time posting here

I've removed PulseAudio from my Debian system I've been trying to compile SDL-1.2 by myself as in turn I wanted to compile a game that it's precompiled versions normally have PulseAudio as a dependency. Although I've been successfull, the game is running very slow (at about 25-30 FPS) and it's basically unplayable.
After digging through the SDL config.log, I found out this:



Code:

checking for directfb-config... /usr/bin/directfb-config
checking directfb.h usability... yes
checking directfb.h presence... no
configure: WARNING: directfb.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: directfb.h: proceeding with the compiler's result




Could this have a connection to my slow performance in-game? If yes then what should I do to fix this issue?

Full log here: http://s000.tinyupload.com/index.php?file_id=45289694825398753174


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

andoru


Joined: 23 Mar 2014
Posts: 12
Pre-packaged Debian version.
Code:
$ apt-cache policy libdirectfb*
libdirectfb-extra:
  Installed: 1.2.10.0-5
  Candidate: 1.2.10.0-5
  Version table:
 *** 1.2.10.0-5 0
        500 http://http.debian.net/debian/ testing/main i386 Packages
        500 http://http.debian.net/debian/ wheezy/main i386 Packages
        100 /var/lib/dpkg/status
libdirectfb-bin:
  Installed: (none)
  Candidate: 1.2.10.0-5
  Version table:
     1.2.10.0-5 0
        500 http://http.debian.net/debian/ testing/main i386 Packages
        500 http://http.debian.net/debian/ wheezy/main i386 Packages
libdirectfb-1.2-9:
  Installed: 1.2.10.0-5
  Candidate: 1.2.10.0-5
  Version table:
 *** 1.2.10.0-5 0
        500 http://http.debian.net/debian/ testing/main i386 Packages
        500 http://http.debian.net/debian/ wheezy/main i386 Packages
        100 /var/lib/dpkg/status
libdirectfb-1.2-9-dbg:
  Installed: (none)
  Candidate: 1.2.10.0-5
  Version table:
     1.2.10.0-5 0
        500 http://http.debian.net/debian/ testing/main i386 Packages
        500 http://http.debian.net/debian/ wheezy/main i386 Packages
libdirectfb-bin-dbg:
  Installed: (none)
  Candidate: 1.2.10.0-5
  Version table:
     1.2.10.0-5 0
        500 http://http.debian.net/debian/ testing/main i386 Packages
        500 http://http.debian.net/debian/ wheezy/main i386 Packages
libdirectfb-dev:
  Installed: 1.2.10.0-5
  Candidate: 1.2.10.0-5
  Version table:
 *** 1.2.10.0-5 0
        500 http://http.debian.net/debian/ testing/main i386 Packages
        500 http://http.debian.net/debian/ wheezy/main i386 Packages
        100 /var/lib/dpkg/status
libdirectfb-extra-dbg:
  Installed: (none)
  Candidate: 1.2.10.0-5
  Version table:
     1.2.10.0-5 0
        500 http://http.debian.net/debian/ testing/main i386 Packages
        500 http://http.debian.net/debian/ wheezy/main i386 Packages
andoru


Joined: 23 Mar 2014
Posts: 12
Sorry but... *bump* again...
andoru


Joined: 23 Mar 2014
Posts: 12
Any help...?