clean up rendere a bit. add fps counter in main. TODO: move the fps counter