Hi,
Tilemaps in 2D are optimised by drawing to a larger image then pasting that image until you need to draw more blocks. This is called a 'cache' drawing scheme.
Lets consider that drawimage in opengl is actually throwing textured quads at the screen.
Lets consider that for each different textured quad you throw at the screen, you actually make a small gfx render state change.
So what is the fastest way to make tile maps on blitzmax?
please consider the following:
* possibly ordering your drawing so texture switching is minimised
* cache map or not?
Thoughts?
Tilemaps in 2D are optimised by drawing to a larger image then pasting that image until you need to draw more blocks. This is called a 'cache' drawing scheme.
Lets consider that drawimage in opengl is actually throwing textured quads at the screen.
Lets consider that for each different textured quad you throw at the screen, you actually make a small gfx render state change.
So what is the fastest way to make tile maps on blitzmax?
please consider the following:
* possibly ordering your drawing so texture switching is minimised
* cache map or not?
Thoughts?