There is another thread discussing the performance of a toy implementation of a ray tracer: Why is this raytracer slow? - #30 by lmiq
Maybe some of the code there can give you some ideas.
There is another thread discussing the performance of a toy implementation of a ray tracer: Why is this raytracer slow? - #30 by lmiq
Maybe some of the code there can give you some ideas.