Page 2 of 2

Re: SDL VS SFML

Posted: Mon May 24, 2010 6:16 am
by Xeno
K-Bal wrote:
Xeno wrote:SFML may be written in c++ but it's just as easy to incorporate SDL into a c++ project in an OO manner.
You will see yourself writing wrapper classes that look similar to SFML.
Also for everyone saying SDL only has software rendering, well you can pass the SDL_HWSURFACE flag to change that, or alternatively the SDL_OPENGL flag, and then use straight opengl calls like glBegin(GL_QUADS); e.t.c.
Using pure OpenGL is always possible if you can create a render context. I don't think that this is an argument.
Well i'm not really arguing that SDL is better than SFML, I'm just showing how they are more or less equivalent with the only major difference being syntax.

Re: SDL VS SFML

Posted: Mon May 24, 2010 9:22 am
by Ginto8
Xeno wrote:SFML may be written in c++ but it's just as easy to incorporate SDL into a c++ project in an OO manner.
Wrong. Like K-Bal said, you'll basically rewrite something almost equivalent to SFML, just limited by a single window and SDL's feature-lacking blitting. Also, saying that SDL is better because it can be used in C is just as wrong; SFML has a C interface that provides the same amount of functionality as the C++ binding. Overall, SFML is better, but, as I said, more people have used SDL and it has practically become the standard, and changing standards is quite difficult.

Re: SDL VS SFML

Posted: Mon May 24, 2010 9:32 am
by Falco Girgis
Ginto8 wrote:SFML is:
  • faster
orly? Because I'm calling bullshit...

Your "speed" comparisons are unfair at best. You're only comparing SDL's software blitting to SFML's hardware accelerated rendering. SDL is an entire low level multimedia library. I have a hard time seeing an extremely object oriented framework like SFML really outperforming SDL.

SDL's video subsystem is software based by design. There are times and places where this is desirable. Extending SDL with OpenGL THEN making the comparison is far more fair.

Re: SDL VS SFML

Posted: Mon May 24, 2010 9:44 am
by Ginto8
GyroVorbis wrote:
Ginto8 wrote:SFML is:
  • faster
orly? Because I'm calling bullshit...

Your "speed" comparisons are unfair at best. You're only comparing SDL's software blitting to SFML's hardware accelerated rendering. SDL is an entire low level multimedia library. I have a hard time seeing an extremely object oriented framework like SFML really outperforming SDL.

SDL's video subsystem is software based by design. There are times and places where this is desirable. Extending SDL with OpenGL THEN making the comparison is far more fair.
OK. You have a point. I'm not saying that it is any better if you're using OpenGL directly (in fact it's probably worse), but it IS true that its rendering is much faster, and yes, that is primarily due to it being hardware-accelerated. However, there are a lot of people that DON'T use OpenGL directly, and just want an easy and fast rendering and windowing library. So for people like that, SFML is far superior. For people who prefer OpenGL, SDL is marginally faster.

Re: SDL VS SFML

Posted: Mon May 24, 2010 9:48 am
by avansc
SFML has a C library, also, you could argue the exact same thing with SFML and GL.

Personally i dont think the speeds are relevent enough to bitch, both for the most part do things in immediate mode. so both are relativly slow in what can be done. SFML is much more feature rich in the core lib, i know SDL has a slew of addons that made it decent. Im curious to see if SFML does the batchrendering, im assuming that means using FBO and what not.

In the end its really a moot point, because no one concerned with speed is going to use either directly for rendering. That being said, in most cases either will perform perfectly fine for small indy games. Just find one you like and use that.

Re: SDL VS SFML

Posted: Mon May 24, 2010 10:39 am
by RyanPridgeon
Ugh, this thread is so stupid.

Re: SDL VS SFML

Posted: Mon May 24, 2010 1:14 pm
by dandymcgee
K-Bal wrote:
Xeno wrote:SFML may be written in c++ but it's just as easy to incorporate SDL into a c++ project in an OO manner.
You will see yourself writing wrapper classes that look similar to SFML.
For me, I see writing these wrapper classes on my own as valuable experience and having more control over the things that are powering my project. If I didn't care about having control I would use C#.

That being said, I think SFML is better suited for someone looking to create a game without wanting to spend as much time on basic OO design concepts ( like writing a Sprite class ).

Re: SDL VS SFML

Posted: Mon May 24, 2010 6:22 pm
by Live-Dimension
RyanPridgeon wrote:Ugh, this thread is so stupid.
Why?

Re: SDL VS SFML

Posted: Tue May 25, 2010 4:21 am
by K-Bal
dandymcgee wrote:
K-Bal wrote:
Xeno wrote:SFML may be written in c++ but it's just as easy to incorporate SDL into a c++ project in an OO manner.
You will see yourself writing wrapper classes that look similar to SFML.
For me, I see writing these wrapper classes on my own as valuable experience and having more control over the things that are powering my project. If I didn't care about having control I would use C#.

That being said, I think SFML is better suited for someone looking to create a game without wanting to spend as much time on basic OO design concepts ( like writing a Sprite class ).
So tell me why my game with SFML has already about 50 classes and I'm polymorphing my ass off ;)

Re: SDL VS SFML

Posted: Tue May 25, 2010 9:23 am
by dandymcgee
K-Bal wrote: So tell me why my game with SFML has already about 50 classes and I'm polymorphing my ass off ;)
I didn't say you couldn't, I said you didn't have to.

Re: SDL VS SFML

Posted: Tue May 25, 2010 9:57 am
by Live-Dimension
It may be interesting for me to point out that with all the time I've spent with SFML, I kinda would prefer SDL if it had the same feature list as SFML. It always seems a shame to extend xyz SFML class just to add a few functions/methods, and creating wrapper classes for SFML classes is also abit strange.

I'm considering maybe giving the SFML C port a try for this very reason. Yeah, it might sound weird, but I don't like how much of a framework SFML provides. Then again, if I had the time i'd actually be making my own OpenGL 2D engine :lol:.