Blitzmax questions
BlitzMax Forums/BlitzMax Programming/Blitzmax questions
| ||
Is there any difference between rendering 1000 identical images and 1000 different images? oops I meant question, not questions |
| ||
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. |
| ||
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 ;) |
| ||
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) |
| ||
In theory the first way should be a little bit quicker, but it wastes more memory (because it would use a 1024x1024 texture) |