Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Should I switch to SFML from SDL?  (Read 4360 times)

0 Members and 1 Guest are viewing this topic.

pubby8

  • Newbie
  • *
  • Posts: 3
    • View Profile
Should I switch to SFML from SDL?
« 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Should I switch to SFML from SDL?
« Reply #1 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.
Laurent Gomila - SFML developer

pubby8

  • Newbie
  • *
  • Posts: 3
    • View Profile
Should I switch to SFML from SDL?
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Should I switch to SFML from SDL?
« Reply #3 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"?
Laurent Gomila - SFML developer

pubby8

  • Newbie
  • *
  • Posts: 3
    • View Profile
Should I switch to SFML from SDL?
« Reply #4 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Should I switch to SFML from SDL?
« Reply #5 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.
Laurent Gomila - SFML developer

Joshee23

  • Newbie
  • *
  • Posts: 1
    • Yahoo Instant Messenger - josheegarcia@yahoo.com
    • View Profile
Should I switch to SFML from SDL?
« Reply #6 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

Canadadry

  • Hero Member
  • *****
  • Posts: 1081
    • View Profile
Should I switch to SFML from SDL?
« Reply #7 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.

OniLinkPlus

  • Hero Member
  • *****
  • Posts: 500
    • View Profile
Should I switch to SFML from SDL?
« Reply #8 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
These two comments are uncannily similar. Also, I removed a color tag in the second post. We need a report abuse button.
I use the latest build of SFML2

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Should I switch to SFML from SDL?
« Reply #9 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything