Which one is better

Hi all,
I have a 2D game and need to redraw window every 100 mili second and have 2 way which one is better :
1- draw 75 rectangle, 60 line in every redraw and have 3 256*256 bmp images loaded in ram.


2- create a picture of my screen and in every redraw I only draw a 1024*768 bmp image that loaded in ram.

with 2 parameters: speed and memory which one is better.

I don’t think that with such case to we be really limited. It will run fast in any case and you won’t be limited by memory.

I would vote for the second method, it’s easier so more realizable and bloody fast with GL_TEXTURE_RECTANGLE_ARB.

Just painting the screen with a texture(without special shaders etc.) is very fast either way.

However, if you want to change that texture in system memory(by CPU) and upload it to OpenGL graphic memory every frame, that transfer is quite slow.

Then the 3256256 solution would be faster since less texels have to be transfered.