Added rendererstats update code to main loop.