So wait a sec - what format are your bitmaps in? sdl_surface, gl texture... It would help a bit - and can you not simply send that bitmap straight to the screen instead of some variable?