Jump to content

  • Log In with Google      Sign In   
  • Create Account

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


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 cyborg009   Members   -  Reputation: 101

Like
0Likes
Like

Posted 03 December 2013 - 01:50 PM

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??  



Sponsor:

#2 rip-off   Moderators   -  Reputation: 8224

Like
1Likes
Like

Posted 03 December 2013 - 04:15 PM

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.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS