Jump to content
  • Advertisement
Sign in to follow this  
KellerHood

SDL vs. SFML for 3D rendering only

This topic is 2600 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Let me first say, I have been using both sfml and sdl for 2d game programming, and they are great cross-platform libraries. I prefer to use sfml for 2d games, because it is simpler, and I don't need to do all the opengl hardcoding just to get some fast effects with my sprites. However, I want to know, which is faster for an only 3d implementation, SDL or SFML? I am basically using them only for a rendering context, and programming the 3d openg stuff myself. I am wondering, are there any performance differences or major pitfalls ahead when using either of the libraries for JUST an opengl rendering context?
EDIT: forgot to mention, I am also using them for input, but the question about which is the faster rendering context remains the same.

Share this post


Link to post
Share on other sites
Advertisement
Are you not using either for keyboard/mouse input?

Correct me if I'm wrong but really all you need to compare is SDL_GL_SwapWindow() with sfml's Window->Display() ?

Share this post


Link to post
Share on other sites

Are you not using either for keyboard/mouse input?

Correct me if I'm wrong but really all you need to compare is SDL_GL_SwapWindow() with sfml's Window->Display() ?


forgot to mention that. I am using them for input.

Share this post


Link to post
Share on other sites
The question is basically irrelevant. A GL context is a GL context, and any difference in overhead introduced by SDL_GL_SwapWindow() vs. Window->Display() is going to be completely negligible in comparison to everything else you'll be doing.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!