Jump to content

View more

Image of the Day

WIP title screen for #DeathOfAPartisan #screenshotsaturday #gamedev https://t.co/qJNhfZCvd4
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

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

4: Adsense

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   

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



#2 rip-off   Moderators   

10897
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.