scrolling background image
hi,
im doing a mario bros.-like game, i have a wide background image (1200 x 300) but only portion (600 x 300) is being display on the screen. the other portion will just scroll when the main character (e.g. mario) moves left and right.
so what i did is to draw the background image with the coordinate's dynamic, it is increment and decrement, depends on the character where he moves.
but my problem is with this kind of approach as basic game developer. it is very slow when play it on TV via STB. but if i remove the background image, the game is fast. it seems the loading of background image has an effect on the performance.
how could i address this? is there any solution or other approach on how could i scroll the background image with out affecting the performance?
thanks in advance.

