   Question on software rasterizer
  I was thinking on making a software rasterizer that rasterizes lines only, but I'm curious as to how fast it would be to raster around 1 million lines per frame.I know it's kind of tough to say but I'm taking guess based on a current high end machine.   
  Lines? As between any two points, or strictly horizontal or vertical? Are you going to apply a texture to the lines or just a solid color? Do they need to be shaded? What about widths greater than 1?   ;  Ya, the lines will be lit and textured.I just did a test with drawing 1 million 2d unlit and untextured lines and was getting around 60-70 fps. I hope texturing and lighting them doesn't drop the frame rate too much.   ;  Bresenham's algorithm?   ;  ya   ;  There really isn't any way to know without running the tests yourself. There are dozens of "Bresenham's line algorithms" on the net and some are better than others. I can tell you that performance will drop over simply filling the same number of pixels vis spans. The million function calls alone will eat performance alive. Add texture access and color interpolation and you'll be looking at seconds per frame.   ;  I wonder if there's a way to make the function draw multiple lines per call, kind of like batching. So I don't have all those performance killing function calls.   ;  that's what inlining is for. in visual studio just prefix the function with __forceinline.   ;  How fast do you think hardware accelerated lines could be drawn?   