SFML community forums

General => General discussions => Topic started by: pubby8 on October 06, 2010, 01:41:11 am

Title: Should I switch to SFML from SDL?
Post by: pubby8 on October 06, 2010, 01:41:11 am
I am making an opengl game and use SDL for the window, keyboard, and audio. Is it beneficial to switch to SFML?

What I would like:
*Easy key handling
*Multiple windows
*Good audio library

Can SFML do this?

Also, what systems can SFML run on? I know windows and linux, but is mac 100% there? Can it run on any other systems?

Thanks.
Title: Should I switch to SFML from SDL?
Post by: Laurent on October 06, 2010, 08:03:22 am
Quote
*Easy key handling
*Multiple windows
*Good audio library

Can SFML do this?

Yes.

Quote
Also, what systems can SFML run on? I know windows and linux, but is mac 100% there? Can it run on any other systems?

SFML 1.6 supports Mac OS X, and SFML 2.0 will at the time of its public release.
Title: Should I switch to SFML from SDL?
Post by: pubby8 on October 06, 2010, 10:40:09 pm
other issues:

First, I heard that SFML had some issues with memory leaks. Is this something that could still occur?

Will SFML work identically on all systems for things like random numbers and time? I heard some of these functions use floats, which is a big no-no for syncing across platforms.
Title: Should I switch to SFML from SDL?
Post by: Laurent on October 06, 2010, 10:50:50 pm
Quote
First, I heard that SFML had some issues with memory leaks. Is this something that could still occur?

SFML never had major issues with memory leaks. Every memory leak found was always fixed quickly. Where did you hear that?

Quote
Will SFML work identically on all systems for things like random numbers and time?

Yes.

Quote
I heard some of these functions use floats, which is a big no-no for syncing across platforms.

Float may not be the best choice regarding accuracy with long running programs, but I don't see how it can impact portability. What do you mean with "syncing"?
Title: Should I switch to SFML from SDL?
Post by: pubby8 on October 06, 2010, 11:27:23 pm
Floating point math can differ on other systems (very small amount).

I want it to be exact. Exactly what features use floats?


Also, how is 2.0 differant from 1.6, and any estimate on when it will be released?
Title: Should I switch to SFML from SDL?
Post by: Laurent on October 06, 2010, 11:32:39 pm
Quote
I want it to be exact.

You won't get exact results, that's true. Can you explain in which context you need the time to be exact?

Quote
Exactly what features use floats?

The only thing that may cause problems is time, all times in SFML are represented with floats.

Quote
Also, how is 2.0 differant from 1.6

A lot. Otherwise it would be 1.7 ;)

Quote
and any estimate on when it will be released?

Nop, sorry. There are only a few things left to do, but these are the most tricky.
Title: Should I switch to SFML from SDL?
Post by: Joshee23 on October 09, 2010, 07:27:34 am
Hi guys,,,
First, I heard that SFML had some issues with memory leaks. Is this something that could still occur?
Thanks...how to deal with depression (http://howtodealwithdepression.org/)
Title: Should I switch to SFML from SDL?
Post by: Canadadry on October 09, 2010, 07:59:03 am
Quote from: "Laurent"
Quote from: "pubby8"
First, I heard that SFML had some issues with memory leaks. Is this something that could still occur?

SFML never had major issues with memory leaks. Every memory leak found was always fixed quickly. Where did you hear that?


Quote from: "Joshee23"
First, I heard that SFML had some issues with memory leaks. Is this something that could still occur?


I guess i could tell you no it never has been.
Title: Should I switch to SFML from SDL?
Post by: OniLinkPlus on October 11, 2010, 12:32:52 am
Quote from: "pubby8"
other issues:

First, I heard that SFML had some issues with memory leaks. Is this something that could still occur?

Will SFML work identically on all systems for things like random numbers and time? I heard some of these functions use floats, which is a big no-no for syncing across platforms.

Quote from: "Joshee23"
Hi guys,,,
First, I heard that SFML had some issues with memory leaks. Is this something that could still occur?
Thanks...how to deal with depression (http://howtodealwithdepression.org/)
These two comments are uncannily similar. Also, I removed a color tag in the second post. We need a report abuse button.
Title: Should I switch to SFML from SDL?
Post by: Nexus on October 11, 2010, 08:20:25 pm
Joshee23's post is obviously spam. You shouldn't copy the external link.

I think Laurent is himself active enough to delete such posts. "Report abuse" buttons are abused as well.