Render algorithm optimization