Which is better?

BlitzPlus Forums/BlitzPlus Beginners Area/Which is better?

Jay(Posted 2004) [#1]
Say you an image you want to display on the screen that
1) consists of a background and two foreground iamges and 2) speed is not a major issue.

Is it better to load one single large image, or perhaps create the background from tiles then overwrite with the two forground images?


WolRon(Posted 2004) [#2]
Are you asking if the background should be the single large image, or are you asking if all three are combined to make a single image?

Loading the background as a single large image will probably take up less disk space (with compression) so you might as well save yourself the trouble of tiling it.


Regular K(Posted 2004) [#3]
If the images are bigger than the screen resolution, you should split them up as some video cards will not display them


Berserker [swe](Posted 2004) [#4]
Try using SetBuffer ImageBuffer(BackGround) or something.


keyboard(Posted 2005) [#5]
a tile lets you create a lot of background effect with only a little graphic, which may make a difference if you have a lot of backgrounds, and want to host the game download somewhere...

Of course, the tile has to be processed, but people often have powerful computers that can handle that easily. If you keep your game files to as least Kb as possible, 56Kers appreciate it on the download, not everyone has broadband :)

When using tiles, think about using CreateImage to create a separate "ScreenPic" where all the background effects are drawn to. Draw the background and stuff to the ScreenPic, which you only have to do once, rather than every time through the game loop. The ScreenPic is drawn every game loop instead.