Main Renderer overhaul

Dramatically increased efficiency of algorithm - still needs same
changes to other render types.