Drawing speed question
BlitzMax Forums/BlitzMax Beginners Area/Drawing speed question
| ||
Is it generally faster to draw a 50x50 masked image, or 10-20 anti-aliased lines? |
| ||
I am in the process of converting my 3Dline Lib to bMax, 3d quads seem to be the fastest way of drawing those lines. http://www.blitzbasic.com/codearcs/codearcs.php?code=1184 |
| ||
I don't know what a 3D quad is. I am also only dealing with 2D. |
| ||
2D in blitzmax actually uses 3D hardware "under the hood" where possible. A "Quad" in 3D terms is a basic square shape made out of two triangles. It's called a quad because it has 4 vertices (points) at each corner, making the square. On that square, is mapped your 2D image. It is then thrown to the screen just like 2D. Being a 3D quad, he could mean anything, from it rotating a textured quad with a line picture on it, or he might mean stretching it out really thin. Hope that helps to explain... |
| ||
I am thinking that one way of drawing a line in truly 3d would be to use a very tall rectangular image. It might be faster. Also, a quad in OpenGL (under BlitzMax) is not two triangles from what I can tell, it's a square. |