Sign in to follow this  

SDL vs. SFML for 3D rendering only

This topic is 2384 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
[quote name='PrestoChung' timestamp='1306979297' post='4818491']
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() ?
[/quote]

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

This topic is 2384 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.

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