I've managed to code a programm which draws textures. It works well, but is too slow. The function which draws the triangle, is about 300 rows long. When I left light effects and depth-buffer out, the code shortened to 200 rows, and suprisingly my programm got about 30% faster, but was still too slow. I got impression that my triangle-drawing-function would get faster, if I managed to get it shorter. But my code is as optimized as I can get it!
Is there anyone here who has coded this stuff? What's the secret to get textures drawn as fast as they are in the big games?