Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.