Improve performance of mines render loop