Jump to content
  • Advertisement
Sign in to follow this  
cyborg009

Which is more efficient to use in SDL2? SDL_Surface or SDL_Texture?

This topic is 2150 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

I'm making a simple platform game using an API named SDL2. And, I was wondering which is more efficient when it comes to speed in my game. SDL_Surface or SDL_Texture? I was trying to find answers in the SDL2 documentation and google but got nothing. Anyone have strong experience in SDL2??  

Share this post


Link to post
Share on other sites
Advertisement

SDL textures, used correctly, should be more efficient than SDL surfaces. You can think of textures as being hardware accelerated, and surfaces as something to be manipulated in main memory.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!