Optimize render loop in square/saw.