Algorithms For Rendering Optimization