• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
thefollower

Is SFML a better choice over SDL?

17 posts in this topic

I can't tell what to pick when it comes to game development... everyone keeps saying one or the other as being faster, driving me insane!

Does any one have any facts on which one is the better choice for game development ?
0

Share this post


Link to post
Share on other sites
Hmm so other than ease of use and general support for them on line with tutorials why do people swear by one or the other with performance etc? Is it a placebo effect?
0

Share this post


Link to post
Share on other sites
Most of the time when someone swears by one of these libraries over the others it's been better for their specific situation -- which may not apply to you -- or it's simply their personal preference rather than an actual measurable advantage, or in some cases they may simply believe what they've heard from others without any actual basis.

Often benchmarks are very specific or are designed to the strengths of one API rather than another, giving the impression of better performance, but unless your own usage will very closely match the situation that was benchmarked this usually has little meaning for you as a would-be user of the library.
1

Share this post


Link to post
Share on other sites
[quote name='Servant of the Lord' timestamp='1352165799' post='4997827']
SFML is under active development. SDL went stagnant a few years back, though it appears it may be getting reactivated again with a new release... but that's not a guarantee.
[/quote]

according to the mailing list; it's for the most part finished, and Sam has stated he could ship it; but has been to busy with working with Valve for Steam on Linux at the moment; and that once he's more settled in it should be much closer to release.
2

Share this post


Link to post
Share on other sites
Yes, but we keep on hearing it's 'almost' finished and 'close' to release - for over 4 years. We may be "closer", but until it actually is released, you can't plan on it. I fully understand things take time and life gets in the way - but when advising people on what to use, I have to add that asterisk to SDL. Don't get me wrong, it's a great API! Edited by Servant of the Lord
2

Share this post


Link to post
Share on other sites
I have a practical situation whereby you might choose one over the other, as I have recently switched from SDL to SFML for a game I am building.

The game is a tile-based RTS, and I had developed it to the point where I had a fully functioning scrollable map + minimap + menu system. I started to use per-pixel alpha with some transition tiles that fade through varying degrees of transparency, and hit a brick wall with SDL's performance with this (a well known limitation of the library).

So I decided to give SFML a try, and converted my map engine to use this library ... and as expected the frame rate more than doubled. I'll be using SFML going forward on this project, due to the requirements of my game.

As others have said, it all depends on what you want to do. For complex alpha transparency, SDL is definitely not the way to go at the moment.
2

Share this post


Link to post
Share on other sites
SFML may have a good documentation. But their website has been down for a lot of time, like more than a month, and still is, at least here in Brazil.
0

Share this post


Link to post
Share on other sites
Hmm, yes. I'm now on a different PC, and here It works now that I checked. Last week it was not working neither on the PC on my house or any other...
0

Share this post


Link to post
Share on other sites
Must have been an issue on your end or in your area, or else just extremely bad timing coinciding with much shorter outages, the SFML site hasn't recently had any major downtime like you initially described.
1

Share this post


Link to post
Share on other sites
It hasn't had major downtime, but it has had weird network issues. There have been previous posters on the forum asking if the SFML website was down in the last month.
1

Share this post


Link to post
Share on other sites
[quote name='doyleman77' timestamp='1352339935' post='4998693']
[quote name='Servant of the Lord' timestamp='1352165799' post='4997827']
SFML is under active development. SDL went stagnant a few years back, though it appears it may be getting reactivated again with a new release... but that's not a guarantee.
[/quote]

according to the mailing list; it's for the most part finished, and Sam has stated he could ship it; but has been to busy with working with Valve for Steam on Linux at the moment; and that once he's more settled in it should be much closer to release.
[/quote]
I'd say the "close to release" thing went to waste considering it's again in the process of new features getting added =P What's already there should be safe to use though... unless you're developing for a phone, I never tried it there but it seems that on phones there are still some serious issues (not surprising, given that phone apps have a completely different environment than PC programs).
0

Share this post


Link to post
Share on other sites
[quote name='Sik_the_hedgehog' timestamp='1352453711' post='4999195']
[quote name='doyleman77' timestamp='1352339935' post='4998693']
[quote name='Servant of the Lord' timestamp='1352165799' post='4997827']
SFML is under active development. SDL went stagnant a few years back, though it appears it may be getting reactivated again with a new release... but that's not a guarantee.
[/quote]

according to the mailing list; it's for the most part finished, and Sam has stated he could ship it; but has been to busy with working with Valve for Steam on Linux at the moment; and that once he's more settled in it should be much closer to release.
[/quote]
I'd say the "close to release" thing went to waste considering it's again in the process of new features getting added =P What's already there should be safe to use though... unless you're developing for a phone, I never tried it there but it seems that on phones there are still some serious issues (not surprising, given that phone apps have a completely different environment than PC programs).
[/quote]

SDL works great on mobile devices iOS and Android, angry birds used it when it was young and seems to be doing alright. I'm currently working on an iOS app using SDL2.0 and OpenGL for my rendering. If anyone has an issue or bug in SDL you need to report it to get a fix. You can even apply fixes yourself by posting it. If you check http://hg.libsdl.org/SDL/ you will see change sets getting added frequently.

Both SFML and SDL are great libraries though. Who knows maybe the OP is still learning so in the end it might not even matter, the experience he will gain will matter more.

Also note great improvement in rendering SDL 2.0 over the old SDL 1.2 or you could use OpenGL.
0

Share this post


Link to post
Share on other sites
This probably isn't the thread for it so pardon me, but I've been using GLFW coupled with GLEW for OpenGL and I couldn't be any more happier. It does everything I want and nothing more. If you can't decide between the two I really suggest giving GLFW a shot
2

Share this post


Link to post
Share on other sites
I've also found GLFW and GLEW to be a decent combination, though on Mac OS X I don't use GLEW since it natively supports the features I need. I have an OpenGL 3+ simple example of using the combo here: https://github.com/dougbinks/glewfw for Mac OS X 10.7+ or Windows.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0