(2D Only) Tiling screen

Blitz3D Forums/Blitz3D Programming/(2D Only) Tiling screen

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi all. Here's my problem:

I have an array, tileArray(i, j). Each array element contains a 16 x 16 tile.

I have drawn them to the screen to map over the entire screen:

for i = 0 to 63
for j = 0 to 47
drawImage tileArray(i, j), 16 * i, 16 * j
next
next

The problem is, performing this many draw operations in a single program loop is WAY too cpu intensive. Does anyone have an idea of a faster method? It's important that the tiles can be updated on a frame-by-frame basism because some of the tiles are animated.

Thanks a lot.