Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm pretty new to SDL and wonder what is better if I have to draw tiled map on screen: to SDL_RenderCopy each tile from texture(which presents tileset) and then SDL_RenderPresent it every frame or to compose somehow map onto another texture which will be rendered every frame?

share|improve this question
I agree with XiaoChuan Yu, it's probably not a big deal. If you find it to be a bottleneck then you can start thinking of new ways to draw tiles! – Luke San Antonio Aug 21 '13 at 5:33
up vote 0 down vote accepted

It's probably better to just call SDL_RenderCopy multiple times and copy to display buffer directly rather than composing and uploading an extra texture to GPU which in the end you copy to display buffer anyways.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.