Blitzmax questions

BlitzMax Forums/BlitzMax Programming/Blitzmax questions

slenkar(Posted 2005) [#1]
Is there any difference between rendering 1000 identical images and 1000 different images?

oops I meant question, not questions


N(Posted 2005) [#2]
Aside from having to bind different textures per draw I don't think so. I don't know if glBindTexture automatically checks to see if a texture name is already in use (and thus doesn't perform any potentially costly state changes), you could always perform a quick test to figure this out.


Shambler(Posted 2005) [#3]
One would hope that BMax avoids renderstate changes so rendering 1000 identical images should be slightly faster than rendering 1000 different ones.

Perform the test and let us know ;)


xlsior(Posted 2005) [#4]
A related question:

Does anyone know if there is any speed difference in drawing a single 1024x768 image, vs. 192 64x64 tiles
(both ending up fully covering a single screen, with no scaling applied)


teamonkey(Posted 2005) [#5]
In theory the first way should be a little bit quicker, but it wastes more memory (because it would use a 1024x1024 texture)